Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI por return delivery

Former Member
0 Likes
1,117

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.

4 REPLIES 4
Read only

Former Member
0 Likes
741

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.

Read only

0 Likes
741

Thank you Rahul, but I need one FM to Godds Movemente not for Purchase Order.

Can you help me??

Read only

0 Likes
741

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.

Read only

0 Likes
741

please check if you can use this...

MB_CREATE_GOODS_MOVEMENT