on 04-17-2008 11:27 AM
hi,
in tvko table vkorg cotains sales organisation value and txnam_adr contains the name of std text.
i want,
if wa_tvko-vkorg = '2014' then the std text z_2014_stdtext will print.
but if wa_tvko-vkorg = '2004' then the std text should be wa_tvko-txnam_adr.
how i will do it?
plz help me.
its urgent.
thanks
Hi,
Try to not code in smartform. It will cause a lot of problem when we have to debug.
Code everyting in the driver program, then pass only the necessary parameter to the smartform.
So, in this case, create a parameter named, for example, STD_TEXT_NAME.
Put some code in the program:
if wa_tvko-vkorg = '2014'.
std_text_name = 'z_2014_stdtext'.
else if wa_tvko-vkorg = '2004'.
std_text_name = wa_tvko-txnam_adr.
endif.
Then, in the smartform, in the standard text parameter, type:
&STD_TEXT_NAME&
Hope it'll help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Samanta.
i did all the calculation in the driver program and pass just the name.
now its working perfectly .
thanks a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1.Create the alternative Node.In the condition tab of true write condition.
In that create Text element.
2.In false create a text element ,In condition tab of FALSe , write the Conditions.
Regards,
Shiva Kumar(Reward if helpful).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.