SAP JV_GET_DOCUMENT_DATE Function Module for Document Date Retrieval Function Module









JV_GET_DOCUMENT_DATE is a standard jv get document date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Document Date Retrieval Function Module 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 document date FM, simply by entering the name JV_GET_DOCUMENT_DATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: GJVF
Program Name: SAPLGJVF
Main Program: SAPLGJVF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function JV_GET_DOCUMENT_DATE 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_DOCUMENT_DATE'"Document Date Retrieval Function Module
EXPORTING
I_COMPANY = "Company Code
I_DATE = "Input Date
I_EQGROUP = "Equity Group
I_VENTURE = "Venture

IMPORTING
E_DOCDATE = "Export: Document Date
E_T8JG = "Table T8JG Field String

EXCEPTIONS
NO_ENTRY = 1
.



IMPORTING Parameters details for JV_GET_DOCUMENT_DATE

I_COMPANY - Company Code

Data type: T8JG-BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_DATE - Input Date

Data type: JVSO1-BUDAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_EQGROUP - Equity Group

Data type: T8JG-EGRUP
Optional: No
Call by Reference: No ( called with pass by value option)

I_VENTURE - Venture

Data type: T8JG-VNAME
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for JV_GET_DOCUMENT_DATE

E_DOCDATE - Export: Document Date

Data type: JVSO1-BUDAT
Optional: No
Call by Reference: No ( called with pass by value option)

E_T8JG - Table T8JG Field String

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_ENTRY - No Entry

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for JV_GET_DOCUMENT_DATE 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_no_entry  TYPE STRING, "   
lv_e_docdate  TYPE JVSO1-BUDAT, "   
lv_i_company  TYPE T8JG-BUKRS, "   
lv_e_t8jg  TYPE T8JG, "   
lv_i_date  TYPE JVSO1-BUDAT, "   
lv_i_eqgroup  TYPE T8JG-EGRUP, "   
lv_i_venture  TYPE T8JG-VNAME. "   

  CALL FUNCTION 'JV_GET_DOCUMENT_DATE'  "Document Date Retrieval Function Module
    EXPORTING
         I_COMPANY = lv_i_company
         I_DATE = lv_i_date
         I_EQGROUP = lv_i_eqgroup
         I_VENTURE = lv_i_venture
    IMPORTING
         E_DOCDATE = lv_e_docdate
         E_T8JG = lv_e_t8jg
    EXCEPTIONS
        NO_ENTRY = 1
. " JV_GET_DOCUMENT_DATE




ABAP code using 7.40 inline data declarations to call FM JV_GET_DOCUMENT_DATE

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 BUDAT FROM JVSO1 INTO @DATA(ld_e_docdate).
 
"SELECT single BUKRS FROM T8JG INTO @DATA(ld_i_company).
 
 
"SELECT single BUDAT FROM JVSO1 INTO @DATA(ld_i_date).
 
"SELECT single EGRUP FROM T8JG INTO @DATA(ld_i_eqgroup).
 
"SELECT single VNAME FROM T8JG INTO @DATA(ld_i_venture).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!