Re: what is sap package ?

Answer #2 A Package is Type of Development object which act as a container to store a development objects such as screens , menus, function , transactions

Re: How to debugg script? Answer #1 go to se71 specify the form name, utilities under that activate debugger sap scripts was debugger. go to me23n click on print preview, one popup will display like sap script was debugger click on ok button here it will display the form painter, here we can debug the form

Re: Hi To all ABAP Guru's while transporting any report program do we need to trasnport the text elements seprately or not reuired ? if it is so how do u transport the text elemtns ? Thanks in Advance for ur answers Answer #1 Hi, Text elements or any GUI elements get stored in a separate repository called MIME in ABAP. If you want to transport text elements or GUI elements of your report, the only thing you have to take care is - Transport your report in a specific package, Go to the Object navigator and make sure you transport the relevant text and GUI objects via the same package. Transporting / not transporting purely depends on the requirement.

Re: how can we print both side in smartforms? what connects smartform to it's driver program? in which event validation is done? Answer #1 We can print page in both sides , By setting print mode as 'DUPLEX' in Print attributes of page node.

FUNCTION MODULE connects Smart form to its driver program.

Re: u r running a report .it is taking a long time for execution .what steps will u do to reduce the execution time? Answer #3 If the report is taking time to fetch data from the database server we have to make sure that there is an optimized "query". In order to have an optimized query we need to write an optimized "where" conditions. That's database part. Coming to the Programming part. Say example. Our program has the usage of 95% and the database usage of 5 % then we have to see the program's performance. Try to reduce the number of LOOP's in a program and also try to use the logical operators where ever necessary to reduce the size of the program . that could solve the problem. Performance of reports could be increased by avaioind nested select statements. Instead use Select ... FOR ALL ENTRIES. Restrict the use of Select... Endselect, instead go for select .. inot table itab and then loop at itab. Avoid nested loop statement, Do not use select within loop. Do not call function module within loop statement.

Re: How to compare the two tables between the two systems? what is the process if anyone tell me please give me the answer? Answer #2 You can use the Transaction SCMP to compare table or view of two different systems. For this you need to have R/3 connection.

Re: we can write the select query or any code after the end of selection Answer #1 yes , you can write.

Re: what is the use of lock object?? Answer #2 Hi Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database. SAP Provide three type of Lock objects. - Read Lock(Shared Locked) protects read access to an object. The read lock allows other transactions read access but not write access to the locked area of the table - Write Lock(exclusive lock) protects write access to an object. The write lock allows other transactions neither read nor write access to the locked area of the table. You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK. Technicaly: When you create a lock object System automatically creat two function module. 1. ENQUEUE_<Lockobject name>. to insert the object in a queue. 2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM. You have to use these function module in your program

Re: If we put Top of Page in between Start-of-selection and End-of-selection and what happenes Answer #1 Nothing will happen! the run time system picks up the events always in its predefined order.eventough you code any event in any order always right event is picked and processed.

Re: What is a difference between - RETURN, EXIT, CHECK, STOP & REJECT - To leave the processing blocks Answer #1 STOP: This terminates the block and executes end-of selection. EXIT: It terminates the loop processing and process the next statements. CHECK: It evaluates the subsequent logical expression if it is true the processing continue with the next statement. CONTINUE terminates the current loop pass, returns the processing to the beginning of the loop and starts the next loop pass, REJECT: it terminates the current event, even from loops or subroutines.

Re: How to get the table name from a field? NOTE:if only the field name is given in a flat file. Answer #2 we can find the table for a specific field from table DD03L which will contain all table names for corresponding fields. Re: how many times a main window can be placed on placed on the same page in a layout Answer #1 99 main windows we can place in same page Main00, Main01..... Main98

The Session method in BDC utilizes the Function Modules: BDC_OPEN_GROUP BDC_INSERT BDC_CLOSE_GROUP The data is present in the session is not updated in the tables until & unless the session is processed by the transaction SM35. It also updates the data synchronously. It has an inbuilt error log. Call Transaction method: Update the records faster. It should return the value. Re: How to deactivate the sort button from the alv output Answer #1 goto "reuse_alv_grid_display" there sort option is there

syncharnous 3. bapi's are useful for certain taransactions where bdc's can't be used like nace transactions. RFC r three type 1. but usually caller and called will be in different system.give status ' ' Re: diff way of handling errors in call trans ans session methods Answer #1 In call transaction. In call transaction we handle the the errors explicitly Where as in session method errors will be implicitly in error logs. In Session Method.transaction Re: What is performance tuning? Answer #1 performance tuning is to improve the program performance . After that . the main advantage of bapi's is they are also used for the migration of data from one non-sap to sap system. the errors can be handled by BDCMSGCOLL Structure and its fm format_messages to display the appropriate messages. Re: can please tell me the differences b/w bapi & bdc? Answer #1 bapi's are procedural and object oriented . the remote function can also be called from with in the system .asyncharnous 2. error log analysis report will be generated to update errors. Re: wat is RFC?wat r the RFC types? Answer #2 A remote function call is a call to a function module running in system different from the caller's. we have generated error logs to locate the errors wherein we can find errors on a particular line.

this event block allows you to modify the selection screen directly before it is displayed. Avoid using move-corresponding 4. At selection screen event occurs while selection screen being processed .using some features. what is difference between At selection screen & At selection out put ? 3 . use key fields in where calues 6. Re: 1. Avoid using global varaibales 3. Re: What are Major differences in Smart forms and Scripts Answer #1 SAP Script is Client Dependent. it is used to validate the user inputs in the selection screen at selection screen output : in PBO of selection screen . using nested selects. for all entries. Avoid using '*' in ur select query 5. 1. Smartforms is Client Indipendent. what is node used in smart form ? Answer #2 2)Answer. at selection screen output event is triggered . . the COLLECT statement does not append a new line. using view. ST05 is Tcode for performance tuning. Re: What is IDOC? Answer #1 It is an standard intermediate document used in EDI/ALE process used in transferring the business objects to business partners and in distribution of master data to the diff plants which belongs to diff company codes. Avoid using nested select statemtns 2. Driver prog & executive prog both r same ? 2. but adds the contents of the numeric fields in the work area to the contents of the numeric fields in the existing entry. Avoid using query llooop Re: What is collect statement?explain with example? Answer #1 if an entry with the same key already exists.

data:itab1 type table of itab with header line. Re: Which configuration we have to make first before we want to start Business Workflow with our SAP R/3 Answer #1 The first of all you should check the TCODE: SWU3 Then config step by step according to the tcode screen Re: How do you define an internal using types? Answer #1 We can define internal tables in different ways. In Scripts Main window is mandatary but in smartform not necessary. b type c. types:begin of itab. sorted table also. using the FM we can call all windows data From the smartform. In Scripts if u want to access any data from windows we must call the write_form for every window in Driver Program but in Smartforms when we are activating the smartform it automatically generates a FM. In Scripts if u want with work with Tables and Templates long process. Smartform is very userfriendly than SAP Scripts. Instead of standard table . in smartforms very easy to work using navigation. ex: DATA: ITAB TYPE STANDARD TABLE OF KNA1. Re: explain the script component in script? Answer #1 The various component of the SAP script tools are: . we can use hashed table. In Scripts main windows are avable from main00-98 but in Smartforms only one main window. end of itab.In Scripts We r unable print the Background Pictures but in Smartform can do. One way is by using types. a type i.

5.if database has no records it will work as like this. Editor . we can't use that structure in another table. . Re: 1.print the record by using the statement Loop at Loop at Itab write: itab-field. Answer #1 1. The transaction of an application automatically calls this editor if you need to maintain texts related to the application. first up all it will check the base table if this table is empty then it will retrive the data from the destination table based on the condition. various formating options and the respective text. Append structure : it will add Fields to the table from last .Edits the text in a SAPscript form. we can use include structure in more than one table.Store texts.create the pushbutton in Presentation server by using the syntax is given below. Endloop. Programming interface .1.Acts as central output module to prepare final layout and text for an output device by including styles .Allows you to include SAPscript component into ABAP program and control the output of forms from the program. 2.How can we print the record. 2. 2. 4. Include structure: we can add fields in middle. This is initilized into the Initialization event in the classical report. 3. Answer #1 1. 3.If database has nor records & if we write 'for all entries' in select statement then what will be happen.What is the difference between append structure and include structure. styles and forms. what is the logging of technical setting while creating db table. for creating the pushbutton: selection-screen pushbutton 10(06) 'name of pushbutton' user-command cli1. Composer or From processor . How can we create PUSH Botton in presentation layer.Define and print the style and layout of SAPscript form. Database tables . Re: can any one tell me the following question's answer 1. 3. 2.Styles and Forms . 2.

1..Chinmaya 3. .. . AT *** . LOOP AND ENDLOOP --------------LOOP. Field group works in conjuction with INSERT f1 f2 INTO fg EXTRACT fg SORT BY fg LOOP .FOOTER. *-. Only global data fields can be inserted and not local data fields eg : in form modules.. 2..... What should be the approach for writing a BDC program? ANS:STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal table CALLED "CONVERSION".... SORT BY fg ---------Sorting of sequential dataset by field group. What is the typical structure of an ABAP/4 program? ANS:HEADER . What are field symbols and field groups..BODY. ENDAT.. ENDAT. AT *** ..? Have you used "component idx of structure" clause with field groups? ANS:Field symbols:Field groups :Can any body explain me what is field group? Field groups are groups similar fields together into one name.... STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED "SAP DATA . ENDLOOP INSERT f1 f2 INTO fg --------------------The insert statement is used to create a field group dynamically by inserting the field into it.. ENDLOOP. EXTRACT fg ---------This will combine all the fields in the fieldgroup and write them to a sequential dataset as a single record.

12. step 3: creating tables(SE11).Exists with the same structure both in dictionary as well as in database exactly with the same data and fields. TRANSPARENT TABLE DO EXIST WITH THE SAME STRUCTURE BOTH IN THE . Can a transparent table exist in data dictionary but not in the data base physically? ANS:. What are the problems in processing batch input sessions? How is batch input process different from processing online? ANS:PROBLEMS:i) If the user forgets to opt for keep session then the session will be automatically removed from the session queue(log remains). iv)Internal tables ..if success data will transfer). 10. ii)if session processing fails data will not be transferred to SAP database table. STEP 3: DEPENDING UPON THE BDC TYPE i)call transaction(Write the program explicity) ii) create sessions (sessions are created and processed. What is the alternative to batch input session? ANS:Call transaction.TRANSFER". However if session is processed we may delete it manually. step 2: creating data elements(properties and type for a table field).NO.program name behind it. ii)Pool tables & iii)Cluster tables These are logical tables that are arranged as records of transparent tables. and how next screen is processed. How many types of tables exists and what are they in data dictionary? ans :4 types of tables i)Transparent tables . lock objects. 11. to which screen it is passed. How to do it? ANS:go to SM36 and create background job by giving job name.range). 5. structures. Matchcode objects. Data along with the action is stored in session ie data for screen fields.They are not managable directly using database system tools. views. 4. Both Opensql and Nativesql can be used.field length. domains. 13. What is a batch input session? ANS:BATCH INPUT SESSION is an intermediate step between internal table and database table. What is the step by step process to create a table in data dictionary? ans:step 1: creating domains(data type.one cannot use native sql on these tables (only opensql). We need to submit the program and the batch session in back ground. What are the different types of data dictionary objects? ans:tables. 6. data elements. A situation: An ABAP program creates a batch input session.job class and job steps (JOB SCHEDULING) 8.

What is a collect statement? How is it different from append? ANS:If an entry with the same key already exists. Open SQL is consistant across different types of existing Databases. What does an extract statement do in the ABAP program? ANS:Once you have declared the possible record types as field groups and defined their structure. As soon as the system has processed the first EXTRACT statement for a field group <fg>.RANGE. By processing EXTRACT statements several times using different field groups. 19. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement. the new extract record is added to the dataset EXTRACT HEADER. eg:. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it? ANS:- . If you try to modify one of the field groups afterwards and use it in another EXTRACT statement. Native SQL is the database language specific to database.Its API is specific to the databse. 18. extract datasets provide the advantage that you need not determine the structure at the beginning of the program. DATA ELEMENT : A FIELD IN R/3 SYSTEM IS A DATA ELEMENT. What is the advantage of structures? How do you use them in the ABAP programs? ANS:Adv:. 15.here we are referening to a data object(SPFLI) not data element. What are the domains and data elements? ANS:DOMAINS : FORMAL DEFINITION OF THE DATA TYPES.by Madhukar Open SQL . What is open sql vs native sql? ANS:. the system creates the extract dataset and adds the first extract record to it.LENGTH. you fill the extract dataset with records of different length and structure. In each subsequent EXTRACT statement. the record is filled with the current values of the corresponding fields. the structure of the corresponding extract record in the extract dataset is fixed. 16. native SQL are the interfaces to create the database applicatons. a runtime error occurs.GLOBAL EXISTANCE(these could be used by any other program without creating it again).THEY SET ATTRIBUTES SUCH AS DATA TYPE. You can no longer insert new fields into the field groups <fg> and HEADER.DICTIONARY AS WELL AS IN THE DATABASE. 17. you can fill the extract dataset using the following statements: EXTRACT <fg>.EXACTLY WITH THE SAME DATA AND FIELDS. but adds the contents of the numeric fields in the work area to the contents of the numeric fields in the existing entry. When the first EXTRACT statement occurs in a program. 14. the COLLECT statement does not append a new line.ITAB LIKE SPFLI. Can you create a table with fields not referring to data elements? ANS:YES. Open SQL API is consistent across all vendors 20. When you extract the data.

At line-selection.IR USER HAS CONTROL. 25.modification and updation of records by any user.At LAST. b) ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.VIEWS.At PF. ANS:creating function module:called program .end-of-selection.STRUCTURES.import.At New.top-of-page. 24. Name a few data dictionary objects? //rep// ANS:TABLES. At selection-screen.IN INTERACTIVE DRILLING IS POSSIBLE.exceptions.exception values.Start-of-selection.LOCK OBJECTS. 31.provide export.YYYY.At user-command.se37-creating funcgrp. What are the exceptions in function module? ANS:COMMUNICATION_FAILURE SYSTEM_FAILURE 27. What happens when a table is activated in DD? ANS:It is available for any insertion. 23. c) IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.MM. What are the events in ABAP/4 language? ANS:Initialization. HH:MM:SS 30. .tables.21. How are the date and time field values stored in SAP? ANS:DD. diff:a) THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with the system the list produced by interactive report allows the user to interact with the system.AT END.end-of-page.Get. calling program . AT FIRST.importing. What is an interactive report? What is the obvious diff of such report compared with classical type reports? ANS:An Interactive report is a dynamic drill down report that produces the list on users choice. What is the meaning of ABAP/4 editor integrated with ABAP/4 data dictionary? ANS:22.tables.MATCHCODE OBJECTS. 26. What is a function group? ANS:GROUP OF ALL RELATED FUNCTIONS.funcmodule by assigning attributes. What is a drill down report? ANS:Its an Interactive report where in the user can get more relavent data by selecting explicitly. 28.exporting. How do you write a function module in SAP? describe.SE38-in pgm click pattern and write function name.

Parameters name(30). when the user executes the ABAP/4 program.an input field for 'name' will appear on the selection screen. 38. 33.32. . SELECT-OPTIONS allow users to fill an internal table with a range of values. How do you validate the selection criteria of a report? And how do you display initial values in a selection screen? ANS:validate :. The type of LOW and HIGH is the same as that of <field>. What is table maintenance generator? ANS:36. 34.Parameters <name> default 'xxx'. What are select options and what is the diff from parameters? ANS:select options provide ranges where as parameters do not.by using match code objects. display :. What transactions do you use for data analysis? ANS:35. What are match codes? describe? ans:It is a similar to table index that gives list of possible values for either primary keys or nonprimary keys.Change. select-options <name> for spfli-carrid. SELECT-OPTIONS declares an internal table which is automatically filled with values or ranges of values entered by the end user. the system creates a selection table. The SIGN field can take the following values: I Inclusive (should apply) E Exclusive (should not apply) The OPTION field can take the following values: EQ Equal GT Greater than NE Not equal BT Between LE Less than or equal NB Not between LT Less than CP Contains pattern GE Greater than or equal NP No pattern. 37.Text elements .min values provided in selection screens.You can change the comments on the left side of the input fields by using text elements as described in Selection Texts. What is a check table and what is a value table? Check table will be at field level checking.Selection texts . OPTION. For each SELECT-OPTIONS . LOW and HIGH. Eg:. A selection table is an internal table with fields SIGN. diff:PARAMETERS allow users to enter a single value into an internal field within a report. For each PARAMETERS or SELECT-OPTIONS statement you should define text elements by choosing Goto . Value table will be at domain level checking ex: scarr table is check table for carrid. SELECT-OPTIONS <SEL> FOR <field>. What are ranges? What are number ranges? ANS:max.

How do you take care of performance issues in your ABAP programs? Performance of ABAPs can be improved by minimizing the amount of data to be transferred. iii)The number of memory allocations the system need to allocate for the next record population. SY-LILLI IS ABSOLUTE NO OF LINES FROM WHICH THE EVENT WAS TRIGGERED. Name a few system global variables you can use in ABAP programs? ANS:SY-SUBRC. The data set must be transferred through the network to the applications. see Change and Transport Organizer and Transport Management System.Avoid nested SELECTS. Read and follow this documentation when planning your development project. A Field Symbol does not . 41. .SY-TABIX. 44. This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. 46...SY-DATUM. Some measures that can be taken are: . 45. What are selection texts? ANS:40. i)system tools ii)field symbols and field groups. . ii)using SY-DBCNT..SY-DBCNT.SY-LILLI. What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement? ANS:i)It is a standard data type object which exists only during the runtime of the program.39. What is CTS and what do you know about it? ANS:The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it? ANS:42. ans:Field Symbols : Field symbols are placeholders for existing fields.Range tables should be avoided (IN operator) ..Use views defined in the ABAP/4 DDIC (also has the advantage of better reusability). For practical information on working with the Change and Transport System.Use field list (SELECT clause) rather than SELECT *.Group of users can access these programs with a client no. and then transport the changes between the SAP Systems and clients in your system landscape.SY-UCOMM.SY-UZEIT. What is the client concept in SAP? What is the meaning of client independent? ANS:43. so reducing the amount OF time and also reduces the network traffic. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need. Are programs client dependent? ANS:Yes.

so the code block associated with an event ends with the next event statement (such as another GET or an END-OF-SELECTION). Have you used SAP supplied programs to load master data? 51. ii)check functions which check that user input is complete. 49.and plausible. What are interface/conversion programs in SAP? ANS : CONVERSION : LEGACY SYSTEM TO FLAT FILE. A logical database provides read-only access to a group of related tables to an ABAP/4 program.physically reserve space for a field. iii)meaningful data selection. What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why? 52.At runtime.but points to a field which is not known until runtime of the program. How to find the return code of a statement in ABAP programs? ANS:Using function modules. .the data is sorted by the fields grouped under the HEADER field group.the INSERT command is used to define which data fields are assigned to which field group. 53. What specific statements do you using when writing a drill down report? ans:AT LINE-SELECTION. Field groups : A field group combines several fields under one name.and can issue the SELECT command with proper where clause to retrieve the data. There should always be a HEADER field group that defines how the extracted data will be sorted. adv:The programmer need not worry about the primary key for each table.the GET events never occur. What are logical databases? What are the advantages/disadvantages of logical databases? ANS:To read data from a database tables we use logical database.AT USER-COMMAND.FIELD-SYMBOL <FS> [<TYPE>]. INTERFACE : FLAT FILE TO SAP SYSTEM.AT PF. iv)central authorization checks for database accesses. 48. 47.Because Logical database knows how the different tables relate to each other. What are datasets? ANS:The sequential files(ON APPLICATION SERVER) are called datasets. They are used for file handling in SAP. i)An easy-to-use standard user interface. v)good read access performance while retaining the hierarchical data view determined by the application logic. disadv:i)If you donot specify a logical database in the program attributes. 50. eg:. ii)There is no ENDGET command.correct.

How do you document ABAP/4 programs? Do you use program documentation menu option? 68. What is output determination? 71.54..menu bar. . Layout set is a design document.etc.It is subset of the interface elements(title bar. What are the advantages and disadvantages of ABAP/4 query tool? 56.flow logic + screens. Is it possible to run host command from SAP environment? How do you run? 64. What are screen painter? menu painter? Gui status? .job class and job steps(JOB SCHEDULING) 63. What is a currency factoring technique? 67. menu painter GUI Status . What kind of financial periods exist in SAP? What is the relavent table for that? 65. What are IDOCs? ans:IDOCs are intermediate documents to hold the messages as a container. What are Change header/detail tables? Have you used them? 60. What do you do when the system crashes in the middle of a BDC batch session? ans:we will look into the error log file (SM35).push buttons) used for a certain screen. ans:dynpro . 62.For small errors in data we correct them interactively otherwise modify batch input program that has generated the session or many times even the datafile. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs? ans:go to SM36 and create background job by giving job name. The status comprises those elements that are currently needed by the transaction.standard tool bar. What is SAPscript and layout set? ans:The tool which is used to create layout set is called SAPscript. What do you do with errors in BDC batch sessions? ANS:We look into the list of incorrect session and process it again. 66. To correct incorrect session we analyize the session to determine which screen and value produced the error. What are the functional areas? User groups? and how does ABAP/4 query work in relation to these? 57. 61. What are different tools to report data in SAP? What all have you used? ans:55.system commands. 72. 70. Does SAP handle multiple currencies? Multiple languages? ans:Yes. What are the ABAP/4 commands that link to a layout set? ans:control commands. Is a logical database a requirement/must to write an ABAP/4 query? 59. 69.

only external subroutines Using 'SUBMIT' statement. What are the include programs? ANS:When the same sequence of statements in several programs are to be written repeadly they are coded in include programs (External programs) and are included in ABAP/4 programs. . PAI . Normally how many and what files get created when a transaction program is written? What is the XXXXXTOP program? ans:ABAP/4 program. 80. 86. ABAP IS AN EVENT DRIVEN LANGUAGE. Can you call a subroutine of one program from another program? ans:. What are user exits? What is involved in writing them? What precations are needed? 82. Is ABAP a GUI language? ANS:Yes. 81. DYNPRO 79. 74.73. What are RFCs? How do you write RFCs on SAP side? 83.Yes.CO. What are the general naming conventions of ABAP programs? ANS:Should start with Y or Z.SD.This event is triggered before the screen is displayed.MM.Utilities-Table contents-display. Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called? 76. 75. How do you find the tables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures? ans:Transcode is entered in command field to open the table. What are step loops? How do you program pagedown pageup in step loops? ans:step loops are repeated blocks of field in a screen. What are the different modules of SAP? ans:FI. How do you find if a logical database exists for your program requrements? ans:SLDB-F4.HR.PP. What is screen flow logic? What are the sections in it? Explain PAI and PBO. How do you find the menu path for a given transaction in SAP? ans:87. 84.This event is responsible for processing of screen after the user enters the data and clicks the pushbutton. Overall how do you write transaction programs in SAP? ans:Create program-SE93-create transcode-Run it from command field. ans:The control statements that control the screen flow. 85. PBO . 77. 78.

What are different ABAP/4 editors? What are the differences? ans:91. 90. the database. . What are presentation and application servers in SAP? ANS:The application layer of an R/3 System is made up of the application servers and the message server. How do you number pages in sapscript layout outputs? 95. using the message server. How do you use tab sets in layout sets? 97. 92. What takes most time in SAP script programming? ANS:LAYOUT DESIGN AND LOGO INSERTION.P. The application servers communicate with the presentation components.Paragraph. What type of variables normally used in sap script to output data? 94. Can you use if then else.etc statements in sap script? ans:yes.89.by pressing F1 on a keyword.T.N. ii)flat 100. What has to be done to the packed fields before submitting to a BDC session. Application programs in an R/3 System are run on application servers. What is difference between session method and Call Transaction? ans:102.F. In an ABAP/4 program how do you access data that exists on a presentation server vs on an application server? ans:i)using loop statements.. 96.Page windows. userdefined TYPES. 93. Setting up a BDC program where you find information from? ans:103.Header. What are different data types in ABAP/4? ans:Elementary predefined C. perform . 101. and also with each other. 99. How do you backup sapscript layout sets? Can you download and upload? How? 98.I. ex: see in intel book page no 35/65 Structured predefined TABLES.D. userdefined Field Strings and internal tables. What are the different elements in layout sets? ans:PAGES. ans:fields converted into character type.Character String. How do you get help in ABAP? ans:HELP-SAP LIBRARY.X.Windows.

ans:program. What happen if i use control break statement in between select & endselect ? when we place control breaks statements with in <br><br>select & end-select then i will generate an complie time error and says us to use it in loop.. What is the difference between a pool table and a transparent table and how they are stored at the database level.we can't execute directly this.dynbegin. Dialog Programming: we can create our own screens and transactions.fnam.Its executable program.. What is the structure of a BDC sessions. 105.fval. What are the fields in a BDC_Tab Table. Where as transparent tables are physical tables and exist at database level. How to convert SD data in to ABAP? By using ALE technique What is the difference betn field group. Technical details like 107.endloop..Hence no existence at database level. M:N Cardinality specifies the number of dependent(Target) and independent (source) entities which can be in a relationship... ans:ii)Pool tables is a logical representation of transparent tables . What is cardinality? For cardinality one out of two (domain or data element) should be the same for Ztest1 and Ztest2 tables.dynpro. 106. What do you define in the domain and data element.104. 108. and internal table? . insert and modify the data.<br> What is difference between dialog program and a report? using reports we can dispaly the data insert and modify the data * its executable program where as in dialog programming we can create our own screens and transactions we can't execute directly this Using Report: we can dispaly. extract dataset. ans:BDCDATA (standard structure).

the new extract record is added to the dataset EXTRACT HEADER. the structure of the corresponding extract record in the extract dataset is fixed. the system creates the extract dataset and adds the first extract record to it. a runtime error occurs. extract datasets provide the advantage that you need not determine the structure at the beginning of the program. What is Tcode SE16.> Internal take up memory. Depending on how much memory your system has . and respective data. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement.module pool . U can set the property of pretty printer by settings-> pretty Printer .SELECT * FROM table_name.A field group does not reserve storage space for the fields. but contains pointers to existing fields. By processing EXTRACT statements several times using different field groups. you can fill the extract dataset using the following statements: EXTRACT. For what is it used. what is the use of pretty printer ? exactly where can we link the functional module to abap coding. function group .In se38 u can go create programs and view online reports and basically do all thedevelopmet of objects in this editor.In se80 ( object navigator) there are additional features such as creating packages. you fill the extract dataset with records of different length and structure. You can no longer insert new fields into the field groups and HEADER.classes.GET table_name . > Once you have declared the possible record types as field groups and defined their structure. Means it converts the key words into cap& other words in small letters. Select option work like _____________on Selection Screen ? . the record is filled with the current values of the corresponding fields. programs ( where u can create ur programs) What is the difference between following two SQL statments : . When you extract the data. What are different ABAP/4 editors? What are the differences? The 2 editors are se38 and se80 both have the abap editor in place. Explain briefly? SE16 is a T-code for object browser. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement. In each subsequent EXTRACT statement. GET IS A KEY-WORD WHICH IS USED TO GET SOMETHING ( DATA )IN THE NODES OF A LOGICAL DATABASE DIRECTLY WHERE AS USING SELECT WE CAN SELECT N-NUMBER OF TABLES DATA THROUGH INTERNAL TABLES IN OUR PROGRMS. generally used to search the fields of SAP Tables . As soon as the system has processed the first EXTRACT statement for a field group . When the first EXTRACT statement occurs in a program. Pretty Printer : is used to Aligned the code Properly. It is having other options also in it.

3. this is because all non Yor Z programs are standard SAP programs.Sort the internal table before we use Control Break Statements. and some DDIC objects.We Must compulsory place the Control Break Statements with in loop . 5. In this exanmple the name of a table control is substituted<br>by a field symbol. 8. 6. What is Field sysmbol ? You can use field symbols to make the program more dynamic.and control-break commands must be used in between the LOOP and ENDLOOP only. If I input plant how do I get the mat no and material group based on plant dynamically? AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL. Can we create an ABAP program without using Y or Z? No. text element. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get material and material group for the plant.sign high low and option.<br>EX:(Sample Code)<br>sort itab by vbeln. 2.internal table must be sorted with key field. TCode AL21. of entries.The system treats select-options like an internal table. How do we debug sapscript? Go to SE71 give lay set name . 7. On which even we can validate the input fields in module progams? In PAI (Write field statement on field you want to validate. The Precautions taken care while using Control Break Statements are:<br>1. 9... What are client dependant objects in abap/sap? SAP Script layout. 1. . ABAP Interview Questions What is a 'Z' report? Y or Z report refer to customized abap programs written for modules such as mm..<br><br>This table will have four columns . the output from Idoc is obtained by reading the data stored in its respective segments. sd. pp or fi/co etc. if you want to validate group of fields put in chain and End chain statement.) 4. go to utilities select debugger mode on. Which transaction code can I used to analyze the performance of ABAP program. How data is stored in cluster table? Each field of cluster table behaves as tables which contains the no. Can we create field without data element and how? In SE11 one option is available above the fields strip. plant mat no and material group. When top of the page event is triggered? After excuteing first write statement in start-of-selection event.<br>2.endloop. using the name of the tabl?control as a parameter. Thus you cal call the form with any internal table.This is used to set teh attributes on the select <br> What is the main point while using controll bareak in internal table ? when you are using control break commands. How do you get output from IDOC? Data in IDOc is stored in segments. Data element/ direct type. In selection screen I have three fields.

What is the use of 'FOR ALL ENTRIES'? Ans.Domains:Domain is the central object for describing the technical characteristics of an attribute of an business objects. This avoids the time-consuming process of accessing the database. how? Yes you can. It describes the value range of .10. 2. Go to transaction SE11. The data of buffered tables can thus be accessed directly from the buffer of the application server. answer it Yes and then write your code in it. What is the use of 'outerjoin' Ans. Performance wise SELECT FOR ALL ENTRIES is better to use. 2. How do I set a flag for a field in any table? Create a char field of length 1. for example field STAS-LKENZ is Deletion Indicator. Can I execute user exits? If yes. 6. Can you set up background processing using CALL TRANSACTION? Yes. Enter the name of the standard table and in the Target table enter Z table name and press enter.Using No Screen Mode. of times in a program. goto CMOD add ur user-exit to your project. 3. Tables used LDB are in hierarchial structure. What is the use of 'table index'? Ans . With the use of outer join you can join the tables even there is no entry in all the tables used in the view. 4.Index is used for faster access of data base tables. Double click on it. 3. If there r more than 10000 records SELECT FOR ALL ENTRIES is used. It means that if the value in the field is 'X' then that record has been deleted. How can I copy a standard table to make my own z_table. Now go into that function module there will be a Include program wit name ZX* . How do I find the output type of a table or a program? Table TNAPR / NAST ABAP interview questions and answers By admin | May 2. Press that button. you need to use. Then there is one option to copy table. after finding the user exit. In case of inner join there should be an entry in al the tables use in the view. 5. 1. 2005 Thanks to the reader who sent in this question set: What is an ABAP data dictionary?. Buffering is useful if table needs to be accessed more no. With Compliments from: Pavan 1. What are table buffers? Table buffers reside locally on each application server in the system.ABAP 4 data dictionary describes the logical structures of the objects used in application development and shows how they are mapped to the underlying relational database in tables/views. What are domains and data element?. Then activate the FM which you require. When to use logical database? Ans. it will ask to create an object. Advantage of Logical databases: less coding s required to retrieve data compared to normal internel tables. To avoid nested select statements we use SELECT FOR ALL ENTRIES statement. Following are some of the answers which I gave upto my knowledge.

. What is BDC programming?.Internal tables are a standard data type object which exists only during the runtime of the program.For creating a ABAP/4 Query. create a query on the functional group generated. Cardinality mentions how many dependent records or how referenced records are possible. This data exists in sorted form. Data element describes how a field can be displayed to end-user. Yhe indexes are activated along with the table and are created automatically with it in the database. What is an ABAP/4 Query?.The central component of the transfer is a queue file which receives the data vie a batch input programs and groups associated data into ³sessions´.ABAP/4 Query is a powerful tool to generate simple reports without any coding. BDC_INSERT . . programmer has to create user group and a functional group.Parameters like Name of the client.This is used to close the batch input session. Data entered should be checked against existing data to ensure that there are now contradiction.A relationship which can be defined between tables and must be explicitly defined at field level. BDC_CLOSE_GROUP . including those used by the ITS . What are the functional modules used in sequence in BDC?. Describe data classes. Data Element: It is used to describe the semantic definition of the table fields like description the field. ABAP/4 Query can generate the following 3 simple reports: Basic List: It is the simple reports. Finally. Statistics: Reports with statistical functions like Average. All transaction components. which converts screen provided data by the R/3 system into HTML documents and vice-versa. a pointer to the associated record of the actual table are included in the index.Transparent tables: Transparent tables in the dictionary has a one-to-one relation with the table in database. Functional group can be created using with or without logical database table. Merits of ITS: A complete web transaction can be developed and tested in R/3 system. Pooled tables in the dictionary has a many-to-one relation with the table in database. Difference between transparent tables and pooled tables. In order that other fields are also read.ITS is a Internet Transaction Server. Finally. Pooled tables. Percentages.Transferring of large/external/legacy data into SAP system using Batch Input programming. System data:It is the data which R/3 system needs for itself. Its structure corresponds to single database field. Table in the database has the different name as in the dictionary. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need. While defining foreign key relationship cardinality has to be specified.the field. What are internal tables?.It is used to insert the data for one transaction into a session. This sorting form ease fast access to the field of the tables. Organization data: It is a customizing data which is entered in the system when the system is configured and is then rarely changed.. Transparent table holds application data. sessions and user name are specified in this functional modules. Table in the database has the same name as in the dictionary. Pooled table are stored in table pool at the database level. Transaction data: It is the data which is often changed. Ranked Lists: For analytical reports. What are indexes?.Master data: It is the data which is seldomly changed. What is ITS? What are the merits of ITS?. ITS forms an interface between HTTP server and R/3 system.Indexes are described as a copy of a database table reduced to specific fields. Foreign keys are used to ensure the consistency of data. What is foreign key relationship?. assign user group to functional group.These are the 3 functional modules which are used in a sequence to perform a data transfer successfully using BDC programming: BDC_OPEN_GROUP . Batch input is a automatic procedure referred to as BDC(Batch Data Communications).

A logical database provides read-only access to a group of related tables to an ABAP/4 program. At user-command. Start-ofselection. functions and titles are the components of Menu painters. . paragraph. Read and follow this documentation when planning your development project. What is CTS and what do you know about it?. . top-of-page.outside the R/3 system at runtime. At LAST. AT END. In such cases. At PF. and then transport the changes between the SAP Systems and clients in your system landscape.and plausible. can be stored in the R/3 system. Menu painter: Menu painter is a tool to design the interface components. ii)There is no ENDGET command. Screen painter and menu painter both are the graphical interface of an ABAP/4 applications. Creating forms in the R/3 system. At line-selection.Screen painter: Screen painter is a tool to design and maintain screen and its elements. dis advantages: i)If you donot specify a logical database in the program attributes. and character string. iv)good read access performance while retaining the hierarchical data view determined by the application logic. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. It is like a standard normal documents.SAP scripts is a word processing tool of SAP which has the following components: Standard text. correct. menu bars. Get. end-of-page. At selection-screen. Layout sets.To read data from a database tables we use logical database. Status. The advantage of automatic language processing in the R/3 system can be utilized to language-dependent HTML documents at runtime. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. ABAP/4 program. F-key settings.Initialization. AT FIRST. end-of-selection. This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. Character formats. iii)central authorization checks for database accesses. ii)Meaningful data selection. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. What are screen painter and menu painter?.Layout set consists of the following components: Windows and pages. Attributes. filed attributes and flow logic are the elements of Screen painter.so the code block associated with an event ends with the next event statement (such as another GET or an END-OF-SELECTION). At New. Advantages: i)check functions which check that user input is complete.ALV is Application List viewer. menu lists.DynPro is a Dynamic Programming which is a combination of screen and the associated flow logic Screen is also called as DynPro. The report output can contain up to 90 columns in the display with the wide array of display options. layout.the GET events never occur. What is DynPro?. It allows user to create GUI screens for the transactions. Every layout set consists of Header. This set of ALV functions is used to enhance the readability and functionality of any report output. What are logical databases? What are the advantages/ dis-advantages of logical databases?. What are the components of SAP scripts?. What is ALV programming in ABAP? When is this grid used in ABAP?. What are the events in ABAP/4 language?. Paragraph formats. this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display.The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing.

Smart Forms allows you to create forms using a graphical design tool with robust functionality. Workbench objects like SAPscripts are client specific. program name behind it. prevent the use of them (I¶ve never used them. Read the first record from the database for corresponding node(table) after processing all child nodes. This is also applicable for standard code. But system debugging has to be switched on.Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Modification of the source file. color. Re: How to validate the entry in Screen & dialog proframming?? Is there any way to send the error?? Answer #2 .These are the steps to be followed to Upload data through CATT: Creation of the CATT test case & recording the sample data input. What is the difference between macro and subroutine?. Re: How would you debug custom programs at runtime? Answer #1 Give /h to go to debug when executing.BATCH INPUT SESSION is an intermediate step between internal table and database table. Subroutines (FORM) can be called from both the program the are defined in and other programs . Get node Late. If the subroutine is used only local (called internal) use a FORM.Client dependent or independent transfer requirements include client specific or cross client objects in the change requests. A FUNCTION is (more or less) a subroutine that is called external. but seen them in action). Data along with the action is stored in session ie data for screen fields.What is a batch input session?. What is Smart Forms?. Since debugging a MACRO is not really possible. Upload of the data from the source file. to which screen it is passed. Re: Difference between GET and GET Late? Answer #2 Get node. Read the first record from the database for corresponding node(table). If one object in the task list has this flag on. you will find the flag client specific. and how next screen is processed. If you display the object list for one change request. then that transport will be client dependent. If the subroutine is called external (used by more than one program) use a FUNCTION. A FORM is a local subroutine (which can be called external). A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. Download of the source file template. How can I make a differentiation between dependent and independent data?. all new forms developed at SAP will be created with the new Smart Form solution. How to upload data using CATT ?. and then for each object the object attributes. and more. Additionally. some entries in customizing are client independent.

S 3) Local . Re: How to debugg script? Answer #1 go to se71 specify the form name.at PAI of screen write CHAIN. it'll through the message and will give the chance to correct it. utilities under that activate debugger sap scripts was debugger. .will that be triggered? Answer #2 Without Stop statement also it will trigger. one popup will display like sap script was debugger click on ok button here it will display the form painter.A 2) Synchronous . go to me23n click on print preview. start-of-selection.L Re: if u write a write statement after end of selection . ENDCHAIN double click on module name and write the code with error message. FIELD <field name > MODULE module_name. write : / 'endofselection' 1) In Smartforms also have standard Forms. End-of-selection normally triggers when all the records have been read from database. here we can debug the form Re: Types of updating in call tr? Answer #2 In BDC's Call transaction method there are three types of updation modes: 1) Asynchronous . end-of-selection.

if sy-subrc = 0. . . . At selection-screen.. Answer #1 as SAPscript print program itself is a report program and it does not create any secondary lists. clear bdc_msg. bdc_tab type table of bdcdata with header line.. if sy-subrc = 0. call function 'FORMAT_MESSAGE'. Re: How you will catch errors in call transaction? Answer #2 We will catch errors in the call transcation explicitly by using Structure BDCMSGCOLL.Goto Smartform-> Form -> F4 You can find all the standard smartforms. and FUNCITNO MODULE 'WRITE_FORMAT'. CALL TRANSACTION 'MM01' using Bdc_tab mode N updte S messages into bdc_msg. Re: how to run bdc program in background? Answer #2 . Re: what are the events in sap script print progam. end-of-selection.. Ex: Data : bdc_msg type table of bdcmsgcoll with header line. endif. Initialization. perform Error. start-of-selection. all the events for Basic List will be applicable here. refresh bdc_msg. Read table bdc_msg with key msgtype = 'E'.. 2) Whenever you copied standard script you have to change the configuration in NACE then it will work.

CALL TRANSACTION 'MM01' USING BDCDATA MODE A/E/N UPDATE A/S MESSAGE INTO MESSTAB. What should be the approach for writing a BDC program? 4.If you use session method go to SM36 to schedule a background job. 1. What do you define in the domain and data element? 10. What is the difference between a pool table and a transparent table and how they are stored at the database level? 8.1. What is a batch input session? 5. What are the problems in processing batch input sessions? How is batch input process different from processing on line? 9. What is the typical structure of an ABAP program? 2.Synchronous 2. We need to submit the program and the batch session in background. Can a transparent table exist in data dictionary but not in the database physically? . Mode A/E/N stands for A .No screens Update A/S stands for A . What are field symbols and field groups? Have you used "component idx of structure" clause with field groups? 3.All screens E .Error screens N .Asynchronous S . A situation: An ABAP program creates a batch input session. How many types of tables exist and what are they in data dictionary? 12. How to do it? 7. What is the step-by-step process to create a table in data dictionary? 13.If your using call transaction method the on the syntax for call transaction as shown below put "N" as the option which stands for no screens. What is the alternative to batch input session? 6. What are the different types of data dictionary objects? 11.

What are match codes? Describe? 34. What is table maintenance generator? 36. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it? 21. What is a check table and what is a value table? 33. What does an extract statement do in the ABAP program? 18. Name a few data dictionary objects? 31. Can you create a table with fields not referring to data elements? 16. What is open sql vs native sql? 20. What are the fields in a BDC_Tab Table? 30. What is a function group? 28. How do you write a function module in SAP? Describe. What is a drill down report? 25. What are the exceptions in function module? 27. What are the events in ABAP language? 23. What is a collect statement? How is it different from append? 19. What are ranges? What are number ranges? . 26. What transactions do you use for data analysis? 35. What is the meaning of ABAP editor integrated with ABAP data dictionary? 22. What is the advantage of structures? How do you use them in the ABAP programs? 17. What are the domains and data elements? 15. What is an interactive report? What is the obvious diff of such report compared with classical type reports? 24. What happens when a table is activated in DD? 32. How are the date abd time field values stored in SAP? 29.14.

What are selection texts? 40. How to find the return code of a stmt in ABAP programs? 49. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it? 42. Line in Smartform Either you can use a window that takes up the width of your page and only has a height of 1 mm. What are select options and what is the diff from parameters? 38.37. What are interface/conversion programs in SAP? 50. Then only loop through a subset of the internal table (based on the conditions in the Command node) of the elements in the Table node. Create a loop around the table. What is the client concept in SAP? What is the meaning of client independent? 43. How do you validate the selection criteria of a report? And how do you display initial values in a selection screen? 39. There you can create Paragraph formats etc just like in sapscript. Put a Command node before the table in the loop that forces a NEWPAGE on whatever condition you want. What are datasets? 48. Then in your window under OUTPUT OPTIONS you include this SMARTSTYLE and use the Paragraph and character formats. Name a few system global variables you can use in ABAP programs? 45. How do you take care of performance issues in your ABAP programs? 47. What is CTS and what do you know about it? 41. Font style and Font size Goto Transaction SMARTSTYLES. What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement? 46. Are programs client dependent? 44. . Have you used SAP supplied programs to load master data? Smartforms Forcing a page break within table loop.

Smartforms function module name Once you have activated the smartform. Global defs. go to the environment -> function module name. The key thing is that when it calls this FM (using a variable to store the actual name). which is how the internal names start. Thus you have drawn a box but it looks like a line. for instance. So you need to use the FM to determine the name of the SF.Then you put a frame around it (in window output options). Smartforms FAQ Part Two Smartforms output difference Problem with Smartforms: in a certain form for two differently configured printers. There you can get the name of funtion module name. ie: anything you declare here can be used in any other node in the form. move internalname to sf_label. if it does. that the parameters match the paramters in your smartform. is where you declare data to be used within the smartform on a global scope. Another thing to note is that the FM name will change wherever the SF is transported to. Difference between 'forminterface' and 'global definitions' in global settings of smart forms The Difference is as follows. " need to resolve by name move sf_label to externalname. it calls the FM and converts the name. message 'e427'. call function 'SSF_FUNCTION_MODULE_NAME' exporting formname = externalname importing fm_name = internalname exceptions no_form = 1 no_function_module = 2 others = 3. Here is the code that can be use to determine the internal name of the function module: Code: if sf_label(1) <> '/'. The key thing is the program that calls it. This program uses another FM to determine the name of the FM to use itself. You would then CALL FUNCTION sf_label. the name has already been converted. there . To put it very simply: Form Interface is where you declare what must be passed in and out of the smartform (in from the print program to the smartform and out from the smartform to the print program). the invoice SMARTFORM LB_BIL_INVOICE is ran by the program RLB_INVOICE. endif. It checks to see if the sf_label starts with a '/'. Or you can just draw "__" accross the page and play with the fonts so that it joins each UNDER_SCORE. endif. if sy-subrc <> 0. If not.

Now this presents an interesting problem.text in two lines instead of one. 3. it is very likely the function module name will be different than the name on the source system. SmartForm Doublesided printing question Your customer wants your PO SmartForm to be able to print "Terms and Conditinos" on the back side of each page. and when called. On the new machine. How to protect lines in the main window from splitting between pages? . Please do the following: 1. Additionally.page FRONT lists page CONTACTS as next page and CONTACTS lists FRONT as next page. Make sure. it will be transported. generate the SF. if it is assigned to a development class that is atteched to a transport layer. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the noted spool number. Since CONTACTS does not contain a MAIN window. the front side of each to containe the PO information (page 1. They don't want to purchase pre-printed forms with the company's logo on the front and terms & conditions on the back. set print mode on FRONT to D (duplex) and set CONTACTS to 'blank' (for both resource name and print mode this is the only way to get to the back of the page). Print the smartform to the spool. it will print the contacts info and then continue on to FRONT for the rest of the main items. It happens when the two printers having different Printer Controls' if you go to SPAD Menu (Spool Administrator Menu) you can see the difference in the Printer Control and if you make the Printer control setting for both the printers as same. This leads to an interetsing situation. 2. they want 3 pieces of paper. the function module is regenerated. then use the pattern to being in the interface. Note the spool number. 2. The definition is transported. and also u have to check what is the device type used for both the output devices. Transport Smart Forms How does one transport SMARTFORM? SE01? How do you make sure that both. Has anyone else ever had a request like this? If for example there was a 3 page PO to be printed. SmartForms Output to PDF There is a way to download smartform in PDF format. Then change the call function to use the name you get back from the above function module. and 3) and the back side of each piece of paper to containg the static "Terms & Conditions" information. Anyone have a clue how to force this out? Easy .seem to be a difference in the output of characters per inch (the distance between characters which gives a layout problem . then it will be ok. before you call the function module. Typically. the SMARTFORM & it's function module gets transported? Or does the FM with same name gets generated automatically in the transported client? A smartform is transported no differently than any other object. you resolve the external name to the internal name using the 'SSF_FUNCTION_MODULE_NAME' function module. Smartforms: protect lines in main window.

Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page. .You can protect a line type against page break. Ma rk it if you want to avoid that a paragraph is split up by a page break. Change Editor (Click the button above Check near the Editor) Go to menu Include->Characters->SAP Symbols Choose the SAP symbol that you want to insert.7 version if you are using tables. An integrated Form Builder helps to design Smartforms more easily than SAP Scripts An Table Painter and Smartstyles to assist in building up the smartforms On activation a function module is generated for Smartforms It is possible to create a Smartform without a main window Smartforms generates XML output which can be viewed through the web Multiple page formats is possible in smartforms How can I insert symbols in Smartforms? Select the Text node. Otherwise. . SAP Scripts require a driver program to display the output whereas in smartforms the form routines can be written so that it is standalone. What are the differences between SAP Scripts and Smartforms? SAP Scripts are client dependent whereas Smartforms are client independent. In 4. If on the current page (only in the main window) there is not enough space left for the paragraph.It was easy with SAPscript. Protection against page break for several table lines . .Double-click on your table node and choose the Table tab page. there is no . . you can put the lines that you want to protect again page break under the file using Drag&Drop. I have a smartform which works fine in DEV. create the table lines as subnodes of the file.Switch to the detail view by choosing the Details pushbutton.Insert a file node for the table lines to be protected in the main area. .If you have already created table lines in the main area. For 4. but how to do it with SF's.You can protect several table lines against page break for output in the main area. All table lines that are in the file with the Page Protection option set are output on one page. there are two options for protection against line break: . After trasnsporting it to PROD. .6.Choose the Output Options tab page of the file node and set the Page Protection option. Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page.Expand the main area of your table node in the navigation tree. the entire paragraph appears on the next page. Protection against page break for line types .

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. Set the OUTPUT OPTIONS paramter TDDEST to your printer name. DATA: fm_name TYPE rs38l_fnam. Set the TDDEST field to your default printer name. As a result my program dumps in PROD? The Smartform that is created in the Development may not have the same name in the Production server. CALL FUNCTION fm_name EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. IF sy-subrc <> 0. set the output options parameter to set the printer name. control-preview = 'X'.Function module generated for this smartform. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. IF sy-subrc <> 0. How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters? In the SSF_OPEN function module. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZSMARTFORM' IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3. ENDIF. Set the CONTROL PARAMETERS and control parameters as shown below.How can I make the Smartforms to choose a printer name by default? In the CALL FUNCTION of the Smartform Function Module. . The output options is of the type SSFCOMPOP which contains the field TDDEST. ENDIF. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. control_parameters-no_open = 'X'. ENDIF. control-no_close = 'X'. OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'. I get a star "*" instead of the total number of pages. How can I display the total number of pages in Smartforms? Use SFSY-FORMPAGES to display the total number of pages in the Smartforms &SFSY-PAGE& Current page number &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set &SFSY-JOBPAGE& Total number of pages in the currently formatted print request &SFSY-COPYCOUNT& Original-1. control-device = 'PRINTER'.control-no_open = 'X'. OUTPUT_OPTIONS-TDNOPRINT = 'X'. either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)& What are the various text formatting options in Smartforms? &symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign &symbol(<)& Display Leading Sign to the Left . IF sy-subrc <> 0.1st copy-2 &SFSY-DATE& Date &SFSY-TIME& Time &SFSY-USERNAME& Username I'm using the variable SFSY-FORMPAGES. control_parameters-no_close = 'X'. control_parameters-no_dialog = 'X'. control-no_dialog = 'X'. There may not be enough space in the window to display the variable. CALL FUNCTION 'SSF_OPEN' EXPORTING output_options = output_options control_parameters = control user_settings = ' ' EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5.

Where can I check the condition which must satisfy to display the table? The conditions can be defined in the Conditions tab. Add the grapic image name here . Also the form routines can be defined Global Settings->Global Definitions->Form Routines I have defined my own Program Lines. enter the variable name in Input Parameters if you are going to use(read) the variable. The Associated Type must be defined in the ABAP Dictionary. Where can I define my own global types for the smartform? The global types(within the smartform) can be defined in Global Settings->Global Definitions>Types The types defined here will be global through the entire smartform. I have created a table node for display.&symbol(>)& Display Leading Sign to the Right &symbol(C)& Compress Spaces &symbol(. tab 'Background Picture'. you can specify the color and shading for the table lines. The Table can have variable number of rows Where can I define the paragraph and character format for the smartforms? The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES How to add watermark to smartform output? Go to the properties of 'PAGE'.N)& Display upto N decimal places &symbol(T)& Omit thousands separator &symbol(R)& Right justified &symbol(I)& Suppress output of the initial value How can I provide a background shading to the table? In the Table Painter. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node. I get an error G_TEXT is not defined? Whenever using the global variables in the Program Lines. where I have used a global variable G_TEXT. What is the difference between Template and Table in Smartforms? The Template contains a fixed number of rows and columns. How can I define Page Protect in Smartforms? To define Page Protect for a node go to the Output options and check the Page Protection checkbox. where the output is fixed. Where can I provide the input parameters to the smartform? The input parameters for the smartform can be defined in Global Settings->Form Interface. If you are going to both read/write the variable value enter the same in Output Parameters.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. I have a smartform which works fine in DEV. Change Editor (Click the button above Check near the Editor) Go to menu Include->Characters->SAP Symbols Choose the SAP symbol that you want to insert. As a result my program dumps in PROD? The Smartform that is created in the Development may not have the same name in the Production server. After trasnsporting it to PROD. DATA: fm_name TYPE rs38l_fnam. IF sy-subrc <> 0. SAP Scripts require a driver program to display the output whereas in smartforms the form routines can be written so that it is standalone. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZSMARTFORM' IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3. there is no Function module generated for this smartform. An integrated Form Builder helps to design Smartforms more easily than SAP Scripts An Table Painter and Smartstyles to assist in building up the smartforms On activation a function module is generated for Smartforms It is possible to create a Smartform without a main window Smartforms generates XML output which can be viewed through the web Multiple page formats is possible in smartforms How can I insert symbols in Smartforms? Select the Text node. .What are the differences between SAP Scripts and Smartforms? SAP Scripts are client dependent whereas Smartforms are client independent. ENDIF. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.

OUTPUT_OPTIONS-TDNOPRINT = 'X'. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. set the output options parameter to set the printer name.CALL FUNCTION fm_name EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. Set the OUTPUT OPTIONS paramter TDDEST to your printer name. control-preview = 'X'. control-no_open = 'X'. OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'. Set the CONTROL PARAMETERS and control parameters as shown below. IF sy-subrc <> 0.How can I make the Smartforms to choose a printer name by default? In the CALL FUNCTION of the Smartform Function Module. control_parameters-no_close = 'X'. The output options is of the type SSFCOMPOP which contains the field TDDEST. . How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters? In the SSF_OPEN function module. control_parameters-no_dialog = 'X'. CALL FUNCTION 'SSF_OPEN' EXPORTING output_options = output_options control_parameters = control user_settings = ' ' EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. ENDIF. control-no_close = 'X'. control-no_dialog = 'X'. control-device = 'PRINTER'. control_parameters-no_open = 'X'. Set the TDDEST field to your default printer name.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. you can specify the color and shading for the table lines.IF sy-subrc <> 0. Where can I define my own global types for the smartform? The global types(within the smartform) can be defined in Global Settings->Global Definitions>Types The types defined here will be global through the entire smartform. either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)& What are the various text formatting options in Smartforms? &symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign &symbol(<)& Display Leading Sign to the Left &symbol(>)& Display Leading Sign to the Right &symbol(C)& Compress Spaces &symbol(.N)& Display upto N decimal places &symbol(T)& Omit thousands separator &symbol(R)& Right justified &symbol(I)& Suppress output of the initial value How can I provide a background shading to the table? In the Table Painter. How can I display the total number of pages in Smartforms? Use SFSY-FORMPAGES to display the total number of pages in the Smartforms &SFSY-PAGE& Current page number &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set &SFSY-JOBPAGE& Total number of pages in the currently formatted print request &SFSY-COPYCOUNT& Original-1. I get . where I have used a global variable G_TEXT. I get a star "*" instead of the total number of pages. There may not be enough space in the window to display the variable.1st copy-2 &SFSY-DATE& Date &SFSY-TIME& Time &SFSY-USERNAME& Username I'm using the variable SFSY-FORMPAGES. The Associated Type must be defined in the ABAP Dictionary. Where can I provide the input parameters to the smartform? The input parameters for the smartform can be defined in Global Settings->Form Interface. Also the form routines can be defined Global Settings->Global Definitions->Form Routines I have defined my own Program Lines.

Insert a file node for the table lines to be protected in the main area. you can put the lines that you want to protect again page break under the file using Drag&Drop. For 4. All table lines that are in the file with the Page Protection option set are output on one page.an error G_TEXT is not defined? Whenever using the global variables in the Program Lines. Table lines that use this line type are output on one page. If you are going to both read/write the variable value enter the same in Output Parameters. . enter the variable name in Input Parameters if you are going to use(read) the variable. I have created a table node for display. there are two options for protection against line break: . Transport Smart Forms How does one transport SMARTFORM? SE01? . tab 'Background Picture'.7 version if you are using tables.You can protect several table lines against page break for output in the main area. . where the output is fixed. create the table lines as subnodes of the file. The Table can have variable number of rows Where can I define the paragraph and character format for the smartforms? The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES How to add watermark to smartform output? Go to the properties of 'PAGE'.Double-click on your table node and choose the Table tab page. Otherwise. . How to protect lines in the main window from splitting between pages? It was easy with SAPscript. .Switch to the detail view by choosing the Details pushbutton. . Protection against page break for line types .You can protect a line type against page break. Add the grapic image name here Smartforms: protect lines in main window. . Where can I check the condition which must satisfy to display the table? The conditions can be defined in the Conditions tab. but how to do it with SF's. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node. How can I define Page Protect in Smartforms? To define Page Protect for a node go to the Output options and check the Page Protection checkbox.Choose the Output Options tab page of the file node and set the Page Protection option. Protection against page break for several table lines . What is the difference between Template and Table in Smartforms? The Template contains a fixed number of rows and columns.If you have already created table lines in the main area.Set the Protection against page break checkbox in the table for the relevant line type.Expand the main area of your table node in the navigation tree.

How do you make sure that both. On the new machine. Difference between 'forminterface' and 'global definitions' in global settings of smart forms The Difference is as follows. The definition is transported. the front side of each to containe the PO information (page 1. Then change the call function to use the name you get back from the above function module. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the noted spool number. then use the pattern to being in the interface. it will print the contacts info and then continue on to FRONT for the rest of the main items. SmartForms Output to PDF There is a way to download smartform in PDF format. you resolve the external name to the internal name using the 'SSF_FUNCTION_MODULE_NAME' function module. Please do the following: 1. 2. they want 3 pieces of paper. it will be transported. generate the SF. Print the smartform to the spool. the SMARTFORM & it's function module gets transported? Or does the FM with same name gets generated automatically in the transported client? A smartform is transported no differently than any other object. the function module is regenerated.page FRONT lists page CONTACTS as next page and CONTACTS lists FRONT as next page. Has anyone else ever had a request like this? If for example there was a 3 page PO to be printed. Make sure. SmartForm Doublesided printing question Your customer wants your PO SmartForm to be able to print "Terms and Conditinos" on the back side of each page. They don't want to purchase pre-printed forms with the company's logo on the front and terms & conditions on the back. Note the spool number. 2. Additionally. To put it very simply: Form Interface is where you declare what must be passed in and out of the smartform (in from the print program to the smartform and out from the smartform to the print program). Forcing a page break within table loop . Global defs. 3. Now this presents an interesting problem. This leads to an interetsing situation. Anyone have a clue how to force this out? Easy . and 3) and the back side of each piece of paper to containg the static "Terms & Conditions" information. is where you declare data to be used within the smartform on a global scope. if it is assigned to a development class that is atteched to a transport layer. Since CONTACTS does not contain a MAIN window. before you call the function module. it is very likely the function module name will be different than the name on the source system. and when called. Typically. set print mode on FRONT to D (duplex) and set CONTACTS to 'blank' (for both resource name and print mode this is the only way to get to the back of the page). ie: anything you declare here can be used in any other node in the form.

You must trigger your own exceptions. Conversion of SAPSCRIPT to SMARTFORMS SAP provides a conversion for SAPscript documents to SMARTforms. You determine the display format in the user master record. &SFSY-TIME& Displays the time of day in the form HH:MM:SS. There you can create Paragraph formats etc just like in sapscript. numeric) in the page node. Font style and Font size Goto Transaction SMARTSTYLES. Then only loop through a subset of the internal table (based on the conditions in the Command node) of the elements in the Table node. You can also do this one-by-one in transaction SMARTFORMS. Then in your window under OUTPUT OPTIONS you include this SMARTSTYLE and use the Paragraph and character formats. Thus you have drawn a box but it looks like a line. This is basically a function module. using the user_exception macro (syntax: user_exception <exception name >). System fields of Smart Forms &SFSY-DATE& Displays the date. which you defined in the form interface. Then you put a frame around it (in window output options). Arabic. Put a Command node before the table in the loop that forces a NEWPAGE on whatever condition you want. Or you can just draw "__" accross the page and play with the fonts so that it joins each UNDER_SCORE. &SFSY-WINDOWNAME& Contains the name of the current window (string in the Window field) &SFSY-PAGENAME& Contains the name of the current page (string in the Page field) &SFSY-PAGEBREAK& Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46]) &SFSY-MAINEND& Is set as soon as processing of the main window on the current page ends &SFSY-EXCEPTION& Contains the name of the raised exception. You can start this function module by hand (via SE37). &SFSY-PAGE& Inserts the number of the current print page into the text. You determine the format of the page number (for example.Create a loop around the table. or create a small ABAP which migrates all SAPscript forms automatically. This allows you to include texts such as'Page x of y' into your output. &SFSY-FORMPAGES& Displays the total number of pages for the currently processed form. under . &SFSY-JOBPAGES& Contains the total page number of all forms in the currently processed print request. called FB_MIGRATE_FORM. Line in Smartform Either you can use a window that takes up the width of your page and only has a height of 1 mm.

etc. Colored output of texts 5. Displaying table structures (dynamic framing of texts) 3. DATA: fm_name TYPE rs38l_fnam. for form design in particular the use of templates which were scanned. HTML output of forms (Basis release 6. (Basis-Release 6. Data interface in XML format (XML for Smart Forms.10) SAP ABAP Smart forms Interview faqs 1)How can I insert symbols in Smartforms? Select the Text node. pushbuttons. Flexible reuse of text modules 11. Consultants are only required in special cases. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. Therefore. 2)I have a smartform which works fine in DEV. power user forms can also make configurations for your business processes with data from an SAP system. so that no programming knowledge is necessary (at least 90% of all adjustments). IF sy-subrc <> 0.10) 12. Form translation is supported by standard translation tools 10. As a result my program dumps in PROD? The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name. Output of background graphics.Utilities -> Migrate SAPscript form. there is no Function module generated for this smartform. User-friendly and integrated Form Painter for the graphical design of forms 6. The adaption of forms is supported to a large extent by graphic tools for layout and logic. in short XSF) 9. You could also write a small batch program calling transaction SMARTFORMS and running the migration tool. Reusing Font and paragraph formats in forms (Smart Styles) 8. Advantages of SAP Smart Forms SAP Smart Forms have the following advantages: 1. 2. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZSMARTFORM' IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3. After trasnsporting it to PROD. radio buttons. Change Editor (Click the button above Check near the Editor) Go to menu Include->Characters->SAP Symbols Choose the SAP symbol that you want to insert. Graphical Table Painter for drawing tables 7. 4. Interactive Web forms with input fields. .

ENDIF. control-device = 'PRINTER'. control-no_dialog = 'X'.ENDIF. 4)How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters? In the SSF_OPEN function module. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. IF sy-subrc <> 0. control_parameters-no_dialog = 'X'. control_parameters-no_close = 'X'. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. Set the OUTPUT OPTIONS paramter TDDEST to your printer name. set the output options parameter to set the printer name. control-no_open = 'X'. Set the TDDEST field to your default printer name. control-no_close = 'X'. control_parameters-no_open = 'X'. CALL FUNCTION fm_name EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. . CALL FUNCTION 'SSF_OPEN' EXPORTING output_options = output_options control_parameters = control user_settings = ' ' EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. 3)How can I make the Smartforms to choose a printer name by default? In the CALL FUNCTION of the Smartform Function Module. The output options is of the type SSFCOMPOP which contains the field TDDEST. OUTPUT_OPTIONS-TDNOPRINT = 'X'. Set the CONTROL PARAMETERS and control parameters as shown below. OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'. control-preview = 'X'.

either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C) 7)What are the various text formatting options in Smartforms? &symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign &symbol(<)& Display Leading Sign to the Left &symbol(>)& Display Leading Sign to the Right &symbol(C)& Compress Spaces &symbol(. I get a star "*" instead of the total number of pages. 5)How can I display the total number of pages in Smartforms? Use SFSY-FORMPAGES to display the total number of pages in the Smartforms &SFSY-PAGE& Current page number &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set &SFSY-JOBPAGE& Total number of pages in the currently formatted print request &SFSY-COPYCOUNT& Original-1.ENDIF.N)& Display upto N decimal places &symbol(T)& Omit thousands separator &symbol(R)& Right justified &symbol(I)& Suppress output of the initial value 8)How can I provide a background shading to the table? In the Table Painter. you can specify the color and shading for the table lines.1st copy-2 &SFSY-DATE& Date &SFSY-TIME& Time &SFSY-USERNAME& Username 6)I'm using the variable SFSY-FORMPAGES.? There may not be enough space in the window to display the variable. The Associated Type must be defined in the ABAP Dictionary. Where can I define my own global types for the smartform? . Where can I provide the input parameters to the smartform? The input parameters for the smartform can be defined in Global Settings->Form Interface.

Also the form routines can be defined Global Settings->Global Definitions->Form Routines I have defined my own Program Lines. How can I define Page Protect in Smartforms? To define Page Protect for a node go to the Output options and check the Page Protection checkbox can anyone tell me how to copy script from one user to another (000 to 800) in details i can copy it but cannot edit it can i download a script from a user (000) and upload it in another user(800) se71 --> utilities--> copy from client (Here specify the details) utilities--> convert original language (here specify the details) SAP BDC INTERVIEW QUESTIONS & ANSWERS . In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node. If you are going to both read/write the variable value enter the same in Output Parameters. enter the variable name in Input Parameters if you are going to use(read) the variable. where I have used a global variable G_TEXT. I get an error G_TEXT is not defined? Whenever using the global variables in the Program Lines. Where can I check the condition which must satisfy to display the table? The conditions can be defined in the Conditions tab. I have created a table node for display.The global types(within the smartform) can be defined in Global Settings->Global Definitions>Types The types defined here will be global through the entire smartform.

DynPro CHAR (4) Screen number of transaction. 3. 11. 7. What is a multiple line field? A multiple line field is a special kind of field which allows the user to enter multiple lines of data into it. Fval CHAR (80) Value to submit to field. How do you find the information on the current screen? The information on the current screen can be found by SYSTEM à STATUS command from any menu. 5. How do you populate data into a multiple line field? To populate data into a multiple line field. an index is added to the field name to indicate which line is to be populated by the BDC session (Line index).1. 6. What is the syntax for µCALL TRANSACTION¶? CALL TRANSACTION trans [using bdctab MODE mode]. 9. How do you save data in BDC tables? The data in BDC tables is saved by using the field name µBDC_OKCODE¶ and field value of µ/11¶. 10. DynBegin CHAR (1) Indicator for new screen. What is the last entry in all BDC tables? In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a field value of µ/11¶. N Show no screens. What is full form of BDC Session? Batch Data Communication Session. BDC table structure FIELD TYPE DESCRIPTION Program CHAR (8) Program name of transaction. What are the steps in a BDC session? The first step in a BDC session is to identify the screens of the transaction that the program will process. E Show only screens with errors. Does the BDC-INSERT function allow multiple transactions to be processed by SAP? Yes. Does the CALL TRANSACTION method allow multiple transactions to be processed by SAP? No. Next step is to write a program to build the BDC table that will be used to submit the data to SAP. Write the BDC table structure. Fnam CHAR (35) Name of database field from screen. A Show all screens. 4. . 8. Three possible entries are there for MODE. 2. The final step is to submit the BDC table to the system in the batch mode or as a single transaction by the CALL TRANSACTION command. The CALL TRANSACTION method allows only a single transaction to be processed by SAP.

SAP BDC INTERVIEW QUESTIONS & ANSWERS .

10. 5. A Show all screens. E Show only screens with errors. Next step is to write a program to build the BDC table that will be used to submit the data to SAP. 6. N Show no screens. Fval CHAR (80) Value to submit to field. Does the BDC-INSERT function allow multiple transactions to be processed by SAP? Yes. 9. Write the BDC table structure.1. 7. The CALL TRANSACTION method allows only a single transaction to be processed by SAP. The final step is to submit the BDC table to the system in the batch mode or as a single transaction by the CALL TRANSACTION command. What is the syntax for µCALL TRANSACTION¶? CALL TRANSACTION trans [using bdctab MODE mode]. Fnam CHAR (35) Name of database field from screen. an index is added to the field name to indicate which line is to be populated by the BDC session (Line index). 4. How do you populate data into a multiple line field? To populate data into a multiple line field. Three possible entries are there for MODE. What are the steps in a BDC session? The first step in a BDC session is to identify the screens of the transaction that the program will process. Does the CALL TRANSACTION method allow multiple transactions to be processed by SAP? No. What is full form of BDC Session? Batch Data Communication Session. DynPro CHAR (4) Screen number of transaction. 11. What is a multiple line field? A multiple line field is a special kind of field which allows the user to enter multiple lines of data into it. DynBegin CHAR (1) Indicator for new screen. How do you find the information on the current screen? The information on the current screen can be found by SYSTEM à STATUS command from any menu. 8. BDC table structure FIELD TYPE DESCRIPTION Program CHAR (8) Program name of transaction. 2. . What is the last entry in all BDC tables? In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a field value of µ/11¶. How do you save data in BDC tables? The data in BDC tables is saved by using the field name µBDC_OKCODE¶ and field value of µ/11¶. 3.

4.If both names are the same. Screen layout: Positions of the text. What are the requirements a dialog program must fulfill? A dialog program must fulfil the following requirements A user friendly user interface.This happens immediately after displaying the screen. What is a ABAP/4 module pool? -Each dynpro refers to exactly one ABAP/4 dialog program.However . and others Fields attributes: Definition of the attributes of the individual fields on a screen. Format and consistancey checks for the data entered by the user. 5.since it consists of interactive modules. . 8.What is a transaction? A transaction is dialog program that change data objects in a consistant way. ABAP/4 module Pool.What is PBO and PAI events? PBO.A dynpros consists of a screen And its flow logic and controls exactly one dialog step. 6.The GUI status for a transaction may be composed of the following elements: -Title bar. PAI-Process After Input-It determines the flowlogic after the display of the screen and after receiving inputs from the User. 9. Each dynpro refers to exactly one ABAP/4 dialog program . pushbuttons and so on for a screen Screen Attributes: Number of the screen. The different components of the dynpro are : Flow Logic: calls of the ABAP/4 modules for a screen .Such a dialog program is also called a module pool .What is GUI status? How to create /Edit GUI status? -A GUI status is a subset of the interface elements used for a certain screen.. What is dynpro?What are its components ? A dynpro (Dynamic Program) consists of a screen and its flow logic and controls exactly one dialog steps.Can we use flow logic control key words in ABAP/4 and vice-versa? The flow control of a dynpro consists os a few statements that syntactically ressemble ABAP/4 statements . Access to data by storing it in the data bases. Easy correction of input errors.Such a dialog program is also called a module pool .The status comprises those elements that are currently needed by the transaction .we cannot use flow control keywords in ABAP/4 and viceversa. number of the subsequent screen. fields.since it consists on interactive modules.it transfers screen fields values to ABAP/4 programs fields and Vice Versa. 3.The system instead transfers data by comparing screen fields names with ABAP/4 variable names.Process Before Output-It determines the flow logic before displaying the screen. 7.Can we use WRITE statements in screen fields?if not how is data transferred from field data to screen fields? -We cannot write field data to the screen using the WRITE statement. What are the basic components of dialog program? Screens (Dynpros) Each dialog in an SAP system is controlled by dynpros.

function key or other GUI element.-Mneu bar.An internal work field(ok-code)in the PAI module evaluates the function code. 11.The controls passes from screen flow logic to ABAP/4 code and back. What is an ³on input filed´ statements? ON INPUT The ABAP/4 module is called only if a field contains the Value other than the initial Value. What is to be defined for a push button fields in the screen attributes? A function code has to be defined in the screen attributes for the push buttons in a screen.the ENTER key or a function Key of a screen.This initial Value is determined by the filed¶s Dta Type: blanks for character Fields .The OK_CODE can then be evaluated in the corresponding PAI module.The Value counts as changed Even if the User simply types in the value that .the system executes the flow logic that contains the corresponding ABAP/4 processing. The Dialog processor processes screen after the screen.For each screen.ON INPUT does not trigger a call.we use the Menu Painter. The function code currently active is ascertained by what variable ? By SY-UCOMM Variable. A functioncode is a technical name that has been allocated in a screen Painter or Menu Painter to a meny entry. 14.a push button.the system triggers the PROCESS AFTER INPUT event. The Function code currently active is ascertained by what Variable? The function code currently active in a Program can be ascertained from the SYUCOMM Variable.The data passed includes field screen data data entered by the user and a function code.What controls the screen flow? The SET SCREEN and LEAVE SCREEN statements controls screen flow.FIELD and CHAIN tell the system Which fields you are checking and Whether the System should Perform Checks in the flow logic or call an ABAP/4 Module.When the User selects a function in a transaction .a menu option . How are the function code handles in Flow Logic? .the system copies the function code into a specially designated work field called OK_CODE.Zeroes for numerics. What is an ³on request Field´ statement? ON REQUEST The ABAP/4 Module is called only if the user has entered the value in the field value since the last screen display . How does the interection between the Dynpro and the ABAP/4 Modules takes place? -A transaction is a collection os screens and ABAP/4 routines.and the appropriate action is taken. To create and edit GUI status and GUI title. regardless of Whether it comes from a screen¶s pushbutton. If the user changes the Fields Value back t o its initial value. -Application tool bar -Push buttons. How does the Dialog handle user requests? when an action is performed . The function code is always passed in Exactly the same way . controlled and executed by a Dialog processor. 10. thereby triggering the appropriate ABAP/4 processing of each screen .This field is Global in ABAP/4 Module Pool. What are the ³field´ and ³chain´ Statements? The FIELD and CHAIN flow logic statements let you Program Your own checks.

was already there .In general ,the ON REQUEST condition is triggered through any Form of´ MANUAL INPUT¶. What is an on´*-input filed´ statement? ON *-INPUT The ABAP/4 module is called if the user has entered the ³*´ in the first character of the field, and the field has the attribute *-entry in the screen Painter.You can use this option in Exceptional cases where you want to check only fields with certain Kinds of Input. What are conditional chain statement? ON CHAIN-INPUT similar to ON INPUT. The ABAP/4 module is called if any one of the fields in the chain contains a value other than its initial value(blank or nulls). ON CHAIN-REQUEST This condition functions just like ON REQUEST, but the ABAP/4 module is called if any one of the fields in the chain changes value. What is ³at exit-command:? The flowlogic Keyword at EXIT-COMMAND is a special addition to the MODULE statement in the Flow Logic .AT EXIT-COMMAND lets you call a module before the system executes the automatic fields checks. Which Function type has to be used for using ³at exit-command´ ? To Use AT EXIT ± COMMAND ,We must assign a function Type ³E´ to the relevant function in the MENU Painter OR Screen Painter . What are the different message types available in the ABAP/4 ? There are 5 types of message types available. E: ERROR W-WARNING I ±INFORMATION A-ABNORMAL TERMINATION. S-SUCCESS Of the two ³ next screen ³ attributes the attributes that has more priority is -------------------. Dynamic. Navigation to a subsequent screen can be specified statically/dynamically. (TRUE/FALSE). TRUE. Dynamic screen sequence for a screen can be set using ------------- and ----------------commands Set Screen, Call screen. 27. The commands through Which an ABAP/4 Module can ³branch to ³ or ³call´ the next screen are 1.------------,2--------------,3---------------,4------------. Set screen<scr no>,Call screen<scr no> ,Leave screen, Leave to screen <scr no>. 28. What is difference between SET SCREEN and CALL SCREEN ?

With SET SCREEN the current screen simply specifies the next screen in the chain , control branches to this next screen as sonn as th e current screen has been processed .Return from next screen to current screen is not automatic .It does not interrupt processing of the

current screen.If we want to branch to the next screen without finishing the current one ,use LEAVE SCREEN. With CALL SCREEN , the current (calling) chain is suspended , and a next screen (screen chain) is called .The called can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0 .Sometime we might want to let an user call a pop up screen from the main application screen to let him enter secondary information.After they have completed their enteries, the users should be able to close the popup and return directly to the place where they left off in the main screen.Here comes CALL SCREEN into picture .This statement lets us insert such a sequence intp the current one. 29. Can we specify the next screen number with a variable (*Yes/No)? 30. Yes The field SY-DYNR refers to--------------

Number of the current screen. 31. What is dialog Module? A dialog Module is a callable sequence of screens that does not belong to a particular transaction.Dialog modules have their module pools , and can be called by any transaction. 32. The Syntex used to call a screen as dialog box (pop up)is---------

CALL SCREEN <screen number.> STARTING AT <start column><start line> ENDING AT <end column> <end line> 33. What is ³call mode´? In the ABAP/4 WORLD each stackable sequence of screens is a ³call mode´, This is IMP because of the way u return from the given sequence .To terminate a call mode and return to a suspended chain set the ³next screen´ to 0 and leave to it: LEAVE TO SCREEN 0 or (SET SCREEN 0 and LEAVE SCREEN) .When u return to the suspended chain execution resumes with the statement directly following the original CALL SCREEN statement.The original sequence of screens in a transaction (that is , without having stacked any additional call modes),you returned from the transaction altogether.

34. 35.

The max number of calling modes stacked at one time is? NINE What is LUW or Data base Transaction ?

A ³LUW´(logical unit of work) is the span of time during which any database updates must be performed in an ³all or nothing´ manner .Either they are all performed (committed),or they are all thrown away (rolled back).In the ABAP/4 world , LUWs and

-

Transactions can have several meanings:

LUW (or ³database LUW´ or ³database transaction´) This is the set of updates terminated by a database commit. A LUW lasts, at most, from one screen change to the next (because the SAP system triggers database commits automatically at every screen change). 36. What is SAP LUW or Update Transaction? Update transaction (or ³SAP LUW´) This is a set of updates terminated by an ABAP/4 commit. A SAP LUW may last much longer than a database LUW, since most update processing extends over multiple transaction screens. The programmer terminates an update transaction by issuing a COMMIT WORK statement. 37. What happens if only one of the commands SET SCREEN and LEAVE SCREEN is used without using the other? If we use SET SCREEN without LEAVE SCREEN, the program finishes processing for the current screen before branching to <scr no>. If we use LEAVE SCREEN without a SET SCREEN before it, the current screen process will be terminated and branch directly to the screen specified as the default next-screen in the screen attributes. 38. What is the significance of the screen number µ0¶? In ³calling mode´, the special screen number 0 (LEAVE TO SCREEN 0) causes the system to jump back to the previous call level. That is, if you have called a screen sequence with CALL SCREEN leaving to screen 0 terminates the sequence and returns to the calling screen. If you have not called a screen sequence, LEAVE TO SCREEN 0 terminates the transaction. 39. What does the µSUPPRESS DIALOG¶ do? Suppressing of entire screens is possible with this command. This command allows us to perform screen processing ³in the background´. Suppresing screens is useful when we are branching to list-mode from a transaction dialog step. 40. What is the significance of the memory table µSCREEN¶? At runtime, attributes for each screen field are stored in the memory table called µSCREEN¶. We need not declare this table in our program. The system maintains the table for us internally and updates it with every screen change. 41. What are the fields in the memory table µSCREEN¶? Name Length Description NAME GROUP1 GROUP2 GROUP3 GROUP4 ACTIVE 30 3 3 3 3 1 Name of the screen field Field belongs to field group 1 Field belongs to field group 2 Field belongs to field group 3 Field belongs to field group4 Field is visible and ready for input.

REQUIRED INPUT OUTPUT INTENSIFIED INVISIBLE LENGTH DISPLAY_3D VALUE_HELP

1 1 1 1 1 1 1 1

Field input is mandatory. Field is ready for input. Field is display only. Field is highlighted Field is suppressed. Field output length is reduced. Field is displayed with 3D frames. Field is displayed with value help.

42. Why grouping of fields is required? What is the max no of modification groups for each field? If the same attribute need to be changed for several fields at the same time these fields can be grouped together. We can specify up to four modification groups for each field. 43. What are the attributes of a field that can be activated or deactivated during runtime? Input, Output, Mandatory, Active, Highlighted, Invisible. 44. What is a screen group? How it is useful? Screen group is a field in the Screen Attributes of a screen. Here we can define a string of up to four characters which is available at the screen runtime in the SY-DNGR field. Rather than maintaining field selection separately for each screen of a program, we can combine logically associated screens together in a screen group. 45. What is a Subscreen? How can we use a Subscreen? A subscreen is an independent screen that is displayed in a n area of another (³main´) screen. To use a subscreen we must call it in the flow logic (both PBO and PAI) of the main screen. The CALL SUBSCREEN stratement tells the system to execute the PBO and PAI events for the subscreen as part of the PBO or PAI events of the main screen. The flow logic of your main program should look as follows: PROCESS BEFORE OUTPUT. CALL SUBSCREEN <area> INCLUDING µ<program>¶ ¶<screen>¶. PROCESS AFTER INPUT. CALL SUBSCREEN <area>. Area is the name of the subscreen area you defined in your main screen. This name can have up to ten characters. Program is the name of the program to which the subscreen belongs and screen is the subscreen¶s number. 46. What are the restrictions on Subscreens? Subscreens have several restrictions. They cannot: · Set their own GUI status · Have a named OK code · Call another screen · Contain an AT EXIT-COMMAND module · Support positioning of the cursor. 47. How can we use / display table in a screen?

50. What are the dynapro keywords? FIELD. but can be very long. Step loops fall into two classes: Static and Dynamic. at least an empty LOOP«. 48. Leave to list . In any given screen you can define any number of static step loops but only a single dynamic one. What are the two ways of producing a list within a transaction? By submitting a separate report. The field SY-STEPL refers to the index of the screen table row that is currently being processed. How can we declare a table control in the ABAP/4 program? Using the syntax controls <table control name> type tableview using screen <scr no>. 49. Differentiate between static and dynamic step loops. it has no valid value. One major difference between STEP LOOPS and TABLE CONTROLS is in STEP LOOPS their table rows can span more than one time on the screen. What is the use of the statement Leave to List-processing? Leave to List-processing statement is used to produce a list from a module pool. Outside the loop.ENDLOOP processing. A table control. TABLE CONTROLS and STEP LOOPS are almost exactly the same. VALUES and CHAIN are the dynapro keywords.ENDLOOP must be there. This is because the LOOP statement causes the screen fields to be copied back and forth between the ABAP/4 program and the screen field. SELECT. as a screen object consists of: I) table fields (displayed in the screen ) ii) a control structure that governs the table display and what the user can do with it. 52. 53. But from a programming standpoint. What are the differences between TABLE CONTROLS and STEP LOOPS? TABLE CONTROLS are simply enhanced STEP LOOPS that display with the look and feel of a table widget in a desktop application. For this reason. Dynamic step loops are variable in size. The structure of table control is different from step loops. If the user re-sizes the window the system automatically increases or decreases the number of step loop blocks displayed. 54. By contrast the rows in a TABLE CONTROLS are always single lines. 55. These mechanisms are TABLE CONTROLS and STEP LOOPS. MODULE. is simply a series of field rows that appear as a repeating block. Static step loops have a fixed size that cannot be changed at runtime. (Table control rows are scrollable). A step loop. Why do we need to code a LOOP statement in both the PBO and PAI events for each table in the screen? We need to code a LOOP statement in both PBO and PAI events for each table in the screen. as a screen object. 51. The system variable SY-stepl only has a meaning within the confines of LOOP«.ABAP/4 offers two mechanisms for displaying and using table data in a screen. By using leave to list-processing.

Dialog-task updates are Synchronous updates. but does not display the screen to the user. 65. When will the current screen processing terminates? A current screen processing terminates when control reaches either a Leave-screen or the end of PAI. Value Set Integrity. How is the command Suppress-Dialog useful? Suppressing entire screens is possible using this command. 66. In asynchronous processing. Relational Integrity. 59. 67. SAP system configuration incluedes Dialog tasks and Update tasks.processing statement allows to switch from dialog-mode to list-mode within a dialog program. the standard list output is displayed. 68. Update ±task updates are Asynchronous updates. What are the modes in which any update tasks work? Synchronous and Asynchronous. . Primary Key Integrity. 61. 57. the program waits: control returns to the program only when the task has been completed. Suppressing screens is useful when we are branching to listmode from a transaction dialog step. In synchronous processing. What is SAP locking? It is a mechanism for defining and applying logical locks to database objects. 62. All SAP Databases are Relational Databases. and then either waits or doesn¶t wait for the task to finish. 63. Rollback-work statement ³cancels: all reuests relevant to synchronized execution of tasks. What is the difference between Commit-work and Rollback-Work tasks? Commit-Work statement ³performs´ many functions relevant to synchronized execution of tasks. the program does not wait: the system returns control after merely logging the request for execution. What happens if we use Leave to list-processing without using Suppress-Dialog? If we don¶t use Suppress-Dialog to next screen will be displayed but as empty. 60. when the user presses ENTER. The system carries out all PBO and PAI logic. 58. Foreign Key integrity and Operational integrity. 56. This command allows us to perform screen processing ³in the background´. 64. · · · · · · What are the different database integrities? Semantic Integrity. How the transaction that are programmed by the user can be protected? By implementing an authority check. What is the difference between Synchronous and Asynchronous updates? A program asks the system to perform a certain task.

all local variables and any data known to the program are stored here. Dialog modules run in the same SAP LUW as the caller Function modules run in the same SAP LUW as the caller. In what ways we can get the context sensitive F1 help on a field? Data element documentation. How can a lock object be called in the transaction? By calling Enqueue<lock object> and Dequeue<lock object> in the transaction. These always run in their own (separate) update transactions. . 72. 70. The only exceptions to the above rules are function modules called with IN UPDATE TASK (V2 function only) or IN BACKGROUND TASK (ALE applications). 74. Data element additional text in screen painter. -PROCESS ON VALUE-REQUEST (POV). or in a separate one? Transactions run with a separate SAP LUW Reports run with a separate SAP LUW. What are the different kinds of lock modes? Shared lock Exclusive lock. In addition to the runtime stack and other structures. Does the external program run in the same SAP LUW as the caller. What does a lock object involve? The tables. 77. 76. What is roll area? A roll area contains the program¶s runtime context. Using the process on help request event. 71. 75. Reports run in their own roll areas. What are the events by which we can program ³help texts´ and display ³possible value lists´? -PROCESS ON HELP-REQUEST (POH). 73. Dialog modules run in their own roll areas Function modules run in the roll area of their callers. How does the system handle roll areas for external program components? Transactions run in their own roll areas. Extended exclusive list. The lock argument. What is a matchcode? A matchcode is an aid to finding records stored in the system whenever an object key is required in an input field but the user only knows other (non-key) information about the object.69.

we can avoid redundancy by using modularization techniques. To do this. Using EXPORT/IMPORT data (ABAP/4 memory) 84. How can we pass selection and parameter data to a report? There are three options for passing selection and parameter data to the report. This second SAP LUW runs parallel to the SAP LUW for the calling transaction. function module can have four types of parameters: EXPORTING: for passing data to the called function. By using the SET PARAMETER or GET PARAMETER statements. Using SUBMIT«WITH Using a report variant. How to send a report to the printer instead of displaying it on the screen? We can send a report to the printer instead of diplaying it on the screen. Name the ABAP/4 Modularization techniques. There are two ways to use SPA/GPA parmeters: By setting field attributes in the Screen Painter. By modularizing the ABAP/4 programs we make them easy to read and improve their structure. IMPORTING: for receiving data returned from the function module. How can we send data to external programs? Using SPA/GPA parameters(SAP memory). 83. What are SPA/GPA parameters (SAP memory) SPA/GPA parameters are field values saved globally in memory. the CALL TRANSACTION statement causes the system to start a new SAP LUW. by address). Does every ABAP/4 have a modular structure? Yes. TABLES: for passing internal tables only. What are function modules? Function modules are general-purpose library routines that are available system-wide. · Functions. . by reference (that is. · Source code module. · Subroutines. CHANGING: for passing parameters to and from the function. What is Modularization and its benefits? If the program contains the same or similar blocks of statements or it is required to process the same function several times. Using a range table. 79. 82. What are the types of parameters in the function modules? In general. Modularized programs are also easier to maintain and to update.78. use the keywords TO SAP-SPOOL: SUBMIT RSFLFIND«TO SAP-SPOOL DESTINATION µLT50¶. 80. What is the difference between Leave Transaction and Call Transaction? In contrast to LEAVE TO TRANSACTION. 81.

Data can be passed between calling programs and the subroutines using Parameters. Actual Parameters: Parameters which are specified during the call of a subroutine with the PERFORM statement.How can we create callable modules of program code within one ABAP/4 program? · By defining Macros. Changes to the formal parameters are copied to the actual parameters at the end of the subroutine. · Output parameters are used to pass data from subroutines. M is the attribute type of the module program. The method by which internal tables are passed is By Reference. If we change the formal parameter. the field contents in the calling program also changes. Is it possible to pass data to and from include programs explicitly? No. and we work with the field of the calling program within the subroutine. the formal parameters are created as copies of the actual parameters. False. What are subroutines? Subroutines are program modules. What are the different methods of passing data? · Calling by reference: During a subroutine call. 16. · By creating include programs in the library. If it is required to pass data to and from modules it is required to use subroutines or function modules. How can one distinguish between different kinds of parameters? · Input parameters are used to pass data to subroutines. The formal parameters have their own memory space. which contains only Subroutines (T/F). What should be declared explicitly in the corresponding ABAP/4 Statements to access internal tables without header lines & why? . which can be called from other ABAP/4 programs or within the same program. How can an internal table with Header line and one without header line be distinguished when passed to a subroutine? Itab [] is used in the form and endform if the internal table is passed with a header line. The formal parameters have memory of their own. The formal parameter has no memory of its own. It is not possible to create an ABAP/4 program. which are defined during the definition of subroutine with the FORM statement. What are the different types of parameters? Formal Parameters: Parameters. A subroutine can contain nested form and endform blocks. · Calling by value: During a subroutine call. · External Subroutines: The source code of the external subroutines will be in an ABAP/4 program other than the calling procedure. (T/F) False. · Calling by value and result: During a subroutine call. What are the types of Subroutines? · Internal Subroutines: The source code of the internal subroutines will be in the same ABAP/4 program as the calling procedure (internal call). Changes to the formal parameters have no effect on the actual parameters. the formal parameters are created as copies of the actual parameters. only the address of the actual parameter is transferred to the formal parameters.

· In contrast to internal tables. the system partly compresses exact datasets when storing them. you can handle groups of data with different structure and get statistical figures from the grouped data. True. Function Modules are also external Subroutines. This reduces the storage space required. Declaring data as common parts is not possible for function modules. The function modules are created and stored in the Function Library. (T/F). · You have to define the structure of the internal table at the beginning. the system waits until the next database update is triggered with the µCOMMIT WORK¶ command. What is an update task? It is an SAP provided procedure for updating a database. What is the use of the RAISING exception? The raising exception determines whether the calling program will handle the exception itself or leave the exception to the system. What happens if a function module runs in an update task? The system performs the module processing asynchronously. Instead of carrying out the call immediately. By using extract datasets. When a function module is activated syntax checking is performed automatically. Function modules are stored in a central library. True. . (T/F) True. It is possible to assign a local data object defined in a subroutine or function module to a field group. This is required as the Work Area is the interface for transferring data to and from the table. All the modules in the group are included in the same main program. (T/F). You need not define the structure of the extract dataset. · Internal tables require special work area for interface whereas extract datasets do not need a special work area for interface. (Y/N) True. but will instantly lead to changes to the original data objects. A subroutine can be terminated unconditionally using EXIT. A function module can be called from a transaction screen outside an ABAP/4 program. A subroutine can be terminated upon a condition using CHECK Statement. (T/F). When an ABAP/4 program contains a CALL FUNCTION statement. What is the disadvantage of a call by reference? During a call by reference damage or loss of data is not restricted to the subroutine.Work Area. What is the difference between the function module and a normal ABAP/4 subroutine? In contrast to normal subroutines function modules have uniquely defined interface. the system loads the entire function group in with the program code at runtime. What is a function group? A function group is a collection of logically related modules that share global data with each other. What is the difference between internal tables and extract datasets? · The lines of an internal table always have the same structure. Every function module belongs to a function group.

False. µN¶-Left. The SAP profile parameter. Specify the default alignment for the following field types: µD¶ ± Left. What is the difference between field-group header and other field groups? The header field group is a special field group for the sort criteria. (T/F). Write:/<F> decimals 2. What does the insert statement in extract datasets do? It defines the fields of a field group. YYMMDD. The extract statements in field groups can be used before or after processing the sort statements. Data can be moved from one field to another using a µWrite:¶ Statement and stored in the desired format. TRUE. The total no of date formats that can be used to display a date during output is MM/DD/YY. The UNDER Command allows for vertical alignment of fields one below the other. It causes runtime errors. the system writes data to an external help file. (T/F). MM/DD/YYYY. In the statement Write:/15(10) Ofal-lifnr. DD/MM/YYYY. which determines this help file. if the main storage available is not enough. . is DIR_SORTTMP. REPORT GENERATION ± FORMATTING The alignment of a type µc¶ field in a report is left Aligned. The system automatically prefixes any other field groups with the header field group. (T/F) FALSE. Yes. False. µF¶-Right. But it leads to unnecessary data redundancy. Can a filed occur in several field groups. DD/MM/YY. False. While sorting. 3. The no of decimal places for output can be defines within a write statement. 43. In order to suppress the leading zeroes of a number field the keywords used are NO-ZERO. While using extract datasets it is required to have a special workarea for interface (T/F) False. What does the extract statement do in extract datasets? The data is written to virtual memory by extract commands. DDMMYY. If s_time has the value µ123456¶ how would you get an output of 12:34:56 with a single µWrite:¶ statement. µI¶-Right. In order to concatenate strings only for output purposes the command NO-GAP can be used in conjunction with the µWrite¶ statement. When sorting the extract dataset the fields used as default sort key lie in the Header field group. what do the number 15 and 10 stand for 15 stand for the offset on the screen and 10 stands for the field length displayed. The Maximum no of key fields that can be used in a header is 50. Write:s_time using edit mask¶--:--:--µ. (T/F). µT¶-Left. While sorting field groups we cannot use more than one key field (T/F). MMDDYY. A field-groups statement or an insert statement reverses storage space and transfers values. The LOOP-ENDLOOP on extract datasets can be used without any kind of errors (T/F) False.

False. the system resets all formatting options to their default values (T/F) TRUE. Selection Texts in the text elements of the program helps in changing the displayed names of variables in the parameters statement. In order to skip a single line the number of lines need not be given as an assignment (T/F) TRUE. which settings would take precedence. (T/F). In the statement Write:/15(10) lfa1-lifnr. When calling an external report the parameters or select-options specified in the external report cannot be called. Right-justified. The settings in the Write Statement. (T/F). Dynamically: FORMAT <option1> = <var1><option2>=<var2>«. All formatting options have the default value OFF.TRUE. (T/F). In order to restore the system defaults for all changes made with the format statement is Format Reset. Except that uline is used outside the µWrite¶ Statement. If the same formatting options were used for a WRITE statement that follows the FORMAT statement. Suppressing the number signs (+/-) is carried out using the addition NO-SIGNS to the Write statement. False. TRUE How would you define the exponents for a type µf¶ field? Exponent <e>. (T/F) FALSE. For each new event. Centered. Write: Date_1 to Date_2 format DD/MM/YY. If SY-UZEIT has the value 6:34:45 it can be displayed as 063445 using No Edit Mask. Differentiate between the following two statements if any. No-difference. Like ULINE the statement VLINE is used to insert vertical lines. In order to skip columns the command used is POSITION <n>. Background and foreground colors can be interchanged using the command Format Inverse. Left-justified. TRUE. . 27. Write: sy-uline. centered or right-justified using the write statement. How would you format the output as left. How would you set the formatting options statically and dynamically within a report? Statically: FORMAT <option1>[ON|OFF]«. (T/F). If the variable ³Text´ has the value µABCDEF¶ the output for the statement ³Write:/Text+2(3)´ will be ³CDE´ The fields specified by select-options and parameters statement cannot be grouped together in the selection screen. False. ULINE. The values 15 and 11 can also be defined by variables (T/F). In order to have boldfaced text as output the command used is Write:<f>INTENSIFIED. 20. False. Type F datatype cannot be used to define parameters. The ³SKIP TO LINE line number´ is dependent on the LINE-COUNT statement included in the report statement of the program. Rounding off of values can be carried out using the write statement. (T/F).

What is the limit for the length of a page if the page length is not specified in the report statement. (T/F) TRUE. (T/F) TRUE. ««««««. To designate fields as hotspots at runtime. What is the syntax for specifying database table name at runtime in SELECT statement. . How can Symbols or R/3 icons be output on the screen? WRITE <symbol-name>AS SYMBOL. Horizontal lines created with ULINE and blank lines created with SKIP can be formatted as hotspots. FALSE. For each SELECT-OPTIONS statement. How would you start the printing process from within the program while creating a list? NEW-PAGE PRINT ON. you must declare the elements in a block enclosed by SELECTION-SCREEN BEGIN OF LINE. TRUE. In the standard setting. ENDSELECT.. Can you assign a matchcode object to a parameter? If so how? Yes. The processing block following END-OF-PAGE is processed only if you reserve lines for the footer in the LINE-COUNT option of the REPORT statement. (T/F). To execute a page break under the condition that less than a certain number of lines is left on a page is achieved by RESERVE n lines. To set the next output line to the first line of a block of lines defined with the RESERVE statement the statement BACK is used. SELECTION-SCREEN END OF LINE. (T/F). How would you suppress the display of a parameter on the selection screen? Parameters <p> «««. ««««««. (T/F). You can change the width of pages within list levels triggered by page breaks.. FALSE. (T/F) TRUE. The RESERVE statement only takes effect if output is written to the subsequent page. (T/F). ««. 60. is SY-SUBRC. To position a set of parameters or comments on a single line on the selection screen. WRITE <icon-name> AS ICON. PARAMETERS <p>««. REPORTING ± GENERAL The system field. No blank pages are created and it defines a block of lines that must be output as a whole.MATCHCODE OBJECT <obj>««.000 lines. which indicates success or failure of a SQL operation. you cannot create empty lines with the WRITE statement alone..No-Display. use FORMAT HOTSPOT = <h>. SELECT * FROM (NAME).. NAME = µSPFL1¶.The page footer is defined using the statement END-OF-PAGE. TRUE. the system creates a selection table. Hotspots are special areas of an output list used to trigger events.

Name the ABAP/4 key words. How will you create a file on application server.etc.How do you read selected lines of database table into an internal table in packages of predefined size. How to specify a client for database table processing. Transfer num to fname. How will you transfer data into a file in application server? Data fname(60) value µmYFILE¶. only ABAP/4 statements are able to decode the structure of the stored data cluster. DOWNLOAD and WS_DOWNLOAD. These databases are known as ABAP/4 cluster databases and have a predefined structure. How do you write a DATA object from ABAP/4 program to ABAP/4 memory and restore the same from memory to program.. Open dataset fname for output. Statements used to delete data objects in ABAP/4 memory FREE MEMORY [ID <key>]. Do 10 times. ««. Open dataset <dsn> for output. EXPORT <f1>[FROM <g1>]<f2>[FROM <g2>]«. Storing a data cluster is specific to ABAP/4. Although you can also access cluster databases using SQL statements. which can be up to 32 characters long. if so what is the syntax. Name the function modules to write data from an Internal Table to the Presentation Server. SELECT * FROM <table>WHERE <var1><condition><var or const>. You can store data clusters in special databases of the ABAP/4 Dictionary. Where n is variable. Name the function module that can be used to give information about files on Presentation . SELECT * FROM <SPFLI>INTO TABLE <ITAB>PACKAGE SIZE<N>. µ%¶ and µ-µ. In SELECT statements can you specify a variable in WHERE condition or a part of the condition. ««. ABAP/4 statement for opening a file on application server for reading Open dataset <dsn> for input. Name the WILDCARD characters which are used for comparisons with character strings & numeric strings. SELECT * FROM SPFLI CLIENT SPECIFIED WHERE MANDT BETWEEN µ001¶ AND µ003¶. Data num type i. ENDSELECT. What are DATA CLUSTERS? You can group any complex internal data objects of an ABAP/4 program together in data clusters and store them temporarily in ABAP/4 memory or for longer periods in databases. TABLES SPFLI. Num = Num +1. The ID <key>. TO MEMORY ID <key>. which are used to change the contents of database table. identifies the data in memory. 7. UPDATE or MODIFY. Enddo.

that are they are not ready to accept input. but they cannot change them. Protected variant. Do not display variant. Name the ABAP/4 key word for searching a string in an Internal Table. Background only Specify whether you want to use the variant in background processing only. Mark this field if you want the variant name to be displayed in the catalog only. all the characters in the search string (and all the characters in between when using ABBREVIATED) are converted to upper case. Protected Mark this field for each field on the selection screen you want to protect from being overwritten. Name the function modules to read data from Presentation Server into an Internal Table. REFRESH <itab>. but not in the F4 value list. <lin2>can be a variable. Name the ABAP/4 keywords to initialize an Internal Table with and without headerline. The first letter of the word and the string <str> must be the same. or in online environment as well. meaningful description of the variant. SEARCH <itab> FOR <str><options>. The different options (<options>) for the search in an internal table are: ABBREVIATED Searches table<itab>for a word containing the character string specified in <str>. Mark the field if you want to protect your variant against being changed by other users. you can enter the following attributes: Type The system displays whether the field is a parameter or a select option. Name the ABAP/4 key word. How to determine the attributes of an internal table? DESCRIBE TABLE <itab>[LINES <lin>] [OCCURS <occ>]. starting at line <line1>. What are the different attributes that can be assigned to a variant? The different attributes that can be assigned to a variant are«. WS_QUERY. Description Enter a short. UPLOAD and WS_UPLOAD. CLEAR<itab>. AND MARK If the search string is found. Invisible If you mark this column. ENDING AT<n2> Searches table <itab>for <str>upto line<lin2>. Values that you mark this way are displayed to the users. <\lin1> can be a variable.Server and about its Operating System. This may be upto 30 characters long. STARTING AT<lin1> Searches table<itab> for <str>. which is used to clear the Headerline of an Internal Table. where other characters might separate the characters. the system will not display the corresponding field on the selection . For the selections you cover in a variant.

(T/F). For this purpose. In the next step you have to put the new module. you should create this internal table with one character type column and a line width of 72. The amount of memory associated with a data type is ZERO. APPEND µREPORT ZDYN1. The following example shows how to proceed in principal: DATA CODE (72) OCCURS 10. into the library. it is newly created with the following attributes: Title: none. For this purpose you can use the following statement: Syntax INSERT REPORT <prog>FROM <itab>. defined in the ABAP/4 Dictionary. . Data objects are the physical units a program uses at runtime. The data object does not occupy any space in memory. For the above example you could write: INSERT REPORT µZDYN1¶ FROM CODE. which contains the program name. TRUE. APPEND µWRITE/´Hello. The program <prog> is inserted in your present development class in the R/3 Repository. in the above example it is a report. You can specify the name of the program <prog> explicitly within single quotation marks or you can write the name of a character field. Application: S (Basis). I am dynamically created!´. Variable Mark this column if you want to set the value for this field at runtime. you can use internal fields in which contents are dependent on the flow of the program that you use to create a new one.screen the user sees when starting the report program. Two lines of a very simple program are written into the internal table CODE. The name of the program must not necessarily be the same as given in the coding. Especially.¶ TO CODE.¶ TO CODE. Type: 1 (Reporting). but it is recommended to do so. If a program with this name does not already exists. REP = µZDYN1¶ INSERT REPORT REP FROM CODE. Or DATA REP (8). TRUE. You can use any method you like from Filling Internal Tables to write the code of your new program into the internal table. you must use an internal table. (T/F) FALSE. Is it possible to create new dynamic programs during runtime of an ABAP/4 program? If so how? To create new dynamic programs during the runtime of an ABAP/4 program. What are the three hierarchical levels of data types and objects? Program-independent data. Data types can be elementary or structured (T/F). to influence the coding of the new program dynamically. <itab> is the internal table containing the source code.

Name the function module used to convert logical file names to physical file names in ABAP/4 programs. Parameters. Field strings are also called as Record or Structures. What is interactive reporting? It helps you to create easy-to-read lists. The components of a field string cannot have different data types. right justified etc. centered. In subroutines internal tables that are passed by TABLES. . which are defined during the definition of a subroutine with the FORM statement. False. (T/F). the filler fields are also added to the length of the type C field. and does not contain pointers to existing fields (T/F). Data used locally in a procedure (subroutine.Internal data used globally in one program. Defining a field group as µHEADER¶ is optional (T/F) FALSE. Instead of an extensive and detailed list. You can display an overview list first that contains general information and provide the user with the possibility of choosing detailed information that you display on further lists. are called Formal Parameters. Field group reserves storage space for the fields. If a field string is aligned (Left. you create a basic list with condensed information from which the user can switch to detailed displays by positioning the cursor and entering commands. (T/F).). Which function module would you use to check the user¶s authorization to access files before opening a file? AUTHORITY_CHECK_DATASET 37. The detailed information appears in secondary lists. INTERACTIVE REPORTING 1. You cannot assign a local data object defined in a subroutine or function module to a field group. They are called by reference. function module) How would you find the attributes of a data type or data object? DESCRIBE FIELD <f> [LENGTH <l. How would you define a field symbol? FIELD-SYMBOLS<FS>. Parameters which are specified during the call of a subroutine with the PERFORM statement are called Actual Parameters. are always called by value and result. FILE_GET_NAME.] [TYPE <t> [COMPONENTS <n>]] [OUTPUT-LENGTH <o>] [DECIMALS <d>] [EDIT MASK <m>]. FALSE. (T/F) TRUE. (T/F) FALSE. TRUE. What are the uses of interactive reporting? The user can actively control data retrieval and display during the session.

Secondary lists may either overlay the basic list completely or you can display them in an extra window on the screen. SY-CUROW Position of the line in the window from which the event was triggered (counting starts with 1) SY-CUCOL Position of the column in the window from which the event was . What is interactive reporting? A classical non-interactive report consists of one program that creates a single list. for example. If you want to include additional functionality. call a transaction from within a list of change the database table whose data is displayed in the list. such as pushbuttons. check whether the work area is initial or whether the HIDE statement stored field contents there. It also allows you to call transactions or other reports from lists. The secondary lists can themselves be interactive again. SY-LILLI Absolute number of the line from which the event was triggered. active the status of the basic list using the statement: SET PF-STATUS µSTATUS¶. The user can. TOP-OF-PAGE DURING Moment during list processing of a LINE-SELECTION secondary list at which a new page starts. You display these details on a secondary list. such as saving or printing the list. With the Menu Painter. for example.What are the event key words in interactive reporting? Event Keyword Event AT LINE-SELECTION Moment at which the user selects a line by double clicking on it or by positioning the cursor on it and pressing F2. What is secondary list? It allows you to enhance the information presented in the basic list. After processing the secondary list. At the end of the processing block END-OF-SELECTION. ABAP/4 offers several possibilities. clear the work area again. How to select valid lines for secondary list? To prevent the user from selecting invalid lines. you must define your own interface status. Instead of one extensive and detailed list. What are system fields for secondary lists? SY-LSIND Index of the list created during the current event (basic list = 0) SY-LISTI Index of the list level from which the event was triggered. Interactive reporting thus reduces information retrieval to the data actually required. select a line of the basic list for which he wants to see more detailed information. How to create user interfaces for lists? The R/3 system automatically. At the event AT LINESELECTION. SY-LISEL Contents of the line from which the event was triggered. AT USER-COMMAND Moment at which the user presses a function key. This prevents the user from trying to create further secondary lists from the secondary list displayed. The user can. And you can assign Function Keys to certain functions. To create a new status. with interactive reporting you create basic list from which the user can call detailed information by positioning the cursor and entering commands. Can we call reports and transactions from interactive reporting lists? Yes. These programs then use values displayed in the list as input values. the Development Workbench offers the Menu Painter. you can create menus and application toolbars. At the beginning of the statement block of AT END-OF-SELECTION. generates a graphical user interface (GUI) for your lists that offers the basic functions for list processing. delete the contents of one or more fields you previously stored for valid lines using the HIDE statement.

use the MESSAGE statement to output messages statically or dynamically and to determine the message type. In our program. the system deletes all secondary lists and overwrites the basic list with the current secondary list.triggered (counting starts with 2). the list must be interactive. What are the page headers for secondary lists? On secondary lists. The influence of a message on the program flow depends on the message type. What are the types of messages? A message can have five different types. You can define specific interactive possibilities in the status of the list¶s user interface (GUI). the ABAP/4 processor checks the function code and. You store and maintain messages in Table T100. To define the statuses of interfaces in the R/3 system. if . Possibly. assign function codes to certain interactive functions. into which you want to place output. TOP-OF-PAGE. After an user action occurs on the completed interface. The system deletes the contents of the released list. if you set SY-LSIND to 0. and by a three-digit number. SY-STARO Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1). SY-STACO Number of the first column displayed in the list from which the event was triggered (counting starts with 1). SY-UCOMM Function code that triggered the event. These message types have the following effects during list processing: . To explicitly specify the list level. In the Menu Painter. a page header occupies this line. set the SY-lsind field. It then deletes all existing list levels whose index is greater or equal to the index specify. CASE). Messages are sorted by language. You can assign different message types to each message you output. The system then releases the currently displayed list and activates the list created one step earlier. Handling messages is mainly a topic of dialog programming. the system does not display a standard page header and it does not trigger the event. use the Menu Painter tool. by a two-character ID. SY-CPAGE Page number of the first displayed page of the list from which the event was triggered. SY-PFKEY Status of the displayed list. which correspond to existing list levels. the user chooses Back on a secondary list. For example.I (=Information): . Syntax:REPORT <rep> MESSAGE-ID <id>. you must program the processing block of this event accordingly.S (=Success): What are the user interfaces of interactive lists? If you want the user to communicate with the system during list display.E (=Error) or W (=Warning): .A (=Abend): . The system triggers this event for each secondary list. To create page headers for secondary list. for example by using system fields such as SY-LSIND or SY-PFKEY in control statements (IF. you must enhance TOP-OFPAGE: Syntax TOP-OF-PAGE DURING LINE-SELECTION. How to use messages in lists? ABAP/4 allows you to react to incorrect or doubtful user input by displaying messages that influence the program flow depending on how serious the error was. How to maintain lists? To return from a high list level to the next-lower level (SY-LSIND). If you want to create different page headers for different list levels. The system accepts only index values.

which is available in the system field SYUCOMM after the user action. triggers the corresponding event. At an interactive event. and the value of the selected field in a field specified after value. Can we create a gui status in a program from the object browser? Yes. The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field. When a user points to that area (and the hand cursor is active).valid. How can you display frames (horizontal and vertical lines) in lists? You can display tabular lists with horizontal and vertical lines (FRAMES) using the ULINE command and the system field SY-VLINE. the contents of the field are restored from the HIDE AREA. What is meant by stacked list? A stacked list is nothing but secondary list and is displayed on a full-size screen unless you have specified its coordinates using the window command. FREE).0c. What are the drill-down features provided by ABAP/4 in interactive lists? ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION (double click) or AT USER-COMMAND (pressing a button). You can define individual interfaces for your report and assign them in the report to any list level. When the get cursor command used in interactive lists? If the hidden information is not sufficient to uniquely identify the selected line. You can create a GUI STATUS in a program using SET PF-STATUS. a single click does the same thing as a doubleclick. the command GET CURSOR is used. How can you access the function code from menu painter? From within the program. push button. you can use the SY-UCOMM system field to access the function code. In which system field does the name of current gui status is there? The name of the current GUI STATUS is available in the system field SY-PFKEY. It is not deleted and you can return back to it using one of the standard navigation functions like clicking on the back button or the cancel button. What is meant by hide area? The hide command temporarily stores the contents of the field at the current line in a systemcontrolled memory called the HIDE AREA. What are the events used for page headers and footers? The events TOP-OF-PAGE and END-OF-PAGE are used for pager headers and footers. we can display a list in a pop-up screen using the command WINDOW with the additions starting at X1 Y1 and ending at X2 Y2 to set the upper-left and the lower-right corners where x1 y1 and x2 y2 are the coordinates. or function key has an associated function code of length FOUR (for example. What is meant by hotspots? A Hotspot is a list area where the mouse pointer appears as an upright hand symbol. What is the length of function code at user-command? Each menu function. Can we display a list in a pop-up screen other than full-size stacked list? Yes. Is the basic list deleted when the new list is created? No. If you do not specify self-defined interfaces in the report but use at least one of the . You can use these events to move through layers of information about individual items in a list. Hotspots are supported from R/3 release 3. The corners arising at the intersection of horizontal and vertical lines are automatically drawn by the system.

If the user creates a list on the next level (that is. the system stores the previous list and displays the new one. How many lists can a program can produce? Each program can produce up to 21 lists: one basic list and 20 secondary lists.three interactive event keywords. In this case. In the program code. AT PF<nn>. How the at-user command serves mainly in lists? The AT USER-COMMAND event serves mainly to handle own function codes. SY-LSIND increases). . To do this. For background processing the only possible method of picking the relevant data is through µNON INTERACTIVE REPORT¶ . AT LINE-SELECTION. there is no way of influencing the program. the system automatically uses appropriate predefined standard interfaces. and that is always the most recently created list. ---Setting the Cursor from within the Program. How to pass data from list to report? ABAP/4 provides three ways of passing data: ---Passing data automatically using system fields ---Using statements in the program to fetch data ---Passing list attributes How can you manipulate the presentation and attributes of interactive lists? ---Scrolling through Interactive Lists. These standard interfaces provide the same functions as the standard list described under the standard list. ABAP/4 provides the HIDE statement. This statement stores the current field contents for the current list line. What will exactly the hide statement do? For displaying the details on secondary lists requires that you have previously stored the contents of the selected line from within the program. How to call other programs? Report Transaction Call and return SUBMIT AND RETURN CALL TRANSACTION Call without return SUBMIT LEAVE TO TRANSACTION You can use these statements in any ABAP/4 program. OR AT USERCOMMAND in the program. Interactive lists provide the user with the so-called µINTERACTIVE REPORTING¶ facility. you should create an individual interface with the Menu Painter and define such function codes. ---Modifying List Lines. But whereas for dialog sessions there are no such restrictions. Only one list is active. the system fills the stored values back into the variables in the program. FALSE. When calling a secondary list from a list line for which the HIDE fields are stored. After starting a background job. insert the HIDE statement directly after the WRITE statement for the current line.

A table having the same structure is then created from this table definition in the underlying database.e. Lock objects:are used to synchronize access to the same data by more than one user. Data dictionary ensures data integrity. structures. table types). The ABAP dictionary also provides tools for editing screen fields (e. Function modules that can be used in application programs are generated from the definition of a lock object in the ABAP Dictionary. Q. What¶s the full form of IDES? Ans: Internet Demonstration and Evaluation System. What¶s the full form of ECC? Ans: Enterprice Central Component. ABAP dictionary is completely integrated into ABAP development workbench. indexes and views) can also be defined. structures. CINTHIA NAZNEEN Q. consistency and security. Views: are logical views on more than one table. These user-defined types/objects are then automatically created in the underlying relational database using the above data definitions. Q. Q. Role: ABAP data dictionary supports y y y y definition of user-defined types (data elements. Domains: Different fields having the same technical type can be combined in domains. table types): Types are created in ABAP programs. Domain defines the value range of all table fields and structure components that refer to this domain.. 2009 ¬ 5:27 pmh. . Types (elements. What are the main object types of ABAP dictionary? Ans: The object types of ABAP dictionary can be of following type: y y y y y Tables: Tables are defined in the ABAP Dictionary independently of the database.g. F4 help). Changes to a type automatically take effect in all the programs using the type.ABAP Data dictionary interview questions Posted in May 17. What¶s ABAP dictionary and its role in SAP? Ans: ABAP dictionary is the central information base for the developers. All other component of ABAP development workbench can access the data definitions(meta data) stored in the data dictionary. The structure of a type can be defined globally in ABAP programs. A view on the database can then be created from this structure. structure of database objects (tables. The structure of the view is defined in the ABAP Dictionary. This manages all definitions(metadata) required for different applications in SAP. for assigning a field an input help i.

Input help: The list of possible input values that appears for the input help is created by a foreign key or a search help. Field type depicts the data type of the field in the ABAP dictionary. The fields of the table are defined with their (Database-independent) data types and lengths. Data element assignment to a field. Q. a table is automatically created in the physical database(when the table is activated). field Length and short Text of any field is assigned? Ans: i. . ii. Direct assignment of data types. Q. ii. field length. Also fields from other structures can be added to the table definition as include. What are the assignment options to the field? Ans: i. field length (and if necessary decimal places) short text can be directly assigned to a field in the table definition.y y Data element: The ABAP Dictionary also contains the information displayed with the F1 and F4 help for a field in an input template. Short text describes the business meaning of the field. Ans: y y y y Table fields: For table fields. Decimal places Number of places after decimal point for float type value. short text to a field. field length (and decimal places) are automatically determined from the domain of the data element. Foreign keys: Relationship between the table and the other tables are defined. The short description of the data element is then assigned to the field as a short text. Again following are defined for a table fields: y y y y y y Field name can be of maximum 16 characters in a table and must start with a letter. Technical settings: Data class and size category defines that what type of table to be created and how much space required. Key flag determines if a field should be the table key. field names and data types are defined. Field length denotes the number of valid places in the field. Using the table definitions stored in the ABAP dictionary. Indexes: Secondary indexes are created for a table for faster data selection. How data Type. Data type. Q. Note on SAP tables(defining through ABAP dictionary). The documentation about the field is created for a data element. Q. Data element can be assigned to a field so that data type. What are the components of a table definition. Ans: Tables are defined independently of the database in ABAP dictionary.

< FIELD NAME> 2. What¶s the number of characters limit for field name? Ans: A field name may not have more than 16 characters in a table. iv.g.<GROUP NAME>-<FIELD NAME> 3. A search help can be assigned to a field.<GROUP NAME> Q. Field UNIT contains currency key for PRICE. <TABLE / STRUCTURE NAME > . Give an example of nested include. v. E.: TAB1 contains the field PRICE which holds price values. So. but in a structure maximum 30 characters are allowed for a field name. <TABLE / STRUCTURE NAME > . What¶s named include? Ans: If an include is added to define a database table or database structure. The reference field can also reside in the table itself. fields from another structure can be included as includes. . This field is called the reference field of the output field. Ans: Structure S1 may include structure S2 and again S2 may include S3.e. What¶s reference table and reference field? Ans: Reference table is specified for fields containing quantities(data type QUAN) or currency(Data type CURR). Q. E. Q. Q.TAB1 is the reference table for field PRICE and UNIT is the reference field for field PRICE. This reference table must contain a field with the format for the currency key (data type CUKY) or unit of measure (data type UNIT). a name can be assigned to that included (included substructure). The group of fields of that include can be addressed as a whole in ABAP application programs with a group name which is called as named include.What¶s the maximum depth of nested includes in a table? Ans: Maximum depth is 9 i. maximum 9 structures can be included in a table/structure.:We can access field of a table/ structure in the ABAP application program in the following manner: 1. Q. An input check(check table) for a field can be defined with a foreign key. What¶s table include? Ans: In addition to listing the individual fields in a table or structure. Q.iii.g. Reference field or reference table must be specified for a table field that holds currency or quantity type value. <TABLE / STRUCTURE NAME > .

What¶s check table? Ans: Check table is maintained at field level for data validation. a checking is done that whether the inserted value exists in the check table or not. fld2. fld3. input validation checking is done i. One record of the foreign key table uniquely identifies a record of the check table (using the value entries in the foreign key fields of the foreign key table). fld8. tab1-fld4 is connected to tab2-fld6Therefore. fld7(primary key). input value check for any input field can be done. This depicts that the foreign key relationship is maintained for that field. Whare are the uses of foreign keys in SAP? Ans: y y Using foreign keys(as main table-field is linked with check table). Q. Q. What¶s cardinality? Q. Uses: A foreign key permits assigning data records in the foreign key table and check table. fld4. Foreign keys can also be used to link several tables. What¶s generic and constant foreign keys? Q. fld5 and Tab2(Referenced table) contains the following fields: fld6(primary key). That field of the is called as foreign key field. Explaination on foreign keys: Suppose. fld9 and tab1-fld2 is connected to tab2-fld5. tab1(Foreign key table or dependent table) contains the following fields: fld1(primary key). Q. What are foreign key fields? Ans: One field of the foreign key table corresponds to each key field of the check table. What¶s check field? Ans: One of the foreign key field is marked as the check field.Q. What are foreign keys? Ans: Relationships between tables are defined in the ABAP dictionary by creating foreign keys. If doesn¶t exist then system rejects the entry else input validation check for that field is successful. fld2 and fld4 fields of the table tab1 are called as foreign key fields to the table tab2 and tab2 is called as check table or referenced table. When a value is entered for that check field in the table. What are the types of foreign key fields? . Q.e. Q.

What¶s buffering? Q. The other two types of data classes are:USR and USR1(for customer¶s own development purpose). Q. dataclass determines that under which table space/dbspace the table will be stored. What are text table? Q. then additional memory is added according to the mentioned size category for that table. Q.Choose APPL0(master data) for data that is frequently accessed but rarely updated/changed. What¶s size category? Ans: The Size category is used to defined the space requirement for the table in the database. Q.e. What¶s the utility of size category? Ans: During table creation. Q. How many types of data classes are there in SAP? Data classes are mainly of three types(for application tables): i.Q. Size category from 0 to 4 can be choosen for the tables. How many types of size category are there in SAP? Ans: There are five size categories. What is µtechnical settings¶ of a table?What are the important parameters to be mentioned within it? Q. ii. correct size category prevents the creation of a large number of small extents for a table i. What are the different buffering permissions? . iii.e.e. an initial extent) in the database.If in any case more space is needed. How buffers are filled up? Q. A certain fixed memory size is assigned to each category in the SAP database. What are the different buffering types? Q. the SAP system reserves an initial space i.Choose APPL2(organizational data) for customizing data that is defined/entered during system installation and rarely changed.Choose APPL1(transaction data) for data that is frequently changed. What¶s data class? Ans: Data class is that which allows the table to get automatically assigned under specific tablespace/dbspace during table creation in the SAP database i. prevents memory wastage. Q.

What is transparent table? Ans: The tables which create 1-to-1 correspondence between the table definition in the ABAP data dictionary and the table definition in the physical database are called as transparent tables in SAP. iii. Q.Q.e. ii. Ans: i. continuous texts such as documentation). Example of table cluster and cluster tables. BSEC. The table cluster RFBLG holds data for five transparent tables i. What¶s logging? Q. RFBLG. How database tables are buffered? Q. Uses of table pool or table cluster. Q. What are clustered tables? Ans: Tables assigned to a Table cluster are called as clustered tables. Ans: Table pool or table cluster is used to store SAP¶s internal control information (screen sequences. ii. Q. . What are pool tables? Ans: Tables assigned to a table pool are called as pool tables. BSEG. DOKTL . What is table pool? Ans: Table pool is a table in the SAP database in which many pool tables are assigned. DOKCLU. program parameters. Pool tables. BSES and BSET. VBAP. Q. Q. CDHDR. Q. Q. Cluster tables. Ans: VBAK. Transparent tables. BSED. Other examples of table clusters are CDCLS. temporary data. How many tables are there in SAP? Ans: i. Give examples of transparent table. Q. What are table clusters? Ans: Table cluster is a table in the SAP database in which many cluster tables are stored. KNA1 etc.

Q. Transparent tables can store table relevant data whereas table pool or cluster tables can store only system data/ application data based on the transparent tables. and data transport to other SAP system). What are tabs under the maintenance screen of the ABAP data dictionary screen? Ans: There are five tabs under ABAP dictionary. Entry help/check.Delivery & maintenance. Q. iv. Transparent tables are accessible both by Open and native SQL statements whereas table pool/cluster tables are accessible only by open SQL but never by native SQL. v. A transparent table has 1-to-1 cardinality between the table definition in the data dictionary and in the table definition of sap database whereas cluster/pool tables have many-to-1 cardinality between the table definition in the data dictionary and in the table definition of sap database. SAP software upgrade. What are the differences between transparent and cluster/pool tables? Ans: i. new data records can be inserted but may not overwrite or delete existing ones. A: Application table (master and transaction data) is maintained by the customers using application transaction. i. client copies. ii. E: System table with its own namespaces for customer entries. C: Customer table. Currency/Quantity fields. What is delivery class? Ans: We need to insert an delivery class value while creating customized table in SAP through the transaction code SE11. ii. L: Table for storing temporary data. iv. it depicts that the application table for master and transaction data changes only rarely. Data is maintained only by the customer. iii. . G: Customer table. iii. Q. v. Delivery class is that which regulates the transport of the table¶s data records (during SAP installations. ii. If Delivery class is A. iii.Attributes. SAP and its customers have different write types depending on the variety of delivery class. How many types of delivery classes are there in SAP? Ans: There are following delivery classes: i.Q. Fields.

Re: How you can perform field-validation in your dialog program ? Answer #2 You can validate your fields in the PAI module of the program by placing them between the CHAIN & ENDCHAIN Statement. label names) for a field. So whenever the domain will be used. What¶s value table? Ans: Value table is maintained at domain level in SAP.vi. S: System table.: function module table. What are the differences between domain and data element? Ans: i.Data elements are directly attaced to the fields of SAP database tables and each data element has an underlying domain within it. Table contents are maintained by maintenance transactions.g. Answer #2 Hi. ii. iii.Within domain value range of a field can be described. Q.g. field length. Whereas within the data element parameter id and search help for a particular field can be assigned. E. µZ¶. value range of the domain is defined by specifying value table. Screen Editor----> SE51. . µB¶. During domain creation. data changes have the status of program changes i. system will allow to use these values only. Whereas data element denotes the semantic attributes(short description. Script Editor----> Se71. think there r 3 types of editors. ABAP Editor------> SE38. System table for program¶s nature. 2. no. of decimal places. Suppose for a particular domain. Re: HOW MANY EDITORS ARE THERE IN SAP ABAP. W: System table for system operation and maintenance.Domain depicts the technical attributes of a field (its data type. E. WHAT ARE THEY AND THERE USES.e. Maintained only by SAP. its value table holds the values µA¶. Q.: Codes for SAP transactions. vii. Whereas domains are not directly attached to the fields and a single domain can be under many data elements. I 1. 3. appreance on the sreen) of a SAP database table.

Sign up to vote on this title
UsefulNot useful