cancel
Showing results for 
Search instead for 
Did you mean: 

Call multiple smartforms using a single program

Former Member
0 Kudos

Hi experts.....!

I am working on a scenario, in which I have to call different smartforms based on the condition.

For example,

I have Notification Numbers like 10, 20, 30.

I will loop my Itab which has the these notifications.

And based on the Notification number I have to pick the Smartforms say S1, S2, S3.

Please guide me in this regard.

Thanks in advance.

Best Regards,

Naveen Kumar G

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i think no need to create multiple smartforms in your case.

with single form you can create COMMAND with NEXT page. when the Notification number will change it will create new page with onther Notification number....

Notification Numbers 10 in first page

Notification Numbers 20 in second page

Notification Numbers 30 in third page like ....

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks all for your help.

I appriciate the quick replies for my query.

Thanks once again.

Ragards,

Naveen Kumar G

Former Member
0 Kudos

Hi,

use the below logic

loop at itab.

if itab-notification = '10'.

call smartform S1

ELSEIF ITAB-NOTIFICATION = '20'.

CALL SMARTFORM S2

ELSEIF ITAB-NOTIFICATION = '30'.

CALL SMARTFORM S3

ENDIF.

endloop.

Former Member
0 Kudos

Please note that the Smart forms need different list of parameters to be passed to them in each of the case.

Thank you.

Regards,

Naveen G

Former Member
0 Kudos

put multiple if elseif conditions in print program and call smartforms based on the particular condition