Application Development 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: 

Call stack in update task programmatically

Hi all,

I have a requirement to identify the calling program/FM for a FM. that is called in update task. Here the FM 'SYSTEM_CALLSTACK' is not of much help to me, as it gives me the standard programs that trigger the update FMs.

In short, is there a way to get the call stack in the update FM by the program.. that made the call to the FM?

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

I have never seen such a feature, so I would say it's impossible. Instead, SAP gets the information where it's called from before calling the function module in the update task, and pass the answer as a parameter.

2 REPLIES 2

Sandra_Rossi
Active Contributor

I have never seen such a feature, so I would say it's impossible. Instead, SAP gets the information where it's called from before calling the function module in the update task, and pass the answer as a parameter.

0 Kudos

Thanks for your answer Sandra. I have also, so far, not been able to find any way to do this. I would also assume that it is impossible. For now, we have gone ahead with a work-around.

Thanks,

Suhas