SAP---ABAP

Monday, November 26, 2007



>>PREVIOUS>>




QUESTION DATABASE



Q) What are DATA CLUSTERS ?

You can group any complex internal data objects of an ABAP/4 program together in data clusters and store them temporarily in ABAP/4 memory or for longer periods in databases. You can store data clusters in special databases of the ABAP/4 Dictionary. These databases are known as ABAP/4 cluster databases and have a predefined structure. Although you can also access cluster databases using SQL statements, only ABAP/4 statements are able to decode the structure of the stored data cluster.

Q)Describe the functions of the debugger screen.


- Single step(F5) - Use this option to step through the program statement by statement. This allows you
to branch into subroutines and function modules, and to execute these routines step by step as well. Once a subroutine or function module has been processed, control returns to the statement following the CALL FUNCTION or PERFORM statement.


- Execute(F6) – Use this option to process a program line by line. All of the statements on the current line are processed in a single step. If you are positioned on a line that calls a subroutine and you choose Execute, the Debugger processes the whole subroutine and then moves on to the line following the subroutine call. This allows you to jump through the statements within the subroutine.


- Return (F7) - The Debugger returns from a routine to the point at which control returns to the main program. Use this option to return from a subroutine function module, or called program to the calling program.


- Continue (F8) – Use this option to process the program up to the next dynamic or static breakpoint or up to the cursor position. If there are no more breakpoints in the program and no cursor has been set, the system exits debugging mode and executes the rest of the program normally.


- Tables – Display the contents of internal tables.

Q)Problem : How to run a program in background?

Solution : Execute the Report a

In the selection screen: After filling the screen fields press F9

A screen appears requesting U to print the Background Parameters

*Enter the output device(Eg HPLJ / SAP2 etc)

*In the spool options uncheck Print immediately, uncheck delete after output, and new spool request.

Press enter.

Another screen appears with heading start time. You can press start immediately, then save. Now the Background job is scheduled for the given program.

Q)To View the status of background Job, The transaction code is SM37.

Execute from the resulting screen. A Job overview --> From the Job list select U’r program and select spool from the application tool bar a output Controller:List of Spool Requests a Select U’ r Spool request and click display icon from the overview screen. You can see the List.


Caution :
See to that the list with does not exceed 255 columns. It it exceeds the extra columns will be
truncated in Background.

Q)What are presentation and application servers in SAP?

A presentation server is actually a program named SAP GUI. Ex. It is usually installed on a user’s workstat on. Application server is a set of executables that collectively interpret the ABAP/4 programs and manage the input & output for them.

Q)In an ABAP/4 program how do you access data that exists on a presentation server v/s on an application server?

For presentation server use UPLOAD or WS_UPLOAD function modules.
For application server use OPEN DATASET, READ DATASET and CLOSE DATASET commands.

Q)Describe the syntax and function of the AUTHORITY CHECK command?

Ans :- AUTHORITY - CHECK OBJECT ID FIELD
ID FIELD

IF SY – SUBRC NE O .
The AUTHORITY – CHECK checks whether a user has the appropriate authorization to execute a particular activity.



No comments: