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

function module to reverse the PGI

Former Member
0 Likes
3,801

Hi,

I am using the function module JIT06_REVERSE_GOODS_ISSUE to cancel the PGI.

but i am getting dump.how to use this FM?

6 REPLIES 6
Read only

Former Member
0 Likes
1,585

Hi,

Try using Function WS_REVERSE_GOODS_ISSUE

Shd work.

Regards

Ajith

Read only

0 Likes
1,585

Hi,

I have used the above mentioned 2 FMs to cancel the post goods issue PGI.

but i am not getting the correct result.I got the result table t_mesg with no entries. or with no messages.

what to do? please give me an idea.What is the transaction code to cancel the PGI.reply soon..

Edited by: Lakshmi Atukury on Apr 11, 2008 5:56 AM

Read only

Former Member
0 Likes
1,585

Hi,

Check the program RVV50L09 there this FM has been used...

Check the Include LMPKBF43

CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE'

EXPORTING

I_VBELN = XLIKPUKWA-VBELN

I_BUDAT = XLIKPUKWA-STDAT

I_COUNT = COUNT

I_MBLNR = XLIKPUKWA-MBLNR

I_TCODE = 'VL09'

I_VBTYP = XLIKPUKWA-VBTYP

TABLES

T_MESG = XMESG

EXCEPTIONS

ERROR_REVERSE_GOODS_ISSUE = 1

OTHERS = 2.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:30 PM

Read only

0 Likes
1,585

WS_REVERSE_GOODS_ISSUE fm is not working with mvmt type 602,621..etc..and for some delivery docs its giving like no active fieldcatalogs. is there any other way?

Read only

0 Likes
1,585

Hi Lakshmi,

I also had some problems with FMs to revrese the GI. Then i tried with BDC for VL09 transaction. It is working fine.Even BDC is also very simple. We have to give only the

delivery number.

Check below code.

REFRESH: i_bdcdata[], i_bdcmsgcoll[].

PERFORM: bdc_screen USING 'RVV50L09' '1000',

bdc_data USING 'BDC_OKCODE' '=ONLI',

bdc_data USING 'I_VBELN-LOW' po_vbeln.

CALL TRANSACTION c_vl09

USING i_bdcdata

MODE w_mode

UPDATE c_s

MESSAGES INTO i_bdcmsgcoll.

After this process the messages as per ur requirement.

FORM bdc_screen USING p_program

p_dynpro.

CLEAR wa_bdcdata.

MOVE: p_program TO wa_bdcdata-program,

p_dynpro TO wa_bdcdata-dynpro,

c_x TO wa_bdcdata-dynbegin.

APPEND wa_bdcdata TO i_bdcdata.

ENDFORM. " bdc_screen

FORM bdc_data USING p_fnam

p_fval.

CLEAR wa_bdcdata.

MOVE: p_fnam TO wa_bdcdata-fnam,

p_fval TO wa_bdcdata-fval.

APPEND wa_bdcdata TO i_bdcdata.

ENDFORM. " bdc_data

Thanks,

Vinod.

Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:26 AM

Read only

0 Likes
1,585

how to catch the error records after performing call transaction,

using format message and bdcmsgcoll.

Edited by: Lakshmi Atukury on Apr 11, 2008 1:24 PM