Skip to Content
avatar image
-2
Former Member

User Exit or BADI for "After Saving VF01 or VF04 Tcode".

Hi Gurus,

I need a user exit/BADI after saving the VF01 or VF04 tcode - i need the billing doc to be created in VBRK table - so that i can use the table VBRK.

My Requirement :

I need a PDF attachment of the output type ZBXX(newly created billing document output type) - the PDF file is to be attached in shipment number which is already created.

For this i have coded in include ZXVVFU08(EXIT_SAPLV60B_008) - but i could see it is triggering before the billing doc is created.

for this i am using this method:

cl_gos_document_service->create_attachment

passing :

ls_object-objkey = lv_tknum. "'shipment number'.
ls_object-objtype = 'VTTK'.

though it is creating the attaching - but i am manually selecting the file from desktop - is there any other way to convert the newly created billing doc output type to PDF file and attach that directly to shipment number(VT03N) tcode??

Also where to save the newly created PDF file - is it possible by spool??

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • I am confused what is the business reason to ask for attaching billing PDFs to the shipment.

    I have seen valid requests by the business users to view or print all invoices, belonging to a shipment, but this takes it to a different level...

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 01, 2017 at 06:24 PM

    The user exits won't help you with this, I'm afraid. Why don't you use a custom output with "special function" media? Then you can have the output triggered and it will execute the function with whatever code you put there.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2017 at 12:02 PM
    -1

    Can anyone help on this??

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2017 at 01:45 PM

    Hi,

    Please go through below link, you will be able to find out your answer.

    https://archive.sap.com/discussions/thread/3485342

    Add comment
    10|10000 characters needed characters exceeded