SAP JV_AM_DOCUMENT_CREATE Function Module for Bereitet Belegerstellung vor und ruft Baustein für Belegerstellung
JV_AM_DOCUMENT_CREATE is a standard jv am document create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Bereitet Belegerstellung vor und ruft Baustein für Belegerstellung 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 am document create FM, simply by entering the name JV_AM_DOCUMENT_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: GJAM
Program Name: SAPLGJAM
Main Program: SAPLGJAM
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function JV_AM_DOCUMENT_CREATE 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_AM_DOCUMENT_CREATE'"Bereitet Belegerstellung vor und ruft Baustein für Belegerstellung.
EXPORTING
* I_FCODE = "
* I_AWTYP = "
IS_JVRAM01 = "I/O fields for AM/MM Transfers
I_KNUMV = "Number of the document condition
IMPORTING
E_AWREF = "
E_AWORG = "
E_AWSYS = "
E_AWTYP = "
E_FCODE = "
TABLES
* T_ANEA = "
T_ANEP = "
* T_ANLB = "
* T_ANLC = "
* T_ANTS = "
T_ANBZ = "
T_DLINE = "New Structure for JV Asset Posting line
EXCEPTIONS
ERROR_OCCURRED = 1
IMPORTING Parameters details for JV_AM_DOCUMENT_CREATE
I_FCODE -
Data type: SY-UCOMMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AWTYP -
Data type: ACCHD-AWTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_JVRAM01 - I/O fields for AM/MM Transfers
Data type: JVRAM01Optional: No
Call by Reference: Yes
I_KNUMV - Number of the document condition
Data type: KNUMVOptional: No
Call by Reference: Yes
EXPORTING Parameters details for JV_AM_DOCUMENT_CREATE
E_AWREF -
Data type: ACCHD-AWREFOptional: No
Call by Reference: No ( called with pass by value option)
E_AWORG -
Data type: ACCHD-AWORGOptional: No
Call by Reference: No ( called with pass by value option)
E_AWSYS -
Data type: ACCHD-AWSYSOptional: No
Call by Reference: No ( called with pass by value option)
E_AWTYP -
Data type: ACCHD-AWTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_FCODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for JV_AM_DOCUMENT_CREATE
T_ANEA -
Data type: ANEAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ANEP -
Data type: ANEPOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLB -
Data type: ANLBOptional: Yes
Call by Reference: Yes
T_ANLC -
Data type: ANLCOptional: Yes
Call by Reference: Yes
T_ANTS -
Data type: ANTSOptional: Yes
Call by Reference: Yes
T_ANBZ -
Data type: ANBZOptional: No
Call by Reference: Yes
T_DLINE - New Structure for JV Asset Posting line
Data type: JVDLINEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURRED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for JV_AM_DOCUMENT_CREATE 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: | ||||
| lt_t_anea | TYPE STANDARD TABLE OF ANEA, " | |||
| lv_e_awref | TYPE ACCHD-AWREF, " | |||
| lv_i_fcode | TYPE SY-UCOMM, " | |||
| lv_error_occurred | TYPE SY, " | |||
| lt_t_anep | TYPE STANDARD TABLE OF ANEP, " | |||
| lv_e_aworg | TYPE ACCHD-AWORG, " | |||
| lv_i_awtyp | TYPE ACCHD-AWTYP, " | |||
| lt_t_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
| lv_e_awsys | TYPE ACCHD-AWSYS, " | |||
| lv_is_jvram01 | TYPE JVRAM01, " | |||
| lt_t_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
| lv_e_awtyp | TYPE ACCHD-AWTYP, " | |||
| lv_i_knumv | TYPE KNUMV, " | |||
| lt_t_ants | TYPE STANDARD TABLE OF ANTS, " | |||
| lv_e_fcode | TYPE SY-UCOMM, " | |||
| lt_t_anbz | TYPE STANDARD TABLE OF ANBZ, " | |||
| lt_t_dline | TYPE STANDARD TABLE OF JVDLINE. " |
|   CALL FUNCTION 'JV_AM_DOCUMENT_CREATE' "Bereitet Belegerstellung vor und ruft Baustein für Belegerstellung |
| EXPORTING | ||
| I_FCODE | = lv_i_fcode | |
| I_AWTYP | = lv_i_awtyp | |
| IS_JVRAM01 | = lv_is_jvram01 | |
| I_KNUMV | = lv_i_knumv | |
| IMPORTING | ||
| E_AWREF | = lv_e_awref | |
| E_AWORG | = lv_e_aworg | |
| E_AWSYS | = lv_e_awsys | |
| E_AWTYP | = lv_e_awtyp | |
| E_FCODE | = lv_e_fcode | |
| TABLES | ||
| T_ANEA | = lt_t_anea | |
| T_ANEP | = lt_t_anep | |
| T_ANLB | = lt_t_anlb | |
| T_ANLC | = lt_t_anlc | |
| T_ANTS | = lt_t_ants | |
| T_ANBZ | = lt_t_anbz | |
| T_DLINE | = lt_t_dline | |
| EXCEPTIONS | ||
| ERROR_OCCURRED = 1 | ||
| . " JV_AM_DOCUMENT_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM JV_AM_DOCUMENT_CREATE
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 AWREF FROM ACCHD INTO @DATA(ld_e_awref). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_i_fcode). | ||||
| "SELECT single AWORG FROM ACCHD INTO @DATA(ld_e_aworg). | ||||
| "SELECT single AWTYP FROM ACCHD INTO @DATA(ld_i_awtyp). | ||||
| "SELECT single AWSYS FROM ACCHD INTO @DATA(ld_e_awsys). | ||||
| "SELECT single AWTYP FROM ACCHD INTO @DATA(ld_e_awtyp). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_e_fcode). | ||||
Search for further information about these or an SAP related objects