SAP JV_GET_EQUITY_GROUP_DATES Function Module for Get the document date for a specific Venture/Equity Group
JV_GET_EQUITY_GROUP_DATES is a standard jv get equity group dates SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get the document date for a specific Venture/Equity Group processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for jv get equity group dates FM, simply by entering the name JV_GET_EQUITY_GROUP_DATES into the relevant SAP transaction such as SE37 or SE38.
Function Group: GJV5
Program Name: SAPLGJV5
Main Program: SAPLGJV5
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function JV_GET_EQUITY_GROUP_DATES pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'JV_GET_EQUITY_GROUP_DATES'"Get the document date for a specific Venture/Equity Group.
EXPORTING
COMPANY = "Company code
EQUITY_GROUP = "Equity Group
* INVERTED_LAST_DATE = 00000000 "Last desired to-date inverted - see long text
* LAST_DATE = 00000000 "Last desired to-date - please see long text
VENTURE = "Venture
IMPORTING
VALID_FROM_DATE = "Date equity group is valid from
VALID_TO_DATE = "Date equity group is valid until
EXCEPTIONS
DATES_NOT_SAME = 1 GROUP_NOT_FOUND = 2 NO_DATE_PASSED = 3
IMPORTING Parameters details for JV_GET_EQUITY_GROUP_DATES
COMPANY - Company code
Data type: T8JG-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
EQUITY_GROUP - Equity Group
Data type: T8JG-EGRUPOptional: No
Call by Reference: No ( called with pass by value option)
INVERTED_LAST_DATE - Last desired to-date inverted - see long text
Data type: T8JG-FDATEDefault: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)
LAST_DATE - Last desired to-date - please see long text
Data type: BKPF-BLDATDefault: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)
VENTURE - Venture
Data type: T8JV-VNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for JV_GET_EQUITY_GROUP_DATES
VALID_FROM_DATE - Date equity group is valid from
Data type: BKPF-BLDATOptional: No
Call by Reference: No ( called with pass by value option)
VALID_TO_DATE - Date equity group is valid until
Data type: BKPF-BLDATOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DATES_NOT_SAME - LAST_DATE and INVERTED_LAST_DATE not same date
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GROUP_NOT_FOUND - Equity group not found for venture in T8JG
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATE_PASSED - No last day passed to function
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for JV_GET_EQUITY_GROUP_DATES Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_company | TYPE T8JG-BUKRS, " | |||
lv_dates_not_same | TYPE T8JG, " | |||
lv_valid_from_date | TYPE BKPF-BLDAT, " | |||
lv_equity_group | TYPE T8JG-EGRUP, " | |||
lv_valid_to_date | TYPE BKPF-BLDAT, " | |||
lv_group_not_found | TYPE BKPF, " | |||
lv_no_date_passed | TYPE BKPF, " | |||
lv_inverted_last_date | TYPE T8JG-FDATE, " 00000000 | |||
lv_last_date | TYPE BKPF-BLDAT, " 00000000 | |||
lv_venture | TYPE T8JV-VNAME. " |
  CALL FUNCTION 'JV_GET_EQUITY_GROUP_DATES' "Get the document date for a specific Venture/Equity Group |
EXPORTING | ||
COMPANY | = lv_company | |
EQUITY_GROUP | = lv_equity_group | |
INVERTED_LAST_DATE | = lv_inverted_last_date | |
LAST_DATE | = lv_last_date | |
VENTURE | = lv_venture | |
IMPORTING | ||
VALID_FROM_DATE | = lv_valid_from_date | |
VALID_TO_DATE | = lv_valid_to_date | |
EXCEPTIONS | ||
DATES_NOT_SAME = 1 | ||
GROUP_NOT_FOUND = 2 | ||
NO_DATE_PASSED = 3 | ||
. " JV_GET_EQUITY_GROUP_DATES |
ABAP code using 7.40 inline data declarations to call FM JV_GET_EQUITY_GROUP_DATES
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single BUKRS FROM T8JG INTO @DATA(ld_company). | ||||
"SELECT single BLDAT FROM BKPF INTO @DATA(ld_valid_from_date). | ||||
"SELECT single EGRUP FROM T8JG INTO @DATA(ld_equity_group). | ||||
"SELECT single BLDAT FROM BKPF INTO @DATA(ld_valid_to_date). | ||||
"SELECT single FDATE FROM T8JG INTO @DATA(ld_inverted_last_date). | ||||
DATA(ld_inverted_last_date) | = 00000000. | |||
"SELECT single BLDAT FROM BKPF INTO @DATA(ld_last_date). | ||||
DATA(ld_last_date) | = 00000000. | |||
"SELECT single VNAME FROM T8JV INTO @DATA(ld_venture). | ||||
Search for further information about these or an SAP related objects