Ansicht
Dokumentation

BAPI_DEBITMEMOREQ_CREATEBOS - Create Debit Memo Request with BOS (Service Entry Sheet)

BAPI_DEBITMEMOREQ_CREATEBOS - Create Debit Memo Request with BOS (Service Entry Sheet)

CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to create a debit memo request that contains service entry sheets. A service entry sheet corresponds to a document item with BOS.

Notes

Minimum entries for creating a debit memeo request

At least the following parameters have to be transferred:

  • Document header data using parameter DebitMemoReqHeaderIn
DOC_TYPE sales docuemnt type
SALES_ORG sales organization
DISTR_CHAN distribution channel
DIVISION division
REFDOCTYPE document type of reference object
REF_DOC document number of the reference document
REFDOC_CAT document category of preceding SD document

The sales document type has to be consistent with the logon language.
  • Partner data using parameter DebitMemoReqPartners
PARTN_ROL partner function AG (sold-to party)
PART_NUMB customer number

If no ship-to party is entered, then ship-to party = sold-to party.
The partner function has to be enetered consistently with the logon langauge.

Minimum entries for creating a document item with BOS (service entry sheet)

At least the following item data has to be transferred:

  • Document item data using parameter DebitMemoReqItemsIn
ITM_NUMBER item number
MATERIAL material number

You have two options for item number assignment:
  • If you choose external number assignment via parameter IntNumberAssignment, you have to enter the item number in field ITM_NUMBER.

  • If you choose internal number assignment via parameter IntNumberAssignment, the system assigns the item numbers. Internal number assignment takes place in accordance with your Customizing settings. Field ITM_NUMBER must remain initial.

  • The package number for the bill of services PCKG_NO must also be transferred via parameter DebitMemoReqItemsIn. This must correspond to the PCKG_NO of the initial node (uppermost outline level with hierarchy level 0) in the transfer parameter DebitMemoReqServices.
  • A service entry sheet must link to a sales order for which the you want to make the service entry. You can make this link via the following fields in parameter: DebitMemoReqItemsIn:
REF_DOC reference to the sales order
REF_DOC_IT reference to the order item
REF_DOC_CA document categpry C for a sales order

  • Exactly one schedule line must be created for a service entry sheet. The quantity must be set to 1. You must enter the following data via parameter DebitMemoReqSchedulesIn:
ITM_NUMBER item number
SCHED_LINE schedule line number
REQ_DATE schedule line date
REQ_QTY quantity in sales unit of measure

Minimum entries for creating service lines

  • Service data for the document item are transferred via parameter DebitMemoReqServices and DebitMemoReqServicesText.
  • You can enter scheduled and unscheduled services. Scheduled services link to a service line in the referenced sales order. For this, use the following fields in parameterDebitMemoReqServices:
PLN_PCKG PCKG_NOfor the service line in the sales order
PLN_LINE LINE_NOfor the service line in the sales order

Create Customer Fields

Customer fields for tables VBAK, VBAP, VBEP and ESLL can be transferred using parameter ExtensionIn.

Commit Control

This method does not perform a database commit. This means that the calling application has to leave the commit so that changes can be made on the database. You can use the following method for this: BAPI_TRANSACTION_COMMIT.

Return Values

After the debit memeo request has been created successfully, the document number is returned via parameter SalesDocument.

If errors occur during processing, they are returned in table parameter Return. Information messages are also logged in this parameter.

Further information





Parameters

BEHAVEWHENERROR
BINARYRELATIONSHIPTYPE
DEBITMEMOREQCCARD
DEBITMEMOREQCFGSBLOB
DEBITMEMOREQCFGSINST
DEBITMEMOREQCFGSPARTOF
DEBITMEMOREQCFGSREF
DEBITMEMOREQCFGSREFINST
DEBITMEMOREQCFGSVALUE
DEBITMEMOREQCFGSVK
DEBITMEMOREQCONDITIONSIN
DEBITMEMOREQHEADERIN
DEBITMEMOREQHEADERINX
DEBITMEMOREQITEMSIN
DEBITMEMOREQITEMSINX
DEBITMEMOREQKEYS
DEBITMEMOREQPARTNERS
DEBITMEMOREQSCHEDULESIN
DEBITMEMOREQSCHEDULESINX
DEBITMEMOREQSERVICES
DEBITMEMOREQSERVICESTEXT
DEBITMEMOREQTEXT
EXTENSIONIN
INTNUMBERASSIGNMENT
LOGICSWITCH
PARTNERADDRESSES
RETURN
SALESDOCUMENT
SALESDOCUMENTIN
SENDER
TESTRUN

Exceptions

Function Group

2096002

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 11085 Date: 20240523 Time: 104854     sap01-206 ( 94 ms )