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: 

sap script- address in chinese

Former Member
0 Kudos

Hi

I am printing statement of account for all countries using sap script. Currently it is displaying in english for all countries.

my requirement is , if i print for china the mailing address should display in chinese character. Rest should display in English.

Regards

Kumar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

What is the form name? is it standard SAP form?

If they have used any Standard text then you can change the content in Standard text in chinese language for that condition in SO10

Cheers

Kothand

9 REPLIES 9

Former Member
0 Kudos

What is the form name? is it standard SAP form?

If they have used any Standard text then you can change the content in Standard text in chinese language for that condition in SO10

Cheers

Kothand

0 Kudos

Hi Kothand

It is not a standard layoutset. But i want to change this for china only.

0 Kudos

Hi,

1) Create a Standard text(say SOA) in SO10 for this form in languages 'ZH' (i guess this is for china) and 'EN' please use text id as 'ADRS'.

for ZH standard text create the address in chinese language and for EN standard text create the address in English language

2) Once you know the field which specifies this form is for China ,

In the Script program Address window use this logic,

IF <FIELD> = <ZH>

INCLUDE 'SOA' OBJECT TEXT ID ADRS LANGUAGE 'ZH'

ELSE.

INCLUDE 'SOA' OBJECT TEXT ID ADRS LANGUAGE 'EN'

ENDIF.

Cheers

Kothand

Hi Kumar, Please note the bolded change, i found specified text id for address

0 Kudos

Hi Kothand

In sap script they are using address number.

can you pls advise me the same

ADDRESS PARAGRAPH AF PRIORITY P LINES 10
  ADDRESSNUMBER &DKADR-ADRNR&
  FROMCOUNTRY &T001-LAND1&
ENDADDRESS

0 Kudos

Hi,

Well. Your problem seems to be simple than what i imagined

DKADR is just a structure which gets input from either table KNA1 (for customers) or LFA1 (for vendors). So if the Address number, Land are maintained in Chinese language for a particular customer or vendor in KNA1 table or LFA1 table then it will be printed in Chinese characters.

Just goto program RFKORD10 and search for subroutine SAVE_EMPFAENGER_ADRESSE. you will see how the address values are populated to DKADR structure. If your script program uses this print program(maybe) then you can even give breakpoint in that subroutine and check whats going on

//Kothand

0 Kudos

Hi

i found in ADRC table,they maintained Chinese adress in Nation = c

Former Member
0 Kudos

You can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.

But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.

U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.

see this..

Use transaction SE63, after activate your smartform, to translate.

In the First Page of your Smart Forms click on Global Settings under that click Form Attributes

now in the Right side screen Go to Subscreen Language Attributes.

select the Radiobutton Translate To all Languages

from the Translate subscreen out of three radio buttons.

0 Kudos

Hi Anbu

Thanks for your reply. I am not using smartfprm, I ma using script

Former Member
0 Kudos

DATA : G_LANGUAGE TYPE ADRC-LANGU.

To display the address in Chinese, the address needs to be present in chinese in ADRC table or from where ever you are fetching it. If those are SO10 entries, then those entries also needs to maintained in Chinese.

First get the address from ADRC table in Chinese, only for the country china.

Then go to the SAP script the Address Window -> Text Elements.

Write the following

/: IF G_LANGUAGE EQ 'ZH'.

&Address Parameters&

/: ENDIF.

Hope this helps.