2007 Jun 05 11:50 AM
These are some of the interview questions can u send me the answers for this question's...
1) what is EXPORT stmt?
2) describe stmt and advantages
3) In one f-module how to make sy-subrc = 0.
4) Diff bet RFC's and bapi's
5) what are run time tools?
6) diff bet leave screen and leave to screen.
7) diff bet user-exits and BADI's
😎 diff bet smartforms and scripts
9) Table maintanance generator?
10) wat is local update method in call transaction.
11) diff bet call trans and session methods
12) how are customizing includes created
13) events in abap and wat is AT SELECTION-SCREEN OUTPUT.
2007 Jun 05 11:53 AM
Hi,
2.<b>DESCRIBE</b> statement is used to find out the attributes of a data object at runtime that were not statically available. For example, you may need to find out the type of a generic interface parameter in a subroutine.
<b>4.Diff between RFC & BAPI:</b>
RFC stands for Remote Function Call. Its a remote enabled function module. It means that a FM written in R/3 with remote enabled feature, can be called in CRM application. Any function module can be an RFC.
While BAPI are those function module, who are of course remote enabled, but besides, they have a specific application area. These function module help in creating a specific application document. For example, a BAPI_create_purchase_order is a BAPI with RFC property which creates a Purchase order. This purchase order becomes an application in R/3.
Any function module can be RFC enabled but it is called a BAPI only when it creates any application specific document in the system.
<b>6.Diff between Leave Screen & Leave To Screen:</b>
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen. The next screen is either the static next screen or a dynamic next screen.
The LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement. The LEAVE TO SCREEN statement is no more than a contraction of the two statements
SET SCREEN <next screen>.
LEAVE SCREEN.
<b>7.Difference Between User Exits & BADI :</b>
Refer this Link,
<b>8.DIFFERENCE BETWEEN SMARTFORMS AND SAPSCRIPTS ARE:</b>
1).Smartforms are client independent and Sapscripts are client dependent.
2).Multiple page formats are possible in smartforms which is not the case in SAPScripts
3).It is possible to have a smartform without a main window .
4).Labels cannot be created in smartforms.
5).Routines can be written in smartforms tool.
6).Smartforms generates a function module when activated.
<b>9.Table Maintenance Generator :</b>
Table Maintanance Generator is used to manually
input values using transaction sm30
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
<b>11.Difference Between Call Transaction & Session Method:</b>
<b>SESSION METHOD</b>
Data is not updated in database table unless Session is processed.
No sy-subrc is returned.
Error log is created for error records.
Updation in database table is always synchronous
<b>CALL TRANSACTION</b>
Immediate updation in database table.
Sy-subrc is returned.
Errors need to be handled explicitly
Updation in database table can be synchronous Or Asynchronous.
<b>13.Events In ALV:</b>
LOAD-OF-PROGRAM
INITIALIZATION
AT SELECTION-SCREEN OUTPUT
<b>Use of AT SELECTION-SCREEN OUTPUT :</b>
It is triggered when the selection screen is loaded in memory before being displayed.
Regards,
Padmam.
2007 Jun 05 11:53 AM
Hi,
2.<b>DESCRIBE</b> statement is used to find out the attributes of a data object at runtime that were not statically available. For example, you may need to find out the type of a generic interface parameter in a subroutine.
<b>4.Diff between RFC & BAPI:</b>
RFC stands for Remote Function Call. Its a remote enabled function module. It means that a FM written in R/3 with remote enabled feature, can be called in CRM application. Any function module can be an RFC.
While BAPI are those function module, who are of course remote enabled, but besides, they have a specific application area. These function module help in creating a specific application document. For example, a BAPI_create_purchase_order is a BAPI with RFC property which creates a Purchase order. This purchase order becomes an application in R/3.
Any function module can be RFC enabled but it is called a BAPI only when it creates any application specific document in the system.
<b>6.Diff between Leave Screen & Leave To Screen:</b>
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen. The next screen is either the static next screen or a dynamic next screen.
The LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement. The LEAVE TO SCREEN statement is no more than a contraction of the two statements
SET SCREEN <next screen>.
LEAVE SCREEN.
<b>7.Difference Between User Exits & BADI :</b>
Refer this Link,
<b>8.DIFFERENCE BETWEEN SMARTFORMS AND SAPSCRIPTS ARE:</b>
1).Smartforms are client independent and Sapscripts are client dependent.
2).Multiple page formats are possible in smartforms which is not the case in SAPScripts
3).It is possible to have a smartform without a main window .
4).Labels cannot be created in smartforms.
5).Routines can be written in smartforms tool.
6).Smartforms generates a function module when activated.
<b>9.Table Maintenance Generator :</b>
Table Maintanance Generator is used to manually
input values using transaction sm30
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
<b>11.Difference Between Call Transaction & Session Method:</b>
<b>SESSION METHOD</b>
Data is not updated in database table unless Session is processed.
No sy-subrc is returned.
Error log is created for error records.
Updation in database table is always synchronous
<b>CALL TRANSACTION</b>
Immediate updation in database table.
Sy-subrc is returned.
Errors need to be handled explicitly
Updation in database table can be synchronous Or Asynchronous.
<b>13.Events In ALV:</b>
LOAD-OF-PROGRAM
INITIALIZATION
AT SELECTION-SCREEN OUTPUT
<b>Use of AT SELECTION-SCREEN OUTPUT :</b>
It is triggered when the selection screen is loaded in memory before being displayed.
Regards,
Padmam.
2007 Jun 05 11:54 AM
hey pavan, it´s about the fifth time i see you posting such "interview questions".
This forum is rather intended to provide help for people stuck in problems.
For the purpose of learning ABAP better book a course at SAP.
You might get the answers here, if some people feel like answering this, BUT you will never learn enough to answer the questions next time yourself.
2007 Jun 05 12:36 PM
Hi Pavan
1) <b>what is EXPORT stmt?</b>
A: <i> Stores a data cluster in the data buffer f, where f has the type XSTRING. The objects declared, obj1 ... objn, are stored as a cluster in the data buffer f. They can be fields, structures, complex structures, or tables.
</i>
2)<b>describe stmt and advantages</b>
A: <i>The pattern function allows you to insert various source code templates in your program it reduces the typing effort and ensures that the syntax of the statement is always correct. </i>
<b><u>Advantages</u></b>
<i>To insert a statement pattern in the ABAP Editor:
1. Ensure that you are in change mode and position the cursor at the place where you want to insert the statement.
2. Choose Pattern.The Insert Statement Pattern dialog box appears.
3. Choose the required pattern and, if necessary, the statement.
4. Choose Continue.
5. Fill out the pattern with the required information.
6. Choose Continue to confirm your entries.
The system inserts the statement at the cursor position in the program code.
</i>
3) <b>In one f-module how to make sy-subrc = 0.</b>
<u><b>This question is not so clear for me.
if u want an example how to declare then u can go thru this</b></u>
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc = 0.
read table t_return index 1.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
append o_begru to s_begru.
else.
o_begru = i_begru.
endif.
4) <b>Diff bet RFC's and bapi's</b>
A:<i>BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. </i>
5) <b>what are run time tools?</b>
A: <i>Choose Menu --> Test -->Runtime Analysis or transaction SE30 to start the runtime analysis. In the initial screen, you see the four main functions of this tool, which can be activated by pushing the corresponding button.
Measurement in dialog status
Measurement of external session
Selection of measurement restrictions
Evaluation of measurement results
</i>
6) <b>diff bet leave screen and leave to screen.</b>
A:<i>If we want to branch to the next screen without finishing the current one, use LEAVE SCREEN.
With CALL SCREEN, the current (calling) chain is suspended, and a next screen (or screen chain) is called in. The called screen can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0</i>
7<b>) diff bet user-exits and BADI's</b>
A:<i>Difference between BADI and USER-EXIT.
i) BADI's can be used any number of times, where as USER-EXITS can be used only one time.
Ex:- if your assigning a USER-EXIT to a project in (CMOD), then you can not assign the same to other project.
ii) BADI's are oops based.</i>
😎 <b>diff bet smartforms and scripts</b>
A:<i>Scripts are client-dependent but SF are client Independent
less programing in smart form
multiple page format is possible in smart form
we can maintain background graphics in smartform
multiple page format not allowed in scripts allowed in sf.
labelling is possible in scripts not possible in sf.
</i>
9) <b>Table maintanance generator?</b>
A:table maintanance Generator is used to manually
input values using transaction sm30
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
10) wat is local update method in call transaction.
A: check this
http://help.sap.com/saphelp_sm32/helpdata/en/fa/09715a543b11d1898e0000e8322d00/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/f23c18330411d5992100508b6b8b11/content.htm
11) diff bet call trans and session methods
A: <i>Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically</i>
12) <b>how are customizing includes created</b>
A: check this link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ea31446011d189700000e8322d00/frameset.htm
13) <b>events in abap and wat is AT SELECTION-SCREEN OUTPUT.</b>
A: <b>Events</b><i>Initialization, At selection-screen,Start-of-selection,end-of-selection,top-of-page,end-of-page, At line-selection,At user-command,At PF,Get,At New,At LAST,AT END, AT FIRST.</i>
<u><i>In the PBO of the selection screen, the
AT SELECTION-SCREEN OUTPUT
event is triggered. This event block allows you to modify the selection screen directly before it is displayed.</i></u>
Here is sample code
REPORT demo_at_selection_screen_pbo.
PARAMETERS: test1(10) TYPE c MODIF ID sc1,
test2(10) TYPE c MODIF ID sc2,
test3(10) TYPE c MODIF ID sc1,
test4(10) TYPE c MODIF ID sc2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF screen-group1 = 'SC2'.
screen-intensified = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Rewards if helpfull
Regards
Pavan