SAP ERPSLS_INCDOC Function Module for Incomplete SD Documents









ERPSLS_INCDOC is a standard erpsls incdoc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Incomplete SD Documents 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 incdoc FM, simply by entering the name ERPSLS_INCDOC into the relevant SAP transaction such as SE37 or SE38.

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



Function ERPSLS_INCDOC 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_INCDOC'"Incomplete SD Documents
EXPORTING
* IT_RG_VBELN = "
* IT_RG_ERNAM = "Name of Person Who Created Object
* IT_RG_VKORG = "Range Table: CHAR4
* IT_RG_VTWEG = "Range Table: CHAR2
* IT_RG_SPART = "Range Table: CHAR2
* IT_RG_VKBUR = "Range Table: CHAR4
* IT_RG_VKGRP = "Range Table: CHAR3
* IV_DATAB = "Quotation or contract valid from
* IV_DATBI = "Quotation or Contract Valid to
* IF_UVALL = ' ' "
* IF_UVVLK = ' ' "
* IT_RG_TRVOG = "Transaction Group
* IF_UVFAK = ' ' "
* IF_UVPRS = ' ' "
* IF_UVNOS = ' ' "
* IV_MAXSEL = "Natural Number
* IT_RG_VBTYP = "
* IV_CALLER_ID = "
* IT_RG_AUART = "Range Table: CHAR4
* IT_RG_KUNNR = "Range Table: CHAR10
* IT_RG_ERDAT = "Range Structure: Date
* IT_RG_AUDAT = "Range Table: Date
* IV_BSTKD = "Customer's Purchase Order Number
* IV_ZPAVW = "Partner Role
* IT_RG_ZPERS = "Person Responsible

IMPORTING
ET_DOC_IN = "Incomplete SD Documents
ET_AUTH_ORGDATA = "Authorization for Sales Areas
EF_MORE_ENTRIES = "General Indicator
ET_DOC_QU = "Incomplete SD Documents
ET_DOC_OR = "Incomplete SD Documents
ET_DOC_CO = "Incomplete SD Documents
ET_DOC_SA = "Incomplete SD Documents
ET_DOC = "Incomplete SD Documents
ET_GENDOC = "SD Documents General
ET_INCDOC = "
ET_AUTH_AUART = "Authorization for SD Order Types
.



IMPORTING Parameters details for ERPSLS_INCDOC

IT_RG_VBELN -

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

IT_RG_ERNAM - Name of Person Who Created Object

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

IT_RG_VKORG - Range Table: CHAR4

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

IT_RG_VTWEG - Range Table: CHAR2

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

IT_RG_SPART - Range Table: CHAR2

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

IT_RG_VKBUR - Range Table: CHAR4

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

IT_RG_VKGRP - Range Table: CHAR3

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

IV_DATAB - Quotation or contract valid from

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

IV_DATBI - Quotation or Contract Valid to

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

IF_UVALL -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_UVVLK -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IT_RG_TRVOG - Transaction Group

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

IF_UVFAK -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_UVPRS -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IF_UVNOS -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_MAXSEL - Natural Number

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

IT_RG_VBTYP -

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

IV_CALLER_ID -

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

IT_RG_AUART - Range Table: CHAR4

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

IT_RG_KUNNR - Range Table: CHAR10

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

IT_RG_ERDAT - Range Structure: Date

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

IT_RG_AUDAT - Range Table: Date

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

IV_BSTKD - Customer's Purchase Order Number

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

IV_ZPAVW - Partner Role

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

IT_RG_ZPERS - Person Responsible

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

EXPORTING Parameters details for ERPSLS_INCDOC

ET_DOC_IN - Incomplete SD Documents

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

ET_AUTH_ORGDATA - Authorization for Sales Areas

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

EF_MORE_ENTRIES - General Indicator

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

ET_DOC_QU - Incomplete SD Documents

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

ET_DOC_OR - Incomplete SD Documents

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

ET_DOC_CO - Incomplete SD Documents

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

ET_DOC_SA - Incomplete SD Documents

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

ET_DOC - Incomplete SD Documents

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

ET_GENDOC - SD Documents General

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

ET_INCDOC -

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

ET_AUTH_AUART - Authorization for SD Order Types

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

Copy and paste ABAP code example for ERPSLS_INCDOC 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_et_doc_in  TYPE TERPSLS_INCDOC, "   
lv_it_rg_vbeln  TYPE TRG_CHAR10, "   
lv_it_rg_ernam  TYPE TRG_CHAR12, "   
lv_et_auth_orgdata  TYPE TDT_AUTH_ORGDATA, "   
lv_it_rg_vkorg  TYPE TRG_CHAR4, "   
lv_ef_more_entries  TYPE FLAG, "   
lv_it_rg_vtweg  TYPE TRG_CHAR2, "   
lv_it_rg_spart  TYPE TRG_CHAR2, "   
lv_it_rg_vkbur  TYPE TRG_CHAR4, "   
lv_it_rg_vkgrp  TYPE TRG_CHAR3, "   
lv_iv_datab  TYPE DATAB_VI, "   
lv_iv_datbi  TYPE DATBI_VI, "   
lv_if_uvall  TYPE CHAR1, "   SPACE
lv_if_uvvlk  TYPE CHAR1, "   SPACE
lv_et_doc_qu  TYPE TERPSLS_INCDOC, "   
lv_it_rg_trvog  TYPE TRG_CHAR1, "   
lv_if_uvfak  TYPE CHAR1, "   SPACE
lv_if_uvprs  TYPE CHAR1, "   SPACE
lv_if_uvnos  TYPE CHAR1, "   SPACE
lv_iv_maxsel  TYPE INT4, "   
lv_it_rg_vbtyp  TYPE TRG_CHAR1, "   
lv_iv_caller_id  TYPE STRING, "   
lv_et_doc_or  TYPE TERPSLS_INCDOC, "   
lv_it_rg_auart  TYPE TRG_CHAR4, "   
lv_et_doc_co  TYPE TERPSLS_INCDOC, "   
lv_it_rg_kunnr  TYPE TRG_CHAR10, "   
lv_et_doc_sa  TYPE TERPSLS_INCDOC, "   
lv_it_rg_erdat  TYPE TRG_DATE, "   
lv_et_doc  TYPE TERPSLS_INCDOC, "   
lv_it_rg_audat  TYPE TRG_DATE, "   
lv_iv_bstkd  TYPE BSTKD, "   
lv_et_gendoc  TYPE TERPSLS_GENDOC, "   
lv_iv_zpavw  TYPE PARVW, "   
lv_et_incdoc  TYPE TDT_INCDOC, "   
lv_it_rg_zpers  TYPE TRG_NUMC8, "   
lv_et_auth_auart  TYPE TDT_AUTH_AUART. "   

  CALL FUNCTION 'ERPSLS_INCDOC'  "Incomplete SD Documents
    EXPORTING
         IT_RG_VBELN = lv_it_rg_vbeln
         IT_RG_ERNAM = lv_it_rg_ernam
         IT_RG_VKORG = lv_it_rg_vkorg
         IT_RG_VTWEG = lv_it_rg_vtweg
         IT_RG_SPART = lv_it_rg_spart
         IT_RG_VKBUR = lv_it_rg_vkbur
         IT_RG_VKGRP = lv_it_rg_vkgrp
         IV_DATAB = lv_iv_datab
         IV_DATBI = lv_iv_datbi
         IF_UVALL = lv_if_uvall
         IF_UVVLK = lv_if_uvvlk
         IT_RG_TRVOG = lv_it_rg_trvog
         IF_UVFAK = lv_if_uvfak
         IF_UVPRS = lv_if_uvprs
         IF_UVNOS = lv_if_uvnos
         IV_MAXSEL = lv_iv_maxsel
         IT_RG_VBTYP = lv_it_rg_vbtyp
         IV_CALLER_ID = lv_iv_caller_id
         IT_RG_AUART = lv_it_rg_auart
         IT_RG_KUNNR = lv_it_rg_kunnr
         IT_RG_ERDAT = lv_it_rg_erdat
         IT_RG_AUDAT = lv_it_rg_audat
         IV_BSTKD = lv_iv_bstkd
         IV_ZPAVW = lv_iv_zpavw
         IT_RG_ZPERS = lv_it_rg_zpers
    IMPORTING
         ET_DOC_IN = lv_et_doc_in
         ET_AUTH_ORGDATA = lv_et_auth_orgdata
         EF_MORE_ENTRIES = lv_ef_more_entries
         ET_DOC_QU = lv_et_doc_qu
         ET_DOC_OR = lv_et_doc_or
         ET_DOC_CO = lv_et_doc_co
         ET_DOC_SA = lv_et_doc_sa
         ET_DOC = lv_et_doc
         ET_GENDOC = lv_et_gendoc
         ET_INCDOC = lv_et_incdoc
         ET_AUTH_AUART = lv_et_auth_auart
. " ERPSLS_INCDOC




ABAP code using 7.40 inline data declarations to call FM ERPSLS_INCDOC

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.

 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_if_uvall) = ' '.
 
DATA(ld_if_uvvlk) = ' '.
 
 
 
DATA(ld_if_uvfak) = ' '.
 
DATA(ld_if_uvprs) = ' '.
 
DATA(ld_if_uvnos) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!