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 Error

Former Member
0 Likes
574

Hello Gurus,

I have a wired situation here . The soldto party "CITY" in "CHINESE CHAR" is getting wrongly printed in the sales order whereas it is printing properly in Delivery note.

sales order output is generated via sapscript and delivery uses smartforms I've gone through the logic and it is the same.

What I can find out is Address_into_printform fm

"TRANSLATE ADRTAB-LINE TO UPPER CASE" is causing the problem for sales order but works fine to delivery note.

Has anybody come accross sucn problem .

Points guaranteed.

Regards,

Aryan

5 REPLIES 5
Read only

Former Member
0 Likes
541

hi,

comment this line and excecute.. if result is coming or not..

Read only

0 Likes
541

I cannot comment this line its a standard sap fM but the same thing is working fine for Delivery note howz that possible ?

Read only

0 Likes
541

If the city is always in Chinese characters , use the different font in SAP Script to print the same . Use the CNSONG to print the CITY in sap script.

Read only

Former Member
0 Likes
541

in debug check the value before triggering this TRANSLATE statement.

check this & revert.

alternatively you can use EDITOR_LINE_TRANSLATE_CASE function module to translate the text to UPPER CASE.

Regards

srikanth.

Read only

Former Member
0 Likes
541

Hi,

Did you try increasing the size of the window? Upper case letters occupy more space comparatively, due to which all the characters get shifted and hence causing misalignment

Regards,

Vidya