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

SAPScript Number format..

Former Member
0 Likes
1,524

Hi,

Although the user profile has number format as 1,234,567.89 the number(quantity field) shows up as 1.234.567,89 in the form which is the reverse.. how do I display this correctly.. I highly appreciate your response..

Thanks,

Ritu

1 ACCEPTED SOLUTION
Read only

Former Member
940

Hi Lanka,

Thanks a lot for the response. Is there a way I can always set it to the US format regardless of the SOLD-to country?

Thanks,

Ritu

5 REPLIES 5
Read only

Former Member
0 Likes
940

Hi Ritu,

Please note that Qty and currency formats based on country specific settings.

In print program Please set the delivery ladnd.

Example: in invoice print program(RLB_INVOICE) please check the code:

  • get delivery land

PERFORM GET_DLV-LAND USING CS_BIL_INVOICE-HD_GEN

CHANGING CS_DLV-LAND.

*& Form get_dlv_land

&----


FORM GET_DLV-LAND USING IT_HD_GEN TYPE LBBIL_INVOICE-HD_GEN

CHANGING CS_DLV-LAND LIKE VBRK-LAND1.

CS_DLV-LAND = IT_HD_GEN-DLV_LAND.

ENDFORM. " get_dlv_land

Based on Delivery land the currency and Qty format will appear on smartform.

Lanka

Read only

Former Member
941

Hi Lanka,

Thanks a lot for the response. Is there a way I can always set it to the US format regardless of the SOLD-to country?

Thanks,

Ritu

Read only

0 Likes
940

Hi ritu,

in SAP script.

Just add the following before you are adding currency or Qty fields.

/: Set Country 'US'. or /:set Country <LAND1 field>.

Lanka

Read only

0 Likes
940

Hi Lanka,

Thanks a lot!!

Regards,

Girija

Read only

Former Member
0 Likes
940

Simply go to OY01.

Change the decimal format , which is on the last in OY01. I was having the same problem in Check printing as Indian format is 1213,434,44.00