on 08-16-2011 11:09 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi just use this,
Replace all Occurrences of '.' in amount with space. "here amount is the work area field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.