on 04-26-2010 9:26 AM
Hi all,
I have this feild in smartform &L_CARGO_TYPE(C)& the requirement is to make it accept 10 characters only. Can you help me please. Thanks in advance
Hi,
You can just declare a variable of length 10.
1. In Global data definition create a variable--> w_text ,, associate type --> CHAR10.
2. Just above that node create -> Program lines. In Input parameter put L_CARGO_TYPE and in output parameters put w_text.
3. In the coding section just put below lines:
w_text = L_CARGO_TYPE.
4. Drag and drop w_text form list filed into your text node.
Pls tell me if anything no clear.
Regards,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To create any program lines, Just follow the steps:
1. On that node (Window, Text,...etc) whtaever it is, Right click, Create -> Flow Logic -> Program Lines. You get a node to write code same as SE38 editor.
2. then follow the steps that I told you earlier. Please tell me if anything is not clear.
Rgs,
Lokesh.
Edited by: Lokesh Tarey on Apr 26, 2010 11:58 AM
Write as
&L_CARGO_TYPE(C)+0(10) &
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shaheen,
Check if this link helps you:
http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/1c/f40c6fddf311d3b574006094192fe3/content.htm
Regards,
Swarna Munukoti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.