Escolar Documentos
Profissional Documentos
Cultura Documentos
encancement catagory is to say what type of fields you can have in your table. For the
SAP tables when you want to make enhancements( adding your own fields- append
structure)what type of field you can add it depends on how they set the enhancement
catogary. 1> Can be enhanced deep: You can have any type of fields and if it is a
standard table you can add any type of field whether it may be a character type,
reference type or even a table type ( deep means structure within structure)
fields. 2>Can be enhanced (character-type or numeric): Now you can add only flat data
type fields not a reference type or deep structures ( a table type within a table). 3>Can
be enhanced (character-type) : In a table for which this technical attribute is set you can
have only character type fields and in standard tables you can enhance it by adding only
character type fields not even integer or float or packed.(C, N, D and T are the character
type fields and your table should contain these type of fields.). 4>Cannot be enhanced:
This table cannot be enhanced means you cannot add further fields into this table.
3.)Different ways of finding badi and bapi?
A.)
find the extract for finding BADIs from one of the SDN posts Finding BADIsBusiness
add-ins are enhancements to the standard version of the system. Business Add-In is a
new SAP enhancement technique based on ABAP Objects.They can be inserted into the
SAP system based on specific user requirements.Each Business Add-In has: at least
one Business Add-In definition a Business Add-In interface a Business Add-In class
that implements the interface In order to enhance a program, a Business Add-In must
first be definedSubsequently two classes are automatically generated: An interface with
IF_EX_ inserted between the first and second characters of the BADI name. An
adapter class with CL_EX_ inserted between the first and second characters of the
BADI name. The Application developer creates an interface for this Add-In. There are
multiple ways of searching for BADI. Finding BADI Using
CL_EXITHANDLER=>GET_INSTANCE Finding BADI Using SQL Trace (TCODEST05). Finding BADI Using Repository Information System (TCODE- SE84). 1. Go to
the Transaction, for which we want to find the BADI, take the example of Transaction
VD02. Click on System->Status. Double click on the program name. Once inside the
program search for CL_EXITHANDLER=>GET_INSTANCE.Make sure the radio button
In main program is checked. A list of all the programs with call to the BADIs will be
listed.The export parameter EXIT_NAME for the method GET_INSTANCE of class
CL_EXITHANDLER will have the user exit assigned to it. The changing parameter
INSTANCE will have the interface assigned to it. Double click on the method to enter
the source code.Definition of Instance would give you the Interface name. 2. Start
transaction ST05 (Performance Analysis).Set flag field "Buffer trace"Remark: We need to
trace also the buffer calls, because BADI database tables are buffered. (Especially view
V_EXT_IMP and V_EXT_ACT)Push the button "Activate Trace". Start transaction VA02
in a new GUI session. Go back to the Performance trace session.Push the button
"Deactivate Trace".Push the button "Display Trace".The popup screen "Set Restrictions
for Displaying Trace" appears.Now, filter the trace on Objects: V_EXT_IMP
V_EXT_ACT Push button "Multiple selections" button behind field ObjectsFill:
V_EXT_IMP and V_EXT_ACT All the interface class names of view V_EXT_IMP start
with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name
is after the IF_EX_.So the BADI name of IF_EX_CUSTOMER_ADD_DATA is
CUSTOMER_ADD_DATA 3. Go to Maintain Transaction (TCODE- SE93).Enter the
Transaction VD02 for which you want to find BADI.Click on the Display push buttons.Get
the Package Name. (Package VS in this case) Go to TCode: SE84->Enhancements>Business Add-inns->DefinitionEnter the Package Name and Execute.
for BAPI
First go to transaction BAPI,in alphabetical tab. There is lists all of the BAPIs, you can
then look thru them by business object.
4.)How to sort the table without sorting it?
A.)Declare it as
IT TYPE SORTED TABLE OF KNA1.
5.)
Based on certain condition how can we show different columns in output of ALV?? For Ex if
Condition A is met we need to show 1 5 and 7 column , If condition B is met we need to show 1 2
and 4 and if condition C is met we need to show 1 3 and 6.
6.)
A.)Most of the time we go for standard internal table. However, where main operation is
key access, Hashed internal table is most appropriate. Hashed internal tables are useful
if you want to construct and use an internal table which resembles a database table or
for processing large amount of table. If you are not sure about it, then go for standard
internal table.
8.)What is X parameter in BAPI?
A.) to make a changes in BAPI Parameter we will be using staemt 'X".
9.) while implementing badi what are the tables u find??
A.)
10.)In which case will u use badi and userexit?
A.)
customized application. LSMW provides various methods for the migration of data,
namely, those of direct input, Batch input recording and IDOC. BDC however, simply
makes use of recording. There are two ways of implementing BDC, the call transaction
method and the session method. In LSMW, mapping is taken care of with the help of
SAP, whereas in BDC one has to provide explicit mapping directions. Coding is not very
flexible in LSMW, whereas in BDC, coding is very flexible and applications can be easily
customized. This is mainly because LSMW is devised specially for functional consultants
who do not perform coding, while BDC is mainly made use of by technical consultants,
who do perform coding.
19.) WHICH LANGUAGE IS USED TO WRITE ABAP CODING PART?
A.)COBOL Language
20.) which commands are allowed if you are working with an
internal
table of type sorted?
A.)APPEND KEYWORD is not allowed.Remaining allowed.
21.) Factory calendar contain company specific dates such as alternate working
Saturdays, Plant shutdown etc.
You can create your company factory calendar via transaction code 'SCAL'.
Assignment of the factory calendar
A.) CLEAR:lv_lines,lv_n,lv_mod,lwa_final,lv_p,lv_ch,lv_a,lv_b..
SORT lit_final BY vtweg vkorg vkbur pltyp matnr.
DESCRIBE TABLE lit_final LINES lv_lines.
DO lv_n TIMES.
lit_final[] = lit_finaltp[].
REFRESH : lit_finalt[],lit_finaltp[].
CLEAR : lwa_finaltt.
LOOP AT lit_final INTO lwa_final.
IF sy-tabix LE 10.
APPEND lwa_final TO lit_finalt.
MOVE-CORRESPONDING lwa_final TO lwa_finaltt.
CLEAR lwa_final.
ELSE.
APPEND lwa_final TO lit_finaltp.
CLEAR lwa_final.
ENDIF.
ENDLOOP.
lit_final[] = lit_finalt[].
ENDDO.
26.)How to trigger outbound Idoc in Sap?
A.)
Case 1: A customer wants a order acknowledgment for his
order, another wants a invoice in EDI formats. In this case
you will enable IDoc output through output determination in
VA01 and VF01 transactions, you will assign ORDERS, INVOIC
message types. The triggering function module would be
EDI_PROCESSING
functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the
requirement and read the comment inserted in it and start coding.
31.)Diff b/w DATA AND TYPES?
A.) using the statement -Types
we can declare own data types
TYPES dtype [TYPE type|LIKE dobj] ...
where as using DATA statement
we can declare own variables or instance attributes of classes
DATA var [{TYPE type}|{LIKE dobj}] ...
32.) How can we display multiple alv's without using containers?
A.)BLOCKED ALVS
33.) User A put the Exclusive Lock for one table and User B
want to put the Shared Lock for the same table. Is it Possible?
A.) No it's not possible. Because Once Exclusive Lock is
activated for one table it's not allowed another lock like
Shared or Exclusive lock.
While in case of Shared Lock it is possible.
34.)Can we store data in cluster table?
A.)No, table cluster should be used exclusively for storing internal control
information.
34.) What is the Comparison between Class and Function Module in
Data Point of View?
A.)
35.)In pooled and Cluster table,which table u can convert into transparent table?
A.) pooled tables , You can easily convert pooled tables to transparent table with the
transparent flag of the technical settings. You can use this option to access a pooled
table from outside the R/3 System.
36.) Among pooled and Cluster tables, in which table data used to
store in Row Format?
a.) pooled table is stored entries with out row separator .
and coming to the cluster the entries are stored with row
separator
37.)How to upload data from excel to internal table?
A.)no i think these fm doesn't work with excel files. the above fm are used to
upload the txt files means note pad filessivas
example ?
A.)
Inheritance is nothing but acquiring the properties of one
class(base class) to another class(child class).
Multi-level Inheritance is nothing but one parent class that
have more than one child class. For Ex, P1 is parent Class
and C1 and C2 are the Child classes, now C1 can acquire the
properties of Parent class P1 and C2 can acquire the
properties of both Child calss C1 and Parent Class P1.
SAP ABAP SUPPORTS MULTI-LEVEL INHERITANCE... SAP ABAP NOT
SUPPORTS MULTIPLE INHERITANCE, ACHIEVES THROUGH INTERFACES
CONCEPT...
A.)When the level of hierarchies are considered, it is the super class at higher level &
sub class at lower level. Hence the assignment of subclass to a superclass is up casting
& super to a subclass is down casting.
55.)Diff b/w enhancement and Modification?
A.) enhancement is adding additional functionality to standard
sap program without modifying the original object.
modification means changing standard code as per user
requirement.
56.)Userexit and Badi?
A.) User Exit:
1)it is procedural approach.
2)Program are written in between form endform.
2)it Need access key .
BADI:
1) it is object oriented approach.
2) Reusable because of oops concept .
3) first definition (se18) then implementation (se19)
57.) how to Implement a BADI in which it restricts the access when purchase order is created
against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any
one knows. thanks in advance. :ravikiran
58.) will a break-point statement trigger in background job? say
LOOP AT SCREEN.
IF screen-name = 'S_WERKS-LOW'.
screen-required = ''.
MODIFY SCREEN. " INDEX sy-tabix.
ELSEIF screen-name = 'S_LAND-LOW'.
screen-required = '1'.
MODIFY SCREEN. " INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
* This event is also trigged to re-draw ABAP report screen
so can be
* used to hide or display fields
IF chk = ''.
LOOP AT SCREEN.
IF screen-name = 'S_WERKS-LOW'.
screen-required = '1'.
MODIFY SCREEN. " INDEX sy-tabix.
ELSEIF screen-name = 'S_LAND-LOW'.
screen-required = ''.
MODIFY SCREEN. " INDEX sy-tabix.
ENDIF.
ENDLOOP.
ELSEIF chk = 'X'.
LOOP AT SCREEN.
IF screen-name = 'S_WERKS-LOW'.
screen-required = ''.
MODIFY SCREEN. " INDEX sy-tabix.
ELSEIF screen-name = 'S_LAND-LOW'.
screen-required = '1'.
MODIFY SCREEN. " INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDIF.
70.)How to create Database table using program?
A.) Report ypriyatest.
TABLES:
bdcdata.
DATA:t_bdcdata LIKE
STANDARD TABLE
OF bdcdata.
PARAMETERS :
p_table(15) TYPE c.
DATA:
MSG LIKE BDCMSGCOLL,
T_MSG LIKE TABLE OF MSG,
MESSAGE(72) TYPE C.
PERFORM PROCESS.
*&--------------------------------------------------------------------*
*&
Form fill_screendata
*&--------------------------------------------------------------------form fill_screendata
using
value(p_0015)
value(p_0016).
BDCDATA-PROGRAM = P_0015.
BDCDATA-DYNPRO = P_0016.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA TO T_BDCDATA.
CLEAR BDCDATA.
endform.
" fill_screendata
*&--------------------------------------------------------------------*
*&
Form FILL_FIELD_DATA
*&--------------------------------------------------------------------form FILL_FIELD_DATA
using
value(p_0020)
value(p_0021).
BDCDATA-FNAM = P_0020.
BDCDATA-FVAL = P_0021.
APPEND BDCDATA TO T_BDCDATA.
CLEAR BDCDATA.
endform.
" FILL_FIELD_DATA
*&--------------------------------------------------------------------*
*&
Form PROCESS
*&--------------------------------------------------------------------form PROCESS .
**first screen
PERFORM fill_screendata
USING 'SAPMSRD0' '0102'.
PERFORM FILL_FIELD_DATA
USING 'RSRD1-TBMA' 'X'.
PERFORM FILL_FIELD_DATA
USING 'RSRD1-TBMA_VAL' p_table.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=ADD'.
**second screen
PERFORM fill_screendata
USING 'SAPLSD41' '2200'.
PERFORM FILL_FIELD_DATA
USING 'DD02D-DDTEXT' 'Bdc Table'.
PERFORM FILL_FIELD_DATA
USING 'DD02D-CONTFLAG' 'A'.
PERFORM FILL_FIELD_DATA
USING 'DD02D-MAINFLAG' 'X'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=CHANGE_MAINTFLAG'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '/00'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=DEF'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=WB_ACTIVATE'.
PERFORM FILL_SCREENDATA
USING 'SAPLSEWORKINGAREA' '0205'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=WEIT'.
PERFORM fill_screendata
USING 'SAPLSD41' '2200'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=BACK'.
PERFORM fill_screendata
USING 'SAPMSRD0' '0102'.
PERFORM FILL_FIELD_DATA
USING 'BDC_OKCODE' '=BACK'.
CALL TRANSACTION 'SE11' USING T_BDCDATA MODE 'A' MESSAGES INTO T_MSG.
LOOP AT T_MSG INTO MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID
= MSG-MSGID
LANG
= 'EN'
NO
= MSG-MSGNR
V1
= MSG-MSGV1
V2
= MSG-MSGV2
V3
= MSG-MSGV3
V4
= MSG-MSGV4
IMPORTING
MSG
= MESSAGE
EXCEPTIONS
NOT_FOUND
= 1
OTHERS
= 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF sy-subrc EQ 0.
WRITE / MESSAGE.
ENDIF.
ENDLOOP.
endform.
" PROCESS
A.)
PARAMETERS: table(20),
rows TYPE i DEFAULT 100.
* Declare the variable for holding your internal table
DATA: itab TYPE REF TO data.
* Three field symbols requried 1. for acessing table data..second work
area and third individual fields.
FIELD-SYMBOLS: <fs_table> TYPE ANY TABLE,
<fs_wa> TYPE ANY,
<field> TYPE ANY.
TRY.
* Create internal table
CREATE DATA itab TYPE STANDARD TABLE OF (table).
* Let our Field Symbol point to it so we can acess its data afterwords.
ASSIGN itab->* TO <fs_table>.
* put data into internal table
SELECT * FROM (table) UP TO rows ROWS INTO TABLE <fs_table>.
* Loop over internal tabel with the help of field symbol pointing to its data
LOOP AT <fs_table> ASSIGNING <fs_wa>.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_wa> TO <field>.
IF sy-subrc EQ 0.
WRITE: <field>.
ELSE.
EXIT.
ENDIF.
ENDDO.
ULINE.
ENDLOOP.
CATCH cx_sy_create_data_error.
WRITE 'Wrong Database!'.
ENDTRY.
73.)What is Bapi?
A.) BAPI (Business Application Programming Interface) is a set
of interfaces to object-oriented programming methods that
enable a programmer to integrate third-party software into
the proprietary R/3 product from SAP. For specific business
tasks such as uploading transactional data, BAPIs are
implemented and stored in the R/3 system as remote function
call (RFC) modules.
A.)
screen keyword.so the control will return to the statement where it was
called for.
but when we are calling a screen statically we are using set screen
keyword.and here for back to the statement from where the screen
was called, we have to use the leave to screen keyword.
82.)How to Find duplicates records from Table?
A.)
83.)
will sorted internal tables help in performance?
ibm
A.) http://www.saptechnical.com/Tips/Basis/Transport/TableEntries.htm
93.) As an ABAP developer, how can we check after we release our
After reaching the 20th list ,you can call anouther executable prg by using
the Submit Keyword ,likewise you can go beyond 20th list .
96.) Can I create a Transaction code for a custom Table ? If Yes How can I ?
A.)
97.) to find an enhancement we will go to smod and check with the
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. It is not possible to connect SAP to Non-SAP systems to retrieve data
using RFC alone. RFC can acces the SAP from outside only through BAPI and same is
for vice versa access.
RFC is the protocol used by SAP for remote communication, that is, for communications
between remote (independent) systems. RFC is used for communications between two
independent SAP systems, or for communications between an SAP system and a nonSAP system, such as an external application. It can also be used for communications
between modules on the same system. Using the RFC interfaces you can extend the
functionality of R/3 applications from an external program.
rfc is standalone doen not comunicate with another rfc.
but bapi comunicate with another bapi because bapi is a part
of business object.
110.)
if bdc session method is to be executed at some particular
time without using sessions? how?
A.)Using RSBDCSUB
111.) if data is inserted only using bdc open and bdc insert and
not
bdc close session funx module wat will happend? will data b
inserted?
A.)Data is inserted into session but session cannot be processed.
112.) Insert Table in a Table - NO
Structure in a Structure - YES
Structure in a table - YES
Table in a structure - YES (AAFAB)
113.) difference between batch input and direct input and call
transaction ?
A.) batch input method or batch data comunication both are the same. it worls on the
principle of simulating user input to the transaction screen via abap program. it
can handle errors explicitly . features also include logging and synchronous
processing.generally data is given in a flat file in which i undergoes through a
screen and screen validation finally inserts in a database. eg: session method
and bdc call transaction method
but direct input is asynchrounous.data is directly uploaded in a database by doing
some field validations. errors cant be handled. it inserts data using some inbuilt
function modules.
eg: LSMW
114.)User exit,customer exit,Badi?
A.) User exit,Customer exit and BADI are the enhancement techniques which are
used to write your custom code with out modifying the standard application.
User Exit is subroutine where we write custom code.We need SAP Access key to
write user exit. It will available for only SD module.
Customer Exit is Z include program where we write custom code.We don't need
SAP Access key.
Customer exit and user exit can implement only in a single project. BADI can be
implemented in multiple project.
115.) what is meant by enhancement category?
A.)
116.) what are the steps in oops alv reports?
A.) 1) create a module pool and link it to the report like
screen 100.
2) Place custom controller on the screen and name it.declare
reference variable and create the instance for container
class.In PBO module
3) Declare reference variable and create instance for ALV
Grid and custom container object in PBO module.
4) since alv grid instance is ready now we can call methods
i.e to display,layout etc.
116.) how to navigate to report from report?
note: no transaction code created to report.
A.) We can use SUBMIT key word with different options.SUBMIT
generally bypasses the selection screen if the called report
has any.
syntax for calling a report from another report:
SUBMIT <report-name> [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
117.) why to create a custom BAPI if the BAPI already exists? y to find BAPI again? frankly even
i dint undstnd tne question properly. if any one come across this q please do anser me.
A.)
"...
"endloop.
123.) In ALV, i have to display list in which some records has to display. starting of each
record it should display checkox. and we have to display push button delete. when user
select chekc box and press delete button, that entry should delete. please tell me how to
do it?
A.) hi mr zubera try it in the way
126.) how can we use the text randomly or circularly in smartforms.... means...
suppose i have 'abap' horizantally... but i want it in vertically... how can... plz any
body tell me this....
A.)
127.) How manny master idocs 10 recievers of same data?
A.)1 Master and 10 Communication Idocs.
128.)How u can handle multiple records in Table control?
A.) in table control field names depends on the no of details
field3 = wa_zlock-field3
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
* For Unlocking the table ZLOCK
CALL FUNCTION 'DEQUEUE_EZLOCK'
EXPORTING
mode_ZLOCK = 'E'
mandt = sy-mandt
field1 = wa_zlock-field1
field2 = wa_zlock-field2
field3 = wa_zlock-field3
endloop.
128.)Inner and Outer Join?
A.) he inner join joins the columns of every selected line on
the left- hand side with the columns of all lines on the
right-hand side that jointly fulfil the join_cond
condition. A line in the resulting set is created for every
such line on the right-hand side. The content of the column
on the left-hand side may be duplicated in this case. If
none of the lines on the right-hand side fulfils the
join_cond condition, no line is created in the resulting
set.
Resulting set for outer join
The outer join basically creates the same resulting set as
the inner join, with the difference that at least one line
is created in the resulting set for every selected line on
the left-hand side, even if no line on the right-hand side
fulfils the join_cond condition. The columns on the righthand side that do not fulfil the join_cond condition are
filled with null values.
129.) How to add a column to a table control while using alphanumerical layout
editor ?
A.)
130.) Can we create a field without data element ? If yes what is
the difference?
142.) what is EDI ,ALE , Debugging, Smart Forms ,IDOC'S & BDOC'S
A.) EDI (electronic data interchange) is used to communicate SAP to NONSAP systems.The NON-SAP systems cannot understand the SAP code .For
this problem we use Middleware tools like TIBCO ,SAPXI.
ALE(Application Link Enabling) is a Network.it used to communicate two or
more servers which are geographically existed.
Debugging : Detailed error analysis source code level.it is executed the
program in line by line .
Smartforms : Smartforms is a TOOL .which is used to generate Business
Legal Processing Documents .The Tcode of Smartforms is SMARTFORMS.it
is advanced version of Scripts.
IDOC's(Intermediate Document) : it is a collection of segments .segment is a
collection of fields.IDOC is used to transfer the data between two
servers.Tcode for IDOC is WE30.
143.) 1) How to maintain lists in dialog programming?
2)How to send greeting with different languages to
different regions in smartforms?
3)Can we transfer 100 screen data to pass 200 screen?
4)In reports 1st list o/p can be consider as i/p of 2nd list
how it maintains?
5) In lsmw data length 20 chars only but there is 24 chars
field how can u manage?
6)What is the diff b/w OK_CODE n SY_UCOMM?
A.) 1)by using table control
2)by using tcode se63
3)yes we can transfer 100 screen data to pass 200screen.
4)by using at line-selection
6)1. It is not possible to clear the content of sy-ucomm since
it is a system variable but we can clear the content of
ok_code.
2. The length of sy-ucomm is fixed but the length of ok_code
is not fixed. we can take any length
1. by using table control
2. i dunno but i l go for se63 as above said.
3.yes by selecting push button or function key or double click or menu button.take
the the cursor position values as the input and provide code for next scree.
4. hide, get cursor, read line these are some of the methods used to maintain the
line data that is output selected data.
5. even i dunno that it accept 20 chars only
6.ok_code is user defined and sy_ucomm is system defined.lenth of ok_code is
not fixed but sy_come is fixed. we can clear ok_code data as it varies but
sy_ucomm is system defined so cant be deleted.
144.)Folder in smartforms?
A.) there are two uses by using folder nodes.
1.page protection: as said earlier it is used as a protect endprotect in scripts
2. logical grouping. if you want to put a condition on group some text elements
then you can write the code in folder and apply condition writing at once.
145.) In table control how to maintain 10 records in first page, other 10 records in ohter
page?
A.)
146.) what is the differenc between table control and table control wizard?
A.)
147.) how to change col colors in alv reporting?
A.)
1.slis_specialcol_alv.
2.lvc_s_scol & Emphasize
-1234?
A.)
usually By default the values will print 1234to make the sign to print at left side....
use &WA-TDULPOS(<)&
using sy-lisel will give you the entire row you have
selected,but you should know the correct offsets ,otherwise
you will be ending in wrong selections , better to give a
hot spot on the material no and on selecting that you can
display the details in the secondary lists.
B.) using sy-lisel.
using hide technique
using get cursor also but it allows only perticular field
clicking
153.) n smart forms page no will be displayed as 2 of 15, 9 of 15 but while printing 10 of 15
it does not print correctly tell me how to handle this scenario.
A.) Hi Vikram !! That is because of the space which is not
answer
A.)
IDOC
BAPI
IDocs are text encoded documents with a rigid structure that
IDOCs may
be more changeable from release to release.
Define Routine
Form disp_layout.
gd_layout-info_fieldname ='LINE_COLOR'
endform.
Call this routine before display the grid.
162.) Which and How will you use function module for ALV
Interactive report?
A.)
2.wide casting
it will comes under inheritance concepts.
like creating object for subclass by using that object we
will call super class methods
164.) Report zabc.
Top-of-page.
Write : 'Hello'.
End-of-page.
What is the output of the program.
A.)
169.)Explain V2 Updates?
A.) V1 update takes priority over V2 updates. V1 update can be
performed asynchronously, synchronously & locally whereas
v2 update can only perform asysnchronosly.
170.) What is the structure of CTU PARAMS ?
A.) We should use this structure in BDC call transaxction
for the refference of mode,update and default size
mode TYPE ctuparams-dismodeupmode
update TYPE ctuparams-upmode
defzize TYPE ctuparams-defsize "setting the size of the
output paze
171.)What is partner profile?
A.) The tcode for creating the partner profile is WE20 . These partner profiles are used
when generating idocs i.e sending and receiving idocs.(partner profiles are nothing but
sendor and receiver information ) In this the mandatory things to remember is port
number , logical system , inbound parameters , out bound parameters.
172.) What are the methods of interfacing to SAP?
A.)
173.)What is SAP Package?
A.) A Package is Type of Development object which act as a
go to se71
specify the form name,
utilities
under that activate debugger
sap scripts was debugger.
go to me23n
click on print preview,
one popup will display like sap script was debugger
click on ok button
other window on a page and then go to the next page.don't use page break command
176.) what are various ways of triggering a new page in reports ?
A.) trigger the command new-page.
177.) what will happen if called program is not executable ?
A.)
178.) How do you set background job automatically ?
A.) To maintain or monitor SAP background jobs, enter the Select
A.)
183.) How are exceptions handles in bapi's ?
184.) Why cant we use Normal function module for data transfer?
A.)
185.) How are BAPI different from normal function modules?
A.)
186.) What is direct input method ?
using
A.)EDIDS TABLES
193.) How will u handle the situation In a report using function module to generate a IDOC,
How will u handle the error IDOC in the same report ?
A.)
194.)What is distribution Model?
A.)
195.) Difference between MACRO and SUBROUTINE ?
A.) we cant pass the values in macros and macros cant be called in the other report just
individual table entries using the index. Index access is the quickest possible access.
You should fill a standard table by appending lines (ABAP APPEND statement), and
read, modify and delete entries by specifying the index (INDEX option with the relevant
ABAP command). The access time for a standard table increases in a linear relationship
with the number of table entries. If you need key access, standard tables are particularly
useful if you can fill and process the table in separate steps. For example, you could fill
the table by appending entries, and then sort it. If you use the binary search option with
key access, the response time is logarithmically proportional to the number of table
entries.
Sorted tables:This is the most appropriate type if you need a table which is sorted as you
fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to
the sort sequence defined through the table key. Any illegal entries are recognized as
soon as you try to add them to the table. The response time for key access is
logarithmically proportional to the number of table entries, since the system always uses
a binary search. Sorted tables are particularly useful for partially sequential processing in
a LOOP if you specify the beginning of the table key in the WHERE condition.
199.)What is TYPE-POOLS SLIS?
A.) It is the type group/library which consists of all global
type definitons w.r.t the alv grid structure.
200.)
Difference between top-of-page and top-of-page during at line- selection?
How to create a check box/option button in a list?
How to create a button in selection screen ?
If you write a write statement after end-of-selection, will that be triggered ?
What is the difference between end-of-page and end-of- selection?
What is the Size of the internal tables ?
What is open sql vs native sql ?
201.)
deloitte
ibm
Can i know some of the Realtime tickets that anyone has been faced ?
How to Solve a Particular Ticket in Realtime ?
What are Tickets in Realtime ?
What are Pull and Push Methods?
accenture
taking but
reason?
A.) Change the window height and also check windows are
overlapping or not.
212.)How to insert Signature in Smartforms?
A.) INSERT-->GRAPHICS--->graphics means it takes BMP so here u
Start-of-selection and
AT LINE SELECTION
AT USER COMMAND
AT PF
TOP OF PAGE DURING LINE SELECTION
217.) How to reprocess the failed IDOC? How wil u know idoc is failed?What are tcodes?
A.) by using tcode for reprocessing IDocs BD87/bd88
218.) In Realtime, how you get flat file for BDC session method..
through email or any other source? Who will send you flat
file..your team lead or project lead or project manager etc?
A.) The flat file can be either be either placed in directories
in Application Server (Tcode-AL11) or can be loaded from
Presentation server (Local PC).
219.) What is pseudo comment (#EC) and How it is different from normal comments(i.e. '*' and
'"')
A.) useful in extended synatax check to supress error message
display
220.) What is a difference between - RETURN, EXIT, CHECK, STOP & REJECT - To leave the
processing blocks
A.) STOP: This terminates the block and executes end-of selection.
227.) In se11 -->Tech. settings --> Data class. If I save table as Mater data OR Transaction data,
what effect will it has for 'Storage' in Database after activation. or In Database how it will store in
both the cases.
A.)
228.) How we will handle the Page Breaking in Smart Form?
A.) By using command Node
229.) I a custom table some one has edited and deleted something,
So how we should maintain the log for changed and edited datas
A.) once the ztable fields is created, we will click the technical settings.in that, down
we have check box called LOG DATA CHANGES.if we select the check box, the
log is activated and changes to the existing data record by an application
program is recorded in a log table in the database.
230.) Hi Toall abap gurus what are the variants in alv reports ?
a.)TRANFER DATASET
238.)How do ur write a local sequential file?
a.)Read dataset
239.) if i want to take some matter from a smart form to another
smart form .then how is it possible?
A.) open smartform select node or text --> utilities --> download form -->save it by
providing the location .
then,
open another smartform where you want paste that object
put curser on the target
then utilities --> upload -->save smartform.
if clipboard space issue is there then download clipboard software for more space
so, that u can copy larger containt .
240.) what is process code used in ale idocs ?
A.) Process code is used to identify the fm which is post the
data to SAP system.It is for inbound Idoc.
241.) how can i transport a idoc from development system to production system? in idoc we are
doing bd64 for distribution model view is it mandatory for idoc? and is it possible without creating
a distribution model view we can generate a idoc?
A.) In SM59 Lgoical Sytems area we will have to define the
242.) what exact functionality of the END-OF-SELECTION event? and in a report im using the
END-OF-PAGE and END-OF-SELECTION events which one will triggers first?
A.)
243.) 1. what r the step followed for ALE Idocs ? 2. what is process code ? where it is define
A.)
244.) hi friends i am having one doubt. if i have main window in secondpage also in smart form
wether it will trigger are not?
A.)
245.) WHAT IS DATA DICTIONARY??
process.
* By changing the database catalog (ALTER TABLE) Only
the definition of the table is changed in the database. Data
in the table is retained. The indexes on the table might
have to be rebuilt.
* By converting the table . The database table is
renamed and serves as a temporary buffer for the data. The
revised version of the table is activated in the ABAP
Dictionary and created in the database. The data is reloaded
from the temporary buffer to the new database table (with
MOVE-CORRESPONDING) and the indexes on the table are built.
The database utility provides a number of options for
administering and monitoring requests for database
modifications. You can perform these functions directly in
the initial screen of the database utility.
246.) what are the processing modes of a function module?
A.) There r mainly 2 processing modes of for functional modules.
----> Normal mode , in this we can call Function Module
Locally with in SAP system.
----> Remote Enabled mode , in this we call function module
for non sap system by giving destination in SM59 transaction
code
247.) if multiple badi can be active at a time, how will we know
which implementation will be fired first .
how to know the sequence in which implementation is fired.
A.)
248.) By Applying Sort Method we can execute the BADI'S in any
order.
GO to SE18 transaction code and Utilities>Sort, where in
Interface Tab we can give the list of implementations in a
order.
What ever the ordre we are mentaining in that order the
BADI implementations will execute.
Is it ok else if you need more info let me know.
249.) why do you selected sap abap as your career as there are many technical modules are
there?
250.) How to get the table name from a field?
A.) Lock objects (their developer given names should begin with
EZ or EY) are resident in the ABAP dictionary once they are
created and activated by the ABAP developer. Each lock
object, on activation, creates two function modules
ENQUEUE_EZ<given name> and DEQUEUE_EZ<given name>.
In ABAP dictionary, we can create a lock object by stating
the table name (primary table) we want to lock, its lock
mode (there are three types of lock mode E, S and X
described at the end of this answer) and lock parameters
giving the primary key fields if only a single table is
involved or foreign key field(s) to join this table with
any other required (secondary) table(s) as the process
might demand.
To understand why lock objects are required / needed is
best comprehended by understanding the LOCK (locking of
data about to be changed by business transaction) concept
and lock management first.
Locking of data (in tables or resources) prior to making a
change to the data becomes very necessary to maintain
consistency of data when several people are working on the
same data (table / application) adding, changing and
deleting (records or table entries) records to it. A very
good example of this kind of high end activity on a table
data is seen in a multi-user environment like airline
booking system. A person queries the database for currently
available seats on a flight. If seats are available indeed,
then a booking has to be done. Between the time of query of
seats availability and time of actually booking the
required seats, many seconds/minutes elapse and in the
meantime another person might have already booked thus
bring the balance of seats down and rendering earlier read
balance incorrect. Therefore, when the query is fired, the
user locks the table entry (or entries as the case might
be). After this locking, nobody else gets access to the
same entry until the entire booking is done and balance
seats are decreased and lock released finally.
It is imperative to realize that locks once set must get
released as soon as the need for them is over so that
resources (tables) are released for others to use. There is
a default internal locking mechanism (database lock
administration) of ABAP but this is not sufficient (the
reason is these locks are implicitly released whenever a
Until unless sessions are not processed the data is not update in the database.
it Should not return any value
Error screens are stored into the error logs (SM35)
Update the records synchronous
Call Transaction method:
Update the records fastly.
It should return the value
For error records it will stored the Internal table BDCMSGCOLL
Update the Databae Both synchronous and asynchronous.
258.) what is direct input method and list out the standard programs available. give the
list
A.) go se38--> give rm*--> click on search help button . now it
system get CRASHED. how do i know how many records have been
updated.
A.) function module " format_message" holds the data that
has not updated ,describing in which screen & fied has
occured error.so that u can get how many records have got
updated b4 occuring error.
B.) Normally, in real time it will not happen. But programmer
need to maintain a log manually about the processed and
unprocessed records.
When the system crashes, where is the chance of checking a
function module. So its not possible in that case.
C.) Even though it is bulk data processing, but updating the
database always record by record only. so after calling the
transaction , maintain the status of call transaction in to
one custom table including the record details.
so that we can check the custom table for the latest details
260.) explain the role of CTUPARAMS structure in call transaction
A.)
261.) different ways to process/run the session?
A.)SM35
RSBDCSUB
262.) which method is suitable for call transaction asynchronous
or synchronous
A.) That depends upon the requirement and the nature of
transaction if updates should take place one after another
then we select Syncronus mode if it is not an restriction
then we will select asynchronous mode
263.) 1.How can u set more than one selection screen for one
report?
2.Where u can provide initial values other than in
INITIALIZATION event?
A.)VARIANT,DEFAULT OPTION
264.) If u r working with call transaction method .any problem
occurs error records r stored in BDCMSGCOLL structure.How
the records?
A.) There is no specific method to see deleted record from the
ztable if table log is active we can just see the user id
date and time when the record was deleted.
267.) How to deactivate the sort button from the alv output
A.) In IT_EXCLUDING parameter of 'REUSE_ALV_GRID_DISPLAY'
append the sort function key (&OUP(for sorting in
ascending) and &ODN for sorting in descending). It will
disable or deactivate the sort pushbutton.
IT_EXCLUDING parameter is used for excluding function keys
of standard ALV toolbar.
IT_EXCLUDING short text
Table of inactive function codes
Description
Optional IMPORTING parameter IT_EXCLUDING is an internal
table. You must only fill this table if the caller uses the
standard interface of the list tool but does not need
certain interface functions and therefore wants to disable
them.
In this case, you must enter the function codes of these
standard functions into the table.
268.) When writing BDC for MM01 how do you take care of views?
A.) First check that all the view are same way arrange in DEV
QAS and PRO server and all the field contain same
properties in all the server.
269.)Diff b/w 4.7 and ECC 6.0.
A.) difference between 4.7 and ecc 6.0
4.7e
in this version when u debugging the program it will
display only one screen
this is not compatible for advanced technologies like adobe
forms and framework
ecc 6.0
in this version when u debugging the program it will
display the two screens one is debugging screen other one
is the report screen.
this is compatible for all the advanced technologies like
adobe forms, framework and object oriented programming also.
270.) what is difference between (internal table types)standard table and sorted table in sap
abap....
a.)
271.)Steps for working with Smartforms?
A.) for creating smartforms the trans code : smartforms.
298.) how many ways to delete ztable field values without using table maintenance generator?
what is that?
299.) i can give default values in select-options also then what
A.)
ya u r right.But,
It is poosible to perform some calculations before
selection screen is appeared using INITIALIZATION and
presents along with selection screen.
i.e to display uptodate date,time, etc.
300.) at the same time can i call two transactions in bdc call
transaction method?what happens if use like that?
A.) As per the standard Syntax - only one transaction will be
called at a time
If you want to call second transaction then first
transaction will be called later second one
301.) can we transport text elements and text symblos in reports
from devlopment to quality?is it necessary?
A.) once we created text element or text symbols..we must
assign text element to transport request through program
RSTXTRAN.
302.) what is main difference b/w reports and module pool?exact
answer?
A.) Report: executable program.it only retrieves data,doesnt
supports data updation.
eventhough we make updations thru open sql,but SAP doesnt
supports.
Module program: online executable program.supports data
updation as we r using Transaction.
303.) can we transfer variants from development to Quality?how
can we transfer?is it necessary?
A.) the variant is atached to the object's stuff (like screens,
transactions, fields, tables, screens , etc).
No need to look at variant , while transporting the object
B.) Yes, we can transfer variants across landscape. We can do that by attaching to
a transport request. However this is not necessary.
304.)What is a macro?
A.) If you want to reuse the same set of statements more than
once in a program, you can include them in a macro. For
example, this can be useful for long calculations or
complex WRITE statements. You can only use a macro within
the program in which it is defined, and it can only be
called in lines of the program following its definition.
The following statement block defines a macro macro:
DEFINE makro.
statements
END-OF-DEFINITION.
You must specify complete statements between DEFINE and
END‑OF‑DEFINITION. These statements can contain up to nine
placeholders &1, &2,...., &9). You must define the macro
before the point in the program at which you want to use
it.
305.)AT SELECTION SCREEN OUTPUT AND AT SELECTION SCREEN ON FIELD
A.) At selection-screen : This event mainly used to validate the
user inputs.
At selection-screen output : This event is used for
processing screen . We can enable or disable the screen
blocks and we can make some field active or deactivate at
run time.
306.) how many main windows you can maintain in a smartform?
wt is the types of window in smartform?
A.)
A.)
of user exits .Out of these exits how we will find out that
the particular exit is the exit which we have to code
A.) 1. Put break point with user name and check how the user
exit or badi is triggering.
2. Check for interface parameters like export , import,
Changing and table parameters. Is this interface is
suitable for your requirement ?
Based on above analysis, one can come to conclusion which
one to be used. Badi is preferable over user exit. User
exit is preferable over funky exits( Routones like MV45AFZZ
or MV50AFZ1).
315.) what is search help exit ? can any body explain briefly
A.) Search help exit is predefined function module provided by
SAP with which we can add additional functionality to the
existing search help by adding additional fields.
316.) How to find out the no of implementations done for a badi
A.) In the transaction SE18, enter the BADI name and then display it. In the menu
Implementation->Display, you will see the list of implementations done for that BADI.
There, implementations which are highlighted in yellow represent the active
implementations and the rest are inactive.
317.) what is the main difference between lsmw and bdc ? in which situation we will go for lsmw
instead of bdc?
A.) what is the main difference between lsmw and bdc ?
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.
327.) Can we acheive everything using OOPs? If not? What cant be
acheived?
Have you encountered any scenario liike, you cannot acheive
it using Function modules & can be acheived using Oops?
What is the advantage of BADI over UserExit?
Difference between BAPI and RFC?
A.) OOps has data encapsulation and other security feature in
default.rather in case of API(FM).
BADI - you may have many instance for the same class rather
for same enhancement.order of execution is SAP specific.
User EXIT- you can have only one instance for a pirticular
enhancement.
BAPI - ALL bapi are RFC enabled Function module, but all
RFC enabled Function modules are not BAPI. BAPI is designed
by SAP for specific operation like(Material master Creation
BAPI etc.)
328.) HOW CAN YOU CALL A PAGE EXPLICITLY IN SMART FORMS?
329.) HOW CAN YOU USE A PAGE COUNT IN CALLING A PAGE IN SMARTFORM?
330.) How to write long-text in SAP scripts?
1
1
1
1
1
334.)
Dear Experts pls answer the folowing qs that i have faced
in the recent intvws:
a) Can we execute the script individually? If yes How? Else
what
we need to do so?
b) Are Layout sets Client independent?
c) How do you assign a print program to a script?
d) Can we call a subroutine in a script? If so, how?
e) What are the steps to print SAP script form?
A.) a)yes its possible. goto menu utilities -> Printing test
Used in database management systems as a key which has two or more fields in the
columns in the table, or in a file.
337.) what is the difference between Blocked ALV and interactive ALV?
A.)
338.)Diff fm and subroutines?
A.)
statement does not append a new line, but adds the contents of
the numeric fields in the work area to the contents of the
numeric fields in the existing entry
348.) What will happen if i dont use initialization and start of selction event in report?
A.) by default start-of-selection event present
fieeld get their initial values
349.) Can we change the IDoc number ? if yes..How ?
350.) I am getting the (first) page number and the remaining records displayed in another list in
another page BUT the PAGE Number is not displayed? What is the code/solution?
351.) In Interactive Report : How to come from Secondary List 10 to secondary list 4? what is the
Program code?
A.) from list index 10 to come bck to list index 4 we can use the code as follows.....put
some function code button on application or menu tool bar then code as below
case 'FNCODE'.
when CLICK
CHECK LSIND = 10.
LSIND = 4.
endcse.
352.) Create a Function module that can be called from JAVA using
JCo with an example.
A.) Only thing that you need to do when creating the FM is to
make it RFC enabled. Once you make the any FM RFC enabled
java environment will be able to consume it.
353.) How to write file to application server?
A.) Read dataset <file> for output.
loop at itab into wa.
transfer wa into <file>.
endloop.
close dataset <file>.
354.) what is file handling?
A.)
355.) I wrote one script program,Now i want to transfer this
program from development to production system so that output
is displayed correct in production.please give me the
steps.In development showing correct output but whereas in
production somewhat difference.So what is the problem?
A.) Attach the same printer name which user is going to use &
again allign at Dev. then transfer the request on
Production.
B.) script is client dependent.so if u want to transfer script
program then firstly u need to make a copy of ur script form
from development server to production server with T-code
SCC1 then your script program will run properly.
356.)How to debug smartforms?
A.) 1) One way to debug smartform is to debug the Function
Module of that smartforms.
If you want to debug particular smartform node that the
solution would be,
insert a "Program Line" just above the node you want to
debug and this program line write a normal abap breakpoint.
break-point.
So whenever you call the smartforms, it will stop at this
breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
357.)Leave screen,Set Screen,Call Screen.
A.) With SET SCREEN the current screen simply specifies the
next screen in the chain , control branches to this next
screen as sonn as th e current screen has been
processed .Return from next screen to current screen is not
automatic .It does not interrupt processing of the current
screen.If we want to branch to the next screen without
finishing the current one ,use LEAVE SCREEN.
What is object in OM
A.) In OM STANDARD OBJECTS ARE
O------> ORG.UNIT
C------> JOB
S------> POSITION
T------> TASK
A------> WORK CENTRE
P------> PERSON
K------> COST CENTRE
What are the FM do we use in OM
A.) RH_GET_PERSONS_FROM_POSITION
RH_GET_LEADING_POSITION
HRCM_ORGUNIT_MANAGER_GET
find all the employee under an org. unit
RHPH_STRUCTURE_READ
RH_STRUC_GET
Read OM infotype
RH_READ_INFTY
RH_READ_OBJECT
Maintain OM Infotype:
RH_PM_ENQUEUE
RH_PM_DEQUEUE
RH_PNNNN_MAINTAIN/RH_UPDATE_INFTY
Maintain/Delimit Relationship for OM infotypes
RH_CUT_INFTY
Delimit OM Objects:
RH_CUT_OBJECT
Update database for OM objects operation in background
RH_UPDATE_DATABASE
Determine whether a position is vacant:
RH_GET_VACANCY
mind-tree
Statement?
A.) 1. Provide: statement is used with predefined Macros, if we use macros it is
assured that will work properly, the data has been retrived based on
structures tables. and it cant be used without logical data base or
GETPERNR Statement.
2. Select: statement is used to retrive data from transparent tables,if you use
this statement for retriving data of info types make sure to do proper QA other
wise it may gonna give prob with begda and endda.
363.) What is PNP-SW-FOUND?
A.) its very much like sy-subrc , its used for
rp_provide_from_last in abap hr. Google for more details
364.) What are the standard macros do we use in HR ABAP
A.) RP-PROVIDE-FROM-FRST
RP-PROVIDE-FROM-LAST
365.) What is Macro
366.) What are the organizational related Infotypes?
A.)
367.) What are the personnel administration related Infotypes
A.)
368)Time related infotypes?
A.) 0007 Planned working hours
2001 Absence
2002 attendances
2003 Substitutions
2004 Availability
2005 Overtime
2006 Absence Quota
2007 attendance quota
2010 Employee Remuneration Info
2011 time pairs
2012 Time Transfer Specifications
2013 quota corrections
369.)Payroll realated infotypes?
370.)What is PS STRUCTURE?
371.) What is PAKEY structure, PSHD1 structure and what type of fields it contains?
a.) Each PA Infotype consists of 4 structures-
385.) how to restict the data display in smart form like if i want to display directly in secondary
window.?
A.) Add a condition node and specify conditio n like say
1=2
386.) How to Handel Duplicate entries in LSMW.
A.) Sort Internal table and use Delete Adjacent Duplicate Statement
387.)Nodes in smartforms?
A.) There are diff nodes avilable in SF like:
-window
-Graphic
-Address
-Text
-Table
-Template
-FlowLogic
-Folder, etc..
388.) i want to see a material master data which is at client
side.How can i view that?
A.)
389.) i want to change alighnment of windows in scripts.How can i
do that?
A.) if u have window which is already created, select that page
window and change the measurements(width,height,etc) of that
according to the new alignment place.
390.) Can we create internal table in smart forms or scripts?if yes where and how?
391.) How to delete the field created using APPEND STRUCTURE
(.APPEND)
A.) To delete the .append structure you should have strong reason.
To delete the append structure go to the transaction rsa6
select your data source ex:2lis_02_itm double click on that
and then click on .append structure select change mode and
then click on delete row.
So you can delete / modify the .append structure.
finally activate the .append structure and save it.
other way is go to se11 enter your .append structure name
and then click on extract structure and delete.
prefer first method.
392.)Diff b/w SE16 and SE17?
A.) SE16 allows you to create entries and SE17 doesnot allow
that option
393.) If there are 100 records...explain the BDC session method step by step how you gonna do
A.) 1) move the 100 records into internal table
tcode to that report and call that tcode from your module
pool prog
396.) How can u call a Report from a module pool program?
A.) READ LINE <LINE NO> LINE VALUE INTO V_LINE
A.) In select single, you have to mention all the key fields in
1. Load-of-program
2.Initialization
3.At selection-screen output
4.At selection-screen
5.At selection-screen on value-request
6.At selection-screen on help-request
7.start-of-selection
8.end-of-selection
9.top-of-page
10.end-of-page
following r the addition to the above in interactive report
at line-selection
at user-command
at pf-key
top-of-page during line-selection
end-of-page during line-selection
404.) how to handle multiple line items in bdc??
A.) LOOP AT IT_ITEM INTO WA_ITEM WHERE VBELN = WA_HEADER-VBELN.
INDX = INDX + 1.
CONCATENATE 'WA_SO2-MATNR('INDX')' INTO V_MATNR.
perform bdc_field using V_MATNR WA_ITEM-MATNR.
CONCATENATE 'WA_SO2-MENGE('INDX')' INTO V_MENGE.
perform bdc_field using V_MENGE WA_ITEM-MENGE.
perform bdc_field using BDC_OKCODE '/00'.
ENDLOOP.
405.) how can you display data say "your name"in smart forms without print program or driver
program??
A.)
406.) We have got some values for Field F1 say 1,2,3,4 and F2 say 10,10,10,10.Now can you tell
me what would be the output for F1 if we use At End Of event?and what would be the output for
F2 if we use At Last event?Also i want to know what is the difference between Total calculation
for At end event and grand total for At last event???
A.)
407.)Breakpoint & Watchpoint?
a.) BREAK POINT
to Client(Customer) Specific.
step 2: Create a Remote Function Module and the FM must
having the Exporting as RETURN parameter and Release the FM.
step 3: Create a Business Object in SWO1.
step 4: Release Business Object as well as it's parameters
like methods,interface etc.
step 5: Generate the BO.
step 6: Go Bapi Tcode and Check our Bo comming or
417.)RFC & BAPI?
A.) RFC Stands for Remote Function Call this is similar to Bapi
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it_dynpfields into wa_dynpfields.
IF wa_dynpfields-fieldname = 'V_VBELN'.
V_VBELN = wa_dynpfields-fieldvalue.
ENDIF.
ENDLOOP.
IF NOT v_vbeln IS INITIAL.
SELECT vbeln posnr FROM vbrp INTO TABLE it_posnr WHERE
vbeln = v_vbeln.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'POSNR'
* PVALKEY = ' '
dynpprog = 'Z42778_F4_TEST'
dynpnr = '1000'
dynprofield = 'V_ITEM'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = it_posnr.
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING = v_project
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
ENDIF.
420.)AS A TL WHAT TOOLS USED ON SAP?
A.) During SAP projects, there are several tools that are
forgotten or not very well known, but which helped us to
create better custom solutions that you can take advantage
of. In many cases, these tools help to avoid generating new
proprietary code. A too-high percentage of consultants does
not know all of these tools, or does not use them because
of lack of knowledge or because of some myths or false
assumptions about them. Without going into a deep and
detailed analysis, I will mention some of the most
important tools we should consider for our project:
Reporting:
Report Writer, Report Painter, and ABAP-Queries, the
three report generators available in R/3, very powerful,
and relatively easy to use.
Business Warehouse, the data warehousing tool included in
the SAP licenses: highly configurable and with easy dataextraction functionalities to all other SAP solutions and
integration with almost all standard architectures
(Crystal, Ascential).
Information Systems, the standard reporting structures in
some SAP solutions (R/3).
ABAP List Viewer, a set of ABAP-Objects available to
develop highly configurable reports (lots of standard SAP
reports are developed with these objects).
IViews/MiniApps, standard solutions which include
standard SAP data, graphics, and transactions into a
browser environment (mySAP Workplace/mySAP Portal).
Interfaces:
BAPIs (Business Applications Programming Interfaces), a
set of standard RFCs (Remote Function Calls) to access and
enter SAP data without the typical maintenance problems of
custom developments (SAP maintains these BAPIs).
IDOCs, the EDI objects for connecting on-line with other
systems/solutions.
DCOM Connector, a development kit to simplify the
development of interfaces to SAP solutions from COM+
applications.
SAPGUI Off-line entry tools, a set of different tools to
enter or access SAP data with standard tools like the
Microsoft Office Suite.
SAP Console, a small server to convert graphic screens
421.) I have developed a program where i have used Ranges and the
program is running fine in DEV and Quality server but as
soon as it goes to Prod server it shows some errors.What can
be done in this case??
A.)
422.) If i have locked a program using Locking and iam in
bangalore.How can i give authorization to other user to use
my program who is another place say Pune?is it possible?
A.) f you wish to Lock or UnLock a program Editor Lock it can
be done by the program given below. The SAP System Table
TRDIR has a field called EDTX which is basically the EDITOR
lock filed. Edit Lock facility is given in the PROGRAM
ATTRIBUTES. The EDITOR LOCK is a check box given in the
PROGRAM ATTRIBUTES. If this field is SET then the program
gets locked and if this is Unchecked the the program is
unlocked.
If the EDITOR lock is ON then only the program's author
user who has created the program can edit it. Please find
the program below.
REPORT ZEX_LOCKUNLOCKED .
************************************************************
**
*
ABAPLOVER.BLOGSPOT.COM *
* Editor
Lock *
*
*
************************************************************
**
* Table Declaration
TABLES: TRDIR. "System table TRDIR
*Parameters-------------------------------------------------*
Parameter: P_PROG LIKE TRDIR-NAME,
P_EDITOR LIKE TRDIR-EDTX.
* Select the entered Program
SELECT SINGLE * FROM TRDIR WHERE NAME = P_PROG.
* Set/Remove the lock
TRDIR-EDTX = P_EDITOR.
MODIFY TRDIR.
IF SY-SUBRC EQ 0.
WRITE: / 'Editor Lock update Successful ', TRDIR-NAME.
IF TRDIR-EDTX = 'X'.
WRITE: ' Lock'.
ELSE.
WRITE: ' UnLock'.
ENDIF.
ELSE.
WRITE: / 'Editor Lock update Unsuccessful ', TRDIR-NAME.
ENDIF.
423.) With the use of secondary index we can make a program run
faster but we are advised not to use secondary index why is
that so??
A.) B'coz secondary index is just like a copy of data base
table reduced to specific fields.So,insertion and updation
in database become slow after creation of secondary index
where as read from table become fast.
This is b'coz additional indexes can also place a load on
the system since they must be adjusted each time the table
contents change. Each additional index therefore slows down
the insertion of records in the table
424.)BAPI & RFC?
A.) 1) 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.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range
of object key values, for example, company codes and
material numbers.
BSIK,BSAS,BSID,BSAD,BSIK,BSAK,ANLB,ANLA
430.) any one can tell me which is the tables can store in ddic plese dont say db02l,please give
me different ways of resideing the tables ?
431.) ANY one can tell me what is basic diff b/w keywords STOP,CONTINUE,CHECK,EXIT, ATEXITCOMMAND?
A.) stop : The statement STOP is only to be used in executable
work..
449.) In alv Reports,how the Output is displayed ad editable and
how
i can edit the same and how it will reflect the DB?Please
help...........
=================
The Purpose of the load-of-program is to load the program
into system memory so that the program can be executed.
INITILIZATION:
===============
This triggers when the program is loaded into memory to
initilize the values.
=> When you execute program load-of-program must be
triggered and initilization event exist in the program then
it triggers next.
453.) In MPP,i have to create a input/output Button when i click
ther i have to move some other transaction How?
A.)
module USER_COMMAND_9000 input.
if sy-ucomm = 'SALES_ORDER'. " sales_order is Fcode
CALL TRANSACTION 'VA01'.
ENDIF.
endmodule.
454.)How to create extended idoc?
a.) Extended IDOC is standard IDOC segments + additional
segments.
Steps
=====
2)
Whenever you copied standard script you have to change the
configuration in NACE then it will work.
459.)What is Abap workprocess?
A.) work processes are responsible to execution of the programs. Each request sent
from the presentation server is collected by the dispatcher and assigned to different work
processes in First In First Out Basis.
There are only 5 work process:
Dialog Work Process - at least 2 work process/ dispatcher
Update Work Process - at least 1 work process/ dispatcher
Spool Work Process - at least 1 work process/ dispatcher
Enqueue Work Process - There is only one Enqueue Work process for each system.
Background Work Process - at least 2 work process/ dispatcher
Message Server, Gateway Server, and ICM are services!
460.) In a screen i have 2 radio buttons and 2 text fields,if i
select the one radio button one text field has to be enable
and when i select another one,other text field has to be
enable,in the at selection screen output event how it was
happen?this event has to effect once i press enter
naa.......... how the screen knowing that?
A.) At selection-screen output triggers before the actual
display of the list. So, when u press ENTER button, 'Loop
at screen' written under the event gets triggered. And u
can set the screen parameter 'INVISIBLE' of the
corresponding field to '1'. This is how it works!
461.) In Dialog Prog,i have created a screen and places one
input/output box and named it was "A".In PBO i have given A=0
and In PAI A=1.when i run i program what i'll get and when i
press enter(execute) wat i'll get output?
A.) When you run a program A = 0 because 1st PBO triggers. After
displaying screen you if press enter, PAI triggers but A = 0
only because once PAI triggers again PBO triggers. But In
the PBO A = 0 so that it is displaying the same output.
462.) Can any please explain me what r bundling technics in SAP?
A.) A logical unit consisting of dialog steps, whose changes are written to the database in
a single database LUW, is called SAP LUW.
SAP bundling techniques are:
1) Call function in Update task
2) Perform on Commit
3) Call function in Background task
B.) one of the bundling technic is update bundling.
there are some disadvantages in LUW.to avoid that update
bundling concept is there.
EX:
imagine an application has 15 screens.here n/w trafic is
high btw application server and dbserver (whenever implicit
commit and explicit commit happens a network is maintained
btw app server and dbserver).since the screens are more it
happens so many times so the n/w trafic increases.
To avoid this n/w trafic we have to maintain a buffer in
application server.we have to maintain explicit logic to
create a buffer in app server.
with update bundling ,buffer can be maintain in application
server.But it is not preferable .by default sap follows LUW.
even LUW has disadvantages of n/w trafic,data will be safe
474.) How can I get the default values (like date, company code) in module pool programming
before the screen is displayed?? I dont wanna use VARIENTS..
a.) WE CAN DEFINE IN SCREEN FIELD ATTRIBUTES BY GIVING ID IN
Eventually having discussion between Functional and technical management team its
decided
483.) Worked on support project? How do you handle serious production issue? Severity? Time
taken to resolve the issue? How you get issues/tickets?
A.)
484.) n an internal table you want to modify content of a particular field in a row. How to do it?
A.)Modify keyword
485.) There is a file in application server. How can you upload it
dictionary?
A.)
493.) what are the types of lists in pf-status in mod pool?
A.) list types are--1. normal screen.
2. dialouge box.
3. context menu.
494.) how to create interactive report from alv ?
A.)
495.) what is the code for basic list to 2ndry list?
A.)
496.) suppose you are using session method for 1000 records and
A.)XI,PI,TIBCO.
512.) what objects can be generated by the batch input recorder?
A.) Screens along with field name & field value
511.) what is meant by leave -list processing?
A.)
512.) You are running a report. It is taking long time for
execution. What steps will you do to reduce the
execution time.
A.) Ideally we should follow following thing for good performane
1. Avoid select inside loop (select out of loop and read it
inside)
2. Avoid nested loop and unnecessary extra loop in code
3. Change loop to read if there is a chance
4. Avoid join better use 'for all entries'
5. read internal table using binary search ( Sort it first)
6. If select statement creating problem then index could be
created
513.) How did you test the form u developed? how did you taken print?
A.)
514.) what types of request are used to transport repository objects?
A.)
515.) which part of the internal table syntax determines how ABAp
coding ? Explain me complete step by step scenario from client deciding to switch SAP to your
role of coding and after coding explain me how the object reaches back to client? Dont explain
me about 5 phases like Business blueprint,realization etc? 10.To find User exit in SD module we
can use development class VMOD and find out related exits. Which development class you use
for MM FICO and PP Modules?
A.)
522.) 1/
what r the driver programe used in your script ?
interactive
enabled.
necessary changes.
537.) what is DATA ,TYPES,PaRAMETERS called in ABAP terms?
A.) Types is used to declare data types, that is what will be
the structure of the data object .
and data word is used to define the data object as a
structure of a data type.
Type is the template and the data is the implementation.
Parameter is almost like a data with only one difference
from data that is the value odf parameter is taken from
user at run time and it is connected with selection-screen
538.) 1.How to pass the variables to form?
2. How did you test the form you developed?
3.what are the outpout types and tcodes?
4.what mean by performance analysis?
A.)
5) END-OF-SELECTION is must
when there are Logical Database used in the program
when STOP statemnt is used
and in cases where you need to change the O/P after
printing for example if we need to print the page numbers
in the form 1/10 its not possible directly but through endof-selection.
v1 without Restart.
v2 with restart.
By using this F.M we have To Manage the SCREENS.
582.) what is Catch Command?
A.) In TRY...ENDTRY, CATCH statement is used to specify the
exception classes whose exceptions are to be caught and
handled in following code.
583.) How we can Hide buttons on application toolbar.?
A.) You can hide specific buttons on application toolbar by
using the command SET PF-STATUS .... EXCLUDING .....
eg.
DATA: fcode TYPE STANDARD TABLE OF sy-ucomm.
APPEND 'SAVE' TO fcode.
APPEND 'PRINT' TO fcode.
->SET PF-STATUS 'PF' EXCLUDING fcode.
584) if i want to insert 10 laks MM records and for inserting one
record it takes 1 min by using call transaction or session
method . so here is there any alternative
A.) use bapi..run in bacground
B.) HI,
Break the records into 100/1000 sessions and process ur
session it ll take same time as it takes for single
sessions.
585.) In sap script how to print bar code in vertical manner.
586.) can we write a select query under end-of-selection event.
and will it fetch data.
A.) Yes,You can write and it will fetch data.But the problem is
that it leads to performance issue multipule selection on
database.It is not encouraged.
Useually you use END-OF-SELECTION for formating the outp
587.) how to see the last updated record in a table?
A.)CDHDR,CDPOS(ARRANGE THE DATES IN DESCENDING ORDER).
588.) Wats the difference between package and devolopment class??
A.)BOTH ARE SAME(IN OLD VERSIONS PACKAGE IS KNOWN AS DEV CLASS)
589.) what are the prerequisites for using a bapi in your program?
Endloop.
(2) PAI:Loop at int_tab_nam.
endloop.
596.) To avoid page skipping and to write the contents in the
do u mean by this?
A.) Project preparation:In this phase project manager and
Adminstrator can be involed to analyes the project
requirement.
Bluprint:In this phase Project manager and Function people
can be involed.they analyse which predefined applications
are can be used in this project like that.
Realization:In this Phase Functional people and ABAP
deverlopers can be involved.Functional people will prepare
the functional Specs and ABAP Develpoers can anlyse the FS
and prepare the TS.After Approvel of TS they will start
coding.
After that objects are transport to production
After that project will go to Supporting meaning making
some changes.
600.) suppose i want to print sap script output in different printers at a time what are the
settings i'll have to make?
A.)
601.) what is use of sap script text file header?
A.) we can give any header type elements in that field
used in a table.
d.Note: Some standard tables for which there are long data type fields cannot
be enhanced because, long type fields should always be at the end and
append structures should also be at the end, so there will be a conflict.
603.) when we are using at new?should we use this inside the loop
or outside?what will be the effect?
A.) At New field: it compares with the previous record of the
internal table whether the value is different or not, if
different the event is triggered...all the fields on the
right hand side of the at new field is marked as *...this
is maily bcoz at runtime their are many records for the at
new field say for a carrid there r many connid...ur carrid
is the at new carrid...so if you want to access a connid
system will not undersatand to which connid you really want
to access
At New
1. When a new record comes at new triggers. Atnew only used
inside loop and endloop.
2. At new is controlbreak statment on at new the left side
field change, the event
trigers and the values become 0 and *
604.) what is use of info records,condition records in material
master?
A.) If a customer manages a material with a material code that
is different from the one your company uses, a customermaterial information record is created.
Condit
605.) WHEN TO GO LSMW ,BAPI,BDC FOR UPLOADING DATA.GIVE ME
DIFFERENT SCENARIOS(EXAMPLES).
606.) what is itcsy structure? what is the importance of it? give
me the detailed information of it ?
A.) ITCSY is a sturcture. It is used to pass data from the form
to subroutine without modifying the print program.
A.)
ENDIF.
ENDFORM.
610.) Would WS_UPLOAD function module work if the BDC is run in
Background? If yes explain, If no explain?
A.) WS_UPLOAD will not work in case of background
As background jobs run in application server and WS_UPLOAD
is the FM which require input from the Prsentation server,
so it will not get the file at run time and will give error.
611.) Can we create Enhancements of our own, i.e. customer defined?
A.)
612.) What is the difference between the exits created in M.M and S&D?
A.)
613.) Explain the way(s) you find an exit(s) to a given standard sap program
A,)MODSAP
614.) Whether Project contains enhancement or Enhancement contains Projects?
A.)
615.) Is exit a function module?
A.)
616.) Can we add a field to the sap standard screen? If so, how?
A.)
617.) I want to give a input/output field on list , where can I define it?
A.)
618.) I have one selection screen field which is meant for only display what will You do?
A.)
619.) I have more than one layout in a form, would You handle?
A.)START_FORM.END_FORM
620.) What is the significance of main window in a page, what are
the types of the window?
A.)
A.)
Effect
Outputs the field <f> as a checkbox. The contents of the
first character of f is interpreted as the "status":
' ' = not selected
'X' = selected
The user can change this as required.
Assuming that SAP has not made any changes to the table
that you added an append to, the standard table will remain
the same. The append will still be there as well.
Matchcode object is used to add search help for a particular field in a selection
screen.
A.) 1. REJECT.
2. REJECT dbtab.
Variant 1
REJECT.
Effect
Stops processing the current database table line and resumes
with the next line of the table on the same hierarchy level.
Unlike the CHECK statement, you can also use REJECT within a
subroutine or loop for table selection.
Variant 2
REJECT dbtab.
Effect
Similar to variation 1. In this case, however, dbtab is a
table from the database hierarchy on a level no deeper than
the current database table. Processing continues by reading
the next record of the table dbtab .
Example
Logical database F1S
Hierarchy: SPFLI -> SFLIGHT -> SBOOK
TABLES: SFLIGHT,
SBOOK.
GET SFLIGHT.
...
GET SBOOK.
...
REJECT 'SFLIGHT'.
...
Server?
A.) What Exactly u want i didn't understand, but i think u want
to ask can i upload 50000 record in application server from
datbase server. I think u can do this thing by internal
table with occurs. here u have to give occurs limit like
data: begin of itab occurs 1000.
653.) What is the button to change the variant in ALV ?p
A.) By using the Function Module Reuse_alv_variant_default_get
we change the variant
654.)Can u give me one example where we should use only
CALL TRANSACTION method in BDC?
A.) Call Transaction:When there is need of only one transaction to be updated
such as 'MM01' and number of records are less. And also
while updating the database there will be less load on the
processor, as we know call transaction works in foreground
i.e in online mode then we can use call transaction.
A.) u don't want to register with sap, just u can work only that
ii)if session processing fails data will not be transferred to SAP database tabl
iii.)Sessions cannot run fast and in parallel.
676.) what is technical documentation and functional
documentation?
what are the steps for unit testing?
A.) Functional Documentation contains more into Functional
requirement information.
Technical Documentation contains purely technical
information of the objct like how the selection screen will
be, what are the tables to be used, how the output will be
and etc.,
Unit Testing is depends on object but it is only testing
the developed object and screen shots with different
outputs and all.
677.) how to send the idoc to multiple sub systems?
A.) Before send IDOc to multiple system you haveto configure
logical system(SALE), Maintain RFC destination(SM59),
Create Port(WE21) in all recevied systems..
Next step In sender sytem maintain message type in
Distribution Model(BD64) and maintain outbound partener
profile(we20) in sender system..
In receiver reciver system just maintain inbound partner
profile(we20)..
The above steps repeat for all receivers and finally send
IDOC.
678.) there is size categery(0,1,2,3)if i need more space after
giving the size 0.what i have to do now?
A.) The size category is used to define initial space require
in database. If due to overload of data more size is
require then it will automatically increase in the ratio of
size category.
For example category 0 can contains 0 to 630 records.
When 631 item will be inserted into table automatically
space for next 630 records(as category is 0) will be
provided in database.
679.) what is the difference b/w database and data dictionary?
A.) Data Dictionay is an interface to create objects which will
be get stored in database.
internal tables.
When possible avoid accessing the same data again
and again
Avoid using nested loops instead of that use an
internal table and use the select for all entires statement.
705.) how many structures are in sap R/3(ABAP)
A.) deep structure.
nested structure
simple structure
706.)AT NEW EVENT.
A.) at new is a control-break command.
IT has to be used between loop and endloop.
at new of <f>.......end at.
This is triggered when evee ther is a change in value in
value of <f> or any other fields to the left of <f>.
When this is triggered all the values to the right are set
to 0 and nonnumeric values are set to *.
707.) which of the command flushes the database buffer?
a) $free
b) $tab.
A.) to reset the table buffers we use $tab
B.) $TAB resets the TABLE buffers of the application server
708.) in select _upto N ROWS IF N=0 THEN------------------are rows are selected?
A.)ALL RECORDS
709.) what is the standard script for picking list?
A.) rvpicksin
710.)STRUCTURE AND TABLETYPE
A.) Table type
The table type specifies how you can access individual table
rows via ABAP.
Generally all internal tables are treated as table types.
There are different types of table types like
standard,sorted and hashed.
Internal tables are used only during program execution i.e
data flows into internal table only during program execution.
Data manipulations in internal table during debugging will
not effect database.No memory is allocated for table types
like internal table.
structure
values
Features :
BDC is an automatic procedure.
This method is used to transfer large amount of data that is
available in electronic medium.
BDC can be used primarily when installing the SAP system and
when transferring data from a legacy system (external system).
BDC uses normal transaction codes to transfer data.
Types of BDC :
CLASSICAL BATCH INPUT (Session Method)
CALL TRANSACTION
BATCH INPUT METHOD:
This method is also called as CLASSICAL METHOD.
Features:
Asynchronous processing.
Synchronous Processing in database update.
Transfer data for more than one transaction.
Batch input processing log will be generated.
During processing, no transaction is started until the
previous transaction has been written to the database.
CALL TRANSACTION METHOD :
This is another method to transfer data from the legacy system.
Features:
Synchronous processing. The system performs a database
commit immediately before and after the CALL TRANSACTION
USING statement.
Updating the database can be either synchronous or
asynchronous. The program specifies the update type.
Transfer data for a single transaction.
Transfers data for a sequence of dialog screens.
No batch input processing log is generated.
LSMW:
The LSM Workbench is an R/3-based tool that supports You
when transferring data from non-SAP systems ("Legacy
Systems") to R/3 once or periodically.
The tool supports conversion of data of the legacy system in
a convenient way. The data can then be imported into the R/3
system via batch input, direct input, BAPIs or IDocs.
Furthermore, the LSM Workbench provides a recording function
that allows to generate a "data migration object" in an
740.) what is the difference b/w driver program & print program?
A.) driver program internally created.
print program we have to create
741.) what is the use of protect / end protect control command in
the scripts?
A.) Sap script using Protect end protect avoid the page break.
it is use /: protect
/: text
/: endprotect
742.) what is meaning of idoc monitoring?
A.)Checking idoc status.
743.) can please tell me the differences b/w bapi & bdc?
a.) n case of bdc data transfer takes place from flat file into
sap system ie the file existing in sap system to sap sytem
where is bapi's r remotly enabled function modules which are
assigned to some business objects n used to transfer the
data between different business partners who are using
different systems other than sap.
when you plan to upgrade your system version then bdc
willnot support those upgradations where as bapi's will support.
744.) how can I assign a foregin key relation ship for a
structure?
A.) We can assign foreign key relation for structure component
(field)
Steps.
In structure, Select next TAB (Check Entry) --> you can set
the foreign key
745.) how we will create a bullets in sap-scripts
A.) Open a Script through SE71 in Change Mode and Press "TEXT"
Button, You can view Window. In that goto menu,
press "Insert" option and select "Characters" you can
select the below options
SAP Symbols
SAP Icons.
746.) one client needs material description more than 40 chars so
how can we extend because in standard table material descp
is of 40 chars only
A.) 1. User screen exit and modify the screen in
MM01/02/03.
2. Using Append Structure, create new field in MAKT
(Material Desc)
3. Write User-Exit to populate this new field.
747.) how to print amount in words in alv ??
will the function module spell_amount work ?
A.) Yes,the function module spell_amount will work but there is
some limitation to it as well.
for eg: if amount is '6000' it will read as six thousand.
if amont is '6078',it will read as six thousand
seventy-eight.
but for 6000.78,it will read as six hundred
thousand seventy-eight.
You can try out other combination as well
748.) can we debug the smartform if yes how can we debug
A.) Using SMARTFORM_TRACE
or by putting the break point in program lines
749.) how do you transport a script and how do you transport a
standard texts?
A.) By using standard program RSTXTRAN we can transfer SAP
Standard text from on client to another.
and using standard program RSTXSCRP we can transport script
from one client to another.
750.) in start of selection if we perform validation ,what
happens?
A.) If we validate in Start-of-selection event,then selection
screen will not appear for input.We have to start the
execution of the program again.
751.) how to field properties are set with **** as a password.
A.)
at election-screen output .
loop at screen.
screen-invisible = 1 .
modify screen.
endloop .
752.) can u create more than one selection screen?
A.)
Answe
r
#1
not
Declaration
DATA : IFCAT_TAB TYPE LVC_T_FCAT,
FCAT_TAB TYPE LVC_S_FCAT.
DATA : TLINS TYPE I.
FIELD-SYMBOLS : <LIST> TYPE TABLE, <L_LINE> TYPE ANY.
FIELD-SYMBOLS : <FVAL> TYPE ANY, <FPOV> TYPE ANY,
<TFVAL> TYPE ANY.
DATA : IDATA TYPE REF TO DATA,
NEW_LINE TYPE REF TO DATA.
LOOP AT ALV_FLDCAT_T INTO ALV_FLDCAT.
MOVE-CORRESPONDING ALV_FLDCAT TO FCAT_TAB.
APPEND FCAT_TAB TO IFCAT_TAB.
ENDLOOP.
After creating normal alv field catalogue we can add rows
info as column....
DELETE ADJACENT DUPLICATES FROM IFCAT_TAB
COMPARING
FIELDNAME.
SORT IFCAT_TAB BY COL_POS ASCENDING. "FIELDNAME
CALL METHOD
CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IFCAT_TAB
IMPORTING
EP_TABLE = IDATA.
ASSIGN IDATA->* TO <LIST>.
CREATE DATA NEW_LINE LIKE LINE OF <LIST>.
ASSIGN NEW_LINE->* TO <L_LINE>.
759.) I am trying to automate a manual processing
of iDOCs in
BD87. I used the following code to pass idoc-id
to global
variable 'DCN' and then skip the first screen of
BD87 to go
A.) the tech spec contains the complete pseudo code and flow
logic of u report that u r developing
B.) In technical spec we can mention object business scenrio,
table, user selection screen, program logic, psedo code
and
flow chart.
762.) how can u write in single program call
transaction and
session method logic?
if u write logic in call transaction ,is there
any errors ?
how can u see in session ?
A.) SITUATION..........IF U HANDLE THE ERRORS IN CALL
TRANSACTION WE HAVE SEVERAL WAYS
1)USING FORMAT_MESSAGE
2)WHATEVER U GET THE ERRORS IN CALL
TRANSACTION,SIMPLY PASS
THOSE ERRORS TO SESSION METHOD
................THIS IS THE SITUATION OF BOTH ARE
USING IN
THE SAME PROGRAM...OK
WRITE THE LOGIC FOR CALL TRANSACTION
-------------------------------------CALL THE CALL TRANSACTION
IF SY-SUBRE < > 0.
......MEANS THE ABOVE STAT NOT EXECUTED
SUCCESSFULLY....MEANS WE GET THE ERRORS IN
CALL TRANSACTION
METHOD...OK
SIMPLY PASS THOSE ERRORS TO SESSION METHOD
LIKE THIS...............
.............
CALL THE TRANSACTION BY USING
BDE_INSERT
......PROVIDE THE INPUT...........OK
wa_fieldcat-do_sum = 'X'.
append wa_fieldcat to it_fieldcat.
wa_sort-fieldname = 'KUNNR'.
wa_sort-tabname = 'IT_FINAL'.
wa_sort-subtot = 'X'.
append wa_sort to it_sort.
765.) How to handle Errors in Function Modules?
A.) Using RAISING <ecxeption>
executed?
Eg: Select first field ( ex: kunnr) -> Goto Create source
field double click on it n select kunnr
Repeat like these for all fields
Save the details n F3
772.) what are the events in LSMW?
A.) BEGIN_OF_PROCESSING
BEGIN_OF_TRANSACTION
BEGIN_OF_RECORD
END_OF_RECORD
END_OF_TRANSACTION
END_OF_PROCESSING
773.) After Uploading logo into SAP-SCRIPT How To Check
It is Success fully Uploaded or not?
A
utilites->print preview-> and provide screen as lp01.
Whether
C
D
E
particular user for a transaction.
775.) what can u do in UTP?
A.) UTP:unit test plans
in this we test the task by various test case senarios.
REPORT ZGSK.
*..........AT NEW Vs ON CHANGE OF EVENTs.............. *
ITAB-BUKRS = '1000'.
ITAB-F1 = 'ababcbcb'.
APPEND ITAB.
ITAB-BUKRS = '1100'.
ITAB-F1 = '1233333'.
APPEND ITAB.
ITAB-BUKRS = '1100'.
ITAB-F1 = '3333333'.
APPEND ITAB.
ITAB-BUKRS = '1200'.
ITAB-F1 = '555555'.
APPEND ITAB.
*AT NEW
LOOP AT ITAB.
AT NEW BUKRS.
WRITE :/ ITAB-BUKRS , ITAB-F1.
ENDAT.
ENDLOOP.
ULINE.
*AT ONCHANGE
LOOP AT ITAB.
ON CHANGE OF ITAB-BUKRS.
WRITE :/ ITAB-BUKRS , ITAB-F1.
ENDON.
ENDLOOP.
ULINE.
Conditional Text: IF
transactions.The procedure is
repeat the second step for as many tcodes as you need just
K
L
M CHANGED.
N
O 6) THROUGH CALL FUNCTION AS BAPI IS A FUNCTION MODULE.
P
Q 8)IN THE STATUS BAR WITH A COLOUR YELLOW
R
S 9) I GUESS A POP UP SCREEN OR THE STAUS BAR.
T
U 10) IF YOU DEFINE A FIELD NAME IN A WATCH POINT AND YOU RUN
V YOU PROGRAM, IF THE VALUE IN THAT PARTICULAR FIELD CHANGES
W THEN THE PROGRAM HAULT THERE. ITS VERY MUCH USEFULL FOR
X DEBURGING.
Y
Z 11) THE SPOOL CONTAINS ALL THE PRINTING REQUEST. IT IS A
AA WORK PROCESS IN THE APPLICATION SERVER. YOU CAN SEE IT IN
AB SPAD T-CODE.
AC
AD 12) NO I DONT KNOW.
AE
AF 13) THROUGH RETURN CODE THAT IT EXPORT AFTER RUNNING.
AG
AH 14) RAISE A REQUEST THROUGH SO10 THEN THROUGH STMS
AI TRANSPORT.
790.) wat controls flow logic of online programs?
[or]
at line-selection.
K if sy-lsind = 5.
L
sy-lsind = 2.
M endif.
794.) what are ALV reports? how they are different from normal reports? what are the main
events that are used in an ALV report? what is the use of SLIS type pool in alv reports?
A.) ALV IS ABAP LIST VIEWER .IF OUTPUT IS MORE THAN 255
CASE sscrfields-ucomm.
WHEN 'FC01'.
K endcase.
L
M This will give you the ida how we can add a button in the
N Applicationtool bar .
796.) what does it mean occurs 0 while creating an internal table?
A.) As it was said in the above answer....if you specify
occurs 0 clause, the system allocates 8KB pages of memory
at a time.However ,there are no advantages to using this
occurs 0 other than the fact it is only easier to code
occurs 0 than it is to estimate the size of the internal
table.
M In the next pass again two halfs are made and compared.
N This way BINARY SEARCH works by dividing either data into
O two halfs.
P For internal table......or for anything else....this is it
798.) for uploading master data(ex:customer data) into sap, which
methods you prefer? call transaction/session/lsmw/bapi? why?
A it depends on client requirements.
B generally if large amount of data should have to upload
C then generally prefers session method.if small amount of
D data like only 20000 to 40000 records then call tr.
E preferable.lamw is used for one time requirement only.
F ex.only bank details of vendor or only address data of
G vendor.Bapi is fully oo concept.it is very advantages than
H all oter methods.
799.) How does the inventory get reduced after the delivery?
A.)AFTER PGI
800.) Explain Commit and Roll back?
A.) COMMITMENT: suppose you are updating a table and if you
comit it then the document is updated in the database.
and you have not commited then the entire ata is not
updated in the table and that is known as roll back.
801.) How data is stored in cluster table?
A.) EVERY FILELD BEHAVES AS A TABLE SO WE HAVE TO INSERT VALUES
TO DIFFERENT FIELD OF A PARAMETER.
802.) what is the difference between user-exit & customer-exit?
A.) USER EXITS are FORMS and are called by SAP standard programs
using PERFORM.
2.
Inside the form (user exit) you can read and change almost
any global data from host program.
Inside a function (customer exit) you can only acces your
import/export/changing/tables parameters.
3.
Customer exits are more restrictive but you are sure any
change you can make to any parameters will never lead to
inconsistency
4.
5.
User exits are Basically designed For SD module.
Costomer exits Are available for MM,SD,FI,HR..Basically
designed for all modules.
803.) what is the difference between user-exit & BADIs?
A.) One of the limitaiton of EXits(Enhancement) is that
parallel developments are not possibles . i,e if a
developer is using a particular enhancement then no other
developer can make use of that particular enhancement.
1. Synchronous RFC
In Synchronous RFCs both the Systems must be available at
the time of the call. These RFCs are based on Synchronous
communication.
2. Transactional RFCs
Here the called system need not be available at the time of
3. Queued RFCs.
pdf = it_pdf_output
exceptions
K err_no_abap_spooljob = 1
L
err_no_spooljob = 2
M err_no_permission = 3
N err_conv_not_possible = 4
O err_bad_destdevice = 5
P user_cancelled = 6
Q err_spoolerror = 7
R err_temseerror = 8
S err_btcjob_open_failed = 9
T err_btcjob_submit_failed = 10
U err_btcjob_close_failed = 11
V others = 12.
W check sy-subrc = 0.
AU commit_work = 'X'
AV importing
AW sent_to_all = w_sent_all
AX tables
AY packing_list = t_packing_list
AZ contents_bin = t_attachment
BA contents_txt = it_message
BB receivers = t_receivers
BC exceptions
BD too_many_receivers = 1
BE document_not_sent = 2
BF document_type_not_exist = 3
s_data-low = sy-datum.
lv_datum_low = sy-datum.
K
L
M if sy-subrc eq 0.
N s_data-low = lv_datum_low.
O endif.
P
Q CALL FUNCTION 'LAST_DAY_OF_MONTHS'
R EXPORTING
S day_in = sy-datum
T IMPORTING
U last_day_of_month = lv_last_day_of_month
V EXCEPTIONS
W day_in_no_date = 1
X OTHERS = 2.
Y IF sy-subrc <> 0.
Z * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
AA * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
AB ELSE.
AC s_data-high = lv_last_day_of_month.
AD ENDIF.
AE
AF
AG APPEND s_data.
816.) What are the output type and Tcodes?
A In short : outtype type means type of output..Ex
B print,fax,email,edi,ale..etc
C
- Negative testing
- Positive testing
b = 2.
c = 3 ..
unit test is correct !!!done ...dev completed.
u hav code the requirement..
Adavantages of BAdI
1) Fulfills the requirements of a system infrastructure
containing country versions, industry solutions, partners,
and customers.
2) Business Add-Ins should be considered generalized
Business Transaction Events that can be used to bundle
program, menu and screen enhancements into a single add-in.
3) Business Add-Ins can be created and employed in each of
the various software levels.
4) BAdI can be called namy times. i.e. BAdI implementation
can be assigned to more definations.
823.) why Transaction Varient needed?
A.) IF YOU WANT TO CHANGE THE FUNCTIONALITY OF THE STANDARD GUI
STATUS FOR A PARTICULAT TRANSATION CODE AND THE SCREEN
LAYOUT, WE CAN DO THIS WITHOUT ANY CODING THROUGH
TRANSATIONAL VARIENT.
824.) how to handle the errors (duplicate records) in CALL
TRANSACTION METHOD
and HOW CAN WE SHOW THE ENDUSER ABOUT THE ERROR RECORD
Payroll results can only be imported if the payroll cluster key contains the
personnel number and sequential number.
J
K Before you can import a payroll record, you must select the entry in the RGDIR
on the basis of existing data such as for-period, for-payroll area, for-payroll
category, in-period, in-payroll area, in-payroll category, and so on, in order to
determine the sequential number.
L
M You will probably always have the same queries when importing payroll records.
For example, "Which payroll results (original and retroactively accounted records)
were written for a specific payroll run (defined by in-payroll category, in-payroll
area, in-period)"?
N
O There are standard modules that can be used. It is advantageous to use the
standard modules rather than self-programmed solutions because no program
modifications will be required if the payroll directory changes. The modules are
described in the following section
826.) How can u get the Sales order no. if u know only Delivery
Order?
a
Go to transaction SE16/ SE11 , and enter table LIPS , in
selection screen give the delivary number. and execute.
In next screen the field value of VGBEL (DOCUMENT NUMBER OF
REFERENCE DOCUMENT) is the required sales order number.
827.) How can i develop more than 30 interactive lists in
reports.
A
We can create 30 interactive lists by using submit
statement,means of calling report, in any of the interative
list .
Using Drill-down reports we can create 30 ineractive list.
828.) i want to print 1 tp 100 in sapscript in a single page in a
vertical manner
1 6
2 7
3 8
. .
. .
how will i do it
A
Loop_1 : i = from 1 to 100
write : i, ' ', (i+5).
j = i%5.
if j equal to 0.
i = i+5.
end if.
end of loop_1.
829.)POOLED AND CLUSTER TABLE EX.
A.) Pool tables are: A005,A001
Cluster table:BSEG
830.) What are V1 & V2 updates within the SAP LUW? Why & How they
occur?
Constant windows are the same size and have the same
contents on all form pages in which they appear. They
therefore only need to be edited once when output. The text
editing process is quicker if a window is defined as
constant.
-Package evaluation
-Gap analysis
-Reengineering
-Configuration
-Testing
-Going live
-End-user training
-Post-implementation
Example:
E
F
I
J
K
L
Output: 103,
00000103.
N
O
To delete leading zeros use PACK
842.) How can u transfer the data from one itab to another
without using move & write statements?
A
C
D
or
E
using itab1[] = itab2[].
843.) which table contains the details of all Tcodes?
A.)TSTC
844.)VALUE AND CHECK TABLE.
A.) Value Table - This is maintained at Domain Level.
Check table - For example you have Employee master table &
Employee Transaction table.
E
an idoc by selecting an idoc and initiate WE09.
849.)What is ALE?
A.) ALE: Application Link enabling.
is used to establish the link between two servers/client,
which are not same architecture(one is 2-tire and another
one is 3-tire, like that)
850.) What is the difference between Regression testing vs. Smoke
testing?
A.) regression testing :- it is the testing which is conducted to check whether the
unchanged functionality have got any side effects due to changed
functionality.In brief,when the developer tries to fix any bug,he may not notice
on the unchanged functionality which are related to the bug he is fixing.So,in
such situation the changed code/functionality may have a great impact on the
unchanged code which becomes unnoticed by the developer.
smoke test:-it is the testing which is conducted to test the basic functionality of
the build.If smoke test fails,the entire build is rejected.
B.) regression testing: regression testing means as a tester once verify previous
passed tests after defect fixed again this time passed or not once you check
it.
ex:total 10 test cases
1 to 9 passed and 10th is failed after defect fixed.
again this time also 1 to 9 passed or not once you verify this is called
regression testing.
smoke testing: smoke testing means this testing is done developer.Because
after receive defect from tester then that defect was fixed before release note
or modified build to tester once verify or check it his/her self because any side
effects had come or not.those side effects was effect on remaining test
cases.So once your own self check it defect correctly fixed or not this is called
smoke testing.
851.) What is the bug life cycle?
A.) 1.NEW- first of all a new defect is reported by test er to his test manager.
2.Open- than that defect is opened by the test manager and the next step performed by
the test manager is "REVIEW" in which he will check for three things
a.whether the defect is duplicate or not
b.whether the defect is valid or invalid
c.Deferred-it means if the defect is not much that imp.
and can be handled at next version than that defect is
set as new
3.Assigned- Now the test manager will assign that valid defect to developer for fixing it
4.Fixed-here it's developer responsibilities to fix that bug allocated by his test manager.if
the test is fixed it is sent to tester for retest.
5.Retest-now the tester will retest that part only that was having defect.if that bug has
been fixed than tester will close that defect if not than it will "REJECT FIX" and that will
again "OPEN"
6.Closed-if the bug has been fixed tester will close it ...and after closing regression
testing is being performed to check whether any change has been arrived due to testing
in any unchanged product...
again bug life cycle starts
852.) How many accounting documents generated during billing? and
PGI
A.) 1)A/c doc
2)profitability analysis
3)special purpose ledger A/c
4)controlling doc
853.) What is inheritance and multi-level inheritance? Explain
with example ?
A.) Inheritance is nothing but acquiring the properties of one
class(base class) to another class(child class).
Multi-level Inheritance is nothing but one parent class that
have more than one child class. For Ex, P1 is parent Class
and C1 and C2 are the Child classes, now C1 can acquire the
properties of Parent class P1 and C2 can acquire the
properties of both Child calss C1 and Parent Class P1.
SAP ABAP SUPPORTS MULTI-LEVEL INHERITANCE... SAP ABAP NOT
SUPPORTS MULTIPLE INHERITANCE, ACHIEVES THROUGH INTERFACES
CONCEPT...