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

Badi in standard SAP program

Former Member
0 Likes
817

Hi all,

I am passing a string in to the header table passed to the BADI from a standard program. The string is the concatenation of 4 fileds and 2 text elements inthe program - which we pass to the BADI.

We are log in in the ENG language and so we are getting 2 text elements in english - which i want in russian language.

We just need to replace those 2 text elements in english to russian language and that has to be done inside badi.

Any pointers to go ahead will be helpful.

Regards,

Veena.

Hi all,

I am passing a string in to the header table passed to the BADI from a standard program. The string is the concatenation of 4 fileds and 2 text elements inthe program - which we pass to the BADI.

We are log in in the ENG language and so we are getting 2 text elements in english - which i want in russian language.

We just need to replace those 2 text elements in english to russian language and that has to be done inside badi.

Any pointers to go ahead will be helpful.

Regards,

Veena.

5 REPLIES 5
Read only

madhu_vadlamani
Active Contributor
0 Likes
773

Hi Veena,

You can try with a fm which will convert and pass those fields.I guess it is possible.

Regards,

Madhu.

Read only

Former Member
0 Likes
773

thanks Madhu.

But the string is already concatenated one. The text elements can come anywhere .

Stmt is something like CONCATENATE x_workarea-name y_workarea-street text-001           

                                                               x_workarea-ponum z_workarea-hzno text-002 INTO l_string

So what goes inside the BADI is just the l_string. Except the text elements , rest are maintined in russian in the corresponding tables. .

I was thinking of reading the text elements inside the BADI in Russian and use REPLACE OCCURANCE OF ... stmt. ?

Is there any alternative?

Read only

0 Likes
773

Hi veena,

I just guess it is possible first translate and then concatenate.

Regards,

Madhu.

Read only

Former Member
0 Likes
773

Hi all,

We followed this approach-

We read the text pool of the program in RU from the badi then used "REPLACE ALL OCCURANCE".

Solved the problem.

Thanks for all the pointers.

Regards,

Veena.

Closing !!!

Read only

0 Likes
773

Hi Veena,

Thats good.

Regards,

Madhu.