Dear All,
I'm trying to use "PROCESS_ACCOUNT" interface in badi "ME_PROCESS_REQ_CUST".
Problem: I cannot get the item & header data in the mentioned interface.
Please note:
1) I'm currently working in ECC5 and interface PROCESS_ACCOUNT doesn't have method "IM_ACCOUNT_REF" from which item data could be extracted easily
2) I have read the thread where Max Bianchi suggested to use a Z-function module to pass the item details from PROCESS_ITEM interface to PROCESS_ACCOUNT interface. We could do it even using a static attribute.
But the problem is that in certain cases PROCESS_ACCOUNT is called before PROCESS_ITEM (e.g. if I copy a requisition item with account assignment)
http://scn.sap.com/thread/1839586
So, I have no better idea than getting the data of item - which is being created - form call stack.
E.g. program: SAPLMEREQ/ include: LMEREQF09 --> here I could find certain things (e.g. MY_STATE or even MY_PREVIOUS_STATE for method IM_ACCOUNT) from which I could get the data.
Sorrowfully, I don't know how to get...
I also checked Uwe Schieferstein's suggestion:
But: For PROCESS_ITEM interface it may work for method IM_ITEM but no similar attribute (MY_STATE) is available for IM_ACCOUNT in PROCESS_ACCOUNT interface.
Does anyone have any idea how to solve it?
Thanks,
Csaba