on 12-17-2009 1:22 PM
Hi Member,
Iu2019ve created Smartform and text Module. My smartform is using the text module. I would like to include commands like IF, CASE, LOOP etc in the text module but not successful so far. Is this possible?
Also I canu2019t drag and drop the fields from smartform to text module.
Thank you very much for help.
u2026Naddy
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 17, 2009 9:44 AM
Hello Naddy,
1. I would like to include commands like IF, CASE, LOOP etc in the text module but not successful so far. Is this possible?
Ans: I donot think it is possible. You can add the conditions in the condition tab of the text element. For CASE, LOOP etc you have add a Logic Node.
2. Also I canu2019t drag and drop the fields from smartform to text module.
Ans: You cannot drag & drop fields directly to a text module, but you can define the smartform fields you want to use in the text module while creating it. Viz.,
Company Code: &V_BUKRS&
where V_BUKRS is a SF variable.
Hope i am clear.
BR,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naddy,
That is normal behaviour..
For the lines you are placing in or between command lines /: will be litlle lighter color
and if you declare varible alone without /: then it will be darker..
Just checkout the output.. it shoudl work... if still not working then check out the value of &ID& ( I mean ID )
Also don't forget to put ENDIF with command line /: (Note no dot after ENDIF or any command)
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
I'm using lines in text module as bleow and condition is correct ( and no dot) ...but not Title Key and title Key texts not displayed...You can try it in the system.
/: IF &RCF_S_CS_DI_CANDIDATE_IT-CANDIDATEID& EQ 50003471
* Form of Address Key: &RCF_S_CS_DI_CANDIDATE_IT-TITLE_KEY&
* Form of Address Text: &RCF_S_CS_DI_CANDIDATE_IT-TITLE_KEY_TXT&
/: ENDIF
...Nandhs
Edited by: Naddy on Dec 17, 2009 8:08 PM
the single quote is not working.
It is working if use same field to compare with Equal and Not Equal
/: IF &RCF_S_CS_DI_CANDIDATE_IT-CANDIDATEID& EQ
= &RCF_S_CS_DI_CANDIDATE_IT-CANDIDATEID&.
* Form of Address Key: &RCF_S_CS_DI_CANDIDATE_IT-TITLE_KEY&
/: ENDIF.
/: IF &RCF_S_CS_DI_CANDIDATE_IT-CANDIDATEID& NE
= &RCF_S_CS_DI_CANDIDATE_IT-CANDIDATEID&.
* Form of Address Key: &RCF_S_CS_DI_CANDIDATE_IT-TITLE_KEY&
/: ENDIF.
...Naddy
Hi Naddy,
Alwayse put varibles between two & in SAPscript and SMARTFORM
IF &VAR& EQ 0 " Command /: in your case VAR is ID
Your code
ENDIF " Command /:
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.