Question:
Hello all,
I have a requirement like this:
In the Planning book, our users drill down to a lowest level and select/mark the Planning Object (product) at that detailed level and trigger a user exit macro.
In this user exit macro, i have to capture the Planning Object that was marked in the Book and should be able to create a selection ID for this product.
First of all, is there a way to capture any marked planning objects inside a user macro?
Thanks.
Answer:
there is a macro fucntion that you can use to obtain the object. it is ACT_IOBJNM_VALUE()- Retrus the valeu of the info object that is currently being planned. you put the info object name in the paramenter. also see ACT_PLOB or ACT_PRODUCT.
IF I were you I would look at the code in these macro functions and find the code or function modules I needed to include in my user exit macro.
George
Answer:
Hi George,
I tried all those options of looking the standard SAP code on how SAP gathers this data using various standard functions to retrieve the currently being processed object information.
As most of the coding is in Object oriented, to be able to use the way SAP is currently doing, i need the reference of various Instances.
These are not available for me in the User Exit.
The functions that you mentioned would definitely help. But, in the user exit, i cannt use these functions or code inside them, as i dont have the reference to various instances.
thanks for your help.
praveen