SAP EBPP_TRPACC_MAP_INV_TO_ITEMS_N Function Module for create items and splitems from t_items, t_invoices, t_payallocation (new)









EBPP_TRPACC_MAP_INV_TO_ITEMS_N is a standard ebpp trpacc map inv to items n SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for create items and splitems from t_items, t_invoices, t_payallocation (new) 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 ebpp trpacc map inv to items n FM, simply by entering the name EBPP_TRPACC_MAP_INV_TO_ITEMS_N into the relevant SAP transaction such as SE37 or SE38.

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



Function EBPP_TRPACC_MAP_INV_TO_ITEMS_N 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 'EBPP_TRPACC_MAP_INV_TO_ITEMS_N'"create items and splitems from t_items, t_invoices, t_payallocation (new)
EXPORTING
IS_CONTROL = "Control data for execution - TradeRecPayAccountByCus-service
* IT_INVOICES = "SAP Biller Direct: Bill Data
* ITS_ALLOCATION = "table type for allocation sorted by linct
* ITS_PAYALLOCATION = "table type for payallocation sorted by linct
* ITS_PAYMENTS = "sorted table for mypayments (by refid)
* WITH_GROUP = 'X' "
* IV_KOART = 'D' "Account Type
MINCLSPLITCLDATE = "Date in CHAR format
MAXOPSPLITDUEDATE = "Date in CHAR format
CLEARINGSTATUSCODE = "Single-Character Indicator
* POSTINGDATE = "Range table for posting date
* IM_PROCESSING_CONDITIONS = "Proxy Structure (generated)
* ITS_ITEMS = "sorted (by docid) table type for Item Data

IMPORTING
ITEM = "
SPLITITEMGROUP = "

CHANGING
E_RETURNCODE = "Return Value of ABAP Statements
* CH_PROCESSING_CONDITIONS = "Proxy Structure (generated)
.



IMPORTING Parameters details for EBPP_TRPACC_MAP_INV_TO_ITEMS_N

IS_CONTROL - Control data for execution - TradeRecPayAccountByCus-service

Data type: EBPP_TRP_CONTROL
Optional: No
Call by Reference: Yes

IT_INVOICES - SAP Biller Direct: Bill Data

Data type: TBL_APAREBPP_INVOICE
Optional: Yes
Call by Reference: Yes

ITS_ALLOCATION - table type for allocation sorted by linct

Data type: EBPP_TS_APAREBPP_ALLOCATION
Optional: Yes
Call by Reference: Yes

ITS_PAYALLOCATION - table type for payallocation sorted by linct

Data type: EBPP_TS_PAYALLOCATION_LINCT
Optional: Yes
Call by Reference: Yes

ITS_PAYMENTS - sorted table for mypayments (by refid)

Data type: EBPP_TS_APAREBPP_MYPAYMENTS
Optional: Yes
Call by Reference: Yes

WITH_GROUP -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_KOART - Account Type

Data type: KOART
Default: 'D'
Optional: Yes
Call by Reference: Yes

MINCLSPLITCLDATE - Date in CHAR format

Data type: DATE
Optional: No
Call by Reference: Yes

MAXOPSPLITDUEDATE - Date in CHAR format

Data type: DATE
Optional: No
Call by Reference: Yes

CLEARINGSTATUSCODE - Single-Character Indicator

Data type: CHAR3
Optional: No
Call by Reference: Yes

POSTINGDATE - Range table for posting date

Data type: EBPP_RANGE_T_BUDAT
Optional: Yes
Call by Reference: Yes

IM_PROCESSING_CONDITIONS - Proxy Structure (generated)

Data type: SAPPLCO_WO_LAST_QRY_PROC_COND
Optional: Yes
Call by Reference: Yes

ITS_ITEMS - sorted (by docid) table type for Item Data

Data type: EBPP_TS_APAREBPP_ITEM_DOCID
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for EBPP_TRPACC_MAP_INV_TO_ITEMS_N

ITEM -

Data type: EBPP_TT_TRPITEM
Optional: No
Call by Reference: Yes

SPLITITEMGROUP -

Data type: EBPP_TT_TRPSPLITGROUP
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EBPP_TRPACC_MAP_INV_TO_ITEMS_N

E_RETURNCODE - Return Value of ABAP Statements

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

CH_PROCESSING_CONDITIONS - Proxy Structure (generated)

Data type: SAPPLCO_WO_LAST_RESP_PROC_COND
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for EBPP_TRPACC_MAP_INV_TO_ITEMS_N 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_item  TYPE EBPP_TT_TRPITEM, "   
lv_is_control  TYPE EBPP_TRP_CONTROL, "   
lv_e_returncode  TYPE SY-SUBRC, "   
lv_it_invoices  TYPE TBL_APAREBPP_INVOICE, "   
lv_its_allocation  TYPE EBPP_TS_APAREBPP_ALLOCATION, "   
lv_its_payallocation  TYPE EBPP_TS_PAYALLOCATION_LINCT, "   
lv_its_payments  TYPE EBPP_TS_APAREBPP_MYPAYMENTS, "   
lv_with_group  TYPE XFELD, "   'X'
lv_splititemgroup  TYPE EBPP_TT_TRPSPLITGROUP, "   
lv_ch_processing_conditions  TYPE SAPPLCO_WO_LAST_RESP_PROC_COND, "   
lv_iv_koart  TYPE KOART, "   'D'
lv_minclsplitcldate  TYPE DATE, "   
lv_maxopsplitduedate  TYPE DATE, "   
lv_clearingstatuscode  TYPE CHAR3, "   
lv_postingdate  TYPE EBPP_RANGE_T_BUDAT, "   
lv_im_processing_conditions  TYPE SAPPLCO_WO_LAST_QRY_PROC_COND, "   
lv_its_items  TYPE EBPP_TS_APAREBPP_ITEM_DOCID. "   

  CALL FUNCTION 'EBPP_TRPACC_MAP_INV_TO_ITEMS_N'  "create items and splitems from t_items, t_invoices, t_payallocation (new)
    EXPORTING
         IS_CONTROL = lv_is_control
         IT_INVOICES = lv_it_invoices
         ITS_ALLOCATION = lv_its_allocation
         ITS_PAYALLOCATION = lv_its_payallocation
         ITS_PAYMENTS = lv_its_payments
         WITH_GROUP = lv_with_group
         IV_KOART = lv_iv_koart
         MINCLSPLITCLDATE = lv_minclsplitcldate
         MAXOPSPLITDUEDATE = lv_maxopsplitduedate
         CLEARINGSTATUSCODE = lv_clearingstatuscode
         POSTINGDATE = lv_postingdate
         IM_PROCESSING_CONDITIONS = lv_im_processing_conditions
         ITS_ITEMS = lv_its_items
    IMPORTING
         ITEM = lv_item
         SPLITITEMGROUP = lv_splititemgroup
    CHANGING
         E_RETURNCODE = lv_e_returncode
         CH_PROCESSING_CONDITIONS = lv_ch_processing_conditions
. " EBPP_TRPACC_MAP_INV_TO_ITEMS_N




ABAP code using 7.40 inline data declarations to call FM EBPP_TRPACC_MAP_INV_TO_ITEMS_N

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 SUBRC FROM SY INTO @DATA(ld_e_returncode).
 
 
 
 
 
DATA(ld_with_group) = 'X'.
 
 
 
DATA(ld_iv_koart) = 'D'.
 
 
 
 
 
 
 


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!