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

​How to get screen stack Programmatically

3,058

Hi Experts,

My Requirement is to get Screen Stack Programmatically. I tried using FM 'SYSTEM_CALLSTACK' but it only returns ABAP Stack. Also tried class CL_TPDA_CONTROL but was unable to get it working.

Thanks and Regards

10 REPLIES 10
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,918

As rule-of-thumb, all *TPDA* objects essentially work inside the Two-Process Debugger ABAP...

What do you want to achieve?

Read only

matt
Active Contributor
2,918

No. It's not your requirement. It's how you've thought might be a way to achieve your requirement.

What is it you're trying to achieve? Why do you want to do this?

Read only

0 Likes
2,918

I want to get the field name for which the conversion routine is triggered. Any ideas on how it can be achieved?

Read only

FredericGirod
Active Contributor
2,918

if you want to do something different for a specific fieldname, why didn't you change directly the field exit related to the domain of the fieldname ?

Read only

0 Likes
2,918

FIeld Exits are deactivated by default since 6.10, and have been considered obsolete for many years.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,918

Frederic meant the conversion exit.

Read only

FredericGirod
Active Contributor
0 Likes
2,918

I like when you understand me Sandra 🙂

Read only

matt
Active Contributor
0 Likes
2,918
2 hours ago

I want to get the field name for which the conversion routine is triggered. Any ideas on how it can be achieved?

Ok. And what will you do with this field name, once you've got it? Again - what are you trying to do? What is the end goal?

Read only

2,918

The above screenshot is an example of an enhancement in conversion exit only. But I want it to behave differently for different fields. For that, I need to field the name for which it is getting triggered.

The end goal is to manipulate the values based on field names. I know there are other ways to achieve this, but using this way it can be done from a single point.

Read only

matt
Active Contributor
0 Likes
2,918

I assume when using CL_TPDA_CONTROL you just got exceptions. It seems these methods only work within the debugger.

Sorry. I can't think of a way of achieving your requirement. I think you'll have to use your other ways.