SAP BAPI_DEBITMEMOREQ_CREATEBOS Function Module for Create Debit Memo Request with BOS (Service Entry Sheet)
BAPI_DEBITMEMOREQ_CREATEBOS is a standard bapi debitmemoreq createbos 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 Debit Memo Request with BOS (Service Entry Sheet) 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 debitmemoreq createbos FM, simply by entering the name BAPI_DEBITMEMOREQ_CREATEBOS into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2096002
Program Name: SAPL2096002
Main Program: SAPL2096002
Appliation area: V
Release date: 25-Jun-2001
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_DEBITMEMOREQ_CREATEBOS 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_DEBITMEMOREQ_CREATEBOS'"Create Debit Memo Request with BOS (Service Entry Sheet).
EXPORTING
* SALESDOCUMENTIN = "Sales Document Number
DEBITMEMOREQHEADERIN = "Document Header Data
* DEBITMEMOREQHEADERINX = "Checkbox for header data
* SENDER = "Logical system - Sender
* BINARYRELATIONSHIPTYPE = "Binary Relationship Type (Private)
* INTNUMBERASSIGNMENT = "Internal item number assignment
* BEHAVEWHENERROR = "Error Handling
* LOGICSWITCH = "Internal control parameter
* TESTRUN = "Simulation mode
IMPORTING
SALESDOCUMENT = "Number of Generated Document
TABLES
* RETURN = "Return Messages
* DEBITMEMOREQCFGSPARTOF = "Configuration: Part-of Specifications
* DEBITMEMOREQCFGSVALUE = "Configuration: Characteristic values
* DEBITMEMOREQCFGSBLOB = "Configuration: BLOB internal data (SCE)
* DEBITMEMOREQCFGSVK = "Configuration: Variant condition key
* DEBITMEMOREQCFGSREFINST = "Configuration: Reference item / instance
* DEBITMEMOREQCCARD = "Credit Card Data
* DEBITMEMOREQTEXT = "Texts
* DEBITMEMOREQKEYS = "Output Table of Reference Keys
* EXTENSIONIN = "Customer Enhancment Import
* DEBITMEMOREQSERVICES = "Services
* DEBITMEMOREQITEMSIN = "Item Data
* DEBITMEMOREQSERVICESTEXT = "Service Line Text
* PARTNERADDRESSES = "BAPI Reference Structure for Addresses (Org./Company)
* DEBITMEMOREQITEMSINX = "Checkbox Item Data
DEBITMEMOREQPARTNERS = "Document partner
* DEBITMEMOREQSCHEDULESIN = "Schedule Lines
* DEBITMEMOREQSCHEDULESINX = "Checkbox Structure: Schedule Lines
* DEBITMEMOREQCONDITIONSIN = "Conditions
* DEBITMEMOREQCFGSREF = "Configuration: Reference data
* DEBITMEMOREQCFGSINST = "Configuration: Instances
IMPORTING Parameters details for BAPI_DEBITMEMOREQ_CREATEBOS
SALESDOCUMENTIN - Sales Document Number
Data type: BAPIVBELN-VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
DEBITMEMOREQHEADERIN - Document Header Data
Data type: BAPISDHD1Optional: No
Call by Reference: No ( called with pass by value option)
DEBITMEMOREQHEADERINX - Checkbox for header data
Data type: BAPISDHD1XOptional: Yes
Call by Reference: No ( called with pass by value option)
SENDER - Logical system - Sender
Data type: BAPI_SENDEROptional: Yes
Call by Reference: No ( called with pass by value option)
BINARYRELATIONSHIPTYPE - Binary Relationship Type (Private)
Data type: BAPIRELTYPE-RELTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
INTNUMBERASSIGNMENT - Internal item number assignment
Data type: BAPIFLAG-BAPIFLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
BEHAVEWHENERROR - Error Handling
Data type: BAPIFLAG-BAPIFLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
LOGICSWITCH - Internal control parameter
Data type: BAPISDLSOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Simulation mode
Data type: BAPIFLAG-BAPIFLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_DEBITMEMOREQ_CREATEBOS
SALESDOCUMENT - Number of Generated Document
Data type: BAPIVBELN-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_DEBITMEMOREQ_CREATEBOS
RETURN - Return Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSPARTOF - Configuration: Part-of Specifications
Data type: BAPICUPRTOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSVALUE - Configuration: Characteristic values
Data type: BAPICUVALOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSBLOB - Configuration: BLOB internal data (SCE)
Data type: BAPICUBLBOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSVK - Configuration: Variant condition key
Data type: BAPICUVKOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSREFINST - Configuration: Reference item / instance
Data type: BAPICUREFOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCCARD - Credit Card Data
Data type: BAPICCARDOptional: Yes
Call by Reference: Yes
DEBITMEMOREQTEXT - Texts
Data type: BAPISDTEXTOptional: Yes
Call by Reference: Yes
DEBITMEMOREQKEYS - Output Table of Reference Keys
Data type: BAPISDKEYOptional: Yes
Call by Reference: Yes
EXTENSIONIN - Customer Enhancment Import
Data type: BAPIPAREXOptional: Yes
Call by Reference: No ( called with pass by value option)
DEBITMEMOREQSERVICES - Services
Data type: BAPISDESLLCBOSOptional: Yes
Call by Reference: Yes
DEBITMEMOREQITEMSIN - Item Data
Data type: BAPISDITMBOSOptional: Yes
Call by Reference: Yes
DEBITMEMOREQSERVICESTEXT - Service Line Text
Data type: BAPIESLLTXOptional: Yes
Call by Reference: Yes
PARTNERADDRESSES - BAPI Reference Structure for Addresses (Org./Company)
Data type: BAPIADDR1Optional: Yes
Call by Reference: Yes
DEBITMEMOREQITEMSINX - Checkbox Item Data
Data type: BAPISDITMXBOSOptional: Yes
Call by Reference: Yes
DEBITMEMOREQPARTNERS - Document partner
Data type: BAPIPARNROptional: No
Call by Reference: Yes
DEBITMEMOREQSCHEDULESIN - Schedule Lines
Data type: BAPISCHDLOptional: Yes
Call by Reference: Yes
DEBITMEMOREQSCHEDULESINX - Checkbox Structure: Schedule Lines
Data type: BAPISCHDLXOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCONDITIONSIN - Conditions
Data type: BAPICONDOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSREF - Configuration: Reference data
Data type: BAPICUCFGOptional: Yes
Call by Reference: Yes
DEBITMEMOREQCFGSINST - Configuration: Instances
Data type: BAPICUINSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_DEBITMEMOREQ_CREATEBOS 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: | ||||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_salesdocument | TYPE BAPIVBELN-VBELN, " | |||
| lv_salesdocumentin | TYPE BAPIVBELN-VBELN, " | |||
| lt_debitmemoreqcfgspartof | TYPE STANDARD TABLE OF BAPICUPRT, " | |||
| lt_debitmemoreqcfgsvalue | TYPE STANDARD TABLE OF BAPICUVAL, " | |||
| lt_debitmemoreqcfgsblob | TYPE STANDARD TABLE OF BAPICUBLB, " | |||
| lt_debitmemoreqcfgsvk | TYPE STANDARD TABLE OF BAPICUVK, " | |||
| lt_debitmemoreqcfgsrefinst | TYPE STANDARD TABLE OF BAPICUREF, " | |||
| lt_debitmemoreqccard | TYPE STANDARD TABLE OF BAPICCARD, " | |||
| lt_debitmemoreqtext | TYPE STANDARD TABLE OF BAPISDTEXT, " | |||
| lt_debitmemoreqkeys | TYPE STANDARD TABLE OF BAPISDKEY, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_debitmemoreqservices | TYPE STANDARD TABLE OF BAPISDESLLCBOS, " | |||
| lt_debitmemoreqitemsin | TYPE STANDARD TABLE OF BAPISDITMBOS, " | |||
| lv_debitmemoreqheaderin | TYPE BAPISDHD1, " | |||
| lt_debitmemoreqservicestext | TYPE STANDARD TABLE OF BAPIESLLTX, " | |||
| lt_partneraddresses | TYPE STANDARD TABLE OF BAPIADDR1, " | |||
| lt_debitmemoreqitemsinx | TYPE STANDARD TABLE OF BAPISDITMXBOS, " | |||
| lv_debitmemoreqheaderinx | TYPE BAPISDHD1X, " | |||
| lv_sender | TYPE BAPI_SENDER, " | |||
| lt_debitmemoreqpartners | TYPE STANDARD TABLE OF BAPIPARNR, " | |||
| lv_binaryrelationshiptype | TYPE BAPIRELTYPE-RELTYPE, " | |||
| lt_debitmemoreqschedulesin | TYPE STANDARD TABLE OF BAPISCHDL, " | |||
| lv_intnumberassignment | TYPE BAPIFLAG-BAPIFLAG, " | |||
| lt_debitmemoreqschedulesinx | TYPE STANDARD TABLE OF BAPISCHDLX, " | |||
| lv_behavewhenerror | TYPE BAPIFLAG-BAPIFLAG, " | |||
| lt_debitmemoreqconditionsin | TYPE STANDARD TABLE OF BAPICOND, " | |||
| lv_logicswitch | TYPE BAPISDLS, " | |||
| lt_debitmemoreqcfgsref | TYPE STANDARD TABLE OF BAPICUCFG, " | |||
| lv_testrun | TYPE BAPIFLAG-BAPIFLAG, " | |||
| lt_debitmemoreqcfgsinst | TYPE STANDARD TABLE OF BAPICUINS. " |
|   CALL FUNCTION 'BAPI_DEBITMEMOREQ_CREATEBOS' "Create Debit Memo Request with BOS (Service Entry Sheet) |
| EXPORTING | ||
| SALESDOCUMENTIN | = lv_salesdocumentin | |
| DEBITMEMOREQHEADERIN | = lv_debitmemoreqheaderin | |
| DEBITMEMOREQHEADERINX | = lv_debitmemoreqheaderinx | |
| SENDER | = lv_sender | |
| BINARYRELATIONSHIPTYPE | = lv_binaryrelationshiptype | |
| INTNUMBERASSIGNMENT | = lv_intnumberassignment | |
| BEHAVEWHENERROR | = lv_behavewhenerror | |
| LOGICSWITCH | = lv_logicswitch | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| SALESDOCUMENT | = lv_salesdocument | |
| TABLES | ||
| RETURN | = lt_return | |
| DEBITMEMOREQCFGSPARTOF | = lt_debitmemoreqcfgspartof | |
| DEBITMEMOREQCFGSVALUE | = lt_debitmemoreqcfgsvalue | |
| DEBITMEMOREQCFGSBLOB | = lt_debitmemoreqcfgsblob | |
| DEBITMEMOREQCFGSVK | = lt_debitmemoreqcfgsvk | |
| DEBITMEMOREQCFGSREFINST | = lt_debitmemoreqcfgsrefinst | |
| DEBITMEMOREQCCARD | = lt_debitmemoreqccard | |
| DEBITMEMOREQTEXT | = lt_debitmemoreqtext | |
| DEBITMEMOREQKEYS | = lt_debitmemoreqkeys | |
| EXTENSIONIN | = lt_extensionin | |
| DEBITMEMOREQSERVICES | = lt_debitmemoreqservices | |
| DEBITMEMOREQITEMSIN | = lt_debitmemoreqitemsin | |
| DEBITMEMOREQSERVICESTEXT | = lt_debitmemoreqservicestext | |
| PARTNERADDRESSES | = lt_partneraddresses | |
| DEBITMEMOREQITEMSINX | = lt_debitmemoreqitemsinx | |
| DEBITMEMOREQPARTNERS | = lt_debitmemoreqpartners | |
| DEBITMEMOREQSCHEDULESIN | = lt_debitmemoreqschedulesin | |
| DEBITMEMOREQSCHEDULESINX | = lt_debitmemoreqschedulesinx | |
| DEBITMEMOREQCONDITIONSIN | = lt_debitmemoreqconditionsin | |
| DEBITMEMOREQCFGSREF | = lt_debitmemoreqcfgsref | |
| DEBITMEMOREQCFGSINST | = lt_debitmemoreqcfgsinst | |
| . " BAPI_DEBITMEMOREQ_CREATEBOS | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_DEBITMEMOREQ_CREATEBOS
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 VBELN FROM BAPIVBELN INTO @DATA(ld_salesdocument). | ||||
| "SELECT single VBELN FROM BAPIVBELN INTO @DATA(ld_salesdocumentin). | ||||
| "SELECT single RELTYPE FROM BAPIRELTYPE INTO @DATA(ld_binaryrelationshiptype). | ||||
| "SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_intnumberassignment). | ||||
| "SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_behavewhenerror). | ||||
| "SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_testrun). | ||||
Search for further information about these or an SAP related objects