on 01-02-2009 3:49 PM
I am new to SmartForms. I am passing tabel data successfully to the SmartForm. However, where do I write logic for:
1) Page numbering....anybody have a simple method with syntax, and where to put it in the SmartForm?
2) How do I write an IF stmt. ie. If v_fielda is initial move 'X' to v_fielda?
Thank-You
Page Numbering:
Add a Text Node to your window and write
Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
Condition or any other logic:
You can't write the IF condition any more in the Text node in Smartform. You have to write your conditions or logic in the Program Lines.
In the Context menu of any node:
Create > Flow Logic > Program Lines.
Check this link for help on Program Lines and everything for Smartforms:
http://help.sap.com/SAPHELP_NW04S/helpdata/EN/a3/80bae8dfd911d3b576006094192fe3/frameset.htm
Regards,
Naimesh Patel
Edited by: Naimesh Patel on Jan 2, 2009 9:57 AM - Help link added
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Naimesh,
No. 1 issue: Resolved...Thank-You.
No. 2 issue: I am still not quite sure how to do this. I have a loop with text as a sub-node. The text node looks something like this:
*******************************************
Charges:&GS_AFPO-CHARG&
*******************************************
I want to say if :&GS_AFPO-CHARG& is initial then use :&GS_AFPO-ZCHARG_INIT&
We are on 46C. So I did create=>program lines (did not see flow logic) as a sub-node to the Text node under my loop.I see input and output parameters on this page, but I am still not sure how to do this? Any quick suggestion you can give me?
Thanks.
Take one temporary variable say W_CHARG. Declare under the Global Variables
Now, in the input enter
GS_AFPO-CHARG
GS_AFPO-ZCHARG_INIT
in Output enter
W_CHARG
Write your logic like:
IF GS_AFPO-CHARG is initial
W_CHARG = GS_AFPO-ZCHARG_INIT.
ELSE
W_CARGE = GS_AFPO-CHARG
ENDIF.
Now, print W_CHARGE to your text node.
Regards,
Naimesh Patel
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.