04-08-2010 11:17 AM
Hi experts,
I've an requirement to assign vendor and wbs data in xref1 and xref2 field in accounting document at the time of MIRO. I've used BADI 'AC_DOCUMENT'. It's working fine for all tax line item. But I can't capture thsi for TDS line item, because TDS line item is calculateed after thsi Badi thru FM 'AC_DOCUMENT_CREATE' .
How can I track this line item at the time of or after Simulation or Ppost and assign those fields?
Is there any exit or Badi to track accouting document data after simulation?
Please help.
Thanks in advance,
Goutam
04-09-2010 12:10 PM
try to check out for BTE's
check 2218 or 2118 , i am not sure about that
put a break point at BF_FUNCTIONS_FIND
and check which event is called while posting in MIRO
and check in table TBE31 for that the correspoding FM and you need to take a copy that FM and serve them for your purpose
in the above mentioned event, there will be two internal table named bkpf and bseg , if it is for parking then Bseg related table will be inital , if it is posting then bseg won't be initial
cheers
S.Janagar
Edited by: Janagar Sundaramoorthy Nadar on Apr 9, 2010 1:11 PM