Skip to Content
avatar image
Former Member

Call screen from ABAP class

Hi,

I have requirement of displaying Tree ALV based on some input screen.

1. When user keyed in relevant information on initial screen and pressed create button, a new screen will be displayed with Tree ALV.

2. The Tree ALV will have one user-defined button on the toolbar. When clicking on the toolbar button, a pop-up screen should be displayed which has input fields where user can enter and click on "Submit" button on the pop-up screen. After clicking "Submit" button, the pop-up window should close and return back to Tree ALV screen.

Challenges:

Here the initial screen is developed using Module-pool report and the Tree ALV(ALV container screen is created in module pool report) is created using custom Z Class in SE24. Clicking on the button in ALV triggers an event method in Class. Based on FCODE, I have to call the pop-up screen which is created in module pool report.

Writing call screen line in method gives syntax error that, "Dynpro's can't be accessible". Please suggest a solution for this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 22 at 06:43 AM

    Hi Vignesh,

    Have you considered creation a new function (and if necessary a new function group) and run the popup and it's code from there.

    You can attached a screen to an FG, but not to an OO-class.

    Hope this helps!

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 22 at 04:17 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 22 at 04:05 PM

    Ok looks like problem closed! :-)

    mh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 22 at 06:59 AM

    Hi Hesen,

    Thanks for your swift reply. Yes, I created an FM and call the screen inside the FM. So this FM is called inside the event handler method and finally I got the pop-up screen.

    Add comment
    10|10000 characters needed characters exceeded