Module Pool Tips

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

What are the differences between TABLE CONTROLS and STEP LOOPS ?

- TABLE CONTROLS are simply enhanced STEP LOOPS that display data with the look and feel of a table widget in a desktop application. But from a programming standpoint, TABLE
CONTROLS and STEP LOOPS are almost exactly the same. One major difference between STEP LOOPS and TABLE CONTROLS is in STEP LOOPS their table rows can span more than
one line on the screen. By contrast the rows in a TABLE CONTROLS are always single lines, but can be very long. ( Table control rows are scrollable ). The structure of table controls is
different from step loops. A step loop, as a screen object, is simply a series of field rows that appear as a repeating block. A table control, as a screen object consists of : i ) table fields
( displayed in the screen ) ii ) a control structure that governs the table display and what the user can do with it.

Why do we need to code a LOOP statement in both the PBO and PAI events for each table in the screen ?
We need to code a LOOP statement in both PBO and PAI events for each table in the screen. This is because the LOOP statement causes the screen fields to be copied back and forth
between the ABAP/4 program and the screen field. For this reason, at least an empty LOOP......ENDLOOP must be there.

The field SY-STEPL refers to ___________________ .


The index of the screen table row that is currently being processed. The system variable SY-STEPL only has a meaning within the confines of LOOP...ENDLOOP processing. Outside the loop, it
has no valid value.

How can we declare a table control in the ABAP/4 program ?


Using the syntax controls type tableview using screen .

Differentiate between static and dynamic step loops.


Step loops fall into two classes: Static and dynamic. Static step loops have a fixed size that cannot be changed at runtime. Dynamic step loops are variable in size. If the user re-sizes the
window the system automatically increases or decreases the number of step loops blocks displayed. In any given screen you can define any number of static step loops but only a single
dynamic one.

What are the two ways of producing a list within a transaction ?


By submitting a separate report.
By using leave to list-processing.

What is the use of the statement Leave to list-processing ?


Leave to list-processing statement is used to produce a list from a module pool. Leave to list-processing statement allows to switch from dialog-mode to list-mode within a dialog program.

When will the current screen processing terminates ?


A current screen processing terminates when control reaches either a Leave-screen or the end of PAI.

How is the command Suppress-Dialog useful ?


Suppressing entire screens is possible using this command. This command allows
us to perform screen processing “in the background”. The system carries out all PBO and PAI logic, but does not display the screen to the user. Suppressing screens is useful when we are
branching to list-mode from a transaction dialog step.

What happens if we use Leave to list-processing without using Suppress-Dialog ?


If we don't use Supress-Dialog the next screen will be displayed but as empty.
when the user presses ENTER, the standard list output is displayed.

How the transactions that are programmed by the user can be protected ?
By implementing an authority check.

What are the modes in which any update tasks work ?


Synchronous and Asynchronous.

What is the difference between Synchronous and Asynchronous updates ?


A program asks the system to perform a certain task, and then either waits or doesn't wait for the task to finish. In synchronous processing, the program waits: control returns to the program only
when the task has been completed. In asynchronous processing, the program does not wait: the system returns control after merely logging the request for execution.

What is the difference between Leave Transaction and Call Transaction ?


- In contrast to LEAVE TO TRANSACTION, the CALL TRANSACTION statement causes the system to start a new SAP LUW . This second SAP LUW runs parallel to the SAP LUW for the
calling transaction.

Overall how do you write transaction program in SAP?


Create the transaction using object browser (SE80)
Define the objects e.g. screen, Transactions. – Modules – PBO, PAI.
And you can create a transaction from SE93 also.

Does SAP has a GUI screen painter? If yes What operating systems is it available on? What is the other type of screen painter called?
Yes
On what OS is it available – Window based.
Other type of screen painter – alpha numeric screen painter.

What are step loops? How do you program page down page up in step loop?
Step loops: Method of displaying a set of records.
Page down & Page up: decrement / increment base counter
Index = base + sy-step1 – 1

Normally how many and what files get created when a transaction program is written? What is top XXXXXXTOP program?
Main program with A Includes
I ) TOP INCLUDE – GLOBAL DATA
II ) Include for PBO
III) Include for PAI
IV) include for Forms

Where is processing logic located in an on-line program?


Ans :- ABAP/4 program (module pool)

Describe the online processor. What is its function?


Ans :- Controls the flow of online program.

How are screen names defined? Do you create a screen first or define your program first?
Ans :- Define the program first and then create a screen.

You might also like