Register Login

Dialog Programming Interview Questions and Answer

Updated May 18, 2018

ABAP Dialog Programming FAQ

1) Why do I need to do dialog programming?

Ans: to have your own customized screens and processing

2) What does dialog programming consist of ?

Ans: Screens with their corresponding processing code, Menu , module pool program

3) Difference between the normal report / program and Module pool program?

Ans: Normal report can be run straight away by executing it and useually has a selection criteria – Attributes : 1 online program
Module pool program cannot be run straight away. It first needs to display a screen – attributes : M module pool program

4) What is PBO and PAI?

Ans: Process before output. Code that is executed prior to the display of a screen.

Process after input. Code that is executed after a button on the screen has been pressed.

5) How can I identify which button is pressed?

Ans: “ fcode” attributes of the button. Define the okcode value of the screen (type sy-ucomm)

6) What is the GUI interface to the program?

Ans: The menu bar where you define the ok-codes of the buttons and function keys for the screen. You typically code SAVE, BACK, CANC, EXIT and then more specific codes. CANC (leave to screen 0) allows you to get out of the current screen.

7) What does PAI and Pbo contain by default?

Ans: PBO - MODULE STATUS_0100 - Key / button definitions
PAI - * MODULE USER_COMMAND_0100 - How do you handle thecode behind the button that was pressed

8) If we do not have / give menu bar than what will menu bar have by default?

Ans: Not much -> system , help

9) How many PBO and PAI modules are allowed for a screen?

Ans: one PBO and one PAI

10) In the menu bar can you associate a function key to a button?

Ans: yes


Comments

  • 08 Aug 2017 4:04 pm Sushma Helpful Answer

    Question: Can we hav range selection in the selection scr created in dia. prg. through screen builder as we do in report prg?

    Answer: Yes. You can either create a report with selection screen and call a screen as in a dialog program or create fields similar to select-options with a button for multiple selection and use the FM - RS_COMPLEX_SELECTION.

    Question: Can we call a dia. prg in the report and pass the value of the internal table to the dialog scr to display as i want my data to get display in table format and after dispalying it i am going to chg the value?

    Answer: You can call a dialog program from a report.And if both the programs are Z programs you can send values to the screen table but if it is a SAP standard program you might have to use Call TXn method.


×