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 comma in amount issue.

former_member599326
Participant
0 Likes
1,473

Hi,

I am facing issue while printing PO through SAPSCRIPT.

i execute tcode ME23n and give PO no

There in NET PRICE column amount is displayed as "181,554.0000" Currency EUR

but when i take a PO print preview (using sapscript) it displays NET PRICE as "181.554,0000".

I am not understanding why "." is added after 181 and comma is shifted before "0000".

Pls help.

Regards,


1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,277

Santosh

Please check in your smartform how you are handling the net price...? What you see on your screen is as per your user setting in SU01... But when you make a printout you have to check how it is done their. Normally for such cases we use write to statement and move it to char field along with currency specification. So in this way the amount gets printed as per currency settings. But in case you want to be printed in a particular case irrespective of other thing...you will have to check which country displays output like this and then use set country  command before writing. Do an F1 on this and read

Nabheet

8 REPLIES 8
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,278

Santosh

Please check in your smartform how you are handling the net price...? What you see on your screen is as per your user setting in SU01... But when you make a printout you have to check how it is done their. Normally for such cases we use write to statement and move it to char field along with currency specification. So in this way the amount gets printed as per currency settings. But in case you want to be printed in a particular case irrespective of other thing...you will have to check which country displays output like this and then use set country  command before writing. Do an F1 on this and read

Nabheet

Read only

0 Likes
1,277

i m using sapscript and in that use the net price as below

&EKPO-NETPR(C)&

Read only

0 Likes
1,277

for currency INR it is printing correct. only for EUR it is not printing correctly through sapscript.

Read only

0 Likes
1,277

the issue getting resolved by giving 1st command in main window as below :-

/: SET COUNTRY ' '

Read only

0 Likes
1,277

Right, please set the question as answered

Read only

Former Member
0 Likes
1,277

Hi,

check settings in SU01 or set in OY01 for the country.

Regards-

Makarand

Read only

former_member201275
Active Contributor
0 Likes
1,277

Interface between SAPscript and ABAP basis ill-defined. Please check

tables TCURX and T005X settings also for EURO.

Read only

Former Member
0 Likes
1,277

Thanks , i meet the same issue, and command: set country 'XX' is the solution.