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

GR reversal issue using bapi BAPI_GOODSMVT_CANCEL

sanjeev_mishra_15aug
Active Participant
0 Likes
3,394

Hi Experts,

I have an issue,

There is a GR with material document having 2 line items for the same material number.

Both have different storage locations.

Now in my program when I am trying to reverse the GR using bapi BAPI_GOODSMVT_CANCEL, the return table displays error "Deficit of BA Unrestr. prev. 0.050 MT : CH8020203 2105 1001 AO-DPDB".

So please suggest me the solution for this.

Thanks in advance.

Sanjeev

Hi Experts,

I have an issue,

There is a GR with material document having 2 line items for the same material number.

Both have different storage locations.

Now in my program when I am trying to reverse the GR using bapi BAPI_GOODSMVT_CANCEL, the return table displays error "Deficit of BA Unrestr. prev. 0.050 MT : CH8020203 2105 1001 AO-DPDB".

So please suggest me the solution for this.

Thanks in advance.

Sanjeev

7 REPLIES 7
Read only

Former Member
0 Likes
1,875

Hi Sanjeev,

Did you check if any follow on documents are created before you cancel. Also check the note 1586133.

Read only

0 Likes
1,875

Thanks Pras for reply,

Actually this is regarding the reversal just after MIGO not further. So there is no concept of Follow on Document Number here.

Any suggestions plz........

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,875

Did you look for OSS notes relevant for your system?

(e.g. 1586133 - Cancel Confirmation checks availability of other items also)

Regards,

Raymond

Read only

ramesh_mahankali
Active Participant
0 Likes
1,875

Hi,

Did you try to reverse the material document via MBST? If you are getting the same error there then stock might not be there at the location.

Thanks,

Ramesh

Read only

0 Likes
1,875

Hi Ramesh,

Thanks for your suggestion,

The material Document got posted using Tcode MBST. Can I have any Idea what was the issue as it was not getting reversed using the Bapi and got posted using MBST?

Please suggest.

Thanks

Sanjeev

Read only

0 Likes
1,875

Hi Experts,

Any suggestions on this issue?

What can be the reason behind different behavior of BAPI FM & MBST Tcode for the same task?

Please suggest...

Thnks in advance.

Read only

0 Likes
1,875

Hi Sanjeev,

Please check inputs to BAPI filled correctly or not. If you were able to post MBST, then you should be able to post via BAPI as well.

Thanks,

Ramesh