PP_WRAP_DOCUMENT_ENJ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name PP_WRAP_DOCUMENT_ENJ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
F040
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'PP_WRAP_DOCUMENT_ENJ' "
EXPORTING
i_belnr = " vbkpf-belnr
i_bukrs = " vbkpf-bukrs
i_gjahr = " vbkpf-gjahr
* i_funcl = 'U' " t020-funcl Function class
IMPORTING
e_xwffr = " xwffr Required Release
e_xfrge = " xfrge Release carried out
e_upddt = " upddt Date of the Last Document Update
e_reldt = " releasedate Release Date
e_updtm = " cputm Time data was entered at
e_reltm = " cputm Time data was entered at
e_xprfg = " xprfg Document Complete
e_pargb = " pargb Partner Business Area
* TABLES
* t_xbkpf = " bkpf
* t_xbsec = " bsec
* t_xbseg = " bseg
* t_xbset = " bset
* t_xbsez = " bsez Line Item Additional Information (Online)
* t_splttab = " acsplt Carrier for Split Information re: Current Account Line Items
* t_spltwt = " with_itemx Auxiliary structure for table WITH_ITEM
EXCEPTIONS
CANCELLED = 1 "
DOCUMENT_DISPLAYED = 2 "
FOREIGN_LOCK = 3 " Document is locked
. " PP_WRAP_DOCUMENT_ENJ
The ABAP code below is a full code listing to execute function module PP_WRAP_DOCUMENT_ENJ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_xwffr | TYPE XWFFR , |
| ld_e_xfrge | TYPE XFRGE , |
| ld_e_upddt | TYPE UPDDT , |
| ld_e_reldt | TYPE RELEASEDATE , |
| ld_e_updtm | TYPE CPUTM , |
| ld_e_reltm | TYPE CPUTM , |
| ld_e_xprfg | TYPE XPRFG , |
| ld_e_pargb | TYPE PARGB , |
| it_t_xbkpf | TYPE STANDARD TABLE OF BKPF,"TABLES PARAM |
| wa_t_xbkpf | LIKE LINE OF it_t_xbkpf , |
| it_t_xbsec | TYPE STANDARD TABLE OF BSEC,"TABLES PARAM |
| wa_t_xbsec | LIKE LINE OF it_t_xbsec , |
| it_t_xbseg | TYPE STANDARD TABLE OF BSEG,"TABLES PARAM |
| wa_t_xbseg | LIKE LINE OF it_t_xbseg , |
| it_t_xbset | TYPE STANDARD TABLE OF BSET,"TABLES PARAM |
| wa_t_xbset | LIKE LINE OF it_t_xbset , |
| it_t_xbsez | TYPE STANDARD TABLE OF BSEZ,"TABLES PARAM |
| wa_t_xbsez | LIKE LINE OF it_t_xbsez , |
| it_t_splttab | TYPE STANDARD TABLE OF ACSPLT,"TABLES PARAM |
| wa_t_splttab | LIKE LINE OF it_t_splttab , |
| it_t_spltwt | TYPE STANDARD TABLE OF WITH_ITEMX,"TABLES PARAM |
| wa_t_spltwt | LIKE LINE OF it_t_spltwt . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_xwffr | TYPE XWFFR , |
| it_t_xbkpf | TYPE STANDARD TABLE OF BKPF , |
| wa_t_xbkpf | LIKE LINE OF it_t_xbkpf, |
| ld_i_belnr | TYPE VBKPF-BELNR , |
| ld_e_xfrge | TYPE XFRGE , |
| it_t_xbsec | TYPE STANDARD TABLE OF BSEC , |
| wa_t_xbsec | LIKE LINE OF it_t_xbsec, |
| ld_i_bukrs | TYPE VBKPF-BUKRS , |
| it_t_xbseg | TYPE STANDARD TABLE OF BSEG , |
| wa_t_xbseg | LIKE LINE OF it_t_xbseg, |
| ld_i_gjahr | TYPE VBKPF-GJAHR , |
| ld_e_upddt | TYPE UPDDT , |
| ld_i_funcl | TYPE T020-FUNCL , |
| it_t_xbset | TYPE STANDARD TABLE OF BSET , |
| wa_t_xbset | LIKE LINE OF it_t_xbset, |
| ld_e_reldt | TYPE RELEASEDATE , |
| it_t_xbsez | TYPE STANDARD TABLE OF BSEZ , |
| wa_t_xbsez | LIKE LINE OF it_t_xbsez, |
| ld_e_updtm | TYPE CPUTM , |
| ld_e_reltm | TYPE CPUTM , |
| it_t_splttab | TYPE STANDARD TABLE OF ACSPLT , |
| wa_t_splttab | LIKE LINE OF it_t_splttab, |
| ld_e_xprfg | TYPE XPRFG , |
| it_t_spltwt | TYPE STANDARD TABLE OF WITH_ITEMX , |
| wa_t_spltwt | LIKE LINE OF it_t_spltwt, |
| ld_e_pargb | TYPE PARGB . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name PP_WRAP_DOCUMENT_ENJ or its description.