cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a Smartform from another smartform

Former Member
0 Kudos

HI,

Can any one let me know is it possible to call a smartform from another smartform.

Ex. I have 2 smartforms, I want to display SF1-page1 first - next SF2.

Thanks,

Chandra.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Instead of another smart form you can create 2 pages in the same smart form the goto Pages and Windows-> Right Click Create->Page and goto Condition Tab and you Select additional Event to Display in First Page only or Not To display in 1st page

Former Member
0 Kudos

HI friend,

You can call multiple smartforms one after the another using a driver program.

But the execution will be like this,

Form 1 executes and after you press back button next form runs. You can avoid the 'PRINT' dialog box inside the code by setting NO_DIALOG = 'X'.

If you need only the first page in smart form1 the you can handle it. See the wiki : [Printing specific pages|http://wiki.sdn.sap.com/wiki/display/stage/Selectspecificpagesforprintinginsmart+form]

But any how after printing the first page alone you need to press back button then only it will trigger the next form.

Else you can do one thing create separate driver program for sf2. Create a tcode for it and then call the tcode inside the first SF using call transaction. I think this will be useful.

If you have any queries please revert back to me i will help you.

Thanks,

Sri Hari

Former Member
0 Kudos

Hi Chandra,

this should be done in print program, not in smartform

- You can call several smartforms or one smartform many times.

I think Your idea will not work, because during smartform processing,

spool request is open, so You should finish smartform execution first,

and then start another one - so this is the print program part.

Regards,

--

Przemysław