cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger a Output as Spool on Delivery Deletion via Vl02n

former_member187709
Active Participant
0 Kudos

Dear All,

My requirement is that when I delete a delivery in VL02n , a spool should be generated . I have a SAP SCRIPT which can be triggered via a Z output type .

How do we link to trigger this output type on delivery deletion?

Thanks

Disha

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187709
Active Participant
0 Kudos

I got the solution. Basically in MV50AFZ1- form userexit_delete_document- a output type can be triggered which can call the SAP script to create the spool...

Thanks.

Former Member
0 Kudos

Hello Disha

I'm very interested to know how you got to trigger an output type inside a user-exit.

I have similar issue but I didn't find any function module or BAPI suitable to assing an output type using ABAP code.

Any comment would be very helpful.

Thank you for your help.

Manuel

former_member183879
Active Contributor
0 Kudos

Hi Disha,

If you want to create a spool for one delivery, you can do it manually.

But if you want to convert every output trigger into spool, you have to use the function module to convert the script data into spool.

You can use the FM CONVERT_OTF to convert the OTF format into spool.

Once this is done the otuput will be saved in spool with a spool number

You can convert this spool into PDF using the program RSTXPDFT4 and save it in a place in a directory.