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

Can we write code using BD79(ALE IDoc Conversion Rule)

Former Member
0 Likes
3,601

Hi -

I had created a conversion rule that specifies for the field account group (KTOKD) on KNA1: I need to include the following logic :

if the customer number (KNA1-KUNNR) is in the range 0010000000-0019999999 or 0140000000 to 0149999999, then change the account group value to u201CSKIPu201D.

So I had created a conversion rule using BD62.

In BD79, I had set the constant to SKIP.

But where to include the following logic :

if the customer number (KNA1-KUNNR) is in the range 0010000000-0019999999 or 0140000000 to 0149999999, then change the account group value to u201CSKIPu201D.

Thanks,

Gyanaraj

6 REPLIES 6
Read only

Former Member
0 Likes
1,992

Hi,

Yes very much.

Use the field Special conversion Routinue for the same.

if you specify ZBLNK here than you can write your code by creating function module CONVERSION_EXIT_ZBLNK_INPUT

Regards

Shital

Read only

Former Member
0 Likes
1,992

Hi Shital ,

Thank U very much for replying to my question.

But when I m trying to create the same , by clicking Use general rule & specifying special conversion routine ZBLNK , it is throwing the following error "Conversion exit ZBLNK does not exist".

Please can u help me out.

Thanks,

Gyanaraj

Read only

0 Likes
1,992

Refer [this|http://abaplovers.blogspot.com/2008/03/conversion-routines-in-sap.html] and [this|]

Read only

1,992

You will require to create Function module first and then attach it to BD79.

e.g. CONVERSION_EXIT_XXXXX_INPUT - name of Exit

Read only

Former Member
0 Likes
1,992

thanks ..i found the solution

Read only

0 Likes
1,992

Can you please le me know what you did .i also need to write a conversion rule for an idoc using BD62

Thanks