Skip to Content
avatar image
Former Member

Trigger a Output as Spool on Delivery Deletion via Vl02n

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 27, 2010 at 06:09 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2010 at 06:19 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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