Sie sind auf Seite 1von 11

1 Full Buffering would be appropriate for A. Transaction Tables B. Small Static tables C. Internal Tables D.

Tables with generic Keys 2 What is the basic object of data Dictionary A. Domains B. Documentation C. Data Models D. Dynpro 3 Search help can not be attach to: A. Domain B. field of a table C. check table D. Type 4 Sub query usually more efficient because: A. data is filtered in the database B. data is filtered on the network C. data is filtered in the sapgui D. data is filtered at the application server 5 It is better to buffer a table when A. When a table is read infrequently B. When a table is linked to check tables C. When a table is read frequently and the data seldom changes D. When a single record is to be picked up 6 In Inner and outter join A. buffers are always used B. Choice of buffer can be made to use C. buffers are always bypassed D. None of above 7 What is invalid attribute of a domain A. Type B. Fixed values C. Length D. Header 8 Data element is an example of A. Physical Definition B. Business Object C. Semantic Domain D. Technical Domain 9 What is true A. A view contains data B. Views can be buffered C. Views can not be buffered D. None of above 10 Command flushes the database buffers A. $TAB B. $RESET C. $INIT D. $FREE 11 How many lists can exist in parallel in an interactive reporting? A. An Interactive report can have 1 basic list and up to 20 Secondary lists. B. An Interactive report can have 1 basic list and up to 19 Secondary lists. C. An Interactive report can have 1 basic list and up to 19 Secondary lists. D. An Interactive report can have 1 basic list and up to 21 Secondary lists. 12. What are the check tables and value tables? (Multiple Answer) A. Check table will be at field level checking. B. Value table will be at domain level checking C Value table will be at field level checking D. Check table will be at domain level checking. 13.What are presentation and application servers in SAP? (Multiple Answer) A. Application server is actually a program named Sapgui.exe. It is usually installed On a users workstation. B. Application server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them. C. Presentation server is actually a program named Sapgui.exe. It is usually installed On a users workstation. D. Presentation server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them. 14.What is the difference between Synchronous and Asynchronous updates? (Multiple Answer) A. In synchronous processing, the program waits: control returns to the program only when the task has been completed. B. In asynchronous processing, the program does not wait: the system returns control after merely logging the request for execution. C. In asynchronous processing, the program waits: control returns to the program only when the task has been completed. D. In synchronous processing, the program does not wait: the system returns control after merely logging the request for execution.

15.What are the main events an interactive report have? (Multiple Answer) A. Top-of-page during line selection. B. At line-selection. C. At user-command. D. AT New 16.How many types of tables exist in data dictionary? (Multiple Answer) A. Transparent tables B. Internal Table C. Pool tables D. Hash Table E Cluster tables F.Master Data Table 17. What is the difference between UPLOAD and WS_UPLOAD? (Multiple Answer) A. WS_UPLOAD - File transfer with dialog from presentation server file to internal table. Data which is available in a file on the presentation server is transferred in an internal table. ASCII & Binary files can be transferred. B. UPLOAD - To read data from the presentation server into an internal table without a user dialog, use the function module WS_UPLOAD. The most important parameters are listed below. C. UPLOAD - File transfer with dialog from presentation server file to internal table. Data which is available in a file on the presentation server is transferred in an internal table. ASCII & Binary files can be transferred. D.WS_UPLOAD - To read data from the presentation server into an internal table without a user dialog, use the function module WS_UPLOAD. The most important parameters are listed below. 18.Is Session Method, Asynchronous or Synchronous? A. Asynchronous B. Synchronous C. Synchronous and Asynchronous D. None of above 19. What are the differences between SAP memory and ABAP memory? (Multiple Answer) A. SAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data between sessions using SAP Memory. B. ABAP Memory is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session (as with ABAP memory) or to pass data from one session to another. C.ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data between sessions using SAP Memory. D.SAP Memory is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session (as with ABAP memory) or to pass data from one session to another. 20. Which data type cannot be used to define parameters. A. Type N B. Type C C. Type F D. Type P ANSWERS:1. B 2. A 3. D 4. A 5. C 6. C 7. D 8. C 9. B 10. A 11. A 12. A,B 13. C,B 14. A,B 15. A,B,C 16. A,C,E 17. C,D 18. B 19. C,D 20. C

1) What is the difference between RFC and BAPI ? What are subclasses and super classes in BAPI and also what are the methods in BAPI ? 2) Is it possible to connect SAP to Non-SAP systems to retrieve data using RFC alone with out using BAPI ? 3) What is the difference between Function module and BAPI ? 4) What are the types of tables? 5) What are pooled table ? 6) What are Hashed Tables ?

7) What are advantages of using ABAP objects? 8) What is the advantage of using ABAP objects in Reports ? 1) BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. The following standardized BAPIs are provided: Reading instances of SAP business objects GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers. The BAPI GetList() is a class method. GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database. Create( ) and CreateFromData! ( ) The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods. Change( ) The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method. Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag. The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods. Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method. Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods. 2) No it is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access. 3) Each Bapi Object has Interface, Key Fields, Attributes,Methods and Events. Bapi Function Modules can be attached to these Bapi objects .Function module has a single bound functionality while a BAPI object can contain many functionalities 4) Transparent table, Pool table and cluster table are data dictionary table objects sorted table, indexed table and hash table are internal tables.

5)Table pools (pools) and table clusters (clusters) are special table types in the ABAP Dictionary. The data from several different tables can be stored together in a table pool or table cluster. Tables assigned to a table pool or table cluster are referred to as pooled tables or cluster tables. A table in the database in which all records from the pooled tables assigned to the table pool are stored corresponds to a table pool. The definition of a pool consists essentially of two key fields (Tabname and Varkey) and a long argument field (Vardata). Table Clusters Several logical data records from different cluster tables can be stored together in one physical record in a table cluster. A cluster key consists of a series of freely definable key fields and a field (Pageno) for distinguishing continuation records. A cluster also contains a long field (Vardata) that contains the contents of the data fields of the cluster tables for this key. If the data does not fit into the long field, continuation records are created. Control information on the structure of the data string is still written at the beginning of the Vardata field. 6) Hashed tables This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data. Sample Prog: This does nothing. REPORT Z_1 . tables: mara. data: i type hashed table of mara with unique key matnr 7) and 8) ABAP objects are root for your program and reports. RFC Vs BAPI BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. In this case you only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. It is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access. RFC is the protocol used by SAP for remote communication, that is, for communications between remote (independent) systems. RFC is used for communications between two independent SAP systems, or for communications between an SAP system and a non-SAP system, such as an external application. It can also be used for communications between modules on the same system. Using the RFC interfaces you can extend the functionality of R/3 applications from an external program. What is the different btween clear and refresh? There are 2 types of clear statements we can use: Clear ITAB : This Statement will clear the Internal Table Header content. To clear the Intertal Table Hearder as well Body we can use Clear ITAB [ ] statement.

Refresh will deletes the Internal Table content but still memory is not freed. What is the pick statment do? Pick Statemnt will captures the UserAction. Eg: if SY-UCOMM = 'X'. This type of user actions can be captured thru PICK Statement only. What is the different between sesstion method and call transaction method and suppose I used one method to transform the data next time suppose I want transform the data which method I can use. There are many difference between Session method and Call Transaction. Which method we have to use will be found based on Volume Of data and Accuracy of data given. Mainly Call Transaction used for small sets of data because in Call Transaction we have to Handle the Processing errors explicitly. We can do this by BDCMSGCOLL structure. In Session method seperate session will crate for errors. Calll Transaction will update the Database fastly compare with Session Method. What is single and upto one row different? The Major difference between Select Single and Select UPTO 1 rows is The Usage Of Buffer for each. Select Single will search for all the satisfied data and bring all that data into Buffer and later it will give to that data to the program. Select UPTO 1 Rows will end the search after getting the 1st satisfied record and gives that record to the program. Thus Select Single will take much processing time when compare with Select UPTO 1 rows. What is the differences between selection screen and selection screen out? The difference between Selection Screen and Selection Screen Output is we use the Selection Screen Output Event before the Selection Screen will displayed. Eg: Suppose if we want to disable some fields and enable some fields in the Selection Screen then we can code that in Section-Screen Output event. Selection-Screen Event will trigger after section-screen is displayed and user action takes place on that.

****************************************************************************** *******1) What is the difference betwen abap and sap memories?
Data sending between internal sessions is called abap memory using import and export parameters. Data sending between main sessions using spa/gpa ie (set /get) parameters called sap memory. 2) What is nast? nast is a message status database table. 3) How to upload logo in sapscripts? 1... create a logo using paint shop and save it as tifffile then using RSTXLDMC (is a program name) used to upload logo 2.....create a logo using paint shop and save it as bmpfile then using SE78 you can do this. 4) What are symbols explain? Symbols are constants used to save un nessessary work used in documentation 1. system symbols : example: &date& &time& etc 2. text symbols: they are defined using control statements protect...endprotect, if endif, etc 3. standard symbols : all the messages are stored in TTDTG table 4. program symbols : used in abap program example: &i_mara-matnr& &i_mara-ernam& 5) Difference b/w call transaction and session. Call transaction Ssession 1. synchronous updation only synchronous updation

optional 2. errors can handled error log is created explicitely 3. faster slower 4. less amount of data more can transfer 5. updation takes place updation takes place during program execution once the session being created 6. Difference b/w smartforms and scripts. Script Smartforms client dependant independant not possible multiple page formats are possible compulsory without main window it can labels are used labels cannot not generated once session created function module 7. Errors hanling in call transaction Two ways 1)... int table decalred having structure BDCMSGCOLL it is having certain variables not texts. ie msgtyp,megid, msgnr, msgvar1, msgvar2, msgvar3, msgvar4 etc all the text messages are stored using T100 database table. 2)....int table decalred having structure BDCMSGCOLL it is having certain variables . ie msgtyp,megid, msgnr, msgvar1, msgvar2, msgvar3, msgvar4 etc by declaring function modules format_message or write_message you can handle. 8. Errors handling in session In SM35 error log is created, there you can handle. 9. Difference b/w select-options, valueranges, parameters. par----- singlevalue select-options----range and itself implicitly creates internal table value-ranges---- just for ranges 10. How to remove duplicate entries? using COLLECT or DELECT DUPLICATE ENTRIES FROM TABLENAME> 11. What are standard texts? These are predefined texts used for create change and display tcode SO10 Starting with INCLUDE These are for TERMS AND CONDITIONS . 12. What is the use of select....for all entries? Avoid nested select or inner joins uses fast processing sorting delete duplicate entries 13. What is the difference b/w exit and continue? exit----if it is in the loop comes out of the loop. ----if it is in the subroutine comes out of the routine.

----if it is in the program comes out of the preogram. continue-----unconditional jumping out of the loop. 14. What is the diffenrence b/w collect and append. collect----- checks whether it is there or not. if there adds integer, packed, float otherwise remove append-----just adding 15) What are barcodes? For security purpose Tips by : Ramana What is meant by "Matchcode"? Matchcodes are defined in two stages in Abap/4 Dictionary: 1) The revelant table and fields are stipulated in matchcode object. A matchcode object describes the set of all possible search paths for a search item. 2) One or more matchcode ID can be defined for a matchcode object. A matchcode ID describes a special search path for a search term.The fields or combination of fields via which the search is to take place is defined in the matchcode ID.

1) What is runtime analysis? Have you used this? It's checks program execution time in microseconds. When you go to se30.if you give desired program name in performance file. It will take you to below screen. You can get how much past is your program. 2) What is meant by performance analysis? Have done 3) How to transfer the objects? Have you transferred any objects? 4) How did you test the developed objects? I was testing a developed object. There are two types of testing - Negative testing - Positive testing In negative testing we will give negative data in input and we check any errors occurs. In positive testing we will give positive data in input for checking errors. 8) How did you handle errors in Call Transaction? We can create a internal table like 'bsgmcgcoll'. All the messages will go to internal table. We can get errors in this internal table. Below messages are go to internal table. when you run the call transaction. - Message type - Message id - Message Number - Variable1 - Variable2 - Variable3 9) Among the Call Transaction and Session Method, which is faster? Call transaction is faster then session method. But usually we use session method in real time...because we can transfer large amount of data from internal table to database and if any errors in a session. Process will not complete until session get correct. 10) What are the difference between Interactive and Drill Down Reports?

ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION (double click) or AT USERCOMMAND (pressing a button). You can use these events to move through layers of information about individual items in a list. Drill down report is nothing but interactive report...drilldown means above paragraph only. 11) How to pass the variables to forms? 12) What is the table, which contain the details of all the name of the programs and forms? Table contains vertical and horizontal lines. We can store the data in table as blocks. We can scroll depends upon your wish. And these all are stored in database (data dictionary). Which contain the details of all the name of the programs and forms? (I don't know). 13) How did you test the form u developed? How did you taken print? 14) What are Standard Texts? 16) What is the difference between Clustered Tables and Pooled Tables? A pooled table is used to combine several logical tables in the ABAP/4 dictionary. Pooled tables are logical tables that must be assigned to a table pool when they are defined. Cluster table are logical tables that must be assigned to a table cluster when they are defined. Cluster table can be used to store control data they can also used to store temporary data or text such as documentation. 17) What is pf-status? Pf status is used in interactive report for enhancing the functionality. If we go to se41, we can get menus, items and different function keys, which we are using for secondary list in interactive report. 18) Among "Move" and "Move Corresponding", which is efficient one? I guess, 'move corresponding' is very efficient then 'move' statement. Because usually we use this stamtent for internal table fields only...so if we give move corresponding. Those fields only moving to other place (what ever you want). 19) What are the output type and Tcodes? 20) Where we use Chain and End chain? 21) Do you use select statement in loop end loop, how will be the performance? To improve the performance? 22) In select-options, how to get the default values as current month first date and last date by default? Eg: 1/12/2004 and 31/12/2004 Prem Kumar Q: How to compare the 2 tables between the 2 systems? Ans: Which is using the transaction code is 'oy19'. Q. What is the use of pick statement do? Ans: The pick statement is used to it will capture the user action. ex: if sy-ucomm = 'x'. This statement is used to capture the user action.

# 1 . What are the 2 boxes in your system for coding for Abap and their logins? Development System & IDES/Sandbox # 2. If I get a problem on a report in Production server how can I modify the report. If the problem in production server we have to alter the program in Developemnt Client and transport it to QA client Test it throughly and then Transport it to Production. # 3. Tell me about Tokens. Tokens are Issues sent by the Client to us. #4 .How to Fix the bugs and where you will do those things.

It Actuall Depends what kind of bugs they asked about: If it is a problem in Program, then we alter them in the SE38 (Develpment) and transport it after testing to Prd Server. #5. What is a sandboxes. SAND BOX is nothing but a test client other than Develpment Client or QA. #6.How to conncet the from ur office to clinet in US. It will be configured by the BASIS guys.. In the sap logon pad they will enter the application server id and Routing String and the SERver type in the Sytem Number.... with that we will connect #7.Tell me about VPN and the connections. Its a another way to connect to other PC. its a 3rd party utility.... #8. How to login ur system. Thru SAP Logon enter the client number ,user id & password. #9 .What is the purpose of SE14. Database Utility to perform table maintenance such as deleting the table or adjusting the table when there is a structure change. #10 .What is the purpose of SM30. SM30 is a table Maintanance for the Ztable Created by us. #11.In Data dictionary in the table creation,What is the purpose of Technical settings. To identify the Size of the Table Created and to Set whether buffering needs to be done for the table or not. #12. What is the purpose of buffering in technical settings and for what type of tables are using buffering. It will reduce the Network tarffic but disadvantage is it will not update the Server back immediately. #13. In reporting tell me all the events in a sequentail order. - Initialization. - At Selection-Screen - Start-of-Selection. - Top-of-Page. - At Pfn. - End-of-Page. - End-of-Selection. ABAP Tips and Tricks Retrieving the deleted program I recently deleted a custom program (which is already transported to production) accidentally and was wondering if there is any method of retrieving the program back. After some research, I found a way of getting back the program. Following are the steps in getting back the program: 1) Create a program with the same name as earlier (which is deleted) 2) Click on "Utilities" --> "Versions" --> "Version Management" 3) Select the version of your earlier program and click on display. 4) Your earlier program is displayed here. *-- Soumya Ray Find out in what all Tables a specified field is available. You can find out through transaction code SE15.

1) Give SE15 on command prompt. 2) Select ABAP Dictionary 3) Select "fields" folder 4) Click on table fields 5) Then you can enter the desired field name (In your case EKGRP) 6) Run OR press F8. The system will list out all the tables which contain your desired field name. or 1) using transactin Code SE11( ABAP Dictionary) 2) enter the Data table name where-in the respective field (EKGRP) is used eg; EKKO 3) Click the where -used list button 4) Check out the box(DB tables) Only . There you can see entire list of tables containing the desired field. Here the difficulty is that one should know at least the name of the one of the data tables which contain the desired field. With Compliment by: Manohar TS & Kotha ********** Find the Table Name For a Field. I know couple of ways to find the table name for a field. like. 1. Part the cursor at the field and press F1 & F9. 2. se84 or se15 3. st05 (sql trace). 4. Setting Break point in ABAP. If you will tell other methods it will be apreciate. ********** * How to print Apostrophe using the write statement * For e.g. You'll be there. * report zapostrophe message-id z1. DATA: LINE(20). CONCATENATE 'You''' 'll be there.' INTO LINE. WRITE:/ LINE. ********** Given a transaction code, how can I find the menu path? In 4.6c, you can used tcode search_sap_menu to find the SAP MENU tcode. Please note that there are no tcode available to find the path of the IMG transaction. ********** How to un-encrypt SAP user password? It is not possible to un-encrypt the SAP password, because a one-way encoding (with strong 1024 bit key) is used for this. The result is stored and each time one has entered the password the encoding result is checked. ********** When you delete an entry from an internal table in ABAP, the system has to re-generate the index for all entries after your delete, slowing the report if you have many records to eliminate. It is much quicker to do an insert of the correct records into a second table than to delete entries from the first. The reason for this is because the index is only generated for the newest element. ********** If you want to protect a program against debugging, you just have to set the STATUS = S in the attributes view of the main program. ********** BDC. When You use a call transaction ,and populate the BDCDATA table. Make sure you pass the "DATE FIELDS" of any transaction by formatting it as "XX/XX/YYYY" cos if you pick this data from database it

will be of the format 20030505 or something like that. Make sure You pass this value as character field. Same is true for the "Rate Fields". Make sure you pass them as "Character Fields" by formatting them. ********** If you need to find out the Okcodes for BDC sessions, look for program RSBDCCUA and run it for any platform say 'WN' for windows or MC for Mac and it will generate list of function codes ********** To save the contents of an internal table as a Microsoft Excel Worksheet when debugging code in SAP R/3 Enterprise: 1. Click on the "Table" button 2. Type in the name of your internal table in the "Internal table" field and hit Enter. 3. Hit CTRL + F11 or click on the "Save as Excel Worksheet" button. 4. Type in the record numbers that you want to save. (Ex. From Line: 1 To Line: 10) Hit Enter. 5. Save your file. ********** Starts with a Z is homegrown program You cannot be sure that anything which starts with a Z is a homegrown program. SAP provide a number of correction programs, especially within the archiving area, which start with a Z. For e.g. ZZSTOCKL from note 202345. ********** Can line-size of abap report large than 255? You can have line-size upto 1023. Along with Report statement pass the line-size as 1023. Ex. Report xyz line-size 1023. ********** How to find out the number of days between a given date, excluding Saturdays and Sundays and public holidays? Try functions, => DATE_CONVERT_TO_FACTORYDATE => HR_HK_DIFF_BT_2_DATES

Das könnte Ihnen auch gefallen