Application Development 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: 

SAPScript Number format..

Former Member
0 Kudos
856

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

Former Member
272

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

Former Member
0 Kudos
272

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

Former Member
273

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

0 Kudos
272

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

0 Kudos
272

Hi Lanka,

Thanks a lot!!

Regards,

Girija

Former Member
0 Kudos
272

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