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

Unicode upgrade of ABAP code question.

Former Member
0 Likes
1,948

Hi gurus......

I am involved in upgradation tool...

when we are upgrading ec4 to ec6 some pgms are unicode compatable and we will get errors according to unicode format

so when we get those errors can we replace those stmts by our code

for eg.

data fld(6)

ln(8).

describe filed fld length ln.

should be replaced by

describe filed fld length ln in characer mode

like these can we change pgm according to unicode standards.

thanks pls suggest me.

Edited by: suma chandra on Dec 12, 2008 9:43 AM

Edited by: Julius Bussche on Dec 12, 2008 10:01 AM

Hi gurus......

I am involved in upgradation tool...

when we are upgrading ec4 to ec6 some pgms are unicode compatable and we will get errors according to unicode format

so when we get those errors can we replace those stmts by our code

for eg.

data fld(6)

ln(8).

describe filed fld length ln.

should be replaced by

describe filed fld length ln in characer mode

like these can we change pgm according to unicode standards.

thanks pls suggest me.

Edited by: suma chandra on Dec 12, 2008 9:43 AM

Edited by: Julius Bussche on Dec 12, 2008 10:01 AM

17 REPLIES 17
Read only

Former Member
0 Likes
1,906

Yes if you have Access key.

Regards,

Shailaja

Read only

Former Member
0 Likes
1,906

hi suma,

you are right.

for unicode compatible systems, replacement should be done.

other wise it may leads to dump.

before that only if you check unicode flag it will show error, right.

go ahead with the changes.

Read only

Former Member
0 Likes
1,906

Hi Suma,

we do that.

In describe we need give either character or integer mode.

we can change the program.

Regards,

Flavya

Read only

0 Likes
1,906

hi frends.

for custom pgms only we need to change the code according to unicode compatable.

wat d code that we are providing should replace with our code automatically

thanks

Edited by: suma chandra on Dec 12, 2008 9:50 AM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,906

Hello Suma,

I think you can change it. Its safe !!!

Some other changes which can be done are: Upload / Download FMs.

This is a difficult question to answer, i think if you ask some specific scenario it will be better to answer.

But for the code you asked, its safe )

BR,

Suhas

Read only

Former Member
0 Likes
1,906

hi suhas......

wat my requirement is i need to develop a report to display unicode check errors in the pgm..

after displaying it wat r the errors that occuring that need to be changed accordingly

with unicode standards.

Read only

Former Member
0 Likes
1,906

hi suhas......

wat my requirement is i need to develop a report to display unicode check errors in the pgm..

after displaying it wat r the errors that occuring that need to be changed accordingly

with unicode standards.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,906

Hello Suma,

There is a trxn for this - UCCHECK. (I think in your 1st post you said you are using ECC6).

SAP documentation of the trxn is as follows:

You can use transaction UCCHECK to examine a Unicode program set for syntax errors without having to set the program attribute "Unicode checks active" for every individual program. From the list of Unicode syntax errors, you can go directly to the affected programs and remove the errors. It is also possible to automatically create transport requests and set the Unicode program attribute for a program set.

Hope this helps.

BR,

Suhas

Read only

Former Member
0 Likes
1,906

hi suhas

By using uccheck we can get errors for the program..

after getting errors how can we replace the code with our uniocde standards.

thanks

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,906

Hello Suma,

You have to analyse the code & change it accordingly. Are you trying to automate this process?

BR,

Suhas

Read only

Former Member
0 Likes
1,906

I have to place a button in the report and while clicking on it

the errors which we are geting should change according to unicode standards.

thanks

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,906

Hello Suma,

I think its a manual activity :-(( I have worked on a couple of upgrade projects & we had to do this entire exercise manually ...

If you develope any automation, plz share with us @ SDN.

Best of Luck for your endeavour.

BR,

Suhas

Read only

Former Member
0 Likes
1,906

Hi we can update the custom pgms with uniocode standards

but hw it can be done we need to know.........

Read only

0 Likes
1,906

Hi Suma,

As for as my knowledge, there will be in tool (CDOP). which gives the list of all object which effect the higher version.

List will be:

Data element

domain

table

program

function group.

for each we may have multiple impacts,

Ex,

zdata(table) may effect with zdel(data element)

and may be in one report may have couple of impacts. that list will get with the tool of upgrade.

( try seacrhing documents in sdn for CDOP )

we need to work manually on those.

UCCHECK is the tcode, where we can get the list of program which are not checked the unicode and errors if u change those to unicode. with this tcode code u can check unicode in one shot, here it prompts for request.

search in wiki for more details on upgrade.

Regards,

santosh reddy

Read only

Former Member
0 Likes
1,906

>

> Hi we can update the custom pgms with uniocode standards

>

> but hw it can be done we need to know.........

Hi suma,

To make custom programs with unicode standards,

first step--> goto program attributes, then activate "Unicode checks active" checkbox.

second step--> use "UCCHECK" transaction, give your custom program name, it will displays all unicode errors and obsolete function modules(upload,download).

third step--> its more adviceble to use this transaction eventhough u fixed all errors in second step, use "SLIN" transaction, give your program name and execute, it will displays all type of errors and warnings related to that program. As per the client's scope fix the errors and warning.

I worked for over 14 upgrade projects. The above process is the standard process followed by SAP.

Still you are looking for any information related to upgrade please feel free to contact me.

Regards

Arani Bhaskar

Edited by: arani bhaskar on Feb 16, 2009 10:10 AM

Read only

Former Member
0 Likes
1,906

Answered

Read only

Former Member
0 Likes
1,906

Hi Suma,

This is a manual activity to modify the program identified for unicode upgrade. It is not possible to automatically change the code. There would be some efforts allocated for this manual activity to comment the obsolete statements & add new ones.

Best regards,

Prashant