Professional Documents
Culture Documents
MCQS
1. In order to exit out the screen if AT EXIT-COMAND needs to be used then function code of which
type needs to be selected?
A. EXIT
B. E
C. S
D. EX
2.After the application is ready in order to execute the application which option can be shown?
A. F8
B.CUSTOM T-CODE
C.EXECUTE IN NEW WINDOW
D.ALL THE ABOVE
E.NONE OF THE ABOVE
so In order to execute mpp u need to create a dedicated T-code
,F8 is also works but under dependency.
You will have an option to execute via selecting execute-> in a new window but that option is
dependent on the tcode created,..it just executes the tcode in a new window
Ans option B
3.Team is planning to keep a check on the screen so that none of the fields can be left blank,
they decided to use chain-endchain for the same, Choose the correct syntax?
CHAIN
FIELD Mobilenumber.
MODULE VALIDATE_INPUT.
ENDCHAIN.
MODULE VALID_INPUT.
Ans. B.
4. in order to perform user defined checks in the application which of the following method can
be used?
A. issue error or warning message in PAI Module
B. issue error or warning message based on the outcomes.
C. Use VALUES statement in fow logic to define the value values.
D. All of the above.
E. None of the above.
6.The screen has BACK EXIT and CANCEL button. Please find the correct syntax to create the PF
Status?
A. SET PF-STATUS ‘Z_STATUS’.
B. SET PF_STATUS ‘Z_STATUS’.
C. SET PF-STATUS Z_STATUS.
D. SET PF_STATUS ‘Z_STATUS’.
7.While creating the screen for entering the participant details choose which option is not
mandatory to enter in the screen attributes?
A. Short Description
B. Screen type
C. Next screen
D. Screen number
Giving short description is mandatory, and choosing Screen Type is also have to be chosen
as either normal, subscreen or module dialog box.
9. ABAP team wants to ensure that the mobile number entered on the screen should be a
valid number of 10 digit. Before saving it in the database table , choose the correct way of
writing the validation of the same?
10. In screen for input field employeenumber when user enters the value into it program
should check if that value is available in custom table? Where the logic should be written for
the same?
A. AT SELECTION SCREEN.
B. PAI.
C. INITIALIZATION.
D. START-OF-SELECTION.
ANSWER: C
INFO
2. A table is created in main window with line type (%LINE1). The table has 3
sections. What are those?
A. Header, Main and footer
B. Header area, Main and footer area
C. Header area, main area and footer area
D. Header, Main area and footer
OPTIONS: D
ANS B
4. To Print multiple copies of the same document with different headings, which of the
following should be used?
Option(Multiple Choice)
1 Table type should be used as the reference type for a table parameter.
2 Structure types should be used as the reference using LIKE keyword for a table
parameter
3 Type group name used as the reference type for a table parameter
4 The structure used as reference type in the table parameter in the form should be
declared in the driver program.
ANS: B and D
Assoc type mentioned below, structure of it is declared in se38(report/driver program)
7
Create a table line in main area and then pass data there
8. which of the following system fields can be used to display the current page number in
form
Options.
1 &SFSY-PAGENO&
2 &SFSY-JOBPAGES&
3 &SFSY-FORMPAGE&
4 &SFSY-PAGE&
ANS: &SFSY-PAGE&
9. Pargraph format is created in the smart styles .where should this be assigned so that is
applicable to all fields in a smart form?
REASON
You can see that the above structure was not mentioned in the options
And third options limits to store the sequential file (NB, …..)(refer 3rd image)
2Q
Refer the dynpro field to answer this here it is (EBAN-MATNR) in field name
Only if the prog name is present or the fields that exits then only we have to write them, ignore the
blank values and start from where the value starts like fnam,fval in example
4QUESTION
Answer B
5Q
Ans: option B
ALV
Scenario -
1. User command subroutine need to be passed against I_CALLBACK_USER_COMMAND parameter
of the ALV function module to make the report interactive. If user_command is the name of the
subroutine, what will be the interface of this subroutine?
Ans.
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
2. What is the name of the function module which can be used to write the header of the ALV
report?
Ans.
REUSE_ALV_COMMENTARY_WRITE
3. IT_BSID is the internal table to be displayed in the report. IT_FCAT is the field catalog.
USER_COMMAND is the name of the subroutine to handle user command. Choose the most correct
option to generate the report in ALV grid format.
Ans.
CALL FUNCTION REUSE_ALV_GRID_DISPLAY
EXPORTING
i_callback_user_command = USER_COMMAND
i_callback_top_of_page = HEADER_PAGE'
i_structure_name = 'BSID'
it_fieldcat = IT_FCAT
TABLES
t_outtab = IT_BSID
EXCEPTIONS
program_error =1
OTHERS = 2.
IF sy-subre <> 0.
* Implement suitable error handling here
ENDIF.
4. Which of the following statements will display the document directly without displaying the initial
screen of FB03.
Ans.
CALL TRANSACTION ‘FB03’ AND SKIP FIRST SCREEN.
5. For the initial output to be displayed like the output screenshot provided in the scenario
description, which among the following options is the most appropriate way to create the structure
in the program to select data from the bsid table? NoTe: Consider additional fields which need not
be displayed but required for further processing also.
Ans.
Types: begin of ty bsid,
BUKRS type BUKRS,
KUNNR type KUNNR,
GJAHR type GJAHR,
BELNR type BELNR_D,
BUZEI type BUZEI,
BUDAT type BUDAT,
WAERS type WAERS,
MONAT type MONAT,
DMBTR type DMBTR,
WRBTR type WRBTR
End of ty_bsid.
6. If the ALV report is to be created with Object oriented ABAP, which of the following options
are correct to make the report interactive to display the details of the document.
Ans.
Create a local handler class to handle the "double_click" event of the ALV and call the
transaction to display the document from the handler method.
7. To validate the customer entered in the initial screen of the program, what would you do?
Ans.
Check the customer entered in the screen against KNA1 table using select single statement in
"AT SELECTION SCREEN" event
10. To Display the document, FB03 transaction needs to be called from the user command
subroutine. If the work area WA_BSID has all the fields as specified in the BSID table in the
scenano description,
Which of the following statements is required before calling transaction FB03 to pass data to
the screen of FB03 transaction using the work area WA_BSID.
Ans.
SET PARAMETER ID: ‘BLN’ FIELD WA_BSID-BELNR, 'BUK’ FIELD WA BSID-BUKRS, ‘GJR' FIELD
WA BSID-GJAHR.
BDC
1. After reading the data from file, it needs to be transferred to an internal table. Which is the best
way to declare the internal table for the structure in the requirement given?
5. If you are using SESSION method. How to use BDC insert function module with minimum
parameters so that it will insert data into session?
Ans.
CALL FUNCTION ‘BDC_INSERT’.
EXPORTING
Tcode = ‘ME51’.
TABLES
Dynprotab = lt_bdcdata.
7. Imagine there are 1000 records in source file and suppose call transaction method is used in BDC
program. There was an error in 500th record and didn’t create PR for that. How to process the error
records?
Ans. In a new file, place errored records after correcting them and then processagain with BDC
program
8. Data should be updated through Tcode ME51. What is the best way to understand ME51?
Ans. Do recording and generate source code.
3. If it is required to write AMDP as a code push-down technique and the type definition and method
definitions are already done correctly, which is the correct syntax for method implementation
Ans:
CLASS zcl_amdp_po IMPLEMENTATION.
method get_data BY DATABASE PROCEDURE
FOR HDB
LANGUAGE SQLSCRIPT
OPTIONS READ-ONLY
USING ekpo ekbe.
it_data = select ep.ebeln, ep.ebelp, ep.menge as ordered_qty
ek.menge as issued_qty,
ep.menge = ek.menge as pending_qty
from ekpo as ep inner join ekbe as ek
on ep.ebeln = ek.ebeln and
ep.ebelp = ek.ebelp
where ek.vgabe = '1' and
ek.bewtp = 'E';
endmethod.
ENDCLASS.
4. If the team decides to use open SQL, which is the correct syntax?
Ans:
select ep~ebeln, ep~ebelp, ep~menge as ordered_qty
ek~menge as issued_qty.
ep~menge – ek~menge as pending_qty
from ekpo as ep inner join ekbe as ek
on ep~ebeln = ek~ebeln and
ep~ebelp = ek~ebelp
where ek~vgabe = '1' and
ek~bewtp = 'E’
into table @data(it_data).
5. If it is required to write AMDP as a code push-down technique, which is the correct syntax for
types definition written in Public section.
Ans.
types: BEGIN OF ty_po,
ebeln type ebeln,
ebelp type ebelp,
Ordered_qty type MENGE_D,
issued_qty type MENGE_D,
pending_qty type MENGE_D,
end of ty_po
types: et_data type STANDARD TABLE OF ty_po with ******
6. ***** required to display the output CDS view in ALV IDA format then what will be the correct
syntax: (ABAP name: ‘ZPO_ABAP_QTY’ HANA name : ‘ZPO_QTY’).
Ans.
cl_salv_gui_table_ida=>create_for_cds_view(‘ZPO_QTY’)->fullscreen( )->display******
)
where ek.vgabe = '1' and ek bewtp = 'E'
11. If it is required to consume CDS view in ABAP report then which CDS view name can be used
without any warning?
Ans: Name specified after define view name
MODULE POOL PROGRAM(MPP)
MCQS
1. In order to exit out the screen if AT EXIT-COMAND needs to be used then function code of which
type needs to be selected?
A. EXIT
B. E
C. S
D. EX
2. After the application is ready in order to execute the application which option can be shown?
A. F8
B.CUSTOM T-CODE
C.EXECUTE IN NEW WINDOW
D.ALL THE ABOVE
E.NONE OF THE ABOVE
ANS: CUSTOM T-CODE
3. Team is planning to keep a check on the screen so that none of the fields can be left blank, they
decided to use chain-endchain for the same, Choose the correct syntax?
A. PROCESS BEFORE OUTPUT.
CHAIN.
FIELD Employeeid,
Employeername,
Email,
Mobilenumber.
MODULE VALIDATE_INPUT.
ENDCHAIN.
B. PROCESS AFTER INPUT.
CHAIN.
FIELD Employeeid,
Employeername,
Email,
Mobilenumber.
MODULE VALIDATE_INPUT.
ENDCHAIN.
C. PROCESS AFTER OUTPUT.
CHAIN.
FIELD Employeeid,
ENDCHAIN.
CHAIN.
FIELD Employeername,
ENDCHAIN.
CHAIN
FIELD email,
ENDCHAIN.
CHAIN
FIELD Mobilenumber.
MODULE VALIDATE_INPUT.
ENDCHAIN.
MODULE VALID_INPUT.
Ans. B
4. In order to perform user defined checks in the application which of the following method can be
used?
A. issue error or warning message in PAI Module
B. issue error or warning message based on the outcomes.
C. Use VALUES statement in flow logic to define the value values.
D. All of the above.
E. None of the above.
ANS: all of the above
5. In order to initialize the screens and responds to the user’s request on the screen which option
from below can be selected?
A. Screen
B. Flow logic
C. Dynpro.
D. Screen elements.
Ans. B. Flow logic
6. The screen has BACK EXIT and CANCEL button. Please find the correct syntax to create the PF
Status?
A. SET PF-STATUS ‘Z_STATUS’.
B. SET PF_STATUS ‘Z_STATUS’.
C. SET PF-STATUS Z_STATUS.
D. SET PF_STATUS ‘Z_STATUS’.
Ans. A. SET PF-STATUS ‘Z_STATUS’.
7. While creating the screen for entering the participant details choose which option is
not mandatory to enter in the screen attributes?
A. Short Description
B. Screen type
C. Next screen
D. Screen number
Ans: C. Next screen
8. Consider the application is designed in a way that there are multiple screen, In order to
control the screen flow i.e. navigating from one screen to the other which all statements can
be used.
A. SET SCREEN <Screen number>.
B. LEAVE SCREEN.
C. LEAVE TO SCREEN<SCREEN NUMBER>.
D. CALL SCREEN<SCREEN NUMBER>{STARTING AT X,Y}.
Ans. SET SCREEN <Screen number>.
LEAVE SCREEN.
LEAVE TO SCREEN<SCREEN NUMBER>.
CALL SCREEN<SCREEN NUMBER>{STARTING AT X,Y}.
9. ABAP team wants to ensure that the mobile number entered on the screen should be a
valid number of 10 digit. Before saving it in the database table , choose the correct way of
writing the validation of the same?
A. PROCESS AFTER INPUT.
FIELD PHONENUMBER MODULE VALIDATE_PHONE.
B. PROCESS BEFORE OUTUT.
FIELD PHONENUMBER MODULE VALIDATE_PHONE.
C. PROCESS BEFORE INPUT.
MODULE VALIDATE_PHONE ON FIELD PHONENUMBER.
D. PROCESS ON VALUE REQUEST.
FIELD PHONENUMBER MODULE VALIDATE_PHONE.
10. In screen for input field employeenumber when user enters the value into it program
should check if that value is available in custom table? Where the logic should be written for
the same?
A. AT SELECTION SCREEN.
B. PAI.
C. INITIALIZATION.
D. START-OF-SELECTION.
Ans. B (Process After Input)
OPTION A IS CORRECT
REASON
You can see that the above structure was not mentioned in the options
And third options limits to store the sequential file (NB, …..)(refer 3rd image)
2Q
Refer the dynpro field to answer this here it is (EBAN-MATNR) in field name
Only if the prog name is present or the fields that exits then only we have to write them, ignore the
blank values and start from where the value starts like fnam,fval in example
4QUESTION
Answer B
5Q
Ans: option B
SMARTFORM
Scenario -
1. What’s the procedure to upload a color logo in sap server?
Ans. GOTO CODE SE78->Graphics Folder->Select BMP->Click on Import->Upload image file path
->Select Color bitmap image radio button -> execute.
2. A table is created in main window with line type (%LINE1). The table has 3
sections. What are those?
A. Header, Main and footer
B. Header area, Main and footer area
C. Header area, main area and footer area
D. Header, Main area and footer
OPTIONS: D
4. To Print multiple copies of the same document with different headings, which of the
following should be used?
ANS: COPIES WINDOW
ANS: B and D
Assoc type mentioned below, structure of it is declared in se38(report/driver program)
7. Using above line item (given in scenario description). 7 cells are created in a line type and used
in the table. Within respective cells, text element is created and the data passed in header of the
table but is not printing the data in the output. What is the correct way to pass data to get proper
output.
A. Create a table line in main area and pass the data there.
B. Create a table line in main then pass data there.
C. Create a table line in main_area then pass data there.
D. Create a table line in main and area then pass data there.
ANS. CREATE A TABLE LINE IN MAIN AREA AND THEN PASS DATA THERE
8. Which of the following system fields can be used to display the current page number
in Form.
A. &SFSY-PAGENO&
B. &SFSY-JOBPAGES&
C. &SFSY-FORMPAGE&
D. &SFSY-PAGE&
ANS: &SFSY-PAGE&
9. Pargraph format is created in the smart styles .where should this be assigned so that is
applicable to all fields in a smart form?
A. In form attributes, output options
B. In text, output options
C. Global definations, output options
D. From attributes, output Options, text properties
ANS: IN FORM ATTRIBUTES, OUTPUT OPTIONS
Document categories in SAP can be an Inquiry, Quotation, Order, Item Proposal, Contract, etc.
The short tolerance percentage is the percent difference between items which remain
outstanding in the item line and those which have been issued: if 90 of 100 items have been
sent, then the short tolerance percentage would be 10%.
The report will include those orders whose short tolerance is equal or less than the given number; if the
specified tolerance is 10% and a specific line item is at 8%, it will be included in the report.
This report will be used by production planners to influence their production runs - to complete these
orders, new materials will have to be purchased or obtained and this will have to be included in the
production cycles.
The report can be run either on demand or as part of the daily batch run.
1. In the selection screen, only one entry at time user should enter. How to restrict that?
a) Use Parameter
b) Use select option
c) Use parameter and check in event AT SELECTION SCREEN if user entered more
d) Use select option and check in event AT SELECTION SCREEN if user entered more
5. While calling ALV like below, during execution it is throwing error saying TY_DATA doesn’t exists.
How to correct this?
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_structure_name = ty_data
TABLES
t_outtab = gt_mara
EXCEPTIONS
program_error = 1
OTHERS = 2.
ANSWER: C
INFO
2. A table is created in main window with line type (%LINE1). The table has 3
sections. What are those?
A. Header, Main and footer
B. Header area, Main and footer area
C. Header area, main area and footer area
D. Header, Main area and footer
OPTIONS: D
ANS B
4. To Print multiple copies of the same document with different headings, which of the
following should be used?
Option(Multiple Choice)
1 Table type should be used as the reference type for a table parameter.
2 Structure types should be used as the reference using LIKE keyword for a table
parameter
3 Type group name used as the reference type for a table parameter
4 The structure used as reference type in the table parameter in the form should be
declared in the driver program.
ANS: B and D
Assoc type mentioned below, structure of it is declared in se38(report/driver program)
7
Create a table line in main area and then pass data there
8. which of the following system fields can be used to display the current page number in
form
Options.
1 &SFSY-PAGENO&
2 &SFSY-JOBPAGES&
3 &SFSY-FORMPAGE&
4 &SFSY-PAGE&
ANS: &SFSY-PAGE&
9. Pargraph format is created in the smart styles .where should this be assigned so that is
applicable to all fields in a smart form?