Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8243513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:32:53+00:00 2026-06-07T21:32:53+00:00

My program can be started in 2 ways: the START OF SELECTION event that

  • 0

My program can be started in 2 ways:

the START OF SELECTION event that calls a MAIN function from one of my local classes.
the ZAVGTTA4 transaction that calls the same method.

at PAI, for the BACK event, when calling LEAVE TO SCREEN '0'., my program behaves in 2 ways according to how it was started. I want to get back to the selection screen (1000).

I thought about querying the stack, where i’m sure to find how my program was called. I can see that the stack trace is different, but i don’t know how to acces my stack from the program. I’ve heard about the RTTI that i think might be able to help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:32:54+00:00Added an answer on June 7, 2026 at 9:32 pm

    You may try SYSTEM_CALLSTACK.

    DATA:
       abap_callstack_line TYPE abap_callstack_line,
       callstack TYPE  abap_callstack.
    
    
      CALL FUNCTION 'SYSTEM_CALLSTACK'
        EXPORTING
          max_level          = 4
        IMPORTING
          callstack          = callstack.
    

    But in your case I would prefer an additional parameter and the calling place can fill this entry. I would not call the parameter called_by but something like behaviour or mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The program can read all the data from the pipe. However, the program just
I have program, that must interact with a console program before my program can
I'm trying to learn about C# with SQL CE so that my program can
I have my program that can draw rectangles. I have two problems I can't
I have a program that can send text to any other program for further
In the following program you can see that each value slightly less than .5
I'm trying to make a program that can be hosted by many peoples, like
I have to create a program that finds all the possible ways of filling
This popup comes up as soon as the app is started: The program can't
I'm looking to have a class (subclassed from threading.Thread) that is initialised and started

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.