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

problem with pgi for returns delivery

Former Member
0 Likes
1,460

Hi,

I'm trying to do PGI for returns delivery through BAPI_GOODSMVT_CREATE.

The when the delivery is opened through VL02N, the Post Goods Issue button has Post Goods Receipt text written on it. When the GI is done, the material document has movement type 651.

However I'm not able to create the same through the BAPI. I have tried various combinations of GM_CODE and all other variables. Have anybody of you tried doing movement type 651 for a returns delivery using the same BAPI?

Please reply if you've come across some similar situation. I know how to use the BAPI, I've been using it successfully for other movement codes etc. It's only in this case that I'm stuck up.

Regards,

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,160

PGI is not supported by this BAPI, you will have to write a small BDC for that. All it takes is one screen (initial screen of VL02N), enter the delivery number and click on that button and go back to SAP initial screen. This is a very small BDC and is the only option.

Hi,

I'm trying to do PGI for returns delivery through BAPI_GOODSMVT_CREATE.

The when the delivery is opened through VL02N, the Post Goods Issue button has Post Goods Receipt text written on it. When the GI is done, the material document has movement type 651.

However I'm not able to create the same through the BAPI. I have tried various combinations of GM_CODE and all other variables. Have anybody of you tried doing movement type 651 for a returns delivery using the same BAPI?

Please reply if you've come across some similar situation. I know how to use the BAPI, I've been using it successfully for other movement codes etc. It's only in this case that I'm stuck up.

Regards,

Vijay

6 REPLIES 6
Read only

Former Member
0 Likes
1,161

PGI is not supported by this BAPI, you will have to write a small BDC for that. All it takes is one screen (initial screen of VL02N), enter the delivery number and click on that button and go back to SAP initial screen. This is a very small BDC and is the only option.

Read only

0 Likes
1,160

Thanks.

I found FM WS_DELIVERY_UPDATE_2 it is doing PGI.

I Couldn't take the BDC approach due to some constraints.

But thanks.

Cheers,

Vijay

Read only

0 Likes
1,160

But i'm surprised it doesn't do PGI.

Because MB1A is also supposed to do some kind of a PGI right?

Even MB1A doesn't have the movement type 651 in it.

Sometimes SAP is very strange.

Regards,

Vijay

Read only

0 Likes
1,160

True MB1A is a goods issue transaction but the movement types it covers are relevant for manual goods movement, but PGI is a sales related goods issue and may be to due to its complexity it is not included in the MB1A movements.

Read only

0 Likes
1,160

Yes,

Vijay is correct, long back even i have used the same FM for PGI.

Regards,

Satya

Read only

0 Likes
1,160

Hi Vijay,

can u pls tell me how did u do it....i am also having the same requirement....

Developed a custom program for creating and updating Goods Movement Document by using BAPI_GOODSMVT_CREATE & WS_DELIVERY_UPDATE_2.

thanks, Ankita.