cancel
Showing results for 
Search instead for 
Did you mean: 

Call samrtform within a smartform

Former Member
0 Kudos

Hi All,

I need to call a smartform within a smartform.

Given smartform layout contains 5 pages, at 2nd page i need to call another smartform.

If anyone have the resolution then please help me out.

Aradhana Yadav

Edited by: Aradhana Yadav on Dec 22, 2009 7:44 AM

Edited by: Aradhana Yadav on Dec 22, 2009 7:45 AM

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Dec 23, 2009 4:22 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Aradhana,

Can you please share some details of your requirement. So that the idea about the condition will clear. What are you developing and what is the requirement.

Thanks

Former Member
0 Kudos

Hi,

I am calling 3 smartforms in 1 driver program, by doing so it creates 3 spools but i want only 1 spool to be created for all the 3 smartforms.

Kindly suggest any solution.

Aradhana Yadav

Former Member
0 Kudos

Hi Aradhana,

I got your requirement.

what i am suggesting you create a new form including all your forms. it is solution hope you have .

~linganna

former_member196280
Active Contributor
0 Kudos

Use control parameters, if you want to merge your smart form

data: sf_composer type SSFCOMPOP,

sf_control type SSFCTRLOP.

sf_composer_param-TDFINAL = ' '.

sf_composer_param-TDIMMED = ' '.

sf_control-NO_CLOSE = ' '.

***In your first smartform

**Call SF

EXPORT

OUTPUT_OPTIONS = sf_composer

CONTROL_PARAMETERS = sf_control.

CLEAR: sf_composer,

sf_control.

sf_composer-TDFINAL = 'X'.

sf_composer-TDIMMED = 'X'.

sf_control-NO_CLOSE = 'X'.

      • in your last smartform(i.e. your thrid smartform)

***In your first smartform

**Call SF

EXPORT

OUTPUT_OPTIONS = sf_composer

CONTROL_PARAMETERS = sf_control.

Now, you will see all your output in one spool request.

Close the thread once your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

did you tried callign the 2nd smarftform in the program lines in the 2nd page?

Another alternate, design the forms in such a way

FORM1- only - 1 page,

FORM2- your 2nd smartforms

FORM3- remaining 4 pages

Now in the driver program,

Call the FORM1 then FORM2 and last FORM3.

Regards,

Aditya

Former Member
0 Kudos

Hi Aditya,

I tried calling the driver program of the 2nd smartform using the Submit ZREP and return satement by adding program lines in the 2nd page but by using this it only triggers the 2nd smartform But i want 1st smartform along with the 2nd smartform as the output.

Cannot use the alternative suggested by you as this is a specific requirement 2nd smartform is already developed only i need to call it in my smartform.

Aradhana Yadav

Edited by: Aradhana Yadav on Dec 22, 2009 8:05 AM

Former Member
0 Kudos

Hi Aditya,

If i try the alternative suggested by you then when i call the 3 forms in my driver program it will create 3 spool requests but i want only 1 spool request to be generated instead of 3.

Aradhana yadav