cancel
Showing results for 
Search instead for 
Did you mean: 

problem in smart forms

Former Member
0 Kudos

jaihind,

i am developing one smartform,now in driverrogram is run from se38,there i will give multiple vendor in sel-opt.

now in printprivew,every time i have to come back to see the next vendor,contend of the form is same only vendor name and adress will be change.now what i want instead of going back i will press pagedown button (arrow toward down) it will show me next vendor details.

before this i was passing vendor in wa trough loop and then calling function 'SSF *.

LOOP AT it_final INTO wa_final .

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZMSMVENDOR'

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.

CALL FUNCTION fm_name

EXPORTING

im_it_final = wa_final

v_ccode = p_bukrs

  • output_options = OUTPUT_OPTIONS

  • control_parameters = CONTROL_PARAMETERS

  • user_settings = USER_SETTING

  • device = DEVICE_PRINTER

  • language = SY-LANGU

  • options = ITCPO

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

  • <error handling>

ENDIF.

ENDLOOP.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

instead of loopin gin print program why dont u loop in smartform mainwindow...

provide vendor name and details in main window as a template..

and add any tables if need after the template.

u r like creating N different pages or spool rather than N number of pages.

In main window create a loop with it_final and provide vendr details and additional info in main window..

hope problem will solved...

Regards

Syed A

former_member770378
Active Participant
0 Kudos

In your sample you execute the smartforms N times.

It is why you have to do back to do N+1. You open it and you close it at each loop.

If you want to use page down you have to edit the smarforms only 1 times.

You must do a loop in the smartforms but it will change all your smartforms architecture ...