cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement of all '.' occurances in SAP script amount fields with blank

Former Member
0 Kudos

Hi friends.

I have a issue, it is

Replacement of all '.' occurance in sap script amount fields with blank field

examples: 123.345.456,89 to 123 345 456,89

Please help nme

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

write the Below code in Driver program,

Replace all Occurances of '.' in amount field with space.

if it is standard driver program means you need to write a routine in sap script for changing the amount field format.

inside the Routine Program, read the Amount field value and replace the . from the value by using same code

Replace all Occurances of '.' in amount field with space.

then again pass to sap script and print it.

Hope this will help you.

By

Asraf

Edited by: N Asraf Ali on Aug 17, 2011 7:40 AM

Former Member
0 Kudos

Hi,

Omitting the Separator for 'Thousands'

Symbols of the DEC, CURR, INT and QUAN data types are normally formatted with

the a 'thousands' separator character. The T option allows you to specify that this

separator character should be omitted.

Syntax:

&symbol(T)&

The EKPO-MENGE field contains the value 1234.56. The Data Dictionary definition

specifies 3 decimal places and the output length has been set to 17.

&EKPO-MENGE& -> 1,234.560

&EKPO-MENGE(T)& -> 1234.560

BR

Dep

koolspy_ultimate
Active Contributor
0 Kudos

hi just use this,


Replace all Occurrences of '.' in amount with space.  "here amount is the work area field

Former Member
0 Kudos

so first tell us for what you need it.

is it for output issues? then &variable(K)& would do the job.

(K) supresses thousand seperators.

If you are triggering an external perform you can use the same trick.

Former Member
0 Kudos

Hi,

Create a Program lines above text node and insert below code:

REPLACE ALL OCCURRENCES OF '.' IN wa-component WITH SPACE.

Hi the above logic is for SAP smartforms.

You can use above code at driver program level while calling SAP Script.

HOPE this helps.

BR

Dep

Edited by: DeepakNandikanti on Aug 16, 2011 12:51 PM