cancel
Showing results for 
Search instead for 
Did you mean: 

Hi friends need some help !

Former Member
0 Kudos

I have a requirement like .. when the post goods issued is cancelled (VL09) AN idoc will be generated

What are the Standard application ,output type, process code

to be provided in WE20 ?

Also please mention the basic type and extension ?

Thanks

Joy

Accepted Solutions (0)

Answers (1)

Answers (1)

mandar_shete
Active Participant
0 Kudos

Hi,

There is nothing standard IDOC functionality available for PGI Cancellation (VL09). You can do following steps.

1. Whenerver you do a PGI cancellation it hit user exit MV50AFZ1 (USEREXIT_SAVE_DOCUMENT).

PGI reversal status is as follows.

yvbup-wbsta = C AND xvbup-wbsta = A.

When the condition is satisfied call function module IDOC_OUTPUT_DELVRY.

OBJECT-OBJKY = Delivery No. (e.g. 0080013018).

CONTROL_RECORD_IN-MESTYP = DESADV

CONTROL_RECORD_IN-IDOCTP = DELVRY03

It will return all the segments populated in table INT_EDIDD.

Call the function module MASTER_IDOC_DISTRIBUTE and pass the control data and the INT_EDIDD. It will create a IDOC with this.

Thanks,

Mandar