ISU_IZWST_LE_MARGIN_JBP 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 ISU_IZWST_LE_MARGIN_JBP into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
EJBP_BM
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ISU_IZWST_LE_MARGIN_JBP' "INTERNAL: Create IZWST Left Margin for SBP and JBP
EXPORTING
x_abr_trig = " isu2a_abr_trig
x_pbill = " isu2a_bill_doc
x_vertrag = " ever-vertrag
x_izw = " isu2a_billing_data-izw
x_einzdat = " ever-einzdat
CHANGING
xy_izwst = " isu2a_billing_data-izwst
xy_compr_izw = " isu2a_billing_data-izw
EXCEPTIONS
GENERAL_FAULT = 1 "
BIG_CHECK_ERROR = 2 "
. " ISU_IZWST_LE_MARGIN_JBP
The ABAP code below is a full code listing to execute function module ISU_IZWST_LE_MARGIN_JBP 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).
DATA(ld_xy_izwst) = some text here
DATA(ld_xy_compr_izw) = some text here
DATA(ld_x_abr_trig) = 'Check type of data required'.
DATA(ld_x_pbill) = 'Check type of data required'.
SELECT single VERTRAG
FROM EVER
INTO @DATA(ld_x_vertrag).
DATA(ld_x_izw) = some text here
SELECT single EINZDAT
FROM EVER
INTO @DATA(ld_x_einzdat).
. CALL FUNCTION 'ISU_IZWST_LE_MARGIN_JBP' EXPORTING x_abr_trig = ld_x_abr_trig x_pbill = ld_x_pbill x_vertrag = ld_x_vertrag x_izw = ld_x_izw x_einzdat = ld_x_einzdat CHANGING xy_izwst = ld_xy_izwst xy_compr_izw = ld_xy_compr_izw EXCEPTIONS GENERAL_FAULT = 1 BIG_CHECK_ERROR = 2 . " ISU_IZWST_LE_MARGIN_JBP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
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_xy_izwst | TYPE ISU2A_BILLING_DATA-IZWST , |
| ld_x_abr_trig | TYPE ISU2A_ABR_TRIG , |
| ld_xy_compr_izw | TYPE ISU2A_BILLING_DATA-IZW , |
| ld_x_pbill | TYPE ISU2A_BILL_DOC , |
| ld_x_vertrag | TYPE EVER-VERTRAG , |
| ld_x_izw | TYPE ISU2A_BILLING_DATA-IZW , |
| ld_x_einzdat | TYPE EVER-EINZDAT . |
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 ISU_IZWST_LE_MARGIN_JBP or its description.