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

Fetching the information from tcode to custom program in PM

Raxph
Participant
0 Likes
1,305

Dear all,

I am trying to use the method of the following BADI: CEWB_TSK_UPDATE->CHECK_TSK_AT_SAVE. This method is usually triggered when we try to save data related to task list, e.g., when we save in tcode IA01, this method will do a check. Why I need this method, is to fetch the data that are saved in business transaction IA01 and send them in my custom program. So, the code would we as follows:

CALL TRANSACTION 'IA01'. 
PERFORM get_data.

Now inside this perform I want to fetch the data that we saved in this transaction. How can I use this method to achieve this functionality? So, how can I use this method to fetch the importing parameters of this method?

Thanks and any help is greatly appreciated!!

R

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
1,216

Maybe with a SingleTon class otherwise use the transaction SHMA (little bit more complex)

Read only

touzik_itc
Active Participant
0 Likes
1,216

The programs of a call sequence have common access to the ABAP memory. EXPORT ... TO MEMORY saves the data cluster in the ABAP memory. Export data in a BAdI and import it later.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,216

Implement the BAdI, in the method of the implementing class you can export required data to memory and read it from memory later.

Or play with singleton to save and read later the data of course 🙂