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

Create Z Conversion Routine for domain

Former Member
0 Likes
2,725

Hi all,

Is it possible to create a custom conversion routine to be used at domain creation?

(i.e. convert a 15 numc to 17 character on input and exit.)

SAP standard is CONVERSION_EXIT_xxxxx_INPUT for input and

CONVERSION_EXIT_xxxxx_OUTPUT for output, however, I can't seem to find any documentation on how to create a Z conversion routine.

Any help would be greatly appreciated.

Thanks

Kevin Liu

5 REPLIES 5
Read only

Former Member
0 Likes
1,125

Hi,

Exits in SAP have a standard naming convention. As SAP documents it, "A conversion routine is identified by its five-place name and is stored as a group of two function modules (CONVERSION_EXIT_xxxxx_INPUT and CONVERSION_EXIT_xxxxx_OUTPUT). The function modules have a fixed naming convention".

So a Z conversion routine wouldn't serve the purpose as it won't be recognized as a conversion exit. Could you please tell why you need a Z conversion routine?

Regards

Shehryar

Read only

0 Likes
1,125

I was unsure that if custom conversion routine would require z naming convention however, i see now that it should be the same as standard sap ones with CONVERSION_EXIT_xxxxx... Thanks Shehryar.

I looked into the alpha routine but I require more complex character manipulation than what alpha can provide. Thanks for the tip though.

Kevin

Read only

tathagata_sengupta
Associate
Associate
0 Likes
1,125

Hi Kevin,

Your problem could possibly be solved by conversiion exit ALPHA. Check it out.

Regards,

Tathagata

Read only

thomas_jung
Developer Advocate
Developer Advocate
0 Likes
1,125

Yes you can create customer routines. According to OSS Note 41474 it is safe to create a function module that has the conversion exit naming standard (Begins with CONVERSION_EXIT*). You will get a warning that you can ignore. The important part is to have the first letter of your rountine name begin with Z or Y. That way you won't have a conflict with SAP. An example would be:

CONVERSION_EXIT_Z0001_INPUT

Read only

0 Likes
1,125

Hello!

I have created routine conversion.

It carryes out quite well in crm system, but when I execute BSP, the field containing the routine has showed empty.

Why?

What can i do?

Thanks.