Sie sind auf Seite 1von 14

1. Difference between Workarea and Headerline? 2. Difference between Get and GetLate? 3. What is the use of start-of-selection event?

what is the difference between end-of-page and end-of-selection ?

Start-of-Selection-This event gets triggered when the user clicks on execute button on Selection screen. All the Data retrieval and data processing logic will be written in this event. End-of-page- This event is used to print page footers for a report End-of-selection- Any processing required before exiting the report is done in End-of-Selection.

4.

What is the difference between at first & at new statements ?

At First - Get triggered for the first loop iteration. Can be used for printing report headers. At new - This event gets triggered when a new value is assigned to the field loop. This event is normally used for Group headers. Example: Item no Name At First 101 chris 101 Mathew At new 102 Rachel 102 Natasha At new 103 Chait 5. What are the main events that are used in an ALV report? Reuse_alv_fieldcatalog_merge Reuse_alv_list_display Reuse_alv_events_get Reuse_alv_grid_display Reuse_alv_commentary_write REUSE_ALV_BLOCK_LIST_INIT REUSE_ALV_BLOCK_LIST_APPEND REUSE_ALV_BLOCK_LIST_DISPLAY

We have total 17 events in ALV. some events we will be using are TOP_OF_PAGE,USER_COMMAND. 6. HOW TO CREATE INDEXES IN TABLES? Go to transaction SE11, open your database table. Choose the menu, Goto>Indexes to create index. Give your index name and choose the fields of the table. Be careful, an additional index may vanish with the next upgrade or hotpackage.

7. How to use binary search in internal table? What is the use of indexes and
secondary indexes?

In binary search, the total records are divided in to two parts. It will search the particular record in first half and then in second half. Binary means, dividing in two parts. Indexs are used to get the data very fast. Indexs are 2 types, primary and secondary. Primary indexes are crated during the creation of table. By defaultly primary indexes are created. But secondary indexes are created by used according to user need. 8. What is the functionality of data class? Data class tells how the table is automatically going to be assigned to the correct area of table space or Data base space of the database when it is created.Each data class corresponds to a physical area in which all the tables assigned to this data class are stored.Following are the data classes: APPL0 (master data): Data which is seldomly changed. An example of master data is the data contained in an address file, such as the name, address and telephone number. APPL1 (transaction data): Data that is frequently changed. An example of transaction data is the goods in a warehouse, which change after each purchase order. APPL2 (organizational data): Customizing data that is defined when the system is installed and seldomly changed. An example is the table with country codes. 9. what is the use of help view? How can we create search help for a field? In how
many ways we can give search help?

Help view is used to display the list of possible values for a particular help. Helps are of two types. Elementary Search help. Collective Search Help. 10. What is the difference between user exit and customer exit? what is ment by
cusomer exit? and what is the difference between user exit and badi?

As you already know a search help can be declared at various places in SAP. It becomes a tough task if you want a custom search help for a custom screen field, and wondering where to attach it. Here is the hierarchy of Search helps which determines which search help will pop up the values.

SH at assigned at screen filed |__SH assigned at PBO of the module pool |__SH assigned using check table
( if the filed refers to a database table-filed)

|__SH assigned using data element |__SH assigned using domain fixed values

|__Time/date field parameters: p_ebeln type ekko-ebeln. TYPES: BEGIN OF t_ekko, ebeln TYPE ekpo-ebeln, ebelp TYPE ekpo-ebelp, statu TYPE ekpo-statu, aedat TYPE ekpo-aedat, matnr TYPE ekpo-matnr, menge TYPE ekpo-menge, meins TYPE ekpo-meins, netpr TYPE ekpo-netpr, peinh TYPE ekpo-peinh, END OF t_ekko. DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0, wa_ekko TYPE t_ekko, it_return type STANDARD TABLE OF DDSHRETVAL, wa_return like line of it_return. ************************************************************** *at selection-screen at selection-screen on value-request for p_ebeln. select * up to 10 rows from ekko into CORRESPONDING FIELDS OF TABLE it_ekko. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = 'EKKO' RETFIELD = 'EBELN' * PVALKEY = ' ' * DYNPPROG = sy-repid * DYNPNR = sy-dynnr * DYNPROFIELD = 'EBELN' * STEPL = 0 WINDOW_TITLE = 'Ekko Records' * VALUE = ' ' VALUE_ORG = 'S' * MULTIPLE_CHOICE = 'X' "allows you select multiple entries from the popup * DISPLAY = ' ' * CALLBACK_PROGRAM = ' ' * CALLBACK_FORM = ' ' * MARK_TAB = * IMPORTING * USER_RESET = ld_ret TABLES VALUE_TAB = it_ekko * FIELD_TAB = lt_field RETURN_TAB = it_return * DYNPFLD_MAPPING = EXCEPTIONS PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2 OTHERS = 3. READ TABLE it_return into wa_return index 1. p_ebeln = wa_return-fieldval.

11. what is Bapi? what is the functionality of Bapi? why we go for Bapi? 12. What is the difference between user exit and customer exit? what is ment by
cusomer exit? and what is the difference between user exit and badi?

USER EXITS are FORMS and are called by SAP standard programs using PERFORM. CUSTOMER EXITS are FUNCTIONS so they are called using CALL FUNCTION (or more exactly CALL CUSTOMER FUNCTION). Inside the form (user exit) you can read and change almost any global data from host program. Inside a function (customer exit) you can only acces your import/export/changing/tables parameters. User exits are more flexible because you have more information to use in your code but on the other hand , it is very easy to manipulate erroneously global data and lead the standard program to a dump or even to make database inconsistent. Customer exits are more restrictive but you are sure any change you can make to any parameters will never lead to inconsistency User-exit doesnt have any classification. In customer-exit we have function-module exit , screen exit , menu exit. User exits are Basically designed For SD module. Costomer exits Are available for MM,SD,FI,HR..Basically designed for all modules. diff b/w user exit and badi In user exits we go by general method for enhancements while BADIs we use objects (oops concepts) methods for enhancement UserExits r used for adding additional functionality to the existing SAP standard transactions.Using UserExits we can add additional functionality standard SAP functionality without making any changes to the original code.BADI is a standardized interface for ABAP sources that enables partners and customers to enhance SAP-delivered programs in their namespace.
13. what are value table and check table ?and what are the difference between them?

Value Table This is maintained at Domain Level. When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG Debit/credit indicator. Here only allowed values is H or S. When ever you use this Domain, the system will forces you to enter only these values.

This is a sort of master check . To be maintained as a customization object. This mean that if you want to enter values to this table you have to create a development request & transport the same. Check table For example you have Employee master table & Employee Transaction table. When ever an employee Transacts we need to check whether that employee exists , so we can refer to the employee master table. This is nothing but a Parent & Child relationship . Here data can be maintained at client level , no development involved. As per DBMS what we call foregin key table, is called as check table in SAP. There is 1 more important Difference in Value Table and Check Table is that: 1. The contents of the check will be used as an input help(F4 Help) for a particular field on which a check table is assigned. But the contents of Value Table are never used in Input Help. The Heirarchy which decides from where to used the Input Help is: 1. Input help defined explicitly in ABAP Program or Dialog Module. 2. Input Help Attached to the referenced Database Table field. 3. Using the contents of Check Table as an input help if neither (1) or (2) help are there. 4. Input help from Fixed value or Value range given in Domain.

Value Table : It is maintained at domain level. Before inserting a row into it, it first check weather a corresponding field exist in the check table or not. If exist it allows to make an entry. it is also called foreign key table. Check table : it is maintained at field level. 14. What is the difference between user exits and BAdi? 15. what will be the size of transparant table ?

Size of transparent table is determine frm the settings for the data class and size category ? 16. How to Read long Text using Scripts

Use function module read_text 17. What is WEB Dynpro Comp. intf?
Webdynpro component is a way to group View (which can be seen), Code (Which can be executed). Some where this concept is related to Object Oriented Class, Where you have data and code grouped together. And in Webdynpro data, Code and view is grouped together.
program ?

18. How to retrieve data from the data base using scripts with out touching the print
you can write your own select statements in script you can do this by perform statement the form will be a normal report program which you write in transaction se38 19.How can I transfer a sap script form from one client to another? To transfer Sap script from 1 client to another: Use TCODE SCC1. Enter the Transport request number enter the client number from which you want to transfer. If there are sub task check the relevant box. click transport immediately. To copy a sapscript to create a new sapscript of similar type. goto>TCODE-SE71>enter sapscript name>click in the dropdown list copy client>enter the target sapscript name. if the sapscript is locked in any transport then copy the trasport into target client using SCC1 transaction. 20.If I am in 15th Secondary List how to navigate to 5th Secondary List? use list index system variable. re-initialize it to 5. We have to make use of SY-LSIND. ie, AT LINE-SELECTION. IF SY-LSIND = 15. SY-LSIND = 5. ENDIF.

21.In a module pool How to set drop down list? we can set drop downlist in domain value range. Use function module 'VRM_SET_VALUES'. 22. How do u upload a potrait or landscape in a sapscript? In Attributes option,we have the option to select potrait or landscape.You can choose either of them to upload in scripts. 23. What is the difference between collect and sum? SUM. When processing an internal table in a block starting with LOOP and concluded by ENDLOOP , SUM calculates the control totals of all fields of type I , F and P (see also ABAP/4 number types ) and places them in the LOOP output area (header line of the internal table or an explicitly specified work area).

When you use SUM in a LOOP with an explicitly specified output area, this output area must be compatible with the line type of the internal table.When using LOOP to process a sorted extract (see SORT ), the control total of f at the end of the group appears in the field SUM(f) - - if f is type I , F or P . COLLECT. COLLECT is used to create unique or compressed datsets. The key fields are the default key fields of the internal table itab . If you use only COLLECT to fill an internal table, COLLECT makes sure that the internal table does not contain two entries with the same default key fields. If, besides its default key fields, the internal table contains number fields,the contents of these number fields are added together if the internal table already contains an entry with the same key fields. If the default key of an internal table processed with COLLECT is blank, all the values are added up in the first table line. If you specify wa INTO , the entry to be processed is taken from the explicitly specified work area wa . If not, it comes from the header line of the internal table itab . After COLLECT , the system field SY-TABIX contains the index of the - existing or new - table entry with default key fields which match those of the entry to be processed. COLLECT can create unique or compressed datasets and should be used precisely for this purpose. If uniqueness or compression are unimportant, or two values with identical default key field values could not possibly occur in your particular task, you should use APPEND instead. However, for a unique or compressed dataset which is also efficient, COLLECT is the statement to use. If you process a table with COLLECT , you should also use COLLECT to fill it. Only by doing this can you guarantee that the internal table will actually be unique or compressed, as described above and COLLECT will run very efficiently. If you use COLLECT with an explicitly specified work area, it must be compatible with the line type of the internal table. COLLECT: if an entry with the same key already exit then COLLECT statement does not append a new line but adds the contents of numeric fields to contents of numeric fields of current line entry. SUM: if you use SUM inside AT-ENDAT block. the system calculates totals for the numeric fields of all lines in the current line group and writes them to corresponding fields. 24. In the ?select? statement what is ?group by?? Group by clause is used to fetch the data from the table by the specified field ex.select count (*) from emptable group by deptno where deptno = 1. It is used to find the number of employees present in the specified department no.

the group by clause is your to retrieve the data in a sorted order based on the fld mentioned in group by.
25. On ABAP: Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

Yes. Execute the Txn SWDD(Creating a new Workflow). In the header of the Workflow, define the Business Object and Event you refer to for triggering the Wf. Create the Steps required for your workflow(Activity). Inside the Activity, Create the task and assign the Business Object and the related method for that business object. Activate the Workflow. 26. What is the advantage of structures? How do you use them in the ABAP
programs?

A structure is created in a program mainly for the purpose of reusability.i.e. if you want to create 2 internal tables of same type , then instead of creating 2 internal tables separately we can define a structure and create any number of internal tables of this structure type. 27. What is the typical structure of an ABAP/4 program? Structure of ABAP/4 program is , 1. Declaration 2. Dialog Module 3. Event Block 4. Procedure Ans:Declarative elements operational, control, Events 28. How can you debugg a script form? SE71 -> give the form name -> utilities -> activate debugger can also be done through program RSTXDBUG. 29. Have you used performance tuning? What major steps will you use for these? Precautions to be taken while u write the program :(SE30 : For performance check) Note: If we want to check the performance of your program goto SE30 Transaction Code and select the program radio button and give ur program name and press execute button and see ur program result and click back that will take u to se30 Transaction code and press the analyze button and see ur program performance there if it is green it is good if it is red ur program have poor performance.Try below rules to improve ur program performance. 1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE. 2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved. 3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement 4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.

5. Avoid 6. Avoid TABLE. 7. Avoid 8. Avoid

using nested SELECT statement, SELECT within LOOPs. using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO using SELECT * and Select only the required fields from the table. nested loops when working with large internal tables.

30. How data is stored in cluster table? A cluster table conatins data from mulitple DDIC tables. It stores data as a name value pair ( varkey, vardata) 31. Have you worked with field groups? Have you used Import/Export statements?
32.

What?s an effective way of using an internal table record? What are the types of internal tables? Internal tbles are of mainly 1. Standard:- Sy-tabix will increment. Time taken to find a record'd depends to the position of the record. 2. Sorted:- Sy-tabix will increment. Time taken to find a record'd depends on the log value. Either Append or INSERT will throw a dump. 3. Hased:- Sy-tabix / index will remain zero. Time taken to find a record'd based on the in-built hash alogorithm and it should be same for 1st and last record.

33 What is the difference between invoice and proforma invoice? Proforma invoice nothing but the invoice is recived before sending material for advance payment. invoice is nothing but the invoice send with material.payemnt for this materail will give after suitablity.

Invoice is the actual invoice for which the customer is billed. Proforma invoice is the duplicate copy of actual invoice which is sent to customer in prior to billing for information purpose.

33.

Buffering means the data stored at runtime temporarly in application server parllel to database server. in real time we use condition buffering option in this perment data stored in buffer. We need to create a shortcut from the SAPGUI by giving System command as /h. and drag this shortcut in the POPUP window it will go into dugging mode

34. If have 10 pages in script,how u can u start from 10th page? 35. How to debug a popup window? 36.

Generate a new text file.Insert the following contents: [Function] Command=/H Title=Debugger Type=SystemCommand Save the file and rename it as 'Debugger.sap'. This way the shortcut is defined. You can now drag and drop it to the SAPGui in order to activate the debugger. 34 What is the standard program to check the onsistency of the partner profiles? RSECHK07
35 What is the various print modes available with SAP scripts?

Default S Simplex (single sided) D Duplex (duble sided) T Tumble Duplex (duble sided)
37. What are the two types of request available in CTS?

There Are 4 types of request in CTS 1.Reallocation 2.Customizing Request 3. Workbench request. 4.Transport of Copies
38. SAP modifications and enhancements stored in which table?

These are the Related tables for the questions. MODSAP-SAP Enhancements MODACT-Modifications MODATTR-Attributes of Extension Project
39. How do you suppress blank spaces in sap scripts?

&SYMBOL(Z)& Suppress leading zeros &SYMBOL(C)& Compress blank spaces - Consecutice spaces are compressed into a single space. Leading spacesare suppressed. 40 Which table stores the online messages?
T100 41What are version management functions?

version management is the tool is used to compare the objects with version of the current objects. by using the version management user can compare the previous object with the version of the current object.who has been modified and who did it. 42How can i access SAP through internet? 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.

Yes you can access the SAP throgh internet but for that SAPGUI software should be loaded to the internet browser, than only we can access SAP. The problem is we need to download SAPGUI each time if we are using different machines at different locations. So to avoid this complexity SAP has introduced SAP Enetrprise Portal(E.P.) which is machine independent.so we can get it with any internet browser software. 43. What class is used to display the ALV grid control? Use the Class CL_GUI_ALV_GRID To display the ALV grid control and call Method SET_TABLE_FOR_FIRST_DISPLAY.

44. Difference between Occurs0,occurs10 and occurs100? The differneses are given below. 1. occurs 0: (It means it will create the default rows for the internal table depend on the requirement) 2. Occurs 10. (It means it will create the 11 rows for the internal table) 3.Occurs 100. (It means it will create the 101 rows for the internal table) But where as in defauty the system is create the 8KB size of the memory space for the internal table.

45.

Question : How to create a index on views?

We can creat the index on views like this. go to the abap dictonary transaction code is SE11 and select the radiobutton type as view and select the particular view type and creat the index for that table based on the primary key value. So mandatory key is important role in the while creating the index based on the views. Index: is a sap provide mechanizam to retrive the records fastly from the database based on the primary key value of the table. 46. Can we have more than one selection-screen . And how ? We have created the more than one selection screen by using the call screen statement .

This is the syntax for the more than one selection screen. call screen (sno) including program (program) (screen no)
What is the significance of keyword " H I D E" What is the use of " TABLE MANTENANCE ALLOWED " . And itts transaction code

The main purpose of the table maintenance generator is to Create/Change/Delete the table entries with out writing any code. When ever we create table maintenance generator it will generate a standard program. Another important thing is when ever u change ur table structure(Include/delete fields) don't forget to delete and recreate the table maintenance. Because the structure of the table was changed. If u try access Table maintenance generator(SM30) after changing the structure then it will through u a dump.
WHAT ARE THE STEP LOOPS . HOW DO U PERFORM PAGE DOWN AND PAGE UP IN STEP LOOPS.

Screen Tables are two types: table control step loops. table controls: table control is used to pass the data into the table at the runtime of the system. By using the loop at statement in both PAI and PBO events. It is treated like a loop in the both of the statements.You can scroll the both vertically and horizentally. Step loops: IT is also called the screen table. But the major difference between the step loop is used to repeat the block of the fields of the screen . These fields are repeat each and every time of the screen. But you can scroll vertically but not horizentally.
what is difference between update and modify

MODIFY - is used for modifying the existing data on the basis of primary key and if there is no data in table then Modify command will add new record into table. UPDATE - is used for only modifying the existing data on the basis of primary key.

What is cardinality.how it will work in abap

Cardinality is defined during foreign key relationship.The cardinality of the foreign key relationship describes, for each value in the check table, how many rows of data are allowed to be in the foreign key table. Cardinality is defined as X:Y, where refers to the check

table and Y refers to the foreign key table. X can have only values 1 or C and Y can be 1,C,N or CN. 1,C,N,CN has specific descriptions.cardinality is not enforced by the system.It is optional.
What is an index? By default system will create the primary index or User can create,if user How? And also Secondary indexes by User or by defaultly system?

Index is used to retrive the fast access the data from the database by using the indexes. This is the efficient mechanizam to retrive the data differnt databases. indexes are two types of given below. 1.primary index. 2. secondary index. 1.primary index.: is used to access the only one record from the database. That means that should be unique. It is also called one to one relation ship. 2.secondary index: is used to access the data only more than one record data base. This is called the secondary index. The secondary index is used to relation ship is the one-to-many relationships.

What is the difference between LSMW and CATT?

The major difference between the LSMW and cATT LSMW: is uesd to migration of data from non-sap system to the sap system or sap system to sap system.here what happend means the data is migrated from the one system to another system. so this is a migration tool whereas in CATT is used to computer aided testing tool is used to test the abap object so this is a testing tool (catt) this is a migration tool (lsmw)

Das könnte Ihnen auch gefallen