| Back to Questions Page |
| |
| Question |
5. I have two pages, In one page I want address, Header,
Main &
footer. In the second page
I want only Main. How to do it?
|
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | In first page you attached address window, Header window,
Main Window nad footer window.
In second page you can attached only main window.  |
| Shahnawaz Akhtar |
| |
| |
| Question |
What are the Text – elements inscripts. Where you declare
this. What is the use to this.
|
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Any text that needs to be written on the output document
should be placed within a text element. This includes
constant text as well as variable data like internal table
data coming from the ABAP program.
It is advisable to group logically related data within one
text element.
The fields of various tables defined in the ABAP program
will be included under these text elements. These fields
are carriers of data. Every field should be included in a
pair of & characters. (e.g. &aufk-aufnr&)  |
| Herambarao |
| |
| |
| Answer | text-elements are used to declare the variables of the
window of a form. variables here are the static variables.  |
| Sunil |
| |
| |
|
|
| |
| Question |
. How to transport scripts ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Hi,
We can directly transfer the scripts with CTS,
But the standard text should transport seperate CTS.  |
| Herambarao |
| |
| |
| Answer | Hi
we will transfer the script by using change transport system
the transaction code is SCC1  |
| Sateesh |
| |
| |
| Question |
6)what are the table controls in BDC ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Table control are use update the date directly into the
fileds by using two ways.
We can handle the table control by using the CTU params or
creating the line Index.
If this is wrong please correct me...
Please check code
REPORT Y730_BDC5 .
*HANDLING TABLE CONTROL IN BDC
DATA : BEGIN OF IT_DUMMY OCCURS 0,
DUMMY(100) TYPE C,
END OF IT_DUMMY.
DATA : BEGIN OF IT_XK01 OCCURS 0,
LIFNR(10) TYPE C,
BUKRS(4) TYPE C,
EKORG(4) TYPE C,
KTOKK(4) TYPE C,
NAME1(30) TYPE C,
SORTL(10) TYPE C,
LAND1(3) TYPE C,
SPRAS(2) TYPE C,
AKONT(6) TYPE C,
FDGRV(2) TYPE C,
WAERS(3) TYPE C,
END OF IT_XK01,
BEGIN OF IT_BANK OCCURS 0,
BANKS(3) TYPE C,
BANKL(10) TYPE C,
BANKN(10) TYPE C,
KOINH(30) TYPE C,
LIFNR(10) TYPE C,
END OF IT_BANK.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER
LINE.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = 'C:\VENDOR.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = IT_DUMMY.
LOOP AT IT_DUMMY.
IF IT_DUMMY-DUMMY+0(2) = '11'.
IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
APPEND IT_XK01.
ELSE.
IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
APPEND IT_BANK.
ENDIF.
ENDLOOP.
LOOP AT IT_XK01.
REFRESH IT_BDCDATA.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
IT_XK01-LIFNR.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-TELX1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORTL.
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_field using 'LFA1-SPRAS'
IT_XK01-SPRAS.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
DATA : FNAM(20) TYPE C,
IDX TYPE C.
MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKS.
CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKL.
CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKN.
CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-KOINH.
IDX = IDX + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'WYT3-PARVW(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_BDCMSGCOLL.
ENDLOOP.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.  |
| Herambarao |
| |
| |
| Question |
What type of user exits have you written? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte , KING FISHER |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Mainly User Exits are of four types.
Menu Exits
Screen Exits
Function Module Exits
Field Exits.
generally Menu exits,screen exits and field exits are using
mainly.
which exits u know particularly. u tell that exits only.  |
| Malli.gontla |
| |
| |
| Question |
have you used performance tunig?what major steps will you
use for those |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Deloitte |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | These are all performance tuning steps:
performance techniques
Ans:
Run Extended syntax checks with character literals check box
switched on & Code Inspector to rectify all relevant errors
and warning
Transaction SE30 (ABAP Runtime Analysis) must be checked to
measure/compare program performance/runtime
Use transaction ST05 (SQL Trace) to see what indices your
database accesses are using. Check these indices against
your "where" clause to assure they are significant. Check
other indices for this table and where you have to change
your "where" clause to use it. Create new indices if
necessary, but do not forget to check the impact by
consulting onsite coordinator.
Internal Table is defined with "TYPE STANDARD TABLE OF" &
Work-Areas is used instead of header lines
Global variables are minimized by declaring local variables
or by passing variables through parameters & arguments while
creating internal subroutine(s)
In SELECT statement, only the required fields are selected
in the same order as they reside on the database
table/structure/view
For selecting single row from a database table, "SELECT UP
to 1 Rows" is used. "Select Single" is used only when full
primary key combination is known
No SELECT * is used
Use "SELECT INTO TABLE" rather than "SELECT INTO
CORRESPONDING FIELDS OF TABLE"
Always specify as many primary keys as possible in WHERE
clause to make the Select efficient
Always select into an internal table, except when the table
will be very large (i.e., when the internal table will be
greater than 500,000 records). Use "Up to N Rows" when the
number of records needed is known
Select statement within a GET event is not used
Wild cards like 'A%' is avoided as much as possible
Nested Select is not used instead "Inner Join" and/or "For
all Entries" is used. "For all Entries" is to be used over
"Loop at ITAB / Select / ENDLOOP" (FOR ALL ENTRIES retrieves
a unique result set so ensure you retrieve the full key from
the database)
When creating joins over database tables there should be an
index at least on the inner table for the fields in the join
condition else use " FOR ALL ENTRIES" select statement
Usage of JOIN is limited to a maximum of 2 i.e. not more
than 3 database tables are joined at one time
CHECK that the internal table used in FOR ALL ENTRIES is NOT
empty as this will retrieve all entries from the table
Delete adjacent duplicate entries from internal table before
selection from database table using " FOR ALL ENTRIES" statement
For copying internal tables use '=' operator instead of
Looping & Appending
SORT inside a LOOP is not used
Sort internal table by fields in the correct order, which
are used in a READ TABLE statement using BINARY SEARCH. If
the order of sorting is invalid the BINARY SEARCH will never
work
For large internal tables where only some rows are to be
processed, use SORT and then the READ TABLE command is used
to set index to first relevant row before looping from that
index. Use CHECK or IF…EXIT…ENDIF as appropriate to exit
from the loop
Sort fields and Sort Order on the SORT statement should be
mentioned explicitly (e.g. SORT ITAB BY FLD1 FLD2 ASCENDING)
Hashed table is used for processing large amount of data
(provided that you access single records only, and all with
a fully specified key)
DELETE or SORT is not used on a hashed table since it
increases memory consumption
Sorted table is used for range accesses involving table key
or index accesses
Fields specified in the WHERE condition with the critical
operators NOT and <> (negative SQL statements) cannot be
used for a search using database indexes. Whenever possible
formulate SQL statements positively
When coding IF or CASE, testing conditions are nested so
that the most frequently true conditions are processed
first. Also CASE is used instead of IF when testing multiple
fields "equal to" something
LOOP AT ITAB INTO WORKAREA WHERE K = 'XXX' should be used
instead of LOOP AT ITAB INTO WORKAREA / CHECK ITAB-K = 'XXX'.
Also READ TABLE INTO WORKAREA should be used instead of only
READ TABLE.
After the APPEND statement inside a loop, the work area that
has been appended is cleared
Internal tables, Work areas & Global Variables are freed
when no longer needed (e.g. using the FREE / REFRESH
command), especially when the tables are large or the
program is a batch program
Do not delete the records of internal table inside the Loop
– End loop.
Do not use: LOOP AT ITAB WHERE EQUNR = '00001011'.
DELETE ITAB.
ENDLOOP.
Use: DELETE ITAB WHERE EQUNR = '00001011'.
Use the MODIFY ITAB ... TRANSPORTING f1 f2 ... for single
line, and MODIFY ITAB ... TRANSPORTING f1 f2 ... WHERE
condition for a set of line, to accelerate the updating of
internal table
If possible, Update/Insert statement is used instead of Modify
Is the following steps ensured during database updates?
* Lock data to be edited
* Read current data from the database
* Process data and write it to the database
* Release the locks set at the beginning
Try to avoid logical databases. If your program uses a
logical database, but does not require all fields belonging
to a certain GET event, always use the FIELDS addition to
reduce the amount of data selected by the logical database
Avoid the aggregate (Count, Max, Min) functions in the
database selection
Use Parallel Cursor methods for nested loop into the
internal tables if second internal table contains
considerable number of records
In Smartform/ Sapscript do not make redundant data retrieval
where data is available in interface  |
| Malli.gontla |
| |
| |
| Question |
How to create standard text and how do u transfer it ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ IBM |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | By using [so10] tcode we can create standard text. for
transporting we use RSTXTRAN  |
| Vandan |
| |
| |
| Question |
What are the views when we are creating Material ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ IBM |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Hi
Views are the data of the material of defferent domains.
Like if u create the material with the basic data then the
entry will be only in the table mara & makt.
But if u create the material with the plant or MRP or
storage location data then the other views will also get
created. the data u can find in tghe related tables as
marc & mard.  |
| Sami |
| |
| |
| Question |
What is the button to change the variant in ALV ?p |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ IBM |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | By using the Function Module Reuse_alv_variant_default_get
we change the variant
If wron please correct me  |
| Herambarao |
| |
| |
| Question |
3) Will 50,000 records be uploaded directly into APP's
Server? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | U must use Call transaction or session method only.  |
| Malli.gontla |
| |
| |
| Answer | 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.  |
| Vineet Kumar |
| |
| |
| Answer | Yes 50,000 records can be directly uploaded into
Application server.  |
| Rakesh .a |
| |
| |
|
| |
|
Back to Questions Page |