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 to Cancel Goods Issue

Former Member
0 Likes
3,809

Dear all,

Does any body knows of any bapi to cancel goods issue.

Currently, I used BDC to cancel goods issue and the results are not very stable. Sometimes, i will get the error message 'No batch input data for screen RVV50L09 1000' and sometimes it works.

Any advice?

Thanks,

JW

1 ACCEPTED SOLUTION
Read only

krzysztof_konitz4
Contributor
1,833

Hi,

Try BAPI_GOODSMVT_CANCEL.

Krzys

Dear all,

Does any body knows of any bapi to cancel goods issue.

Currently, I used BDC to cancel goods issue and the results are not very stable. Sometimes, i will get the error message 'No batch input data for screen RVV50L09 1000' and sometimes it works.

Any advice?

Thanks,

JW

3 REPLIES 3
Read only

krzysztof_konitz4
Contributor
1,834

Hi,

Try BAPI_GOODSMVT_CANCEL.

Krzys

Read only

0 Likes
1,833

Thanks for the answer, that was the exact BAPI that I need

Read only

Former Member
0 Likes
1,833

Hi, Junwen!

Code below works fine for me:

DATA:

fp_vbeln TYPE likp-vbeln,

fp_budat TYPE sy-datlo,

fp_tcode TYPE sy-tcode,

fp_vbtyp TYPE likp-vbtyp,

it_mesg TYPE STANDARD TABLE OF mesg.

fp_vbeln = 'outbound delivery number'.

fp_budat = 'reverse date'.

fp_tcode = 'VL09'.

fp_vbtyp = 'J'.

CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE'

EXPORTING

i_vbeln = fp_vbeln

i_budat = fp_budat

  • I_COUNT =

  • I_MBLNR =

i_tcode = fp_tcode

i_vbtyp = fp_vbtyp

TABLES

t_mesg = it_mesg

EXCEPTIONS

error_reverse_goods_issue = 1

OTHERS = 2.

Regards,

Maxim.