Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert Quantity to Internal format

Former Member
0 Likes
2,406

Hi,

I am using ALV and have a Quantity column in Editable format.

I have a Custom button on the tool bar to do some posting.

When enter a value and Press that button, I get the entered quantity value in the ALV user command "selfield-value" parameter, but its in the output format.

How do I convert it in the SAP Input format to do some processing.

There's no conversion routines or function moduels to convert quantity from output format to internal format.

please suggest.

Regards,

Mid.

2 REPLIES 2
Read only

Former Member
0 Likes
1,073

hi use the user-command for this..

case sy-ucomm .

when = 'TEST'.

write the coding here.

endcase.

this you need to maintain in the function module..

regards,

venkat.

Read only

0 Likes
1,073

SELECT SINGLE * FROM usr01 INTO ls_usr01 WHERE bname = sy-uname.

    CASE ls_usr01-dcpfm.

    WHEN  'X'. TRANSLATE amount_x USING ', '.

    WHEN  ' '. TRANSLATE amount_x USING '. '.

                   TRANSLATE amount_x USING ',.'.

   WHEN  'Y'.  TRANSLATE amount_x USING ',.'.

   ENDCASE.

CONDENSE amount_x NO-GAPS.