This website is not affiliated with, sponsored by, or approved by SAP AG.

Field symbols / UoM in Smartforms

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Field symbols / UoM in Smartforms

Postby 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

Re: Field symbols / UoM in Smartforms

Postby YuriT » Wed Dec 01, 2010 11:21 am

Did you give <LIPS> a LIPS type?
YuriT
 
Posts: 885
Joined: Fri Feb 03, 2006 6:40 am
Location: Basel/Riga

Re: Field symbols / UoM in Smartforms

Postby 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

Re: Field symbols / UoM in Smartforms

Postby 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: 885
Joined: Fri Feb 03, 2006 6:40 am
Location: Basel/Riga

Re: Field symbols / UoM in Smartforms

Postby Frank183 » Fri Dec 03, 2010 5:27 am

Grüezi,

well, that's another possibility of course ... :D
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 1 guest





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.