Skip to Content

EMail + spool printing

Hi Experts..

I have a requirement where i am using exit & BTE for mail sending thru Dunning, f.27 & APP..

Though the mail is goin perfectly but I need to generate spools alongside mail generation too..

But prob is tht at a time C_FINAA-NACHA can have value I or 1 or 2.

'I' is for mailing & '1' is for printing.

BTE r 2040 & 1040.

Need to hv both the value for both mail n spool printing.

Kindly guide me pls..thanks in advance..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2008 at 09:21 AM

    Hi,

    If you want to mail the output, once you give the print, It is possible.

    What u have to do is that get the Spool number from driver program using the function module OPEN_FORM & CLOSE_FORM.

    Once you get the spool number, you can convert spool job to PDF and send that to exact address.

    Check this procedure.

    DATA :g_spool LIKE  itcpp.

    CALL FUNCTION 'CLOSE_FORM'
        IMPORTING
          RESULT = g_spool
        EXCEPTIONS
          OTHERS = 1.

    g_spool-tdspoolid "spool request number

    Call this function module to convert spool to Pdf

    CONVERT_OTFSPOOLJOB_2_PDF

    Sendind mail using the following function module.

    SO_NEW_DOCUMENT_ATT_SEND_API1

    I hope that it helps you.

    Regards,

    Venkat.O

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2008 at 09:34 AM

    Hello Das,

    May be this like solve your problem....

    https://forums.sdn.sap.com/click.jspa?searchID=10270569&messageID=2820212

    ****Reward points ,if found useful

    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.