2007 Feb 08 5:29 PM
Hi experts.
I need a BAPi or FM to make a return delivery of goods receipt ( i nedd to return some lines of the initial good movement ) . Do you know some BAPI or FM??
Thanks.
Hi experts.
I need a BAPi or FM to make a return delivery of goods receipt ( i nedd to return some lines of the initial good movement ) . Do you know some BAPI or FM??
Thanks.
2007 Feb 08 5:57 PM
Hi Jorge,
You need to use FM BAPI_PO_CREATE to create the return delivery. The sample code is as attached.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = g_po_head
po_header_add_data = g_po_head_add_data
header_add_data_relevant = header_add_data_relevant
skip_items_with_error = 'X'
IMPORTING
purchaseorder = g_exp_ebeln
TABLES
po_items = g_po_item
po_item_schedules = g_po_sched
return = g_return
po_business_partner = g_po_business_partner.
Thanks.
2007 Feb 08 6:00 PM
Thank you Rahul, but I need one FM to Godds Movemente not for Purchase Order.
Can you help me??
2007 Feb 08 6:07 PM
Jorge,
For good movement you can use below BAPI:
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = l_goodsmvt_header
goodsmvt_code = l_goodsmvt_code
IMPORTING
goodsmvt_headret = l_goodsmvt_headret
materialdocument = ch_matdoc
MATDOCUMENTYEAR =
TABLES
goodsmvt_item = l_goodsmvt_itemtab
goodsmvt_serialnumber = l_goodsmvt_serialnumbertab
return = l_returntab.
Thanks.
2007 Feb 08 6:08 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |