PO should be send to vendor (PDF)as soon it is approved and print hard copy

Hi,
I have 2 requirements as below
1) The PO should be send to the vendor in PDF as soon as it is released to the e mail id of the vendor maintained in the vendor master. Also a hard copy of the PO should  get printed.
2)if the PO does not require a approval ,PO should be send to the vendor as soon as it is saved & print hard copy.
Hi gurus can you pl tell me the stepwise config to be made.
KN

Hi,
I just came across your post about Sending PO to a vendor through e-mail with PDF attachement.
I have a similar issue on hand.
My Program name - Z_SAPFM06P
Routine - ENTRY_NEU
Form - Z_MEDRUCK
My requirement : After creation of a PO, on click of 'Save' button, an e-mail needs to be sent to a given receipient.
As of now, I have included the code in the routine - ENTRY_NEU and I'm facing probelms with the FM - SO_NEW_DOCUMENT_ATT_SEND_API1.
Pls let me know what exactly is the codeand where to I need to include it. Pls tell me how to go about tis issue step-by-step.
In general you will have to do the following:
1) Set NAST-NACHA = 8 (Special function)
2) Before OPEN_FORM (maybe in In enhancement spot) if NAST-NACHA = 8, then set itcpo-tdgetotf = 'X' (to get OTF back from CLOSE_FORM!)
3) During CLOSE_FORM, if NAST-NACHA = '8', get OTF output from TABLES parameter OTFDATA
4) Convert this OTF output to PDF using following sample code:
data: I_PDF STRUCTURE  TLINE occurs 0,
        I_OTF i_otf LIKE itcoo OCCURS 0.
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
              format                = 'PDF'
              max_linewidth         = 134
         IMPORTING
              bin_filesize          = w_bytes
         TABLES
              otf                   = i_otf
              lines                 = i_pdf
         EXCEPTIONS
              err_max_linewidth     = 1
              err_format            = 2
              err_conv_not_possible = 3
              OTHERS                = 4.
5) Send email with PDF attachment using the method(s) mentioned in one of these excellent blogs:
/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
pherasath

Similar Messages

  • Help with printing hard copy from Acrobat PDF

    Copy created in InDesign and printed to Adobe PDF is OK on screen but printing hard copy with random chunks of text missing. Same on both my printers, doesn't happen with doPDF. Any ideas? Thanks

    I suspect that what you are asking is simply to print to a new PDF with print as image selected. You can also save as an image file and then open the images as a new PDF.

  • Function module to fetch pdf file from App. Server and print/email?

    Hi all,
    Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
    Please help..
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Is there any function module to fetch a PDF file from APPLICATION SERVER
    1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
    and print the PDF file or send it as an attachment in an email?
    You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
    Again there are many examples on the net on how to use CL_BCS for the same.
    Regards,
    Chen

  • To upload a RTF and a PDF file to SAP R/3 and print the same through SAP

    Hi,
    I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
    I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
    report z_test_upload .
    data: begin of itab occurs 0,
             rec type string,
          end of itab.
    data: options like itcpo.
    data: filename type string,
          count type i.
    data: filetype(10) type c value 'ASC'.
    DATA: HEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: NEWHEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: ITFLINE LIKE TLINE    OCCURS   0 WITH HEADER LINE.
    DATA: RTFLINE LIKE HELP_STFA OCCURS   0 WITH HEADER LINE.
    DATA:   string_len TYPE i,
            n1 TYPE i.
    selection-screen begin of block b1.
      parameter: p_file1(128) default 'C:\test_itf.rtf'.
    selection-screen end of block b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
      CALL FUNCTION 'F4_FILENAME'
           IMPORTING
                file_name = p_file1.
    start-of-selection.
    move p_file1 to filename.
    call function 'GUI_UPLOAD'
         EXPORTING
              filename                = filename
              filetype                = filetype
         TABLES
              data_tab                = itab
         EXCEPTIONS
              file_open_error         = 1
              file_read_error         = 2
              no_batch                = 3
              gui_refuse_filetransfer = 4
              invalid_type            = 5
              no_authority            = 6
              unknown_error           = 7
              bad_data_format         = 8
              header_not_allowed      = 9
              separator_not_allowed   = 10
              header_too_long         = 11
              unknown_dp_error        = 12
              access_denied           = 13
              dp_out_of_memory        = 14
              disk_full               = 15
              dp_timeout              = 16
              others                  = 17.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    loop at itab.
      string_len = strlen( itab-rec ).
      n1 = string_len DIV 134.
      ADD 1 TO n1.
      DO n1 TIMES.
        rtfline-line = itab-rec.
        APPEND rtfline.
        SHIFT itab-rec BY 134 PLACES.
      ENDDO.
    endloop.
    HEADER-TDSTYLE = 'S_DOCUS1'.
    HEADER-TDFORM = 'S_DOCU_SHOW'.
    header-tdspras = 'E'.
    CALL FUNCTION 'CONVERT_TEXT'
      EXPORTING
      CODEPAGE               = '0000'
        DIRECTION              = 'IMPORT'
        FORMAT_TYPE            = 'RTF'
       FORMATWIDTH            = 72
        HEADER                 = header
        SSHEET                 = 'WINHELP.DOT'
        WITH_TAB               = 'X'
        WORD_LANGU             = SY-LANGU
        TABLETYPE              = 'ASC'
      TAB_SUBSTITUTE         = 'X09  '
      LF_SUBSTITUTE          = ' '
      REPLACE_SYMBOLS        = 'X'
      REPLACE_SAPCHARS       = 'X'
      MASK_BRACKETS          = 'X'
      IMPORTING
        NEWHEADER              = NEWHEADER
      WITH_TAB_E             =
      FORMATWIDTH_E          =
      TABLES
        FOREIGN                = RTFLINE
        ITF_LINES              = ITFLINE.
      LINKS_TO_CONVERT       =
    if sy-subrc <> 0.
    endif.
    CALL FUNCTION 'PRINT_TEXT_ITF'
      EXPORTING
         HEADER        = newheader
         OPTIONS       = options
    IMPORTING
      RESULT        =
      TABLES
        LINES         = itfline.
    if sy-subrc <> 0.
    endif.
    Any hints or suggestions to solve this problem will be highly appreciated.
    Thanks,
    Avra

    Hi Vishwas,
    Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
    Also check the thread [Export Images through Function Modules   |Export Images through Function Modules;.
    Hope it helps you.

  • Saving PDF form on Mac prevents viewing and printing by another viewer

    We run a student competition which is affiliated with a national competition.  The national competition provides a set of forms that must be filled out by the students, teachers, etc.  We have a process set up whereby students can download a PDF form (which is enabled by the authors  for saving from Reader).  They are supposed to fill out this form (actually several of them), and then save the file(s) to their drive.  Once they have the forms filled out and approved by their teacher, they upload them to our website via a standard web form, which simply saves the uploaded PDF for later viewing by the student, teachers, judges, and committee members.  When students do this using Adobe Reader on a PC, it works fine.  (I'm not sure if Reader X works, actually, but I know Reader 9 does).  The problem, though, comes up with Mac users.  When they do the same thing, it seems to override the extended rights in the document, resulting in a document saved on their disk that displays with all the fields initially unviewable (that is  they all appear blank).  If you click on one of the fields, you can view the fields one at a time.  Each field appears and disappears as you move thru the document.  But we can't simply read the form, nor can we print a copy (which is necessary if the student wins and proceeds to the national competition.)  This is true if the form is uploaded or emailed or transported by USB drive--it is simply a property of the saved file.   In our testing, this appears to be a generic property of forms processed on  a Mac--and we haven't found a way around it.  Is there any way for a student who has filled out a form on a Mac to save the form while PRESERVING the extended rights?  Or do we just have to tell them that Macs don't work right?  If there is a way for them to do this, I could provide the instructions on the page that delivers the forms.  But we've tried to explore the Mac interface (inside Safari and in the PDF viewer that is provided on the Mac systems) and can't find any place that gives options that seem to affect the extended rights.  Help!

    kblyons46 wrote:
    and we haven't found a way around it.  Is there any way for a student who has filled out a form on a Mac to save the form while PRESERVING the extended rights? 
    There's an easy way around it. Make sure they are using Adobe Reader to fill in the form. 99% of these cases are because they are using the Mac Preview application to open PDF's and it will corrupt Adobe forms.

  • PAGES: Sending an exported .pdf in the body of email and NOT as attachment

    Hello to all you MAC geniuses out there. I am using Pages to design flyers for my business. Then exporting them to a pdf file and trying to figure out how to send them in the BODY of an email and not an attachemnt that they have to open. Not really sure if this is a mail or pages question. It is probably a very simple step I am missing, but never the less can't seem to fiugre it out. Thanks in advance!
    Genn

    Ok, so what do I do then? My Question is this. I am using Pages to create email flyers for my business. I have been Exporting them into a PDF File, but they as you say, send as attachements. I need to know how to send them in an email, as an email and not as an attachement.
    What do I do to save and send them differently. I know it can be done since I get craploads of Junk mail everyday that look like that. Please help, I have a deadline to meet approaching very soon. Thanks!!!!!!!!!!!!!!!

  • ITunes on Windows XP won't open so can't sync my IPhone.  When I attempt to open the program I get the apology that ITunes has experienced a problem and has to close- should we send a report message.  I've uninstalled ITunes and Quicktime and reinstalled

    Please!! If someone can help. I have tried every possible thing and I have installed and uninstalled everything multiple times. Itunes worked fine a couple weeks ago and now it won't open just gives an error message everytime.

    Generate another of those error messages and click the "Click here" link in the error message box. What modname and modver are showing for the error? (Precise spelling please.)
    If the error is a BEX and thus doesn't show an modname or modver, let us know what P1 through P9 items are showing for you instead.

  • Is it possible to create a PDF with different colors for screen and printing?

    I'm working on a document that features light colored text on a dark background. I'll be sending this document as a PDF to someone who will likely want to print it. Is it possible to set up the document such that it will display this way when viewed on screen, but will print as black text on a white background, without requiring any special action on the part of the recipient?
    Printing a color separation of just the text color produces exactly the results I'm after, but I can't ask the recipient to do that. I need it to happen automatically any time it's printed.
    I've tried setting up a duplicate text layer in black and placing it under the background layer, then setting the background layer and colored text to 'never print'. This works within Acrobat Pro, but not when I print the same document from Preview.
    Is there an acrobat equivalent of a CSS print stylesheet?
    Thanks.

    Create the document in layers with the background on a seperate layer than the text. Export the PDF with"Create Acrobat Layers" selected (it will need to be at least version 1.5).
    Open the PDF in Acrobat, choose the background layer then Options>Properties>Initial State and under "print" choose "Never prints".

  • Sending a document as an mail attachment with approve and reject button

    Hi all,
         i have an infopath form where a user fills the form and on submit the form is saving as an document in the document library,
    now my question is, how can i get this document as an mail attachment with approve and reject option.

    Hello,
    You need to hide them on form load for user. Add one more hidden control in form and keep control value blank initially. Now add rule on button submit to set the control value to some other so you can hide/show the button.
    Now add rule on approve and reject buttons that, if field1 is blank then hide this control.
    http://office.microsoft.com/en-in/infopath-help/add-formatting-rules-HA101783371.aspx
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Can´t send emails with pdf attachments - why?

    Since i moved all my accounts to my new airbook (OS X 10.8.2) everything works fine BUT i am not able to send emails with pdf attachments.I have an exchange and a mac.account - but they both won`t work.
    The emails stay put in the local ausgang? exit box and won`t move away unless i delete them.
    i checked the accounts, the activity - all says it works fine - but it doesn`t!
    Maybe in the *deep* of my mac is one thing that says no pdf - but where can i find it?
    I appreciate every helpful hint :-)
    greetings

    it tries to send the email for about five minutes and than gives the message *server doesn't work* you want to try another? repeat? or later?
    when i change the server e.g. from exchange to mac - tries again and without further notice i find the message in the outbox - even when i click that one and *send* again - nothing changes......
    I already tried to name the attachments in.pdf - i also change the pdf to jpeg - nothing works - all emails i write after that go immediately to the outbox - so when i want to send messages at all i need to delete the ones with the attachment or send the other ones manually
    Please notice in the activity window there is a lot of traffic :-) but it doesn`t help
    i even closed all other programmes like excel,safari and stuff - but still
    and i still have al lot of free GB on my airbook....
    any idea????

  • My itouch 4 is a week old and is randomly shutting off even when fully charged. Should I send it back? I'm a busy new mother and don't have time to tinker around trying to reset it and shouldn't have to since it is brand new???? What do you suggest?

    My brand new ipod touch i bought last week is suddenly randomly shutting off. Its fully charged. I havent upgraded to 5 yet because ive read of problems with loosing apps and ive already added many paid apps. I havent backed them up to my pc yet because im a brand new mom and very busy. Same reason im hoping i dont have to tinker around with this problem myself... Its brand new??? My camera randomly went black yesterday but is fine today but now it keeps shutting off. Should I send it back? Please help?!?!

    How hard is to Reset it?  A lot less hard than returning it.  Just hold down the On/off and Home buttons for atleast 10 seconds until the apple apears and then wait for it to reset.  If this doesn't work and you don't want to try restoring it, take it back to Apple.

  • About mismatch in print layout in direct print and  print preview and pdf!

    Hi ,
    I have created one smartforms,when I run the standard trasaction VF03 and select any output type  and then when I click on print preview button,and then when  I put  PDF!  in address bar  ,the print preview will convert in  PDF format,it will show output without bold   and comes only in normal fonts.
    Also, when I run transaction VF03 and direct click Print button, then  it shows print as per requirement , but it overwrites some part on the end of page where company address is priprinted on stationary,so how can i show print format same in both condition without overwriting?
    Thanks.

    HI friend,
    The one which is coming in the print (hard copy) is the correct one.
    Print preview may be different.
    So if the print is coming in overlapping format means check whether the windows are aligned properly. Because if you have given any data in main window and when it grows it over laps on another window.
    If that's is correct check the printer settings for it. Only these would cause the print to be distorted.
    Check this and revert back if you have any issues we will help you.
    Thanks,
    Sri Hari

  • Text visibility only in Print Preview Mode & Should not come in Hard copy !

    Hi All,
    Is it possible to have a text which is visible only in Preview but should not come in Printed hard copy ?
    Regards
    Ajay

    Hello,
    In the FM OPEN_FORM of your print program you will be passing whether it's print preview or not in the Options parameter
    i.e.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        FORM       = 'Z_SAMPLE'
        OPTIONS    = itcpo
    Just have an if statement in the SAPScript to only print this when that value = 'X' (i.e. IF &itcpo-tdpreview& eq 'X').
    Regards,
    Michael

  • Sending PO as PDF attachment to Vendor

    Hi Gurus
      I have requirement where, when PO is saved , a PDF attachment should be sent to Vendor email.  Your help is appreciated.
    Regards,
    Gajanan

    Hi,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000123 generated.
    also check,
    go to MN04
    here give the condition as NEU
    choose key combination as Purchasing Output Determination: Document Type
    select doc type and partner function as VN vendor mediuam as 5 external send
    select communication here strategy give as CS01
    For subject of the mail go to Mail Title and Texts. In title give PO No. &EKKO-EBELN&
    Also if you want to convert PO in PDF format :
    Get spool request in SP01
    Then go to SE38. Program name: RSTXPDF4 Execute.
    Give the spool number & execute.
    PDF will be created for PO.
    Utsav

  • Error send a smartform PDF by Email to Vendor

    Hi Expert,
    Please help me.........................
    I want to send a PO (Smartform) as Email to Vendor.
    In SAPScript the PO send by Email is working fine, but in Smartforms it is not working.
    Normally, I will use via Smartforms the Program = YBAA_FM06P, FORM routine = ENTRY_NEU, PDF/Smartform Form = ZYBAA_MMPO1.
    A communication strategy has communication type as INT has been defined.
    This communication strategy has been set as default in the output type ZNEU. The transmission medium has been set to 5 (External Send) and the partner function as VN (Vendor).
    The e-mail address of the vendor has also been maintained.
    In transaction MN04, i have also made an entry for output type ZNEU and set the document type as NB.
    But message output do not create.
    How to send a smartform PDF by Email to vendor?
    Thanks,

    Hi,
    I can convert the PO output in to PDF from SOST I can sent it to external vendor using the Mail triggering configuration settings but meassage output do not create.
    Please tell me how can I do.
    Thank,

Maybe you are looking for

  • Database Keeps On Switching During Migration

    Hello. I am currently doing a mailbox migration from Exchange 2007 to Exchange 2013. I have 4 databases in Exchange 2013 which are A, B, C and D (each with different quotas). The databases have their copies on another Exchange server under DAG. Durin

  • Export from Folio Producer

    If the Export button in Folio Producer (DPS Dashboard) is ghosted-out...does this mean I have the wrong subscription? Or is it something else? Do you need to be a Pro/Enterprise user to do this?

  • Change of server's FQDN name

    Hi All, Is it any issue happens for the existing LDAP instances, if the server FQDN changes from one domain to other for example from test.xyz.com to test.abc.com. We are in the process of migrating all servers from one domain to other domain. Thank

  • TP_CANNOT_CONNECT_SYSTEM WITH CODE 0232

    Hi, I am at the middle of prepare phase, now i am updating support package manager which at version 18. Faced error at check_requirement phase with return code 0232. when i see the log, it was talking about provider SQLNCI could not be initialized. w

  • Is there a soultion for the bluetooth that never discovers devices?

    My bluetooth on my Iphone 4 doesnt discover anything?