Skip to Content
0
Former Member
Dec 14, 2007 at 07:16 AM

Smartforms

14 Views

Hi Gurus,

I am developing smartform. For that am calling the smartform in the loop. So while printing it is coming one page and when i press back it is showing another page. Instead of that can i get all the pages at one time? Is there any option for that? For that we can do by passing all the internal table into the smartform and we can check there. But i dont want to modify the smartform. Here am attaching my code.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZPAY'

IMPORTING

FM_NAME = V_FORM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

***********CALLING THE FM TO DISPLAY PAYSLIP

LOOP AT IT_RT-ZPAY INTO ZPAYROLL1.

CALL FUNCTION V_FORM_NAME

EXPORTING

RT = ZPAYROLL1

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.

ENDLOOP.

Points will be awarded

Regards

Ravi