Skip to Content
0
Former Member
Sep 12, 2007 at 06:49 AM

Different output in different systems

17 Views

I have a question that when I write the following LOC in my smart form the output is correctly visible in the development system (my system) but not in the user system (a different server):

"here>> g_po and w_curr_desc is

"of type vbak-vbeln and vbak-waerk

"respectively.

-


set country space.

g_po = wa_vbak-vbeln.

w_curr_desc = wa_vbak-waerk.

select single dcpfm from usr01 into (w_dec_note)

where bname = sy-uname.

-


" here>>W_DEC_NOTE TYPE XUDCPFM

" here>> l_char type char20

-


<i>MOVE w_total_vat to l_char.</i>

condense l_char no-gaps.

if w_dec_note = 'X'.

replace all occurences of ',' in l_char with ''.

elseif w_dec_note = 'Y'.

replace all occurences of ',' in l_char with '.'.

condense l_char no-gaps.

elseif w_dec_note = space.

replace all occurences of '.' in l_char with ''.

replace all occurences of ',' in l_char with '.'.

endif.

condense l_char no-gaps.

-


Now instead of the code line mentioned above in italics I write the following code-linethe problem goes away,I did that to recrify the problem but dont know the reason for it:

<i>write w_total_vat to l_char currency wa_vbak-waerk.</i>

1.Can anybody please explain me the reason for exactly what happened before and after theis change is made?

If the output is say as '180' 'currency' which we see on our systems.The user sees it as '18000' 'currency'.