SAP BAPI_VENDTRIGCBDLIST_CREATEMUL Function Module for Agency business: Generate Bapi posting lists









BAPI_VENDTRIGCBDLIST_CREATEMUL is a standard bapi vendtrigcbdlist createmul SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Agency business: Generate Bapi posting lists 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 bapi vendtrigcbdlist createmul FM, simply by entering the name BAPI_VENDTRIGCBDLIST_CREATEMUL into the relevant SAP transaction such as SE37 or SE38.

Function Group: 2125
Program Name: SAPL2125
Main Program: SAPL2125
Appliation area: W
Release date: 10-May-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_VENDTRIGCBDLIST_CREATEMUL 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 'BAPI_VENDTRIGCBDLIST_CREATEMUL'"Agency business: Generate Bapi posting lists
EXPORTING
* ENQUEUEALL = 'X' "Document Lock
* TESTRUN = ' ' "Test Run

TABLES
* PAYMDOCRANGE = "Document Number
* PAYTYPERANGE = "Payment Type
* SALESORGRANGE = "Sales Organization
* DISCHANELRANGE = "Distribution Channel
* DIVISIONRANGE = "Division
* CUSTOMERRANGE = "Invoice Recipient
HEADDATAOUT = "Header Data (Output)
ITEMDATAOUT = "Item Data (Output)
RETURN = "Messages
* EXTENSIONOUT = "Enhancements (Output)
* COMPCODERANGE = "Company Code
* BILLDATERANGE = "Posting Date
* BILLTYPERANGE = "Billing Type
* DOCDATERANGE = "Document Date
* REFDOCNORANGE = "Reference
* REFDOCNOLONGRANGE = "Reference (Long)
* ALLOCNMBRRANGE = "Assignment
* PAYMTREFRANGE = "Payment Reference
.



IMPORTING Parameters details for BAPI_VENDTRIGCBDLIST_CREATEMUL

ENQUEUEALL - Document Lock

Data type: BAPIABCON-ENQUEUEALL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Test Run

Data type: BAPIACHEAD-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_VENDTRIGCBDLIST_CREATEMUL

PAYMDOCRANGE - Document Number

Data type: BAPIACDOCRAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAYTYPERANGE - Payment Type

Data type: BAPI_RANGESWRART
Optional: Yes
Call by Reference: No ( called with pass by value option)

SALESORGRANGE - Sales Organization

Data type: BAPI_RANGESVKORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISCHANELRANGE - Distribution Channel

Data type: BAPI_RANGESVTWEG
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIVISIONRANGE - Division

Data type: BAPI_RANGESSPART
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUSTOMERRANGE - Invoice Recipient

Data type: BAPI_RANGESKUNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

HEADDATAOUT - Header Data (Output)

Data type: BAPIPLHEADO
Optional: No
Call by Reference: No ( called with pass by value option)

ITEMDATAOUT - Item Data (Output)

Data type: BAPIPLITEMO
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN - Messages

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

EXTENSIONOUT - Enhancements (Output)

Data type: BAPIPAREX
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPCODERANGE - Company Code

Data type: BAPI_RANGESBUKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

BILLDATERANGE - Posting Date

Data type: BAPI_RANGESWFDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

BILLTYPERANGE - Billing Type

Data type: BAPI_RANGESLFART
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCDATERANGE - Document Date

Data type: BAPI_RANGESBLDAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFDOCNORANGE - Reference

Data type: BAPI_RANGESXBLNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFDOCNOLONGRANGE - Reference (Long)

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

ALLOCNMBRRANGE - Assignment

Data type: BAPI_RANGESZUONR
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAYMTREFRANGE - Payment Reference

Data type: BAPI_RANGESKIDNO
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_VENDTRIGCBDLIST_CREATEMUL 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_enqueueall  TYPE BAPIABCON-ENQUEUEALL, "   'X'
lt_paymdocrange  TYPE STANDARD TABLE OF BAPIACDOCRAN, "   
lt_paytyperange  TYPE STANDARD TABLE OF BAPI_RANGESWRART, "   
lt_salesorgrange  TYPE STANDARD TABLE OF BAPI_RANGESVKORG, "   
lt_dischanelrange  TYPE STANDARD TABLE OF BAPI_RANGESVTWEG, "   
lt_divisionrange  TYPE STANDARD TABLE OF BAPI_RANGESSPART, "   
lt_customerrange  TYPE STANDARD TABLE OF BAPI_RANGESKUNNR, "   
lt_headdataout  TYPE STANDARD TABLE OF BAPIPLHEADO, "   
lt_itemdataout  TYPE STANDARD TABLE OF BAPIPLITEMO, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_testrun  TYPE BAPIACHEAD-TESTRUN, "   SPACE
lt_compcoderange  TYPE STANDARD TABLE OF BAPI_RANGESBUKRS, "   
lt_billdaterange  TYPE STANDARD TABLE OF BAPI_RANGESWFDAT, "   
lt_billtyperange  TYPE STANDARD TABLE OF BAPI_RANGESLFART, "   
lt_docdaterange  TYPE STANDARD TABLE OF BAPI_RANGESBLDAT, "   
lt_refdocnorange  TYPE STANDARD TABLE OF BAPI_RANGESXBLNR, "   
lt_refdocnolongrange  TYPE STANDARD TABLE OF BAPI_RANGESXBLNR_LONG, "   
lt_allocnmbrrange  TYPE STANDARD TABLE OF BAPI_RANGESZUONR, "   
lt_paymtrefrange  TYPE STANDARD TABLE OF BAPI_RANGESKIDNO. "   

  CALL FUNCTION 'BAPI_VENDTRIGCBDLIST_CREATEMUL'  "Agency business: Generate Bapi posting lists
    EXPORTING
         ENQUEUEALL = lv_enqueueall
         TESTRUN = lv_testrun
    TABLES
         PAYMDOCRANGE = lt_paymdocrange
         PAYTYPERANGE = lt_paytyperange
         SALESORGRANGE = lt_salesorgrange
         DISCHANELRANGE = lt_dischanelrange
         DIVISIONRANGE = lt_divisionrange
         CUSTOMERRANGE = lt_customerrange
         HEADDATAOUT = lt_headdataout
         ITEMDATAOUT = lt_itemdataout
         RETURN = lt_return
         EXTENSIONOUT = lt_extensionout
         COMPCODERANGE = lt_compcoderange
         BILLDATERANGE = lt_billdaterange
         BILLTYPERANGE = lt_billtyperange
         DOCDATERANGE = lt_docdaterange
         REFDOCNORANGE = lt_refdocnorange
         REFDOCNOLONGRANGE = lt_refdocnolongrange
         ALLOCNMBRRANGE = lt_allocnmbrrange
         PAYMTREFRANGE = lt_paymtrefrange
. " BAPI_VENDTRIGCBDLIST_CREATEMUL




ABAP code using 7.40 inline data declarations to call FM BAPI_VENDTRIGCBDLIST_CREATEMUL

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 ENQUEUEALL FROM BAPIABCON INTO @DATA(ld_enqueueall).
DATA(ld_enqueueall) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
"SELECT single TESTRUN FROM BAPIACHEAD INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
 
 
 
 
 
 
 
 


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!