This website is not affiliated with, sponsored by, or approved by SAP AG.
Development SAPscript/ Smartforms
Moderators: thx4allthefish, Snowy, Gothmog, YuriT
by Frank183 » Wed Dec 01, 2010 8:22 am
Hi fans,
just as a little hint for a problem I recently came across:
Appearantly Smartforms can't handle UoMs from field-symbols in loops.
When you do
- Code: Select all
LOOP AT GT_LIPS ASSIGNING <LIPS>.
[...]
ENDLOOP.
and then use &<LIPS>-LFIMG <LIPS>-VRKME& in a field the output will look like
12,345.000 PC
if you do the same as
- Code: Select all
LOOP AT GT_LIPS INTO GS_LIPS.
[...]
ENDLOOP.
and use &GS_LIPS-LFIMG GS_LIPS-VRKME&
it works just fine as
12,345 PC
Regards
Frank
-
Frank183
-
- Posts: 30
- Joined: Mon Nov 16, 2009 10:45 am
- Location: Germany
by YuriT » Wed Dec 01, 2010 11:21 am
Did you give <LIPS> a LIPS type?
-
YuriT
-
- Posts: 888
- Joined: Fri Feb 03, 2006 6:40 am
- Location: Basel/Riga
by Frank183 » Thu Dec 02, 2010 2:58 am
Yes, of course.
- Code: Select all
FIELD-SYMBOLS: <LIPS> TYPE LIPS.
Sorry, that was kind of implicit.
-
Frank183
-
- Posts: 30
- Joined: Mon Nov 16, 2009 10:45 am
- Location: Germany
by YuriT » Thu Dec 02, 2010 11:17 am
Well if we cant fight the cause we can try to fight the consequences
- Code: Select all
&GS_LIPS-LFIMG(.0)& &GS_LIPS-VRKME&
?
-
YuriT
-
- Posts: 888
- Joined: Fri Feb 03, 2006 6:40 am
- Location: Basel/Riga
by Frank183 » Fri Dec 03, 2010 5:27 am
Grüezi,
well, that's another possibility of course ...

-
Frank183
-
- Posts: 30
- Joined: Mon Nov 16, 2009 10:45 am
- Location: Germany
Return to SAPscript/Smartforms
Who is online
Users browsing this forum: No registered users and 0 guests