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

Displaying Quantity in Script

Former Member
0 Likes
536

Hi Abapers,

Issue is that i need to display quantity field in script as per user profile being set. How can this be met?

FM: /OSP/GET_DECIMAL_NOTATION gives the user specific format.. Pleas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

Hi,

You could write the quantity to a character field (i.e. write v_qty to v_char.), this will assume the current users format settings. Then output the character field within your SAP Script.

The write will have to be performed within the calling ABAP program or use the perform statement within the SAP script

PERFORM FORMAT_AMT IN PROGRAM ZSCRIPT_FORMS
USING &V_QTY&
CHANGING &V_CHAR&
ENDPERFORM

Darren

1 REPLY 1
Read only

Former Member
0 Likes
453

Hi,

You could write the quantity to a character field (i.e. write v_qty to v_char.), this will assume the current users format settings. Then output the character field within your SAP Script.

The write will have to be performed within the calling ABAP program or use the perform statement within the SAP script

PERFORM FORMAT_AMT IN PROGRAM ZSCRIPT_FORMS
USING &V_QTY&
CHANGING &V_CHAR&
ENDPERFORM

Darren