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 on GR movement type 122

Former Member
0 Likes
2,430

Hi,

I am have a GR material document number with movement type 101.

Using "BAPI_GOODSMVT_CANCEL" I am able to reverse the mat. docs. which is done with 102 movement type.

But, My question in here is

I have to do "Return Delivery" of a material document where the new created GR mat. doc with respect to 122 movement type.

Can anybody tell me is there any BAPI for that?

If no BAPI then any other way to do that in my program?

I dont want to do manually.

Regards

Mohan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,747

Hi,

You can try by creating a BDC program for "MIGO" transaction with "A02 - Return Delivery" and "R02 - Material Document".

Also I think BAPI "BAPI_GOODSMVT_CREATE" can be used for the same. But need to analyze how to acheive the same.

Thanks & Regards,

Harish

Hi,

I am have a GR material document number with movement type 101.

Using "BAPI_GOODSMVT_CANCEL" I am able to reverse the mat. docs. which is done with 102 movement type.

But, My question in here is

I have to do "Return Delivery" of a material document where the new created GR mat. doc with respect to 122 movement type.

Can anybody tell me is there any BAPI for that?

If no BAPI then any other way to do that in my program?

I dont want to do manually.

Regards

Mohan

7 REPLIES 7
Read only

Former Member
0 Likes
1,747

Did you try BAPI_GOODSMVT_CREATE? You could probably specify the original documents in the reference document fields(REF_DOC*) at item level

Read only

0 Likes
1,747

Hi Kris,

I have used that BAPI earlier, but I need to do with respect to particular material document number, not with respect to quantity.

Read only

0 Likes
1,747

but I need to do with respect to particular material document number

I dont think its respect to mat.doc . It should be respect to delivery no & item. A new matdoc will be created. In VL01N there is not place to provide the material doc.

Read only

0 Likes
1,747

Hi Keshav,

I am talking about the PO to Invoice process in MM module which has movement types in it.

Not about the SD Sales movement types.

Thx

Read only

0 Likes
1,747

Hi,

I didnt mention anything about sales movement types. Please ask your functional consultant to show it via transaction and revert back

Keshav

Read only

Former Member
0 Likes
1,748

Hi,

You can try by creating a BDC program for "MIGO" transaction with "A02 - Return Delivery" and "R02 - Material Document".

Also I think BAPI "BAPI_GOODSMVT_CREATE" can be used for the same. But need to analyze how to acheive the same.

Thanks & Regards,

Harish

Read only

0 Likes
1,747

Already some Custom BDC program is available which uses Call transaction in it.

Anyway I am developing new BDC.

Thx for the replies.