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

Sapscript as PDF-Attachment in Workflow

Hi Experts,

I am trying to create a new workflow for releasing purchase orders.

If the workitem passes all the controlling steps of the management, it should be sent automatically as PDF via email to our vendor.

The problem is, how to get the PDF as an attachment? We are using SAPscript for our PO formular (and of course the PDF-Attachment should look like the printed version).

I was already looking in the internet for a solution, but it is really hard to find some answers for this problem.

Many thanks for your help,

Christoph

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:19 AM

    Ah ok, now I understand you a little bit better.

    I've already sended POs via Email to the vendor. For this I used the output type NEU with the transmission medium 5 (I think it is external sending - it is working).

    But what settings do I have to do that the mail is send out immediately after finishing the workflow (I mean that the output type NEU is created automatically - without workflow I have to do it manually, at least I have to click on the safe button).

    I am really sorry for this beginners questions, not really used to do workflows 😉

    Many thanks for your help,

    Chris

    Message was edited by:

    Christoph Schle

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Chris

      Answers to both can be resolved via the output condition records, for vendors with out the email address you set the medium as 1 or 2 as the case may be. You then do not need to call RSNAST00 from the workflow, the standard SAP within the print program should take care of this...

      Good Luck

      Ravi

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 04:30 AM

    You can use FM SO_NEW_DOCUMENT_ATT_SEND_API1.

    Regarding usage of this you will get more reference in the ABAP Forum.

    Thanks

    Arghadip

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      How the customer wants it?

      Once or twice per day, then better go for custom report which will run in the background and create & send pdf files.

      If it has to be sent immly, you will have to write your own task/method to do that.

      Or just trigger the custom report from workflow instead of writing method.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 04:50 AM

    Hi Chris

    This is quite easy to set up, you need to configure the output type, for example NEU, for transmission medium 5. So, if you already have NEU set up to print then copy this and change the medium to '5', the next thing you need to do is to maintain email addresses for the vendors with INT as the Comm. Type....The output type, NEU, can be configured to appear for released POs only otherwise, you can perform a check in the print routine to make the PO is released prior to calling the print function.

    Good Luck!

    Ravi

    P.S.: I am assuming "it should be sent automatically as PDF via email to our vendor." should be independent of the workflow.

    Message was edited by:

    Ravi Dixit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 05:04 AM

    Hi all,

    many thanks for your help.

    The workflow should run in this way. The purchaser creates an order --> supervisor gets a SAP Mail (workflow user decision step) to accept it --> the supervisor of the supervisor then gets a SAP mail to accept it --> PDF is sent to the vendor (only if everybody signed this PO before).

    I will try following now: I will create a new workflow task to execute a method (for getting the PO as a PDF attachment) and a new workflow container item to store the attachment.

    As next WF step I will use the standard send mail step.

    Are I am right with this soulution (nothing programmed yet, still not so sure how to do it - but hope to find a solution to manage this).

    Many thanks for your help again.

    Chris

    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.