Skip to Content
author's profile photo Former Member
Former Member

how to generate the deferent pdfs for deferent vendor ?


i have requirement to generate the each pdf for each vendor and i need to mail those pdfs to respective vendor,

here i am facing the prob to generate the no of pdfs for deferent vendors...please can any one help me in this how i generate the no of pdfs ?? using wrapeer program ....

if possible any one can provide some example code..(Exmplae program)



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2010 at 11:12 AM

    There are two function use one for convert PDF and second use to email, hope it will give u idea proper.

    Assigning the OTFDATA to OTF Structure table

    CLEAR gt_otf.

    gt_otf[] = gs_otfdata-otfdata[].

    • Convert the OTF DATA to SAP Script Text lines

    CLEAR gt_pdf_tab.



    format = 'PDF'

    max_linewidth = 132


    bin_filesize = gv_bin_filesize


    otf = gt_otf

    lines = gt_pdf_tab


    err_max_linewidth = 1

    err_format = 2

    err_conv_not_possible = 3

    OTHERS = 4.

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.




    document_data = gs_docdata

    put_in_outbox = 'X'

    commit_work = 'X'


    packing_list = gt_objpack

    contents_bin = gt_objbin

    receivers = gt_reclist

    • contents_txt = i_objtxt

    object_header = objhead


    too_many_receivers = 1

    document_not_sent = 2

    document_type_not_exist = 3

    operation_no_authorization = 4

    parameter_error = 5

    x_error = 6

    enqueue_error = 7

    OTHERS = 8.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 08, 2010 at 11:57 AM

    in my opinion you need something like this one:

    you can skip the parts about doing the form interactive.

    for emailing use code exchange/ wiki/ google search.

    note there is adobe forms dedicated forum under netweaver

    regards Otto

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.