You are on page 1of 15

1.

Is it possible to include two transactions with one group


name in one program in session method?

2. I created a field and entered the field type, when I double


clicked the field type to define the domain; it is asking
for an ACCESS KEY, I am not changing any SAP defined
tables, working on a user defined table.

3. Need the detailed steps to create an ABAP Query. Plus, I


have created an abap query. I want to know can I
transport the query to another server using CTS. Can
anyone provide me the details regarding this?
4. There is one Standard program to transfer the sap-script
from one system to another. What is that program?
ANS: I dont think there is a Std prog to transport SAP scripts but there is a
std prog RSTXTRAN (Rstxfcpy, RSTXR3TR) to attach the Logos or Std Text
to the same CTS of the SAP script so that they get transported together.
5. The question is how can u read 7 the record from a
Database Table?
ANS: READ table itab index 7(u can't use the read statement for that.bcos
index u can't use while reading from database. I think there is no way to do
thats have create the secondary index or else.
6. In interactive reporting how the control moves
Basic list to extended (secondary) list?

from

ANS: U can do with sy-lsind.


7. What is the difference between Repair and Correction?
8. Difference between Read and Get cursor?
9. How to create Sorted internal tables and what is
the Syntax of sorted internal tables?

10.

What is the purpose of Table-Maintenance Generator?

11. What is the difference between One-step and Twostep in Table-Maintenance Generator?
12. Suppose a Database Table Contains say 20 thousand
Records and what is the Best way to get them all to an
Internal Table.?
ANS: In the select statement try to have the fields in the internal table in
the same order as in the table. In ur select conditions see to that u try to
use all the primary fields.
13.

How to upload rtf figures in SAPSCRIPTS?

ANS: if your rtf figure is in R/3 then use Include statement


14. You have been assigned a task to upload the data into
SAP
from legacy systems. You are provided with various
techniques (BDCs & LSMWs). So WHICH one you choose
and WHY?
ANS: It depends upon few criterions. If ur tech lead names the tech then u
dont have much options. If u get to pick then u decide to do wit the one u r
familiar (natural human tendency) Well SAP point of view it depends upon
the version u have.
LSMW doesnt come into picture if u r working on 4.5B.LSMW is a good
option for 4.6c esp. for Master data load like Customer, Vendor, material etc
but there are few data loads which are difficult wit LSMW like Source list
load, Recipe load, Pur.Info record load.
If u r in 4.7E then BAPIs are the best option for data load. Its not tat BDC
and LSMW are difficult in 4.7E, its jus a simple fact that Why wud u go in an
Ambassador car if u have the option of going in Benz.
15. I am working on ORDERS05 IDoc regarding the PO 's .I
need to add some additional fields to the IDoC.Can we

call this process as extending the IDoC?If so how do I do


that?
ANS: Yes its Extension of Idocs. Goto WE31 and the fields u want to attach
in the Z* structure. Then in We30 u choose Extension radio button. Then
ORDERS05 is the one which u want to copy and then add the Z* structure to
the E* structure in the Idoc.the key thing is u have to identify which fields
need to be added to which part of the IDoc structure.
16. what is the difference between FOR ALL ENTRIES
and SELECT * FROM
17.

How to upload logo in sap script.

18. Table control and tab strip control in dialog


programming...
19. How to upload data from application server to
presentation server.
20.

About inner joins syntax?

21. Table control in bdc data uploading.i.e. The data


directly upload to the header.
22. If there are 3 fields in the selection screen...if we
enter wrong number in the first field. It automatically
blocks the remaining fields. a logic /program
23.

Symbols in sap scripts.

24. Can we get a field from the table? Where the field
name is stored as variable. The field name is obtained
from concatenating the input field.
25.

In BDC how can we handle Table Controls

ANS: When u do ur recording u will have a tab for Next line or Insert. U have
to capture tat in ur recording. If ur tcode doesnt have that in the recording
then u have to set up a page down (=P+) and loop it based on the line entries
u c on teh screen.
26. Suppose we are transfer data through BDC from
legacy to SAP
and their is some duplicate data in
legacy system but we dont
want this in SAP system .So how can we check that this
data is already exist
27. Can we use two transaction code in one BDC like
XK01 & XD01 if yes .how?
28.

How can we handle errors in Function Module?

ANS: Exceptions is used to handle errors


29. Can we use Session method & Call transaction both in
one BDC if yes please give me example and scenario
where we use this?
ANS: U start ur dataload using Call Transaction and if any errors occur push
all those errors in a session so that ur dataload takes place uninterrupted
and u can processs ur errors later.
30. What is foreign key relationship?
ANS: A relationship which can be defined between tables and must be
explicitly defined at field level. Foreign keys are used to ensure the
consistency of data. Data entered
Should be checked against existing data to ensure that there are now
contradiction. While defining foreign key relationship cardinality has to be
specified. Cardinality mentions how many dependent records or how
referenced records are possible.
31. Describe data classes.

ANS: Master data: It is the data which is seldomly changed. Transaction


data: It is the data which is often changed. Organization data: It is a
customizing data which is entered in the system when the system is
configured and is then rarely changed. System data: It is the data which R/3
system needs for itself.
32. What are indexes?
ANS: Indexes are described as a copy of a database table reduced to
specific fields. This data exists in sorted form. This sorting form ease fast
access to the field of the tables. In order that other fields are also read, a
pointer to the associated record of the actual table are included in the
index. The indexes are activated along with the table and are created
automatically with it in the database.
33. In ALV reporting when u execute ur report which event gets triggered.
34. i need to know how can i transport an abap query from a development
server to a test server?
ANS: As per my knowledge, ABAP / SAP Queries are independent of the
environment.So you can create them anywhere you want.
I use the download / upload functions to move queries and infosets. It is
much quicker for me to do that than a transport.
35. q) Using the standard data conversion program uploaded the material
master views from legacy system to SAP R/3 using Session Method. What
is this Standard Data Conversion Program ????

ANS: Well in DI mtd u have a std SAP program which does the load based on
ur file. If u wanna know wat is hte name for it. Goto LSMW in the first step u
select the DI method load and when u select the object for material ( I think
it is 0060 or 0030) then it will give u the name of the program that is the
prog which is used by SAp.
FOr runtime analysis, goto tcode SE30. it will options of
transaction/program/etc. Check whichever one u wanan test and enter the
name and hit hte Execute tab (it will be in the middle of the screen). Now

runt he prog/tcode with the input parameters and then coem back to SE30
and in the bottom of hte screen u will see a tab called ANALYZE. Hit on it
and will u see the performance of ur prog/transaction
36. I have a question. In SAP scripts I have to print a currency value only
when it is zero.
ANS: suggested that you place dummy statements under IF/ELSE and see
which one get printed (and if the /E element ever get executed)
NOTE: there is a standard program SF_MIGRATE to migrate scripts to
smartforms.......try it ....if u get any error reply me
36. I am facing a proclem in ALV Ineteractive report. The report is having
data of MARA table on first list and when i double click on any material
number then it should show the detail of material consumption and
remaining stock . How to catch event in ALV Interactive report.
ANS: WHEN '&IC1' is the user command for double click.You read data from
that table using the index like this :
RS_SELFIELD TYPE SLIS_SELFIELD
READ TABLE IT_MARA INDEX RS_SELFIELD-TABINDEX
then u will get only the select matnr..
then Loop at the IT_MARA.
move data from IT_MARA to IT_Detail
and display the data as secodnrary list.
37. i need to know how can i transport an abap query from a development
server to a test server?
38. in ALV reporting when u execute ur report which event gets triggered.
39. can any body send me the code for f4 help & data validation in ALV.
ANS: f4 help - FM : REUSE_ALV_VARIANT_F4

40. what are the tables get updated when we create a sales order?

ANS: VBAK,VBAP,KNA1,KNB1
41. what are the tables get updated when we create a delivery?
ANS: LIKP,LIPS
42. Does Internal Table consists of logical data or physical data ?
43. wats the difference between Work area and Internal table?
Ans: Work area is needed to read record from intrenal table
and apply computation. work area is that it hold only one record at a time by
default it holds last record.
44. Wats the difference between logical data n physical data?
45. How many indexes does a database table contain ?if a
table contain 55 records then how many primary and
secondary indexes are there.
46. Can anyone tell me about Parallel Cursor.
Ans: It will maintain the relationship between the cursor for the original
query (the root cursor) and the cursors for the corresponding subqueries (sub-cursors). This will allow ORACLE to do parallel fetches
from multiple cursors on behalf of an application.
Rows will be fetched asynchronously from the subcursors and returned
to the application as needed.
If TAB1 has n1 entries and TAB2 has n2 entries, the time needed for
the nested loop with the straightforward algorithm is O(n1 * n2),
whereas the parallel cursor approach takes only O(n1 + n2) time.
48.What is full one full implementation?
Ans: Well interesting answers regarding Full implementation. To what I know
a full cycle implementation is implementing SAP for a client who is not using
SAP currently. Say if client is using Oracle and wants to switch to SAP, then u
study the business (Blue Print Phase) and then give the client time estimate
of the Implementation and start decveloping specs for the same (realization
phase).

Then u start developing the data conversions, important reports w/o which
the business cant run, similarly the SAP scripts, Create PO, sales order, etc.,
In doing so u mite have to do Userexits, create Zfields specific for the client,
etc., (Development Phase).
When u r comfortabel wit the Dvelopment then u do ur testing with bigger
chunk of data and then slowly try to do with the Production data (cut over
phase) and then finally u GO-LIVE with no more Oracle. Then u have
Production Support after u Go-live.
49.Do u have any idea about how to create user exits in tcode FB60 ?
Ans:
50.I need to upload a flat file(.txt) with / at the end of fields.
how to upload this into Application server. I need to clean this txt and upload
it.
51.How i verify if the ruquisition is locked by another user ?

52.top of page is not triggering in alv reporting.


Ans: if you are using REUSE_ALV_COMMENTARY_WRITE then top of page is
triggered
53.. Could anyone help me to show how to create a role with authorization:
only can display two G/L account number: 133xxxxxx and 333xxxxxxxx.?
54. I remember , there is a transaction code to see all the available
Transaction codes , and also search for a specific transaction code.How do
we get there ?
55. Can we print bar codes in SAP only from ZEBRA printer?
56. I had read that bar code printing is enabled in SAP and only needs to
configure device/printer for that. Does this mean that we can use our existing
HP 2300 or like printers to print bar codes without any ZEBRA like printers
and the printed bar codes are readable through any reader ?

57. Is there any specific steps to print bar codes from SAP (from within
Smartforms) including data fetch and printer configurations.
58. How can i read the data in bar code form directly into sap i.e. without
being uploading it to TXT file and then uploading to SAP or in other means
what are the normal ways read bar codes from within SAP.
59. 1. How to transport dependent objects in SAP ABAP Scripts, Text
Elements
Clint dependent Tables (Data Dictionary objects).
60. In Report , Internal tables Itab is initial (0 records), and I used for all
entries for Jtab in this case: Data will come to itab or not.
61. How do we create value table?
62. If we have defined both check table and value table which takes the
precedence?
63. Can a data element exists without domain?
64. How to give the value range(fixed values) for domains and where they
get stored?
65. Is there any standard SAP report which gives a count of the number of
times a program is executed ?
Ans:: Try transaction STAT
66. When we create a customer the information is updated in structure
RF02D and the some tables like KNA1 are updated. How can we find the
tables for master data transactions?
Ans: Go to ABAP Workbench -> Overview -> application hierarchy - SAP ->
follow the customizing based tree for your application. Double click on a
lowest hierarchy level to get for the correct marked development class. Here
you can find all the tables, views, logical databases etc. used for a system
operation.
67. How can I access SAP through Internet?

Ans: SAP has its own Internet transaction Server (ITS) . Other products
include Haht, WebObjects, NetDynamics etc. Each product has its' own
architecture. However to access the database, access paths SAP GUI or RFC
Channel have to be used.
68. How can we transport the standard text?
Ans: Refer note 3355 in OSS for a complete explanation. The SAPscript
objects that should be transported must be written in a transport request.
The entries are as follows:
R3TR FORM NAME (NAME = Name of the layout set)
R3TR STYL NAME (NAME = Name of the style)
R3TR TEXT OBJECT,NAME,ID,L
(OBJECT = Text object, NAME = Text name, ID = Text ID, L = Text language)
If you want to transport a number of texts, you can use report RSTXTRAN to
insert the individual text keys into a correction. The transport request must
be entered and released via the transport system.

69. How to find what transactions a particular user was running for a given
period in the past.
Ans: You may use the transaction - STAT.
70. How to lock an user defined transaction for some time during which no
user can access the same?
Ans: Use transaction SM01. Scroll through the transactions and check
against the transaction to be locked. And after the maintenance is over, go
back to SM01 and uncheck the same to unlock
71. Our ABAP program is working properly in Foreground. Can I schedule it
for background processing on the weekend?
Ans: SAP standard program RSBDCSUB helps you to schedule the job. Create
a variant for RSBDCSUB with the BDC session name.
72. How can we send a mail to the user intimating him that his report/BDC is
completed in background

Ans: You can use FUNCTION RS_SEND_MAIL_FOR_SPOOLLIST


If Unix is being used, you may send a report to any internet mail with the
following:
REPORT ZSNDMAIL .
DATA: COMND(200) type c.
DATA: RESULT(200) type c occurs 100 with header line.
PARAMETERS: FILE(60) type c lower case default
'/sapdata/sd_outbound/testmail.dat'.
PARAMETERS: SUBJECT(60) type c lower case.
PARAMETERS: EMAIL(60) type c lower case.
INITIALIZATION.
TRANSLATE EMAIL TO LOWER CASE.
START-OF-SELECTION.
TRANSLATE EMAIL TO LOWER CASE.
CONCATENATE 'cat' FILE '| elm -s "' subject '"' email into comnd
seperated by space.
CALL 'SYSTEM' ID 'COMMAND' FIELD comnd 'TAB' FIELD
UNIX_RESULTS-*SYS*.
Loop at Results.
write: /1 results.
endloop
end-of-selection.
73. We get the total number of pages as expected by using 'SAPSCRIPTFORMPAGES' in a duplex layout. In our case duplex case is always 'Terms &
Conditions'. We do not want the number of pages as in duplex printing. What
is the best possible solution?
Ans: On the Terms & Conditions page, Change the Page counter mode to
'HOLD' to keep the page counter from incrementing when you print the Term
& Conditions.
74. Can I Print a logo on an Invoice
Ans: Save a Logo using Paintshop Pro or Corel Draw as Tiff file. Use
RSTXLDMC to convert the logo to standard text in SapScript. When the
program is executed, the path and file name have to be correctly specified.
Process could be like the following:
Run RSTXLDMC
Enter file name C:\MAIL\COMPLOGO.TIF
Resolution for Tiff file

Absolute X-position
Absolute Y-position
Absolute positioning
Reserved height
Shift to right
UOM = CM
Text title
Line width for text = 132
Text name ZHEX-MACRO-COMPLOGO
Text ID ST
Text language = E
Postscript scaling
Width & Height according to PS scaling
Number of Tiff gray levels (2,4,9) 2
Then Create a new window 'COMP' with attributes;
Window COMP description Company Logo
Window type CONST
Left margin 7.00 CH window width 10.00 CH
Upper margin LN window height 8.00 LN
Finally in the text element , mention
/: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
Please note that if object name is not indicated as 'ZHEX...', the logo may not
be printed!
You will not be able to see the logo in a test print. The same will be printed in
actual printout.
If you are using two logos in the same layout, the names of the logos should
be unique. Say 'ZHEX-MACRO-LOGO1' and 'ZHEX-MACRO-LOGO2'. Else all the
information will be overwritten.
If the logo is not EXACTLY TIFF 6.0 , the same will not be printed.
See OSS notes 5995, 18045, 39031 for some inputs.
75. We want an RFC do the following transactions - MB1A, MB1C,>MB01
(goods receipt/issue).
Ans: Call the RFC INBOUND_IDOC_PROCESS with IDOC_CONTROL and
IDOC_DATA. The structure in the field sdata in the IDOC_DATA are e1mbxyh
and e1mbxyi.

76. We need to download an internal table to the Presentation Server(local


workstation). Whenever we run the program, the same file has to be saved as
a separate file in sequential order. Ex: 0001.txt, 0002.txt etc. Where can we
store the last file number?
Ans: SAP has a table TVARV for storing the variants.
A record may be created in TVARV for all the programs that require this kind
of incremental records.
For Ex: the record could be 100Zmm10001 MM sequence rec where first part
consists of client code and the program being run. Client code is required
because TVARV does not has a field for client code. The second part is the
description indicating the purpose what the record is created. This entire
string may be posted in the Name field (char - 30).
The Type field ( char- 1) may be populated with P or S (Parameter or
Selection)
Low field (char- 45) may be populated with '0001' when run first time and
increment it by one in your program for downloading of the internal table.
77. We are calling transaction VL01 in batch input to create deliveries using a
program for delivery due list. How ever we are unable to create deliveries for
transport stock orders. Why?
Ans: Batch-inputs can not be used to fill the "delivery due list" screen
because it is not a dynpro. This is a standard SAP report. A SAP report (check
with "System -> Status") may be called using SUBMIT sentence with the
appropriate options . It is preferred to call a report than create a Batch-input
program.
78. What are some sample Direct input data transfer programs?
Ans: In MM for Material Master data - RMDATIND
FI - for Accounting Documents - RFBIBL00
PP - for Independent requirements - RM06IN00
CA - for Classification data - RCCLBI03

79. The program RSTXLDMC can be used to upload graphics (file


extension .tif on PC files) into individual standard text
80. Strike the key F4 (or click on matchcode symbol) and press ESCAPE. The
current date is automaticly set.
81.
RSCLTCOP Copy tables across clients
RSAVGL00 Table adjustment across clients
RSINCL00 Extended program list
RSBDCSUBRelease batch-input sessions automaticly
RSTXSCRP Transport SAPscript files across systems
RSORAREL Get the Oracle Release
RGUGBR00Substitution/Validation utility
RSPARAM Display all instance parameters
RSUSR003 Check the passwords of users SAP* and
DDIC in all clients
RSUSR006 List users last login

You might also like