SAP ERPSLS_BILLBLOCKDOC Function Module for NOTRANSL: Fakturagesperrte Vertriebsbelege









ERPSLS_BILLBLOCKDOC is a standard erpsls billblockdoc 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: Fakturagesperrte Vertriebsbelege 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 billblockdoc FM, simply by entering the name ERPSLS_BILLBLOCKDOC 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_BILLBLOCKDOC 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_BILLBLOCKDOC'"NOTRANSL: Fakturagesperrte Vertriebsbelege
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
* IT_RG_FAKSK = "Range Table: CHAR2
* IV_DATAB = "Quotation or contract valid from
* IV_DATBI = "Quotation or Contract Valid to
* IF_OPENDOC = ' ' "Single-character Indicator
* IT_RG_TRVOG = "Transaction Group
* IV_MAXSEL = "Natural Number
* IT_RG_VBTYP = "Sales Document Category
* 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 = "Blocked SD Documents (Delivery, Billing Document)
ET_AUTH_ORGDATA = "Authorization for Sales Areas
EF_MORE_ENTRIES = "General Indicator
ET_DOC_QU = "Blocked SD Documents (Delivery, Billing Document)
ET_DOC_OR = "Blocked SD Documents (Delivery, Billing Document)
ET_DOC_CO = "Blocked SD Documents (Delivery, Billing Document)
ET_DOC_SA = "Blocked SD Documents (Delivery, Billing Document)
ET_DOC = "Blocked SD Documents (Delivery, Billing Document)
ET_GENDOC = "SD Documents General
ET_BLOCKEDDOC = "Blocked SD Documents (Delivery, Billing Document)
ET_AUTH_AUART = "Authorization for SD Order Types
.



IMPORTING Parameters details for ERPSLS_BILLBLOCKDOC

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

IT_RG_FAKSK - Range Table: CHAR2

Data type: TRG_CHAR2
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_OPENDOC - Single-character Indicator

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

IV_MAXSEL - Natural Number

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

IT_RG_VBTYP - Sales Document Category

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_BILLBLOCKDOC

ET_DOC_IN - Blocked SD Documents (Delivery, Billing Document)

Data type: TERPSLS_BLOCKEDDOC
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 - Blocked SD Documents (Delivery, Billing Document)

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

ET_DOC_OR - Blocked SD Documents (Delivery, Billing Document)

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

ET_DOC_CO - Blocked SD Documents (Delivery, Billing Document)

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

ET_DOC_SA - Blocked SD Documents (Delivery, Billing Document)

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

ET_DOC - Blocked SD Documents (Delivery, Billing Document)

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

ET_GENDOC - SD Documents General

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

ET_BLOCKEDDOC - Blocked SD Documents (Delivery, Billing Document)

Data type: TDT_BLOCKEDDOC
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_BILLBLOCKDOC 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_BLOCKEDDOC, "   
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_it_rg_faksk  TYPE TRG_CHAR2, "   
lv_iv_datab  TYPE DATAB_VI, "   
lv_iv_datbi  TYPE DATBI_VI, "   
lv_if_opendoc  TYPE CHAR1, "   SPACE
lv_et_doc_qu  TYPE TERPSLS_BLOCKEDDOC, "   
lv_it_rg_trvog  TYPE TRG_CHAR1, "   
lv_iv_maxsel  TYPE INT4, "   
lv_it_rg_vbtyp  TYPE TRG_CHAR1, "   
lv_iv_caller_id  TYPE STRING, "   
lv_et_doc_or  TYPE TERPSLS_BLOCKEDDOC, "   
lv_it_rg_auart  TYPE TRG_CHAR4, "   
lv_et_doc_co  TYPE TERPSLS_BLOCKEDDOC, "   
lv_it_rg_kunnr  TYPE TRG_CHAR10, "   
lv_et_doc_sa  TYPE TERPSLS_BLOCKEDDOC, "   
lv_it_rg_erdat  TYPE TRG_DATE, "   
lv_et_doc  TYPE TERPSLS_BLOCKEDDOC, "   
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_blockeddoc  TYPE TDT_BLOCKEDDOC, "   
lv_it_rg_zpers  TYPE TRG_NUMC8, "   
lv_et_auth_auart  TYPE TDT_AUTH_AUART. "   

  CALL FUNCTION 'ERPSLS_BILLBLOCKDOC'  "NOTRANSL: Fakturagesperrte Vertriebsbelege
    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
         IT_RG_FAKSK = lv_it_rg_faksk
         IV_DATAB = lv_iv_datab
         IV_DATBI = lv_iv_datbi
         IF_OPENDOC = lv_if_opendoc
         IT_RG_TRVOG = lv_it_rg_trvog
         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_BLOCKEDDOC = lv_et_blockeddoc
         ET_AUTH_AUART = lv_et_auth_auart
. " ERPSLS_BILLBLOCKDOC




ABAP code using 7.40 inline data declarations to call FM ERPSLS_BILLBLOCKDOC

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_opendoc) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!