Sei sulla pagina 1di 27

Re: How to Delete an LSMW Projcet, Subproject and Object.

Answer
# 1
run transaction LSMW
then GOTO ADMINISTRATOR
choose which project subproject orelse object needs to be
deleted and then click on delete button
-----Re: how many types of windows are there in SMARTFORMS?not in scripts?
Answer
# 4
we have four types of windows in smartfors.
1.main window
2.secondary window
3.copies window
4.final window
------Re: what is the use of OK_CODE in BDC?
Answer
# 1
BDC_OKC0DE will store all the ok codes in the BDC program,
when you pass the Fields to a scrren after filling the
fields we need to click any button to move other screens,
so here the Button will be have a OK_CODE internally to
know this we do the recording of the Program, after that we
will store this OK code in the BDC_OKCODE field to trigger
the next operation.
Regards
Mallesh
------------Re: which command is used to flushes the database buffer?
Answer
# 3
$tab is command which flushes database buffer.
------Re: how to change the package of an object?i.e a report stored in ymadhuri packa
ge.now it should be changed to ysaru
Answer
# 2
GOto SE38-->
Goto-> Object dictionary entry->
Click on change button->
Remove previouis package name.
Enter your new package name.
Click on save.
If you want a new request you can create.
-----------Re: what is need of function group for function modules whereas there is no nee
d of f.group for subroutines?
Answer
# 1
Hi Friend
Plz go through these 3 points , carefully absorb and it

might be clarified your doubts.


1)Need of function modules is to avoid the lengthy and
faster accessing data,how means,suppose for example: i want
the previous month first day and last day based on Today
date(means day Sunday or Monday or etc)Actually today date
is 19Apr2008,Saturday. I want previous month first day and
last day, ie first day is 1Mar 2008 it is Sunday or Monday
or Tuesday etc and like last date 31Mar 2008 is Monday or
Tuesday etc. Generally you need to write lengthy coding , so
to avoid lengthy coding just u use date function module in
coding and pass the parameters, it will give the out put to
u(just few lines of coding)
2)Function groups means, some related function modules are
grouped in to one function group.
For Example: For date lot of different date function modules
are available in SAP R/3, so these function modules are
grouped in to one Function group.
3)Subroutines are used in only with in the program.
Frequently used part of program is keep in to subroutines.
Globally not available. But where as Function modules are
available in central library of R/3 and global access.
If any doubts plz contact me via mail : malli.gontla@gmail.com
---------Re: If i work in an implementation project will i have to register with SAP?What
is the process of blue printing?What is the role of an abapper in implementatin
project? Regards,
Answer
# 2
Hi above answer is wrong.
This is correct one
u don't want to register with sap, just u can work only that
project. everything do company.register with sap is company's
work. that is not developer.
blue print meals, suppose one company wants to start sap,
ie. newly development. at that time technical managers
prepare some blue prints, means how many developers need to
develop project (for abap,sd,mm etc)
that blue print contains the what are the aims and goals of
company. in implementation project abapers will do develop
thereports,scripts,bdcs etc according to there requirement.
regards
Malli
=============
Re: What is the role of an abapper in support project?What is the ticket concept
in support project?Who raise the ticket and who resolve it?Let me know the comp
lete procedure?
Answer
# 1
In support project, abaper role is to support project. how
means support people will raise tickets(problems occur in
reports etc) and send to abapers with some id. abapers will
do the work. and they contact to support people that id.

In support project there should a SAP Support Team and the


Team members had given an ID , If the user gets any errors
he can issue the tickets to that iD for a particular Consultant.
-----------Re: what is cardinality?how it works in ABAP?
Answer
# 1
The cardinality (n:m) describes the foreign key
relationship with regard to the number of possible
dependent records (records of the foreign key table) or
referenced records (records of the check
table).
The left side (n) of the cardinality is defined as follows:
 n=1: There is exactly one record assigned to the check
table for each record of the
foreign key table.
 n=C: The foreign key table may contain records which do
not correspond to any record of
the check table because the foreign key field is empty.
This can occur for example if the
field of the foreign key table is optional, in which case
it does not have to be filled.
The right side (m) of the cardinality is defined as follows:
 m=1: There is exactly one dependent record for each
record of the check table.
 m=C: There is at most one dependent record for each
record of the check table.
 m=N: There is at least one dependent record for each
record of the check table.
 m=CN: There may be any number of dependent records for
each record of the check
table.
-----------Re: can labels generate in smartforms?if yes how?
Answer
# 1
Labels generation is not possible in smartforms.
---------Re: what is manue table field in NAST table?what is its purpose in sap scripts?
Answer
# 1
NAST used for message status of script that whether form
is executing correctly or there are any issues,is form is
ready to print,whether it is revised , changed ,saved etc.
-------Re: whai is the transaction code or table to see all print programs
Answer
# 2
USING STANDARD TABLE NAME TNAPR.
-------Re: what is the transaction code to create LOGO in sap scripts?
Answer
# 4
Hi

There is no transaction code for creating Logo in scripts.but


U can create the logo with color or black and white, and save
this one with tiff or jpeg file format.
After creating u can upload it through se78 or by run the
transaction RSTXMLDC from abap editor
-------Re: How to create Reports with Radio Buttons, which gives sales information, Del
ivery information and Billing information. plz mention the detail coding Tahnks,
Rahul
Answer
# 1
Hi
see the example
Parameter: sales_information radiobutton group g1.
Delivery_information radiobutton group g1.
Billing_information radiobutton group g1.
u write it for selection criteria.
then u write the event
at selection-screen on radiobutton group.
u write query for each one here.
when u select first one, first query is executed, then
second executed for second etc.
---------Re: How to Create an Interactive List based on the selection criteria specified
for the customer number for displaying the customer information on the basic lis
t, their corresponding order details on the secondary list. Plz specify the codi
ng details. Regards, Rahul
Answer
# 1
Hi rahul, i think u r newer and also learning abap.
i am giving the idea to u. u just follow my points.
in selection criteria u use select-options statement
eg: select-options <field> for <table-field>
here <field> is name of field and
<table-field> is name of table filed( ur field customer no)
u write a query for basic list in start-of-selection block.
and u must write hide statement after first sql query only.
hide is mainly used to display secondary lists. then u write
write At line-selection event for secondary lists.
in this event u write sy-lsind=1 for first secondary list
and for second secondary list sy-lsind=2. so on. up to u can
write 20 secondary lists, but only one basic list.
---------Re: What is the process of project flow n sap?In context to project flow what ar
e the role of an abapper?
Answer

# 1
Project flow contains 5 Phases. These 5 Phases are called
ASAP methodology.
Phase 1: Project Preparation
Phase 2: Business Blueprint
Phase 3: Realization
Phase 4: Final Preparation
Phase 5: Go Live and Support
Plz go through this link for detailed information.
http://training.saptechies.com/category/sap-asap-documentation/
Mainly Abaper is involved in Phase:3.
He/She developing the objects according to Business blue
prints(Tech Spec).
-------Re: What is the role of an abapper in developement process? What is the process
of technical specification and how it is carried out?
Answer
# 1
Abaper main role is to develop the objects according to
Technical Spec.
Functional people develop the Functional Spec according to
the client requirement. they will send to technical people.
Tech lead is changed the Functional spec to Technical spec
and forward to Abapers. Abapers will develop the objects by
using spec
--------Re: What is the role of an abapper in developement process? What is the process
of technical specification and how it is carried out?
Answer
# 1
Abaper main role is to develop the objects according to
Technical Spec.
Functional people develop the Functional Spec according to
the client requirement. they will send to technical people.
Tech lead is changed the Functional spec to Technical spec
and forward to Abapers. Abapers will develop the objects by
using spec
-----Re: what connects smartform to it's driver program?
Answer
# 2
once we will activate the smartform , then one function
module will generate.This function module name will vary
from one server to another server.
we will call function module
SSF_FUNCTION_MODULE_NAME.
in that we will pass the smartform name and we will fetch
that function module.
for that function module we will create the one variable.like

data:fm_nam type rs38l_fnam.


then we will call the function module with name 'fm_nam'.
--------Re: in which event validation is done?
Answer
# 1
Generelly Selection screen Validations can be done in the
event AT SELECTION SCREEN.
--------Re: how can we print both side in smartforms?
Answer
# 2
in smartform while we do double click on page then we get
output options and there is 'PRINT MODE', and then take F4
help and select 'D' thats duplex for both side printing.
if i m wrong then correct me
-------Re: what connects smartform to it's driver program?
Answer
# 2
Form Interface of a smartform connects to its driver program
by using the generated function module of a smart form
--------Re: in which event validation is done?
Answer
# 1
in initialization event.
at selection screen.
at selection screen on field,
at selection screen on block.
at selection screen on radio button group
These are the events for validations.
-----Re: how can we print both side in smartforms?
Answer
# 2
This Duplex setting is mainly set by the basis team
from the transaction SPAD for a particular printer
configured with SAP.
You do not need to do anything with the smartform.
---------Re: can any body explain the life cycles of SD & MM
Answer
# 1
hi friend
SD Flow:
1.Enquiry - Customer enquires about the Products services
that were sold by a company - VA11

2.Quotation - Company Gives a Quotation for the products and


Services to a Customer
3.Sales Order - Customer gives a Purchase order to the
company against which a Sales order will be raised to
Customer in SAP.
4.Delivery(Picking, Packing, Post Goods Issue and Shipment)
->Company sends the material after picking it from Goodown
and Packing it in a Handling Unit(box) and Issues the goods
5.Billing - Also company bills to the customer for those
deliveries and in FI against this billing Accounting doc is
created.

MM Flow:
1.Purchase Requisition-> Staff in an organization places
Purchase requisition for want of some goods/products - ME51
2.Request for Quotation(RFQ)-> The Purchase dept in the
organization calls/requests for the quotation for the
products against which PR(Purchase Request) was raised. - ME41
3.Vendor Evaluation->After receiving the RFQ's, after
comparison a Vendor is finalized based on the terms and
conditions.
4.Purchase Order(PO)-> Purchase order was issued to that
vendor asking him to supply the goods/products -ME21N
5.Goods Receipt Note(GRN)->Vendor supplies the material/
Products to the organization -MB01
6.Goods Issue (GI) -> People receives their respective items
for which they have placed the Requisitions
7.Invoice Verification-> Along with the Material Vendor
submits a Invoice for which the Company Pays the amount - .MIRO
8.Data to FI -> data will be posted to FI(Finance) as per
the vendor invoices
regards
Malli
--------Re: What is BDC?
Answer
# 1
BDC stands for Batch Data Communication. It is mainly used
for tranferring the data from the legacy system to the SAP
stand alone syatem. This is normally done whena company is
using a differed application or database and wishes to
upgrade themselves to SAP. This procedure is normally
followed in ABAP.

----------Re: What are the Steps for ALE Configuration in Real time Senario.
Answer
# 2
Mantain Logical Systems (SALE)
Maintain RFC destination (SM59)
Maintain PORT (WE21)
Maintain Distibution Model (BD64)
Maintain Partner Profile (WE20)

---Re: where you will store your technical spec in your company? r u using any tool
for that. how u will send the same to your functional people.
Answer
# 1
That is depends on client.Generally All deliverables(FD,TD)
will be stored in Shared drive which can be accesible to
client and developers.
----Hi, How to call transaction( Any transaction ex:xk03)from ALV Report. Where shou
ld I write code?
Answer
# 1
In the USER_COMMAND event in ALV..
using SET PARAMETER ID
call transaction xk02

------------What is the mandatory event in LDBs.


Answer
# 1
These are the mandatory events in LDB'
Get Late
------Re: How to display footer in every page in ALV report?
Answer
# 1
In my opinion, You can display the footer, by using the
event - end of page event.
by using top of page event, u can give the heading or comment.
--Re: Hi, How to do sub totals in classical reports?
Answer
# 1
hi use control break events to calculate totals (at
first,at new f,at end of f,at last)
-----------

Can I write COMMIT and ROLLBACK in user-exit?


Answer
# 4
Hi,
ofcourse we can write but it is not recommended.
In an user exit control is in the mid of a transaction data
will be updated or not is decided at the end of the
execution of the transaction.
If we write Commit it will commit the database update
whereas case may be like transaction went into error and
database update is not required in that case there will be
data inconsistancy.
---Re: What is the exact use of Reuse_alv_field_catlog_merge.
Answer
# 1
hi,
This FM is used to populate a field catalog which is
essential to display the data in alv.
--------Re: Hi All, I have a scenario in Script. I want to display the data both side
in a page. How can get it?
Answer
# 1
hi
just select the printing option as duplex.
so u can print the data in two sides
----Re: What is updated Function Module.
Answer
# 1
ur question is not in clear. post clearly
--------Hi All, Can u tell me the difference between RFC and BAPI. I know Both are remot
e enabled.
Answer
# 1
BAPI methods 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.BAPI is
having all Key fields, methods, interfaces etc.

-----how to find out where to create a badi.


Answer
# 1
It doesnt reside in existed report,so u should creat in
SE18,Providing appropriate implementation thru SE19,then
select METHOD in order to add new fields or adding any
enhancement.
Finally call it from report.
requirement is to create a badi for xd02 initial screen .how to search foe it.
Answer
# 1
1) Go to Transaction : SE24 (Class Builder)
2) Type: CL_EXITHANDLER <Enter>
3) Double Click the method: GET_INSTANCE
4) Give <Break-Point> on the Method call inside:
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
Now:
5) Run your transaction XD02
6) The System will give us the BADI Name here.
----------what is partner profiles?
Answer
# 1
Patner profile is nothing but which patner u will have to
asigned that is either outbound partner or inbound partner.
The transaction code is for partner profile WE20.
In this partner profile u will define the these parameters.
sender
reciever
message type
these above define of both inbound as well as outbound partners.
----Hi, can any one tell me the follwoing question's answer 1.How can we validate si
ngle selection screen field and multiple selection screen field in report and al
so in module pool programming.pls give answer in brief with example. 2.What is s
earch help ? pls tell search help type breifly with example?
Answer
# 1
hi
1)Answer:
selection screen validations are doing in At selection
screen on field event. In this event u can write ur screen
validations.
Eg:

Select-option: carrid1 for sflight-carrid.


At Selection-screen.
if carrid1-low = '' and carrid1-high='';
error msg
endif
In above example, if u did not enter any values for carrid1,
then it displays error message
In module pool programming,validations are doing in PAI event
example:
Field sflight-carrid values('LH')
In this example, u must enter value LH, other wise the
screen is not moving.
2)Answer:
Search help means, it displays a list of all possible values
for screen field when u press F4 key .
Search helps are 2 types, Collective and Elementary search
helps.
# Elementary search helps describe a search path. The
elementary search help must define where the data of the hit
list should be read from (selection method), how the
exchange of values between the screen template and selection
method is implemented (interface of the search help) and how
the online input help should be defined (online behavior of
the search help).
Collective search helps combine several elementary search
helps. A collective search help thus can offer several
alternative search paths.
--------i have a doubt ,what is the difference between the workarea and headerline . plz
tell me .
Answer
# 1
actually header line is old way manipulating data in the
internal table.
header line is same as that of workarea.
but the difference is that workarea needs to declared
explicitly, and header line gets created automatically when
we use OCCURS statement or WITH HEARDER LINE.
---We execute the BDC program in foreground and got list in C drive. If the same pr
ogram we can execute in back ground what happen?
Answer
# 2
While uploading a file in background , the file should be
in application server...not in presentation server

-----Can u give me one example where we should use only CALL TRANSACTION meth
od in BDC?
Answer
# 3
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.
Otherwise use Batch input session as it can update mor than
one transaction and it is used when the records are more as
it can be processed in background processing mode. Its
better to use batch input session as it provides error
handling facility implicitly whereas in call transaction we
have to write code i.e explicit error handling.
---------Can we write inner join between transparent table and cluster table? If both hav
ing common fields?
Answer
# 1
No it is not possible to write inner join to trasperant
table and cluster table.system will generate an error wen
ever u try to join the table.
--------Logic for using table controls in BDC?
Answer
# 1
data : count type i value 1.
data : var type i value 1.
types : begin of header ,
firstfield(1),
flg(2),
.........
.........
end.
types : begin of item ,
firstfield(1),
flg(2),
.........
.........
end.
Loop at header table.
loop at item table.
if header-firstfield = 'H'.
Pass coun to header-flg.
count = count +1.
else.
pass count to item-flg.
endloop.
endloop.
loop at header data .
header BDC recording.
loop at item data where item-flg = header-flg.
item BDC recording.

var = var + 1.
if var > 3.
put click recording.
var= 1.
endif.
put save recording.
endloop.
endloop.
-----------------------How to decide whether we can use BDC (OR) LSMW for a given transaction?
Answer
# 1
if u r uploading Master data with out any screen exits then
we can use either bdc or LSMW. If Screen exits exist in
relavant transaction then we will go for BDC only. In case
of Transactional data we go for BDC. Bcoz In Transactional
data we have to handle table control manually.
-------When using call transaction method for 1000 records , If u found error in 64th r
ecord then how can u find it and how can u send this to user
Answer
# 1
Using BDCMSGCOLL structure you can capture the error
records.
--When using call transaction method for 1000 records , If u found error in 64th r
ecord then how can u find it and how can u send this to user
Answer
# 2
By using T.code [SLG1] we can find 64 record. or we can
know by BDCMSGCOLL.
----what is mean by table control, where it is used? why it is use?
Answer
# 1
Table control is for maintaining Huge data in Matrix
format. Normally we Use tc while maitaining item data. It
is using for data maitanence. For Example one person have
personal data, contact details, phone num etc. if we think
that these will maitain as header data. bank details of
that person we can maitain as item data.One person can have
multiple bank accounts. in sap that bank details will
maintain in table control.
BANKno BANKname BANKacctno BAnkaddress
1 Axis 1035210 Hyderabad
2 SBI 1544125 Hyderabad
3 ... ....... .........
4 .... ...... ......
--------------Why u r looking for change from current compeny? which is the best answer?
Answer

# 4
when the interviewer asked this question we should say
answer care fully because these type of qs's genarally
asked in hr rounds. so we should say that 'for the past 3
years i have been working for so and so company . now i am
looking for better opertunity and i just want to
settledown .'
-----------

cenario 1: I am uploading 1000 records using session method. I have an error in


950th record. What will happen and howmany records will upload? Scenario 2: I am
uploading 1000 records using Call Transaction method. I have an error in 950th
record. What will happen and howmany records will upload?
Answer
# 2
Scenario 1:
upto 949 records will upload
Scenario 2:
expect 950th record, all records will be uploaded.
--------------How to do sorting in classical report?
Answer
# 1
After Displaying output in classical report we cannot sort
it. But you can sort the internal table and display it..
Problem solved.
--difference between user-exit and customer-exit?
Answer
# 1
in user-exit we have to use subroutines
in cutomer-exit we have to use function modules .
this is the major diffenrence.
---------

hey guys, what is the t-code that copies a script from one client to other clien
t....!
Answer
# 2
hi
se71 is not correct.
Run the program RSTXFCPY,it copies the script from one
client to other client.
----------

hey guys, what is the t-code that copies a script from one client to other clien
t....!
Answer
# 3
t-code that copies a script from one client to

other client.--> SE-71 then select the menu item


UTILITIES -> Copy from CLient.
or alternatively execute the PRogram mentioned by
MAlli.Gontla .
---------hey guys, what is the t-code that copies a script from one client to other clien
t....!
Answer
# 4
tcode :scc1 should be run in the target client
------How to do sorting in classical report?
Answer
# 1
After Displaying output in classical report we cannot sort
it. But you can sort the internal table and display it..
Problem solved.
---------

What is the button to change the variant in ALV ?p


Answer
# 1
By using the Function Module Reuse_alv_variant_default_get
we change the variant

-----In start of selection, if we perform validation, what happens ?


Answer
# 1
Nothing happend, because start-of-selection triggers after
displaying the selection screen.
--In start of selection, if we perform validation, what happens ?
Answer
# 1
Nothing happend, because start-of-selection triggers after
displaying the selection screen.
-1) If the scripts are client dependent, what above driver program ? (client depe
ndent / independent) 2. 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? 3) Will 50,0
00 records be uploaded directly into APP's Server? 4) What is the button to ch
ange the variant in ALV ? 5) If your project is support project ? when is your
implementation has completed ? 6)In start of selection, if we perform validat
ion, what happens ? 7)How to join 3 tallies & looping. We have developed a pro
gram in a client say (200- client) and 210 has test data. No developing rights.
How to test data? 8)How to transfer data which is coming from are report as ou
tput to another report 9)How to create standard text and how do u transfer it ?
10)What are the views when we are creating Material ?

Answer
# 1
1)
Form is Cleint dependent but print program is client
independent.
2)
In 1st page create all the windows (header,footer,address)
as variable windows so it can be displayed in 1st page and
it cannot be dispalyed in 2nd page. only main window can be
displayed in 2nd page.
6)
If you perform validations in start-of-selection nothing
happend because start-of selection trigger once you come
out from the selection-screen.
7)
Program is client independent so you can very well logon to
210 system and test it.
8) using IMPORT and EXPORT
9) using SO10 you can create standard text and using
RSTXTRAN you can transport standard text.
---------What is the button to change the variant in ALV ?p
Answer
# 1
By using the Function Module Reuse_alv_variant_default_get
we change the variant
-------have two pages, In one page I want address, Header, Main & footer. In the second
page I want only Main. How to do it?
Answer
# 1
In the 1st page create address, header, footer windows as
variable windows. it cannot be flow into 2nd pages. In
second page only main window can be displayed.
------is it possible to upload material master data through BDC with one flat file co
ntaining both semifinished material & row material combined?????????
Answer
# 1
ya. it is possible. we can upload both data into database
through bdc.
-----how to fetch data form without header line internal table ?
Answer
# 2
It is not possible to fetch data from Internal Table
without header line. u have to give explicit work area I
mean header to handle the records.
Ex code :
Types : Begin of ty_marc,
matnr type matnr,

werks type werks_d,


end of ty_marc.
Data : it_tab type standard table of ty_marc,
wa_tab type ty_marc.
* select statement to read the data.
* Display the output.
loop at it_tab into wa_tab.
write : / wa_tab-matnr,
wa_tab-werks.
endloop.
---------difference between the workarea and headerline.plz tell me the answer
Answer
# 4
internal table with header line contains header and body.
any record which is to inserted into the internal table
body passes to header line first then it is appended or we
can say pushed to body of internal table. The header and
body has the same name.
Suppose we have a internal table having fields NAME, AGE.
and our internal table name is ITAB.
itab-name = 'Rakesh'.
itab-age = '26'.
Append itab to itab. (" appends headerline ITAB to Body IT")
or we can use :- append itab. (both the above code works
same).
whereas in workarea it also works similarly as a header
line.
only difference is that its a headerline which is declared
explicitly and it is not attached with an internal table .
to append the work area containining a singel record into
internal table without header line :wa-name = 'Rakesh'.
wa-age = '26'.
Append Wa to ITAB.
I suppose this information will clear doubts .
--------what do u mean by occurs 0
Answer
# 2
normally we declare with header line internal table with
occurs 0 specification. if we declare internal table with
occurs 0 then it will initially get 8 kilo bytes memory.
=-----------

Will 50,000 records be uploaded directly into APP's Server?


Answer
# 2
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.
----------Will 50,000 records be uploaded directly into APP's Server?
Answer
# 2
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.
-------------I have modified standard sapscript layout set MEDRUCK.But could u tell me the p
rocedure to trigger the layout set for printing. Thanks Rahul
Answer
# 1
Hi
After modification of ur script,u need to configure ur
script with print program.
After modification, u need to go NACE t-code and then select
select output type as EF and then press the outtype button.
and then assign ur script to print program. and then u go
for ME21,ME23 for out put verification
-----------what is the difference bet ween the appened and insert statment.plz tell me the
answer.
Answer
# 3
Append :->This statement add the record as a last record
in the table
Insert:->This statement can add the record at any position
in the table by using index
---------can any one tell me if i will put mode as error(E) in session or call transactio
n for at background and if any error data is there in flat file , then what will
be happen ,
Answer
# 1
U can set the Mode as E in call transaction only.But in
Session method u can verify the logs only. Actually E means
Errors in screen mode only. If any errors will come,
automatically it comes to screen mode from back ground.So u
can identify the errors.
--Pls tell me, we r using at line-selection,at user-command and at pf-status for
generating the secondary list in report then what we will use in ALV for generat

ing alv list. pls tell me what r the important thing to read in alv for intervie
w purpose.
Answer
# 1
Hi
ALV's are three types.
1.simple ALV
2.Blocked ALV
3.Hierarchically ALV
Simple ALV means, it is a single list. It contains of
different options like filtering, sorting ,downloading to
excel etc.
Blocked ALV also same like as Simple ALV, with some options
only.
Hierarchically ALV contains multiple lists.
Mainly in industry, simple alv's are used. some times oops
also applied for simple alvs
--------What type of reports (ALV, Interactive, Classic) we can generate in SAP ABAP?
Answer
# 1
classic and interactive reports are developed by using
events like initialization, at selection screen,start of
selection, top of page etc.
alv reports are created by using functions and classes.
for functions: Alv_list_grid_display, etc .
for classes:CL_GUI_ALV_GRID, etc are using
LDB,logical database reports, using Get, Get late events.
these are for HR ABAP only.Not Abapers.
Abap query, it is one of reporting tool.no need
-----Explain about No intervals, no extension in select options.
Answer
# 1
In the select options it show the ranging values.
If we define no interval, no extension it will act as a
parameter.
Please check this code.
TABLES: vbak.
SELECT-OPTIONS : s_vbeln FOR vbak-vbeln NO-EXTENSION NO
INTERVALS.
----------have two pages, In one page I want address, Header, Main & footer. In the secon

d page I want only Main. How to do it?


Answer
# 2
In first page you select on tab conditions->and additional
evevt->"only on first page" for all table lines of address
window, Header window,
and footer window.
Radhashyam
----------How to transport scripts ?
Answer
# 1
Hi,
We can directly transfer the scripts with CTS,
But the standard text should transport seperate CTS.
---6)what are the table controls in BDC ?
Answer
# 1
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.
----------What type of user exits have you written?
Answer
# 2
mr malli please porden me because of me showing fingure to
your wrong answre, we dont have these exits in user exit
all these we have in customer exi\\
------

have you used performance tunig?what major steps will you use for those
Answer
# 1
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
--------How to create standard text and how do u transfer it ?
Answer
# 1
By using [so10] tcode we can create standard text. for
transporting we use RSTXTRAN
---------ow to transfer data which is coming from are report as
output to another report
-What are the views when we are creating Material ?
Answer
# 2
Basic Data 1
Basic Data 2
Classification
Sales: Sales Org. Data 1
Sales: Sales Org. Data 2
Sales: General/Plant Data
Foreign Trade: Export Data
Sales Text
Purchasing
Foreign Trade: Import Data
Purchase Order Text
MRP 1
MRP 2
MRP 3
MRP 4
Forecasting
General Plant Data / Storage 1...and Many more
--------How to join 3 tallies & looping. We have developed a program in a client say (2
00- client) and 210 has test data. No developing rights. How to test data?
Answer
# 1
Program is client independent so you can very well logon to
210 system and test it.
-------

Potrebbero piacerti anche