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: 

Using BAdI to change field

Former Member
0 Kudos
213

Hi everyone,

I have the following problem: We want to assign the value of field BKTXT to the field XBLNR when creating a material document. We have now found a badi that gets called when creating the document.

The badi has an importing parameter xkpf.

I can read that parameter and do anything I want with the values. However, the question is: How do I get a value back from the badi processing to the normal programms processing?

Anybode got a hint for me?

Regards,

Martin

4 REPLIES 4

Former Member
0 Kudos
174

Hi,

Use set and get Parameters.

0 Kudos
174

Hi,

thanks for your answer. I am sorry, but I do not understand what you mean by that. I have a BAdI that has three import parameters: two of them are xmkpf and xmseg. Those two are importing parameters only.

I want to copy field xmkpf-bktxt to xmkpf-xblnr. Therefore I need to change the xmkpf parameter, which is not allowed as it is an importing parameter.

Any further hints for me?

Regards,

Martin

0 Kudos
174

Hi everyone,

we solved our problem! The BAdI was just not the right place to perform the actions we wanted. We have solved it by using a BTE.

Thanks for you help anyway.

Regards,

Martin

0 Kudos
174

Martin,

Can you please tell us , How you have solved by BTE , This coiuld be helpful for Every body .

Thanks in advance .

Shiv.G