SAP ERPSLS_BILLDOC_VIEW Function Module for NOTRANSL: Selektion Fakturadaten
ERPSLS_BILLDOC_VIEW is a standard erpsls billdoc view SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selektion Fakturadaten 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 erpsls billdoc view FM, simply by entering the name ERPSLS_BILLDOC_VIEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: ERP_SLS_BILLDOC
Program Name: SAPLERP_SLS_BILLDOC
Main Program: SAPLERP_SLS_BILLDOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ERPSLS_BILLDOC_VIEW 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 'ERPSLS_BILLDOC_VIEW'"NOTRANSL: Selektion Fakturadaten.
EXPORTING
* IT_FKART = "Range Table: CHAR4
* IT_KUNAG = "Range Table: CHAR10
* IT_KUNRG = "Range Table: CHAR10
* IT_FKDAT = "Range Table: Date
* IT_VBELN = "Range Table: CHAR10
* IT_VKORG = "Range Table: CHAR4
* IT_VTWEG = "Range Table: CHAR2
* IF_OPEN = "Single-character Indicator
* IF_NOTOPEN = "Single-character Indicator
IMPORTING
ET_BILLDOCS = "Billing Data
IMPORTING Parameters details for ERPSLS_BILLDOC_VIEW
IT_FKART - Range Table: CHAR4
Data type: TRG_CHAR4Optional: Yes
Call by Reference: Yes
IT_KUNAG - Range Table: CHAR10
Data type: TRG_CHAR10Optional: Yes
Call by Reference: Yes
IT_KUNRG - Range Table: CHAR10
Data type: TRG_CHAR10Optional: Yes
Call by Reference: Yes
IT_FKDAT - Range Table: Date
Data type: TRG_DATEOptional: Yes
Call by Reference: Yes
IT_VBELN - Range Table: CHAR10
Data type: TRG_CHAR10Optional: Yes
Call by Reference: Yes
IT_VKORG - Range Table: CHAR4
Data type: TRG_CHAR4Optional: Yes
Call by Reference: Yes
IT_VTWEG - Range Table: CHAR2
Data type: TRG_CHAR2Optional: Yes
Call by Reference: Yes
IF_OPEN - Single-character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: Yes
IF_NOTOPEN - Single-character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ERPSLS_BILLDOC_VIEW
ET_BILLDOCS - Billing Data
Data type: TERPSLS_BILLDOCOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ERPSLS_BILLDOC_VIEW 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_it_fkart | TYPE TRG_CHAR4, " | |||
lv_et_billdocs | TYPE TERPSLS_BILLDOC, " | |||
lv_it_kunag | TYPE TRG_CHAR10, " | |||
lv_it_kunrg | TYPE TRG_CHAR10, " | |||
lv_it_fkdat | TYPE TRG_DATE, " | |||
lv_it_vbeln | TYPE TRG_CHAR10, " | |||
lv_it_vkorg | TYPE TRG_CHAR4, " | |||
lv_it_vtweg | TYPE TRG_CHAR2, " | |||
lv_if_open | TYPE CHAR1, " | |||
lv_if_notopen | TYPE CHAR1. " |
  CALL FUNCTION 'ERPSLS_BILLDOC_VIEW' "NOTRANSL: Selektion Fakturadaten |
EXPORTING | ||
IT_FKART | = lv_it_fkart | |
IT_KUNAG | = lv_it_kunag | |
IT_KUNRG | = lv_it_kunrg | |
IT_FKDAT | = lv_it_fkdat | |
IT_VBELN | = lv_it_vbeln | |
IT_VKORG | = lv_it_vkorg | |
IT_VTWEG | = lv_it_vtweg | |
IF_OPEN | = lv_if_open | |
IF_NOTOPEN | = lv_if_notopen | |
IMPORTING | ||
ET_BILLDOCS | = lv_et_billdocs | |
. " ERPSLS_BILLDOC_VIEW |
ABAP code using 7.40 inline data declarations to call FM ERPSLS_BILLDOC_VIEW
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.Search for further information about these or an SAP related objects