2007 Sep 07 7:23 PM
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.
2007 Sep 08 6:19 AM
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
2007 Sep 08 7:04 PM
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.