Wednesday, 1 April 2015

431.) ANY one can tell me what is basic diff b/w keywords STOP,CONTINUE,CHECK,EXIT, AT-EXITCOMMAND?
A.) stop : The statement STOP is only to be used in executable
programs and in the following event blocks:

AT SELECTION-SCREEN (without additions)

START-OF-SELECTION

GET

You leave these event blocks via STOP, and the runtime
environment triggers the event END-OF-SELECTION.

CONTINUE : The CONTINUE statement can only be used in
loops. If it is used, the current loop pass is ended
immediately and the program flow is continued with the next
loop pass.

CHECK : If the statement CHECK is executed in a loop and
log_exp is incorrect, the statement CHECK immediately
terminates the current loop pass and the program continues
with the next loop pass. For log_exp, you can specify any
logical expression.

Note
Outside a loop, the statement CHECK exits the current
processing block

EXIT ; If the EXIT statement is listed within a loop, it
leaves the loop by ending the current loop process. Program
execution is continued after the closing statement in the
loop.

Note
Outside of a loop, the EXIT statement leaves the current
processing block.

AT EXIT-COMMAND : it is used in module pool programming to
leave the screen without entering madatory fields.it is the
1st module in pai. 


432.) in bdc session method. if u run the record in fore ground manually i have a 7 records but at the time of record processing first record produces the error how can u process records manually in fore ground please tell me any one knows?
433.) please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?
434.) How to run a report in background??and if we try to run in
foreground it says"this report sud be run in
background".what can be done in this case??

2-And how sud we stop a report running in background??
To shedule report in background use transaction code :
sm36 and to stop report running in background use
transaction code : sm37. 
435.)How u can make s_matnr-high field is mandatory?
a.) AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'S_DATE-HIGH'.
screen-required = 1.
MODIFY SCREEN.
ENDIF.

ENDLOOP. 
436.) Suppose i have table with 2 columns say 1st with Numerics and
2nd  with words like 1 for one and 2 for two......so.if i want
to change the 9 numeric word as some twenty...how?

A.)Use modify keyword. read table with key Numerics = '9'.
table-words = 'twenty'.
modify table.
clear table.
437.) I have 100 records and 75th record contains error,if i use
call transaction how many records will update the data base
and if i use session method how many will update?

in CT method upto 74th record all the records will be updated to the database and we have to correct the the 75th row and then we can update it to database whereas in SM not a single record will be updated to database unless and until you clear the error. 
n case of Call transaction method, up to 74 all the
records are processed and on 75 th row user has to correct
error then only it will process further and finally updates
the database.
In case of Session method all the non error rows will be
processed by leaving 75th row. The error row will be shown
in the error message list. 
438.) In Dialog Programming Table Control,how to make only one row
editable?

A.)
439.) What is the use if we define the BAPI as method in BOR? Purpose.....
A.)
440.)BAPI & RFC?
A.) BAPI and RFC enable function module works in similar way.
But when we create BAPI that will be registered in BOR in
SAP. The main difference the way how we will call from out
side of SAP. For RFC we need call directly which is static
method of calling. But for coming to BAPI we need to create
object which is present in BOR and the same object can be
called several times with single instance this will apply OO
concept 
441.) what is difference b/w like and type statements?give example? when to use like and when to use type?
A.) when refering to type-pool you need to use TYPE
declaration, and LIKE is used to refer your already
declared variable. And for declaring native types 'N' 'C'
you cannot use LIKE there.

data: matnr like mara-matnr,
matnr1 type mara-matnr.

will not make any difference in the program. however

data: matnr type mara-matnr,
matnr1 like matnr. when the attribute of matnr
changes will affect matnr1 also.

and LIKE statement become obselete in Object programming.
you can use TYPE statements only there. 
442.) how can we print both side in smartforms? what connects smartform to it's driver program? in which event validation is done?
A.) We can print page in both sides , By setting print mode as
'DUPLEX' in Print attributes of page node.
443.) Can any tell me some std BAPI's which r used regularly....and
they use and means of it?Please it was urgent?????????????
444.) bapi_po_create
bapi_class_create
bapi_charact_create 
445.) what is the z-transaction??
what's the use of it??

Z transaction is used for the execution of customized
programs or reports. for example we did created a BDC for a
Vendor invoice transaction for the legacy data migration
according to the client data. Now that inorder to provide
access to end user we create a t-code for it and give
authorization to end user using se93 transaction.
The same applies for any customized report also. 
446.) How to validate the entry in Screen & dialog proframming??
Is there any way to send the error??
at PAI of screen write
CHAIN.
FIELD MODULE module_name.
ENDCHAIN

double click on module name and write the code with error
message. it'll through the message and will give the chance
to correct it. 
447.) How to find function module or Bapi for particular transaction
in sap?
1)Execute SE93
Give your transaction code.For eg. ME23N
click on Display

Identify the package (here it is ME)

2)Execute SE80
select Package in the left side drop down list
and give the package name that is observed in the first step
click on Display

Expand Business Engineering
Expand Business object types
select your object. here it is BUS2012(purchase order)
double click on it.
Expand the methods
All the tick mark which are in green color we can use.
double click on your methods based on the description
click on ABAP tab
Here you can identify the BAPI 
448.) In BDC,i have 3 transaction and one flat file with data for all those 3 transaction requires........i want to process these 3 transaction at a time using that single flat file,if 3rd transaction fails to upload the record,can we roll back the remaining 2 transaction or we can't?Is it possible in BDC,How?
A.) Its possible through bapi's because it has explicit Commit
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...........

we can edit that by using field catalog , for that
particular field for which one we want to make in edit mode
make FIELDCATALOG-EDIT = 'X' and we can save in the data
base also.
by first we will modify the work area.then transfer that
value to temporary internal table.update the database by
using this value by using key word 'UPDATE or MODIfy based
on your requirement. But modify the Z table only. For sap
table use BDC or LSMW or BAPI.
450.) What is Project management?I was asked weather u worked on
This?
A.)Life cycle project.
451.) I have 3 transactions,where the output of one transaction is input of another and output of 2nd transaction is input of 3rd transaction.i have one flat file with all data for the 3 transaction.if the 3rd transaction failed can we rollback the remaining 2 transactions or not.Is this possible in BDC,How/
452.) What is the diff b/w load of program and Initailazatio Events? Which event triggers each time we exectute the program
a.) LOAD-OF-PROGRAM :
=================
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
=====
1) Create additional segments which you required ( WE31)

2) Create an IDOC type with reference to standard IDOC and
add the new segements to it. (WE30)

3) Link Message type + Extend IDoc type ( WE82)

4) Every IDOC have two Exits( Outbound exit and Inbound
exit). Implement code in outbound exit to prepare data for
additional segments.

4) In the outbound partner (WE20) you have to maintain
extended IDOC type along with standard IDOC type.
455.) Which event in Reports is equal to PBOin Module Pool Program?
A.)AT SELECTION-SCREEN OUTPUT.
456.) I have 2 transactions,the output of 1st transaction is input
of 2nd transaction.In this senario...Which method we use to
upload the Data,Call trans or Session maethod?How?
A.)
457.)In the event at selection-screen output we use loop
screen,what is screen intenal table,structure or DB table?
At the runtime,attributes for each screen field is stored in
a system defined internal table with header line called as
SCREEN TABLE
458.) IN scripts we have std layouts like medruk,in smartform do we
have any?if i copy the std script in zscript and migrate will
it work?
In Smartforms also have standard Forms.
Goto Smartform-> Form -> F4
You can find all the standard smartforms.


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?
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?
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
&secure in the database server.so it can only supports LUw
apart form its disadvantages.update bundling is not
preferable for big application
463.) Diff b/w LUW and Lock Mechanism?
A.)
464.) In Scripts,if we forgot to give the Elements Parameter in the
Functional Module Write_form,then what will happen?
A.)No data display
465.) How to write message without using message class in report?
How to go to edit mode in classical display report, means
that how to edit one of the column after displaying
classical report, not in ALV.
write:/ 'Buddula' INPUT.
WA_FCAT-EDIT = ‘X’.
466.) Can search help be assigned to more than one table? Can
matchcodes be assigned to more than one table?
Search help can't be assigned to Table, it's to the field
of table of sel-screen.
Types of search help -
Elementary
Collective (Multiple Elemetary) 
467.) how can be restore a project deleted in lsmw?

You can't restore a project deleted in LSMW.
However, if you have taken a backup of your LSMW project, you can restore it.

There are options in LSMW to download current project.
When downloaded, it's in the form of a text file.
You can open it using notepad.

Now, if you delete or your LSMW project is lost, you can retrieve it by uploading the text file you saved/downloaded previously.

Entire project including field mapping and custom code will be retrieved.
468.) BDC CALL TRANSACTION carry on synchronous processing and update the database both synchronously and asynchronously,where session method carry on asynchoronous processing and update the database synchrousnously.I want to know the meaning of synchronous and asynchronous processing and also the meaning of synchronous and asynchronous database update.
A.) synchronous means one after the other.
Asynchronous is whole at a time.

Synchronous processing means processing the transactions(i.e
records) one by one.i mean a transaction is done if and only
if the previous transaction is completed.

Synchronous Update means after processing of transactions
records are stored into the database synchronously.I mean if
one transaction is processed it is immediately updated to
database.

Asynchronous processing means processing the transactions
all at a time.
Asynchronous update means updating the database with all the
records at a time. i.e not one by one

in session method all the transactions are processed and
kept in session.the session is then processed and records
are updated to database one by one. 

469.)What is hashed tables?
A.) You can imagine a hashed table as a set, whose elements you
can address using their unique key. Unlike standard and
sorted tables, you cannot access hash tables using an index.
All entries in the table must have a unique key.Hashed table
is useful when your have to work with very big internal
table and to read it with "READ TABLE WITH KEY ..." .

Sample code for Hashed table Creation :
types:
begin of typ_pernr,
pernr like pa0001-pernr,
ename like pa0001-ename,
end of typ_pernr.

data:
ls_pernr type typ_pernr,
lt_pernr type hashed table of typ_pernr with unique key
pernr.
...
select pernr ename into table lt_pernr from pa0001.
...
loop at itab.
read table lt_pernr with table key pernr = itab-pernr
into ls_pernr.
write: ls_pernr-ename, itab-data.
endloop. 
470.)What is cardinality?
A.) Cardinality is define in foreign key relationship..
i.e cardinality is looks as X:Y
X refers Primary Key table and Y refers foreign key table..
it desribes For each value in primary key table(check
table), how many rows of data are allowed to be in the
foreign key table. 
471.) I faced the below questions in written exam, its simple
only but i am not able to find the answer in Google also.
Can any of our family ppls pls give the answer the below
questions?
1.How many days once password will get expire? is it really
in adminstrator hands or what?
2.SAP Logon Password length for ECC-6 and ECC-5
3.Which is the highest organizational level in SAP? Explain
the various level of organizational structure in SAP?
4. You have one idoc, we need to send 3 different system.
It will generate how many master idoc and how many
communication idocs?
5.What is the default parameter in subroutne? call by value
or call by refference?
6. Scope creep is responisible for what?
7.Who approves the project design?
8.When LUW will starts?
9.Which Website used for SAP support?
10.When a print request is not sent, which of the following
is used to send the request again to the printer?.....
a)            print changes b)   print directly c)
                both of the above  d) none of the above
11. Its possible to transfer data into same client using
ALE?
12. Customization changes are automatically stored in a
Transport request or not? Explain
13 User id in SAP support system is called as what?
                a) Userid  b). SAP userid c) S userid d) None of
the above.

14. The sap for utilities is
                a. Program b) Function  c) Approach d) Industry
Solution
15.In Work flow whats the use of WF-BATCH?
472.) What is the difference between data base objects and runtime objects?
A.) Database objects are permanently stored in the database and
exist even after the execution of program. Whereas, run time
data objects are the variables, tables, constants that exist
only during the execution of the program. They allocate
memory only for the run time. The memory is released after that.
473.) Is der any other way or tcode to process the session except
SM35?
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
SET & GET PARAMETER 
475.) what is OSS?please answer if anybody knows
A.) OSS is an online sap services portal which will have all
kind of updates about sap patches and latest note information.

It raises message to get the answer.
you can use transaction SNOTE for downloading and
implementing note. 
476.) There are 4 internal tables containing data. How to put it
into a final table?

u have to do by loop the internal table which having more records compare to other internal table. Then read the other internal table by using read statement.After that move the records into final internal table. 
477.) Is multiple implementation possible for one BADI definition? If possible the how can you know that which BADI is active.
A.) yes multiple implementation is possible for one BADI.
To find the badis existing or implemented for a particular
transaction we can use ST05 (a bit time consuming process)
Goto ST05 --> Active trace --> then goto ur TCODE --> Run
it completely --> come back to ST05 again --> Deactive
trace and then Click on Display trace.
Enter two values V_EXT_IMP and V_EXT_ACT in OBJECTS select-
option click enter, you can see the BADI's existing for the
TCODE and any active implementations for it.
478.) Whom you report if you face difficulty in understanding the
business process given in Functional Spec.
Intitially we will discuss with TL. Later we can arrange a
call with onsite people to solve the difficulty in FS. 
479.) Tools used for internal communication.
A.)Lotus notes
480.) Which function module you will use  to attach a search help
to a field in Selection screen?
F4IF_FIELD_VALUE_REQUEST 
481.) Events in Reporting. Which events we can ignore while coding.
A.) we can ignore Start of selection,should not be preceeded by
any Event. 
482.) How do you do effort estimation? Based on which parameters?
A.) Yes its correct. Each company has some estimator tool that decides, what would be the complexity of the Object. After that Functional people decides the complexity from their end.
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
and separate it as per different fields?
open dataset p_file for input in textmode encoding default.
if sy-subrc = 0.
do.
read dataset p_file into w_rec.
if sy-subrc = 0.
split w_rec at ',' into wa_final-fld1
wa_final-fld2
.
.
.

append wa_final to i_final.
enddo.
486.) How do you monitor sessions?
A.) You Can Monitor the session by using SM35, SM37.
487.) For which transaction you used BDC?

If Iam correct ,there are certain transactions for which
the recording is not possible hence we can not have BDCs
for them for eg transaction CT04.. as one of the
alternatives we can look for standard bapi which updates
the data. 
488.) Performance tuning. How can you know which line of code
taking long time to execute?
A.)ST05(SQL TRACER)
489.) What are the steps  need to setup before creating an IDoc?
A.) Communication Settings:
1) Create and Assining Logical Systems -- SALE
2) Maintain RFC destination -- SM59
3) Maintain TRFC Port -- WE21

( Above configuration required irrespective of sending or
receiving an IDOC).

Mandatory Outbound Configuration:

Matain Distibution Model -- BD64
Maintain Partner Profile -- WE20
490.) What was the purpose of the BADI you have used?
A.)  have implimented BADI ME_PROCESS_PO_CUST &
ME_PROCESS_REQ_CUST for validation of certain fields on
ME21N AND ME51N T-CODES. 
491.) What is parameter id? Where you can find parameter id for a field?
A.)
492.) What are the developments you have done with data 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
there is error in 400 and 500 records.how many records will
be updated to the database?
Remaining 998 records will be updated to DB and the 2 error
records will be placed in session log for further
correction. If you correct those 2 records and run the
session again, the 2 records will also be updated to DB.
497.)TYPES OF SESSION IN SESSION METHOD?
A.) we can say that depends upon the status as
new session,error session,locked session,inprocessing
session, session being creation, session in background etc..
498.) what are the Pre requisites for binary search?
A.)
499.) what are the diff page formats available in SMARTFORMS ?
A.)LANDSCAPE & PORTRAIT
500.)What is serialization?
A.) Serialization plays an important role in distributing
interdependent objects, especially when master data is being
distributed. IDocs can be created, sent and posted in a
specified order by distributing message types serially.
Thus Errors can then be avoided when processing inbound IDocs.
Types of Serialization:
Interdependent messages can be serially distributed in the
following ways:
• Serialization by Object Type
• Serialization by Message Type
• Serialization at IDoc Level (Not for IDocs generated
from BAPI-ALE interfaces) 
501.) the sap standard SAPSCRIPT for picking a list ?
A.) RVPICKSIN is standard program for picking list.
502.) what data types allows length specification ?
A.) The ABAP types C - character, N -numeric and X -hexadecimal
needs length specification.
If you do not declare a length when you define a data
object, the system assigns the default length of 1. 
503.)Full buffering is suitable for which tables?
A.) For tables up to 30 KB in size.
Tables best suited to full buffering are small, frequently
read, and rarely updated. 
504.) what is result set of an inner join at database level ?
A.) f we use inner join it shows the data from parent table
which has data in child table. 
505.) how do find a name of a print program?
A.)TNAPR TABLE
506.) program name for displaying colors , and program name for
displaying symbols in list ?
DEMO_LIST_FORMAT_COLOR_1 Possible Colors in Lists
DEMO_LIST_FORMAT_COLOR_2 Using Colors in Lists 
507.) WHAT IS THE DIFFERENCE BETWEEN FILE PORT AND TRFC PORT ?
A.) FILE port is used for EDI IDOCS
TRFC port is used for ALE IDOCS 
508.) CAN WE DEBUG A MACROS ? HOW DO TO MATHEMATICAL ON TWO NUMBERS ?
A.)NO
509.) EXPLAIN ABOUT RANGES ?
A.) RANGES is a keyword which works like select-options.But the
difference is
1)select-options create a selection screen by default where
as in ranges no selection screen is available by default.

2)And in select-options,sign is I and option is BT by
default. but in ranges we have to mention the sign & option
explicitly.
 
510.) how do you transport FORM from one server to another server ?
A.) use the T-CODE SCC1.
B.) while creating a form it will gives request No like
(DEV900000)then we need to release it in Tcode SE01 then
basis consultant will transport that request to targeted client 
511.) list some middlewares used in EDI ?

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.
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
accesses the rows of the internal table ?
A.)
516.)BADI & ENHANCEMENT?
A.) Enhancements are procedural approach to add new
functionality to the standard functionality
BADIs are Object Oriented approach. 
517.) how should post data from my internal table to flat file manually in bdc .please explain step by step
A.)
519.) what is the effect when a clear ststement is used on an
internal table without header line?
A.)
520.) which releationship can be established in watchpoints
A.)ONE TO MANY
521.) 1.Have you created custom table? Do you always use existing data elements and domains or create new ones? whatis the transaction code to see existing data elements and domains? 2.Performance wise inner join is better or For..ALL entries? why? 3.Where will you place data element domain and field together in an ABAP Program? 4.How will you pass the data/programs from one system to other system? 5.How will you print TOP-OF-PAGE in ALV Report?How will you make ALV Report interactive? 6.In Interactive report if i try to go to 20th list and my report has only 19 list what will be output? 7.Have you worked on Function Modules?How will you raise EXCEPTIONS in function modules? 8.Why you say Call transaction is faster than session? 9.How the business is carried out in your organisation?How did you get specs for 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 ?
 2 / can we change from  classical report to  interactive 
report ?
1.The standard program is RSNATOO.

2. Yes, we can change the classical report to interactive
report by using events. The changing state of field is
known as an event. we can use events to change the
classical report to interactive report. 
523.) How do we see the data in Cluster table?
A.) Through Export Statment u can get data from cluster table 
524.)Performance
A.). a. loop within loop.
b. select endselct.
c. Occur (statements)
d. Move corresponding.
e. use of cluster tables.
f. use select * (all feilds)
g. use of OR statement in select statement.
h. use of negative conditions.

2. Use the following :-
a. loop with reads if needed to be read multiple time.
b. Use of IN statement in select statement instead of OR.
c. use of maxium key feilds with select statement.
d. use of function modules instead of select statement
if it is available. 

In select query Use For All Entries while pulling data from
database.

Frequently don't use inner join in your program

While Looping create work area and process the record

These are some points to improve performance of program 

Clear understanding of requirement.
2. Construct the how-to before actual coding starts.
3. Avoid using multiple read to the same database table.
4. Make sure to use indexed field while reading to database table. 
525.) while sending idoc's to receiving system,i got msg type 3
and 12 in sender side.but in receiving side while executing
we02 ,i am getting error 'no idocs selected' instead of
getting msg type 53.here i am simply sending one material
from one client to other client.if anybody knows that
problem ky revert back.
Just check Inbound Partner Profile Once. The Problem is in
Inbound Partner profile 
526.) Table ztest has a secondary index on the following fields:
tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.

Why is the index not used in the above case?
Choices:
    a) Indexes are not allowed on Z tables
    b) Variables must be used, NOT literals
    c) Select individual fields, not select *
    d) Client is not in the where clause
    e) NE invalidates the use of an index

Info: Can someone explain in detail why this happened? It
will be really helpful to handle to case in Secondary index:
E: NE invalidates the use of an index 
527.) how to call the smart form from the report?is it Possible or
not?
yes it is possiple to call smartform from a report, all we
have to do is at first execute the smarform once, it will
generate a function module number.

Go to the report where to call the smartform call the
funcntion module(ctrl+f6)give function name
SSF_FUNCTION_MODULE_NAME press enter. In the export
parameters FORMNAME give the smartform name within single
codes and in import parameters FM_NAME (F_NAME TYPE
RS38L_FNAM ), give F_NAME which stores the function module
number generated after executing the smart form. 
528.) how to make split command reusable
529.) 1/ what r the parameter used in alv report ?
530.) What is the max no of screen no's we create?
  A.)  1 TO 9999
531.)BAPI & FUNCTION MODULE.
A.) Bapi is nothing but a function module which is remote
enabled.
That means it can be accessed from another application
other than SAP.
Like it can be accessed from Visual Basic, JAva etc.

Functional modules are not RFC enabled. They can not be
accessed from other applications.

Moreover , BAPI internally works on business objects in the
Object oriented way.
But Function module is not object oriented. 
532.) I want to display the different data on the multiple main
windows of the form in Sapscript. Is it possible ? If yes,
then How?
call the write form with the loop for the different data
dispaly at the multiple layout use the &PAGE& commnad and
use the ELEMNTS to trigger the perticular data 
533.) How you can perform field-validation in your dialog
program ?
You can validate your fields in the PAI module of the
program by placing them between the CHAIN & ENDCHAIN
Statement. 
534.) How we can give authorization on the fields of table control in a dialog-programming?
535.) What is the table & field to identify the no of items (bottles) stored in one case?
536.) Suppose Idoc is strucked in the Q then how can I resend it?
A.) To resend the Idoc use WE19 to copy the Idoc and make
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?

1. by using the call by value and call by reference we can
pass the data into the form.

2. by using the debug statement.

3. output types are the whenever display the document the
output is assosiated with the form. so output type is one
type of standard program sap will provided.

4. performance analysis is used to how much time ur program
to execute at the runtime of the system. using the
transaction code is SE30
539.) WHAT IS THE USE OF SECONDARY INDEXES AND WHAT IS MAX LIMIT
OD SECONDARY INDEXES?
SECONDARY INDEXES ARE USED FOR FAST RETRIEVAL OF DAT FROM THE DB TABLES.

WE CAN CREATE MAXIMUM OF 15 SECONDARY INDEXES.
540.) WHAT IS TABLE BUFFERING AND ADVANTAGE?
A.)
Buffering of data from database tables defined in a table
buffer in the shared memory of the current application
server. The definition determines whether and how a
database table is buffered. Buffering generally leads to
greatly enhanced performance (by a factor of between 50 and
500) and is administrated by the database interface.
Buffering usually becomes effective when Open SQL commands
are used for database access. However, some variants do not
use the buffering process.

The following Open SQL statements implicitly bypass the SAP
buffer and access the database tables directly:

SELECT with the addition FOR UPDATE,
Access to a table using single-record buffering without
selecting a single record using SINGLE SELECT or by
specifying the primary key in the WHERE condition (this
behavior depends on the current implementation of the
database interface and may be different in future
releases).
SELECT with the addition DISTINCT,
SELECT with aggregate expressions,
Open SQL statement with the addition CLIENT SPECIFIED,
without specification of the client ID in a WHERE
condition,
SELECT with JOIN expressions
Access to a generically buffered area without full
specification in a WHERE condition
Open SQL statements with IS [NOT] NULL in the additions
WHERE and HAVING,
Use of a subquery in a WHERE condition,
SELECT with the addition GROUP BY,
SELECT with the addition ORDER BY, whereby the sort key is
not the primary key. 
541.) WHAT IS FIELD-SYMBOLS?

FIELD-SYMBOLS ARE THE PLACE HOLDERS TO POINT THE DATA OBJECTS AT RUNTIME. 
Fields symbols are just like pointers in C. They points to
the data object at runtime but do not allocate any memory
for that data object. 
542.) what is partner profile. in which table it can be stored?
a.) when we talk regarding partner functions ,like in SD module
are Bill to party , sold to party ,ship to party (these are
partner functions .the output of one function is the input
for another .

for getting the partner function details,follows the detail
and table name.

vbpa==sd partner functions
knvp == customer partner functions
EKPA = Partner Roles in Purchasing
WYT3 = vendor partner function 
543.) what is the Currency and Quantity field in BDC?
A.) In BDC, for currency, quantity, date and time fields you
need to take the data into a char variable of enough length
and use WRITE TO statement to take care of user settings.

EG: WRITE l_curr TO l_char CURRENCY 'Currency code'.
CONDENSE l_char.

Pass l_char to BDC.
544.) How to handle Error in LSMW. This is urgent anybody know
this answer plz post me...
A.)
545.) hi what is difference between REUSE_ALV_GRID_display and
reuse_alv_list_display .
reuse_alv_list_display gives u the the normal list display
where as REUSE_ALV_GRID_display gives u the grid as
display with more graphical options like some features in
layout 
In Grid display TOP-OF-PAGE event will be used and we can
display logos in REPORT. But where as in case of LIST
display it is not possible. Even edit is not possible in
LIST display but in grid display it is possible 
546.) 1/ how can u move a logo from presentation server to
application server ?
2/ The logo uploaded using rstxldmc prog . where it is
going to store ?
3/ The logo is got inverted then how  u  handle this 
situation ?
4/what r clients ? what r the client no available  in a
company ? 800 client  for which application ?
5/if i will display data by writing statement  on start-of-
selection then what is  need of  end-of-selection in
classical reporting ?
6/ can u use at-line-selection & user-comand at atime in
same programe ?
1) when we upload a graphic from SE78 tcode its moved to
application server

2) The report RSTXLDMC allows a TIFF graphics file to be
uploaded from the file system of the R/3 GUI to a standard
text in the R/3 word processor SAPscript

4)
Client
is a there didgit number which we enter while
logging which helps in data security by preventing the data
from being visible to users in other client

1) A commercially, organizationally, and technically self-
contained unit within an SAP
system
2) Clients have own master records and set of tables
3) Client is the highest level in the SAP system hierarchy

I think 800 client is IDES server for traing purpose


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 end-
of-selection.

6) yes we can use.
In the PF STATUS we must give the tcode PICK beside
the function key F2 in freely assigned keys 
547.) 1/  what is the diff between parameter & range ?
2/ what is  the methodology used in your   project ?
3/  what is system symbol ?
4/   what is the diff between  support project &
implimented project  ?
1.Difference between Parameter & Ranges :
Ranges :it gives 2 values ie) fromvalue and tovalue.we can
use select-options also ranges.It creates 4 selection table
(sign,option,low,high).
parameters do not create selection table and it shows only
1 value.with paramters we can define checkboxes and
radiobuttons.

2.Methodology: project preparation(as-is,to be),business
blueprint,realization,final preparation and go-live.

3.system symbol is the standard symbol used in r/3 for
defining date time,month etc.

4.support project: makes changes or configurations after
implementation projects by means of raising tickets .
implementation projects : doing end-end implementation
projects ie)covering all phases in methodology.implementing
SAP from conventional system. 
548.)BAPI IS EFFICIENT THAN BDC?
A.) Yes BAPI is efficient than BDC.
The BAPI and BDC are actually meant for different pruposes.
BAPI are developed for webservices in which the calling
application can directly call the BAPI and carry out the
required operations, where as in BDC we have to write a
code and then we need to get the data in SAP system in a
perticular format and validate the same and then carry out
the updation or other operations, in case of BAPI is a
business object repository object which can be called from
any application. where as for BDC program we need to get
the input file and execute it manually or as a batch job.

Many of us face probelms in upgradation projects for BDC
programs as the screen sequance of some other settings gets
changed so we need to redo the coding(recording) of BDC and
for some transactions its not possible to record as well
such a enjoy transactions, in these cases BAPI is a very
good and proper alternative.
549.) What is the difference between field string and internal
table?
A.)Fieldstring(workarea)
550.) What is the purpose of Edit Masking?
A.) Edit Mask is Used for Editing Output in ABAP Editor.
for example :

DATA TIME TYPE T VALUE '154633'.

WRITE (8) TIME USING EDIT MASK '__:__:__'.
Output:
15:46:33 
551.)What is substring?
A.) get some data in the string.
ex: string= subrahmanyam.if you willinh go onliy in bitween
the r and a then use substr.
sy:
str1 = str+4(7).
here 4 specifys that staring position of capture data.
7 specifys how meany char can capturng data. 
552.) Withou using SLIN transaction how would you check custom
programs?
A.)SCI
553.) Why we do Version comparison?
A.) Version Comparision is very helpful to the programmers, it
helps us in checking the changes done to a particular code.
we can compare and check if the changes are moved from our
Development system to the test/production system or not.
We can also check what changes were made in which transport. 
554.) You have 5lakh records to transfer to sap from flat file.which method of bdc you wiil choose and why?
A.)SESSION METHOD
555.) How would you debug custom programs at runtime?
A.) Give /h to go to debug when executing.
This is also applicable for standard code. But system
debugging has to be switched on. 
556.) What is Deep structure and Flat structure?
A.) A flat structure only references elementary types.
A deep structure references at least one table type.
557.) How to disable the function in alv tool bar.
A.) n Functional Module 'REUSE_ALV_GRID_DISPLAY', there is an
Optional IMPORTING parameter IT_EXCLUDING. It 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. 
558.) My internal table exceed the limit. then it goes to dump.
how will u handle this issue?
That type of issue never occurred .If there is exceeding
limit, it will be automatically increased memory. For
example we have declared a internal table.
IT type table of Table with initial size n.
If there is exceed record more than n, automatically
increased memory allocation for next multiple of n. 
559.) how to create the new page in alv.(ex: after 50 records it
will trigger new page or based on some condition).
A.)LINE-COUNT
560.) how do the sub-total in sap scripts?
A.) We will do that in smart forms.here some commands are there
to displwy the subtotals.i.e by using "at end of "
561.)HASHED,STANDARD,SORTED TABLES?
A.) So Both Standard and Sorted Internal Tables Can be accessed
by Indexes. Whereas Hashed Internal Tables Can be accessed
By Only Key Fields. For Hashed Tables System automatically
maintain a Hash Algorithm to retrieve the records with one
time hit. For sorted Tables system automatically uses Binary
Search to retrieve the records. For Standard Tables System
Follows Linear Search. 
562.)BADI
A.) As explained above BADI's are the enhanced versions of User-
Exits. Please refer the below steps to find BADI's for
standard trasactions.

Goto SE24.

Give Object Type cl_exithandler and f8.

Double click GET_INSTANCE menthod. In this method apply
brake point for
CALL METHOD cl_exithandler=>get_class_name_by_interface

Then give respective TCode and execute then Debugger will
be getting activated.

Then is changing parameter we can find the all the BADI's
for the given TCode. 
563.)TYPES OF WINDOWS IN SMARTFORMS?
A.) Main window:
In a main window you display text and data,
which can cover several pages (flow text). As soon as a
main window is completely filled with text and data, the
system continues displaying the text in the main window of
the next page. It automatically triggers the page break.
Secondary Window:
In a secondary window you display text and data
in a predetermined output area. There is no flow text
display with page break. If you position a secondary window
with the same name on several pages, the system displays
the contents of this secondary window on each page.
Copy window
You use the copies window to define an output area for the
print output, whose content you want to appear either only
on the copy or only on the original. This allows you to
flag copies as copies when the form is printed.

Final window:
You may want to display or query values on the first page
that are determined only during processing. For example,
you may want to name the grand total in the letter text of
an invoice. However, this amount is determined only after
listing all individual items. Or you may want to query on
the first page within a condition the total number of
pages, which the system calculates only after processing
all pages.
In such a case, you use the final window: Processing first
skips all windows of this type in the tree and works its
way to the end of the tree. Only after the actual
processing is finished, the final windows are processed in
the order in which they appear in the tree (from top to
bottom). Now any information is available that is known
only at the end of the form processing.
564.) The multiple page format is not possible in SAP SCRIPT.

Control form command is used to pass SAPscript control
statements such as an unconditional page break to the form. How to create one page in landscape and the other page
in portrait in Scripts?
565.) Is BSEG and BKPF transaparent tables?
A.) BKPF is the transparent table but BSEG is the cluster
table.

BKPF,VBAK,VBAP,KNA1,COEP are transparent table. user can
allow to create secondary index and allow to do buffer.


BSEG , BSCE are cluster table.should be access by primary
key.not allow secondary index...user can call all field by
select * from BSEG.
566.) What is a Normal,Constant and Variable Window?
A.) main window - for continous data
variable window - has a certain area if the data exeeds the
area it dont get printed
constant window - for constant data ex:rules and
regulations,warnings ... 
567.) Purpose of the statemement TABLE in a report?

A.) Declaration of TABLE statement in Report Program Creates a
WORKAREA for that table(s) in thr Report program.

TABLES: MSEG, MKPF.

This comes handy when you write SELECT QUERY as
select single * from mseg client specified
where mandt = sy-mandt
and mblnr = pmblnr
and mjahr = pmjahr.

So your Data against the parameters will be colected in the
workarea(MSEG).

If you dont declare TABLE(S) & try to to use
Select single *
you will get SYNTAX ERROR....... 
568.)Protect ….Endprotect in sap script?
A.) it is used to keep a block of text in the same page.. 
      it enables u to prevent lines from splitting across pages. 
569.) We give KEEP in BDC structure...what is its purpose?
A.) It is Indicator to keep processed sessions. i.e. If this
flag is set, then session is kept after processing also.
Otherwise, session will be deleted after processing. 
570.)  What are the compulsary values in RESUSE_LIST_DISPLAY and RESUSE_LIST_GRID?
A.) I_CALLBACK_PROGRAM
IT_FIELDCAT

T_OUTTAB  
571.) Want to stop the BDC session in progress.How?
A.)/BEND
572.) how to print barcode in vertical manner

A.) checked out in the transaction se73 where we can see the barcodes.

In that for each barcode there is a field called Rotation.

Will this help you. There if we see the value of 90 then i think it will print in vertical direction
573.) variant attached in the report. can be transportable from
one server to another server

Yes variant can be transported from one server to another,
for that you have to manually attached the variants in th
transport order.

In version 46C (I'm not sure about earlier versions), you
can create a transport request in SE38 for the variants of
a program. You could then use transaction SCC1 to copy
those changes from one client to another.

To create transport:

1) Go to transaction SE38 and enter the program name.
2) Click the radio button next to the "Variants" subobject
and click the "Change" button
3) On "ABAP: Variants" screen, select menu path "Utilities -
> Transport request"
4) Enter the variant(s) you want to copy into the "Variant
name" box.
5) Click the execute button and save the data to a new
change request.

To copy to new client:

1) Log on to target client and goto transaction SCC1.
2) Enter the source client and change request number from
above.
3) Click the execute button.

Please note that if you're doing this in a downstream
system (i.e. not a development box) you may need to change
the client settings temporarily to carry out the client to
client copy in SCC1. 
    574.) how to code in SMARTFORMS for MULTIPLE RECORDS?
A.) If it is regarding printing the mutiple line items in main
window then below steps need to follow in smartform

In Main Window
create TABLE --> create Table line

Loop through TABLE into WA

Create program lines inside loop and pass data to table
line field.

This will print the mutiple line items in smartform.
575.) I have 10 records in flat file. In that 7th  record is
error record. I want to update to data base. If i used Call
transaction method what about 7 record and what about
8,9,10 records. If i used Session method what happen. Is it
updated or stop at 7th  record?
In call Transaction method it depends upon the synchronous
and asynchrounous update in synchrounous it will stop at 7
th record and 7,8,9 record is not updated and BDCMSGCOLL
gives error msg the 7th record. in asynchronous all the
records are updated except 7 record In sesion method
database table is not updated and it will go to sesion log
file . and can analise or correct the error foud in the
data file or program.
if find the error in data file u can correct them
interactevely . other wise u modified the batch input
program. ok thank u 
576.) what is diffrence subroutine in report and subroutine in
script.....
1. in SCRIPT we nedd to give name of the Include Program in
the PERFORM statement.
e,g. PERFORM F_GET_ADDRESS IN PROGRAM ZRETURNORDER.
....
ENDPERFORM

In report program we nedd not give any program name
e.g. PERFORM f_get_data

2.In script we need to write command PERFORM....ENDPERFORM
In report program we dont use PERFORM...ENDPERFORM but only
the PERFORM 'name_of_form'.

3.In script the PERORM ...ENDPERFORM will be in window of
script (SE71)and there is separate INCLUDE prorame(SE38)

In report we can write PERFORM and FORM in the same program
(SE38)
577.) if i login in english then top-of page will display in
english.if i login in german then it will display in german
as on .. abap report how.........
Let see it with an example..

in TOP-OF-PAGE we have.. .following text
GOOD MORNING in text-element text-001

we have to translate this text in the language..in which we
want to login and see the report in that language..
We translate this text by
text-element->goto->translation
select the program and write the translation of all the
text-elements in the program(in our case say FR).
Now, the translated text is present in the system.
Now if i login in FR and execute the same report.
i will find the tranlsated text in the report.
this is done by the system variable sy-langu.
As the login language is FR... the text will be displayed in
french.
Note- if the tranlsation does not exist in the system, then
the text will not at all appear in the report. 
578.) what happend if a select statement inside aloop....

There are cookbook rules in PERFORMANCE issues that are
needed to be addressed while coding. One of those rules
being .. Not to use a SELECT statment in a loop - Reason
(The basic idea of querry is to limit DB hits). 
579.)How to debug ale?
580.)) How can u create a new page in scripts?
A.) in SE71,click on the pages tab
go to the menu bar
expand Edit->Create Element
click on create element 
581.) Pls reply me 1)can i debuging the idoc. 2)give some example of 
pool table and cluster table. 3)what is update module.
yes we can debug the IDOC by using WE19 tcode .
By using this tcode we can test the IDOC and reprocess the IDOC.

pooled tables: prps.
Clusted tables: Bseg.

totally 3 types 0f function modules.
1.RFC.
2.Normal F.Module.
3.Update
In update we have 2 types.
v1 with restart.
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
use bapi..run in bacground 
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.
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?
A.) 1) objects should reside in BOR.
2) BAPI BROWSER(check whether it is released or not).
3) from BAPI browser decide which fm has to use in fact go
and check fm with ur sample data. 
590.) wat is a source list?
A.) Source list is nothing but the list of vendors providing
the
rawmaterials or the goods required for the cmanufacturing
customer.
591.) can we fetch data , when we write a select query under end -
 of - selection    event.
No,because END_OF_SELECTION event specifies that the
database read is completed and it releases the lock on the
logical data base(LDB) 
592.) CAN WE DEBUG A IDOC? IF YES HOW TO DEBUG IN INBOUND SIDE AND
OUTPUT SIDE.

we able to test the inbound idoc follow the below steps to
debug the inbound idoc

1) we 19 give the idoc number
execute
2) click on inbound function module
select the radio button in fore ground
3) check the check box call in debug mode
enter in will go through the function nmodule debug mode. 
593.) A function group contains globally defined internal tables
and function modules defined in it.
FMOD1 populates itab1 and when FMOD2 is called will itab1
contains those values being populated by FMOD1?
If FMOD1 is called before FMOD2 then itab1 contains values. 
594.) To avoid screen resolution problem while recording,
A.) Set Default size = 'X' in CTUPARAMS 
595.) In module pool, when table controls are used the command
that is written in both PBO and PAI is
The commands used in the PBO and PAI events of table
control are:

(1) PBO:-
loop at int_tab_nam with control control_nam cursor
control_nam-Top_line.


Endloop.

(2) PAI:-

Loop at int_tab_nam.

endloop. 
596.) To avoid page skipping and to write the contents in the
same page itself in SAP script, command used is
A.)PROTECT…ENDPROTECT
A.) Which of the following is not an exit command?
Exit, Back, Cancel, Stop.

597.) IN SCRIPTS IF WE HAVE EMPTY SECOND LAYOUT AND IF WE HAVE MENTIONED ABOUT IT IN NEXT PAGE ATTRIBUTE THEN IN OUTPUT HOW WE GET THE SECOND PAGE OUTPUT.
a.)
598.) What is SQL Trace, how would you carried out performance analysis of ABAP code using SQL Trace? Give the steps?
A.)
599.) project preparation,prepare blue print and realization what
do u mean by this?
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 
602.) what is difference between include structure and append
structure?
a.Normal Structures (which are includes) starts with .include where as Append structures starts with .append
b.Append Structures are used only to enhance standard tables where as Includes are used to enhance Ztables.
c.Append structures should be added at the end of a standard table. This is a must because we should not change the original standard table in the middle whereas Include structure allows adding one or more structure into structure or table. Also placed positioning anywhere. Up to 9 include structure can be 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?
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?
If a customer manages a material with a material code that
is different from the one your company uses, a customer-
material 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 ?
ITCSY is a sturcture. It is used to pass data from the form
to subroutine without modifying the print program.


perform changing itcsy.

endperform. 
607.) In interactive reporting, suppose i go to N'th list from
basic list(primary data) & i wanna come back directly to
basic list. So how can i achieve this without using ESC or
back button?? Is it possible using set screen 0??
By using sy-lsind = 0 we can return to the basic list.
Actually the basic list has lsind field set as 0 and all
other detail list may have index starting from 1 to 20. As
we may have 20 detailed list for one basic lis
608.) Between select .........endselect write one statement
executes the cursor goes to dump analysis?what is the
statement ?
Statements like CALL SCREEN , CALL DIALOG , CALL
TRANSACTION or MESSAGE are not allowed within a SELECT ...
ENDSELECT loop.
609.) Can we call a subroutine in a script? If so, how?

Yes. Subroutine can be called using ITCSY structure.

Sample Code:
/: PERFORM SUM IN PROGRAM ZPROGRAM
/: USING &VAR1&
/: USING &VAR2&
/: CHANGING &RESULT&
/: ENDPERFORM

In the program(ZPROGRAM), we need to write the form ....

FORM SUM TABLES INTAB STRUCTURE ITCSY
OUTTAB STRUCTURE ITCSY.
data: field1 type i,
field2 type i,
result type i.

TO read the values from the ITAB you have to use this logic.
READ TABLE INTAB WITH KEY NAME = 'VAR1'.
IF SY-SUBRC = 0.
FIELD1 = INTAB-VALUE.
ENDIF.

READ TABLE INTAB WITH KEY NAME = 'VAR2'.
IF SY-SUBRC = 0.
FIELD2 = ITAB-VALUE.
ENDIF.


RESULT = V_FIELD1 + V_FIELD2.
READ TABLE OUTTAB INDEX 1.
IF SY-SUBRC = 0.
OTAB-VALUE = RESULT.
MODIFY OUTTAB INDEX 1 .
ENDIF.
ENDFORM.
 
610.) Would WS_UPLOAD function module work if the BDC is run in
Background? If yes explain, If no explain?
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?

Main window is usefull for continues test
Windows in Sap Scripts
1.main window-continues text
2, varable window-for address
3.constant window-for page header and footer
4.graphic window-images 
621.) How do you know that data is updated in call transaction
A.)
622.) What are control commands in sap scripts?

The control commands in SAP SCRIPTS are

NEW-PAGE -Explicit Page Break
PROTECT..ENDPROTECT -Preventing Page Breaks
NEW-WINDOW -Next Main Window
DEFINE -Assigning a Value to a Text Symbol
SET DATE MASK -Formatting Date Fields
SET TIME MASK -Formatting Time Fields
623.) I have 2 fields like customer and name having 20 records on basic list. When I select 5 records randomly, I want to get the address of particular customer selected in secondary list?
A.)
624.) User has given the specification to display the Check boxes
on the list, how
    will you handle this situation.?


WRITE - Output as checkbox


Effect
Outputs the field 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.


DATA: chkbox(1) TYPE C VALUE 'X'.
...
WRITE chkbox AS CHECKBOX. "checkbox selected
chkbox = SPACE.
WRITE chkbox AS CHECKBOX. "deselected
WRITE chkbox AS CHECKBOX INPUT OFF. "deselected, protected 

No comments:

Post a Comment