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

Make changes to auto generated line items when posting invoice thru MIRO?

Former Member
0 Likes
574

Hi All,

My requirement is to make some changes in line items data when posting invoice through MIRO transaction.

I have written a substitution for the same, The issue is that some line items get automaticaly created (i.e inter company posting). I need to make changes to these line items as well but substitution is not being triggered for these auto generated line items.Is there any way by which I can update in these line items as well ?

further do we have any internal table which holds all the line items at runtime....to which I can refer and make the changes. I have searched but could not find one.

Can anybody provide some inputs on this.

Thanks,

Lucky.

Hi All,

My requirement is to make some changes in line items data when posting invoice through MIRO transaction.

I have written a substitution for the same, The issue is that some line items get automaticaly created (i.e inter company posting). I need to make changes to these line items as well but substitution is not being triggered for these auto generated line items.Is there any way by which I can update in these line items as well ?

further do we have any internal table which holds all the line items at runtime....to which I can refer and make the changes. I have searched but could not find one.

Can anybody provide some inputs on this.

Thanks,

Lucky.

2 REPLIES 2
Read only

Former Member
0 Likes
523

Hi,

try to use BADI : INVOICE_UPDATE

In this BADI, data is availabe at header level and item level in interface : change_at_save.

I hope, it can help you,

Reward points, if helpful,

Sandeep Kaushik

Read only

0 Likes
523

Hi Kaushik,

Thanks for your reply.

I am using BADI INVOICE_UPDATE but here we will not be having line items which are auto generated.

When we do inter company posting, line items are automatically created and these are not avaliable in the BADI. I am not sure if we can trap these line items any where.....the possible alternative which I can think of is to use memory reference and modify the internal table which holds all the items but unfortunately I am not able to find any such internal table to refer to at run time ...have u got any idea on this?

Thanks,

Lucky.