Ansicht
Dokumentation

BAPI_SALESADDIREQ_REPLICATE - Request Detailed Data on Additionals

BAPI_SALESADDIREQ_REPLICATE - Request Detailed Data on Additionals

Addresses (Business Address Services)   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

When this method is called, data for an additional is created in the form of an IDoc. The IDoc is transferred asynchronously by ALE to the requesting party.

Example

Assume that an additionals vendor received an order for tickets for a particular product. To generate the tickets, the vendor uses this function module to request the most up-to-date data on the sales price, for example, for the product in question.

The function module call is as follows:

call bapi_salesaddireq_replicate
exporting
application = '02'
docheadid = '4500000815'
docitemno = '00010'
docscheduleline = '0001'
runningno = '0002'
addisupplier = 'TICKET007 '
importing
return = return.

An additionals IDoc is generated for the additional (0002) for purchase order 4500000815, item 10, schedule line 1. The number for the additional is sent to the vendor of the original material in the purchasing document together with the short text for the additional.

The additional itself is manufactured by vendor TICKET007.

The validity of the input parameters is checked in the method. If the combination of parameters is not allowed, a message is returned.

In the example, the following requirements must be met:

  • PO number 4500000815 must exit with an item 10 and schedule line 1. The system recognizes that this is a purchase order from the parameter 'Application'. 02 stands for purchase orders.
  • The event "Purchase order creation" must have led to the creation of an additional with the internal number 0002.
  • The additionals vendor TICKET007 must be assigned to the purchase order referenced for additional 002.

Notes

A further method for the commit must be called so that the IDoc is actually generated.





Parameters

ADDIBUYHEADID
ADDIBUYITEMNO
ADDIRUNNINGNO
ADDISUPPLIER
APPLICATION
CUSTOMER
DOCHEADID
DOCITEMNO
DOCSCHEDULELINE
RETURN

Exceptions

Function Group

2106

TXBHW - Original Tax Base Amount in Local Currency   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3266 Date: 20240523 Time: 182943     sap01-206 ( 41 ms )