2014 Feb 20 12:42 PM
hi all,
i am printing a smart form using driver program. i need to print 7 different headings(based on the condition) based on the fetched data in the smartform ,but the problem is i am getting same header text in all the forms. Kindly provide solution.The header text is printed in a template.
Regards
Tanveer Ahmed
2014 Feb 20 2:14 PM
Hi Tanveer ,
refer below screen
Like above put your condition on every text elements.
execute it you will get your requirements.
Regards,
Thangam.P
2014 Feb 20 1:06 PM
Hi Tanveer,
declare a variable of type text, and you can fetch your data in header of smartform
based on your condition.
like shown below
data : lv_text type string.
loop at your table INTO your work area.
based on your condition.
IF condition.
lv_text = 'first heading'
elseif condition.
lv_text = 'second heading'
and so on.
ENDIF.
ENDLOOP.
and in the output where you are showing your header put the variable &lv_text&
Hoping this will solve your issue.
2014 Feb 20 1:22 PM
2014 Feb 20 1:29 PM
Hi Tanveer,
please do it in your smartform driver program, or you can create program lines for this
within your smartforms, and please drop it from conditions tab.
If you will create this into driver program, then you have to import it in smartform.,
So better to create a program lines within smartform and use this concept.
Hoping the goal will achieved.
2014 Feb 20 1:16 PM
2014 Feb 20 1:23 PM
hi perumal,
the issue is not solved.
i have been working on this issue for past 1 week .
awaiting helpful replies.
Regards
Tanveer
2014 Feb 20 1:31 PM
Hi ,
where do you need to print dynamic ,based on what? could you elaborate briefly? or else place the your screen shots..
2014 Feb 20 1:31 PM
Hi Tanveer,
do what i have sujjested above, if still not get resolved, then please revert.
2014 Feb 20 1:44 PM
hi perumal,
kindly find the text element , I have used these text elements in the smartform inside template.
in the conditions tab i have mentioned the conditions based on which these text elements will
be printed.
Now the problem is that i am getting same text element for all the smartforms which i dont want .
My requirement is to get different text element(preferebly based on the fetched data and condition )
2014 Feb 20 1:44 PM
hi perumal,
kindly find the text element , I have used these text elements in the smartform inside template.
in the conditions tab i have mentioned the conditions based on which these text elements will
be printed.
Now the problem is that i am getting same text element for all the smartforms which i dont want .
My requirement is to get different text element(preferebly based on the fetched data and condition )
2014 Feb 20 1:46 PM
2014 Feb 20 2:14 PM
Hi Tanveer ,
refer below screen
Like above put your condition on every text elements.
execute it you will get your requirements.
Regards,
Thangam.P