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: 

How to call a program from FM which acts as popup?

Former Member
0 Kudos

Hi,

I need to call a program from FM and once the program is called it needs to be opened as a popup. Maybe we need to assign size when we call from FM or do we need to give size in the program it self?

I know i can either use the Submit command or Call Transaction command. But that it self will open a full screen which i dont want. It needs to be of a smaller size.

Any help will be appreciated.

Thanks

5 REPLIES 5

Former Member
0 Kudos

Hi,

You can design the Modal Dailog Box and call from the FM by giving co-ordinates.

In the Modal dailog box call the program using Submit statement.

Modal Dailog Box works as Popu-Up screen.

0 Kudos

Thanks for your comment.

Can you also give me a brief info on Modal Dialog Box? For example transaction code, how i will call it from my FM.

Also will i be able to return back where i started my process. Just like how i do it in Submit program and return back command.

Thanks

0 Kudos

program in the sense report ,then you have a fm

former_member333737
Active Participant
0 Kudos

Hi,

Try this,

REPORT ZEX_POPUPSCREEN .

*&---------------------------------------------------------------------*
*&  POPUP SCREEN
*&---------------------------------------------------------------------*

* Table Declaration
TABLES VBAK.
* Start of Selection
START-OF-SELECTION.
  SELECT * FROM VBAK.
    WRITE / VBAK-VBELN HOTSPOT ON.
  ENDSELECT.
* Display the screen
AT LINE-SELECTION.
  WINDOW STARTING AT 10 10
         ENDING   AT 40 25.
  WRITE:/ 'VBAK-VBELN, VBAK-KUNNR'.

Regards,

Nikhil.

Former Member
0 Kudos

Hi,

You can do as the previous reply or create a screen of type modal and then call it

CALL SCREEN <scrn>

STARTING AT <X1> <Y1>

ENDING AT <X2> <Y2>.

Regards,

Bruno