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

Each page of SF into separate PDF.

Hi Experts,

I am creating a Payslip in SMARTFORMS and i am also getting the output of SF (payslip of multiple employees) into single PDF file.

But requirement is that....

"Payslip of each Employee should print on each PDF file".

Somebody Please help me out..

Thanks in Advance,,

Ankur

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2008 at 04:33 PM

    Hello,

    After getting the Smartform print preview go to menu and click on List there u can see print command which generates a spool number, take tht spool number and excecute program RSTXPDF4 and give your spool number in the selction screen will give to PDF formate of your SF.

    Hope this helps you

    Cheers!!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2008 at 12:03 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 01:14 PM

    Hello Everybody,

    I am using a loop to get the o/p of SF into separate PDF.

    Following is the coding..

    In IT_HEAD,their is i/p`s for SF..and i am getting an O/P of SF properly.but i am not getting data in OTF form.

    i.e. In T_OTF_FROM_FM, no data is coming.

    plz anybody help me out ..

    loop at it_head.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    FORMNAME = 'ZPAY'

    • VARIANT = ' '

    • DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = FM_NAME

    • EXCEPTIONS

    • NO_FORM = 1

    • NO_FUNCTION_MODULE = 2

    • OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    W_CPARAM-NO_DIALOG = 'X'.

    W_CPARAM-PREVIEW = SPACE.

    W_CPARAM-GETOTF = 'X'.

    W_OUTOPTIONS-TDDEST = 'LP01'.

    CALL FUNCTION FM_NAME

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS = W_CPARAM

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    OUTPUT_OPTIONS = W_OUTOPTIONS

    • USER_SETTINGS = 'X'

    START = SDATE

    END = EDATE

    P_NO = IT_HEAD-PERNR

    P_AREA = IT_HEAD-WERKS

    C_CODE = IT_HEAD-BUKRS

    P_SUBAREA = IT_HEAD-BTRTL

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO = T_OTF_FROM_FM

    • JOB_OUTPUT_OPTIONS =

    TABLES

    IT_ABS = IT_ABS

    EXCEPTIONS

    FORMATTING_ERROR = 1

    INTERNAL_ERROR = 2

    SEND_ERROR = 3

    USER_CANCELED = 4

    OTHERS = 5

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    T_OTF[] = T_OTF_FROM_FM-OTFDATA[].

    BREAK-POINT.

    Thanks,

    Ankur

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 09:06 PM

    Try setting SSFCOMPOP-TDNEWID = 'X' of OUTPUT_OPTIONS export parameter.

    Enjoy SAP.

    Pankaj Singh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 08:57 AM

    Hi ankur,

    Call the function module generated by the smartform ( ' /B ....').

    Donot call the function module fm_name.

    Regards,

    Sravanthi

    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.