on 11-01-2007 2:21 AM
For the business process of our company, we create inbound delivery in Purchase Order based on vendor data. We use BDC now with transaction VL31 since there is no BAPI available. We are on version 4.7 now.
SAP has published BAPI_DELIVERYPROCESSING_EXEC which offers this facility, but the note 577453 says it is not released to the customer. We would like to know how reliable this is to use. I don't see any other alternative also, because VL31 is an outdated transaction. Could anyone suggest an alternative.
Best regards,
Balagopal
GN_DELIVERY_CREATE does the job (not released for customer use by SAP if you are a purist!)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, HARDY.
We are able to update using this. But the confirmations tab in the Purchase ORder is not getting updated with this document. If I do online, it updates the confirmations tab in the Purchase Order item. Is there anything I am missing in this. Your help will be highly appreciated.
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The BAPI you mention works fine for creating outbound deliveries from sales orders and stock transport schedule agreements. SAP would rather we did not use it, but I use it and have no problems. I must admit I have not tried using it for inbound deliveries.
For inbound deliveries I have been using function module IDOC_INPUT_DESADV and I fill up the IDOC data table with code like the below example:-
SELECT * FROM ekpo WHERE ebeln EQ purchase_order
AND ebelp IN r_ebelp.
'E1EDP07'. IDoc: Purchase order data shipping notification
Set PO Data
rec_e1edp07-bstnk = ekpo-ebeln.
rec_e1edp07-posex = ekpo-ebelp.
PERFORM fill_idoc_data TABLES int_idoc_data
USING 7 'E1EDP07' 4 '03' rec_e1edp07 w_docnum.
'E1EDP09'. IDoc: Item data shipping notification
Set UOM
w_meins = ekpo-meins.
Convert the unit of measure to ISO format
CALL FUNCTION 'SAP_TO_ISO_MEASURE_UNIT_CODE'
EXPORTING
sap_code = w_meins
IMPORTING
iso_code = rec_e1edp09-vrkme.
rec_e1edp09-lfimg = ekpo-menge.
PERFORM fill_idoc_data TABLES int_idoc_data
USING 8 'E1EDP09' 7 '04' rec_e1edp09 w_docnum.
ENDSELECT. "Item Level
FORM fill_idoc_data TABLES pa_edidd STRUCTURE edidd
USING pa_segnum LIKE edidd-segnum
pa_segnam LIKE edidd-segnam
pa_psgnum LIKE edidd-psgnum
pa_hlevel LIKE edidd-hlevel
pa_sdata TYPE any
pa_docnum LIKE edidd-docnum.
pa_edidd-segnum = pa_segnum.
pa_edidd-segnam = pa_segnam.
pa_edidd-psgnum = pa_psgnum.
pa_edidd-hlevel = pa_hlevel.
pa_edidd-sdata = pa_sdata.
pa_edidd-docnum = pa_docnum.
APPEND pa_edidd.
ENDFORM. " FILL_IDOC_DATA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.. Im using the Idoc basic type DELVRY05 to post the Idoc and create the inbound deliveries. We have written a Zprog and inside that we are passing the data to the segments and then calling the function module IDOC_INBOUND_SINGLE to create the Idoc and this module in turn calls the function module IDOC_INPUT_DESADV1 and the inbound delivery is created via this one. But the problem is this one creates a new Inbound delivery everytime the data is passed. If there is an existing inbound delivery, we pass it in the segment E1EDL20-VBELN. But even though we pass this Inbound delivery, it still creates a new one. It should update this particular inbound delivery. Is there a way to do that..
This is very urgent. Thanks for ur help.
REgards
Albina
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.