sap_final

16
1: What is the different between sap memory and ABAP Marry Ans : SAP Memory Using SAP memory. User-specific memory retained for the duration of the session. Can only be used for simple field values. ABAP Memory Using ABAP memory. Can be used to transfer data between internal modi. Can be used to transfer any ABAP/4 variables ( Fields, strings, internal tables, complex objects) OR SAP memory is global memory. SET Parameter & GET parameter. Can be shared with terminal's external session... ABAP memory is a memory area in one external session only and can not be shared betn external session. You can create 20 internal session in one external session. 2: How can v get the error massage in Call Transaction method Ans: In call transaction syntax there is one option there you can specify message table. In which u will get all messages [MESSTAB]. 3 : What is the mandatory in for all entry options Ans : For all is user for fetch the data base on one internal table from database. mandatory field are obligatory fields and must be entered any value. blank are not allowed. 4: What is the Secondary index and why its required Ans: can create with se11 and can be used in select query .searching fast. 5: What is the T.Cod for SQl Trace. Ans : ST05. 6 Type of Internal Tables? Ans : Standard Internal table , Shorted Internal table , Has Internal table. 7: What is the different between at new and On change Ans: At new is fired when any change of left most field On change is fired when the value of field is change. 8 : How to delete the duplicate record from internal table Ans : With use if delete ageist command we can delete the duplicate record from the internal table. 9 : Which type of Internal Tables are in the SAP? Ans : Standard Internal table, Shorted Internal table , Has Internal Table. Key for internal table There are two kinds of key for internal tables-the standard key (default key)and a user-defined key

Upload: palsign

Post on 18-Jul-2016

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: sap_Final

1: What is the different between sap memory and ABAP MarryAns : SAP Memory Using SAP memory. User-specific memory retained for the duration of the session. Can only be used for simple field values.

ABAP Memory Using ABAP memory. Can be used to transfer data between internal modi. Can be used to transfer any ABAP/4 variables ( Fields, strings, internal tables, complex objects)

OR SAP memory is global memory. SET Parameter & GET parameter. Can be shared with terminal's external session... ABAP memory is a memory area in one external session only and can not be shared betn external session. You can create 20 internal session in one external session.

2: How can v get the error massage in Call Transaction methodAns: In call transaction syntax there is one option there you can specify message table. In which u will get all messages [MESSTAB].

3 : What is the mandatory in for all entry optionsAns : For all is user for fetch the data base on one internal table from database. mandatory field are obligatory fields and must be entered any value. blank are not allowed.

4: What is the Secondary index and why its requiredAns: can create with se11 and can be used in select query .searching fast.

5: What is the T.Cod for SQl  Trace.Ans : ST05.

6 Type of Internal Tables?Ans : Standard Internal table , Shorted Internal table , Has Internal table.

7: What is the different between at new and On changeAns: At new is fired when any change of left most field On change is fired when the value of field is change.

8 : How to delete the duplicate record from internal tableAns : With use if delete ageist command we can delete the duplicate record from the internal table. 9 : Which type of Internal Tables are in the SAP?Ans : Standard Internal table, Shorted Internal table , Has Internal Table.

Key for internal table There are two kinds of key for internal tables-the standard key (default key)and a user-

defined key All non-numeric fields that are not themselves internal tables make default key of the

internal table Default key consists of all of its non-numerical columns that are not references or themselves internal table

The user-defined key can contain any columns of the internal table that are not references or themselves internal tables Internal tables with a user-defined key tables

11. What is header line?Ans: Header line is a work area of an internal table.

Page 2: sap_Final

12. What is search help?Ans. A search help object describes the path to find out all possible values of object There are two types of search help available Collective Search Help & Linear Search Help.

13. What is Type pool?Ans: TYPE POOL is a data dictionary object that contains user defined data typesTo define TYPE POOL in data dictionary use statement TYPE-POOL <type pool name> Under this statement we are defining all user defined data type with type with type TYPES statement. To use all user defined data types defined in type pool, we can include that type pool with TYPE-POOLS <type pool name> statement.

14. Describe the sub-objects of the layout setAns. Header, Character format, Paragraph format, Page, Windows, Page window.

15. What HIDE command will do?Ans. HIDE statement allows you to store field contents for a particular list line in a special memory area. For each field the system stores the field name and the value.

16.What are RANGES?Ans. RANGES defines an internal table similar to a selection criterion defining using the SELECT-OPTIONS statement . SIGN,OPTION,LOW,HIGH

17what is difference between RANGES and SELECT-OPTIONS?Ans. SELECT–OPTIONS creates selection field on the selection screen where RANGES does not.

18. What is the first and last event that is processed in a report?Ans: INITIALIZATION & END- OF –SELECTION.

19. What is the standard line-size and line-count of a list?Ans. Line –size contains 255 characters, while line-count contains 60,000 lines

20. Can there be more than one start-of-selection in a report?Ans. YES. The code created in each start-of selection would be combined together in one single processing block and would be executed.

21. What is control-break logie?Ans. When we are sorting an internal table in the same field order, control levels are created for internal table and preceding field has higher control over processing than remaining fields. And depending upon control level events, statements between AT/ENDAT events will be executed.

22. Name the events used for control –break logic?Ans. AT FIRST, AT NEW, AT END OF, AT LAST. Out of these, AT FIRST and AT LAST will be executed only once.

23. List the sequence of events in classical reporting?Ans. INITIALIZATION, AT SELECTION-SCREEN, START –OF –SELECTION,TOP-OF-PAGE, END-OF-PAGE, END –OF SELECTION.

24. What is the value range of type I data number?Ans. It’s 231 to 231-1.

25. What type of limitation do type N fields have?Ans. These digits are not used for calculation. It cannot contain any character other than digits.

Page 3: sap_Final

26. What is Packed Number?Ans. With packed fields, two digits are stored in one byte. The half byte of the last byte contains the sign.

27. When do you use STATICS statement?Ans. We can define local variable using LOCAL, DATA or STATIC statements. It will be local to a subroutine.

Variables defined by LOCAL, are accessible from outside the subroutine, variables defined using DATA or STATIC are not. So, if the subroutine calls another subroutine, variable defined using LOCAL are visible from called subroutine. Variables defined using STATIC or DATA are not

For variable defined using LOCAL or DATA memory is allocated each time the subroutine is called. Memory is free when the subroutine ends. So the values within it are lost For STATIC memory is retained.

28. When do you use CONSTANTS statement?Ans. The CONSTATNS statement defines global and local constants. You can not change the value of a constant once it has been defined.

29. What does COLLECT commands do?Ans. COLLECT statement will search for key entry in the internal table, if it find that key it will add numeric fields of header line/work area to that internal table record/row else append new record/row.

30. What does APPEND commands do?Ans. It is used to add new record/row at the end of internal table.

31. What does REFRESH commands do?Ans. It is used to delete all the records/row of internal table.

32. What is the difference between MOVE and MOVE-CORRESPONDING?Ans. With the help of MOVE You can assign a single component at a time , while component-by-component assignment can be done through MOVE-CORRESPONCING.

33. What is interactive reporting? What are the different ways to implement it? Interactive reporting helps you to create easy-to-read lists. You can display an overview list

first that contains general information and provide the user with the possibility os choosing detailed information that you display on further lists.

Interactive reporting can be implemented using following events:

Event keyword EventAT LINE-SELECTION Event triggered by the user double –clicking a line or

selecting it using F2AT USER-COMMAND Event triggered by the user selecting any option

provided in the GUI StatusAT PF (n) Event triggered by the user pressing function key

Page 4: sap_Final

What is module pool? Module pool is a type “M” program that is used for dialog programming Module pool contains modules that contain application logic of a transaction and they are

called by separately programmed screen flow logic It is not possible to run Module pool program directly on its own. We should assign a

transaction code to dialog program and then we can execute the program using that t-code only.

34 Describe Files concepts alongwith syntax on Application Server. For opening files: OPEN DATASET <filename> [Additions] For closing files: CLOSE DATASET <dsn> For deleting files: DELETE DATASET <dsn> For writing data to file: TRANSFER <f> to <dsn> [LENGTH<len>] For reading files: READ DATASET <dsn> INTO <f> [LENGTH<len>]

35. Describe File s concepts along with syntax on Application Server. WRITE DATA USING USER DIALOG CALL FUNCTION

‘DOWNLOAD’ WRITE DATA WITHOUT USING USER DIALOG

CALL FUNCTION ‘WS_DOWNLOAD’ READ DATA USING USER DIALOG CALL FUNCTION ‘UPLOAD’ READ DATA W/OUT USING USER DIALOG CALL FUNCTION ‘WS_UPLOAD’ CHECKING FILES

CALL FUNCTION’WS_QUERY’

36 What is Inner join and Outer join?Ans. I inner join; only those rows are selected from primary and secondary tables where rows from primary table have at least one corresponding row in the secondary table. Whereas in left outer join, it is not necessary for a record in the primary table to have a corresponding record in the secondary table, It is still displayed.

37. Explain Type of TablesTransparent tables: Has one-to-one relation with database table Database table name is same as ABAP data dictionary table name. Same number of fields with same names. Pooled tables: Has many to one relation with the database table. Different number of fields can be there with different names. It is used to store large number of tables with small size.

Cluster tables: Many to one relation with the database table. Different number of fields can be there with different names. It is used to store small number of tables with the large size.

Page 5: sap_Final

38. What is ALE Technology?Ans. ALE is SAP’S technology that provides integration between SAP to SAP and SAP to Non-SAP system. ALE allows efficient and reliable communication between distributed processes across physically separate SAP system. It is based on application-to-application integration using messaging architecture; a message defines data that is exchanged between two processes.

39. What kinds of scenario we are using ALE?Ans. (1) Geographical Location: Where the companies that implemented SAP in several parts of the world. (2) Consolidation: A company could have several business units that share sane common resources. E.g. a company with several sales operations could share a common warehouse and shipping system.(3) System Capacity: System capacity such as database size, memory requirements, no of concurrent users and network bandwidth may force you to split a system, Like you have implemented MM module on one system and SD module on other system required transferring masters data like material master. (4) Upgrading a module separately : With SAP delivering new modules and enhanced functionality in every release, some business units may require the latest release of the SAP system while others continue to work with an older release.(5) Data Security: In the sensitive projects, you may be required to separate the classified information from the unclassified.

40. What is Idoe?Ans. Idoe are containers that hold data exchanged between the two systems.

41. What is outbound process?Ans. The outbound ALE process in SAP sends data to one or more SAP systems. This process involves four steps. (1) Identify the need for sending an Idoe. E.g. when a material master is created, it consults the ALE layer starts the process to send material master data to the interested party.(2) Generate the master Idoe: The document or master data to be sent is read from the database and formatted in to an Idoe format is called a master Idoe.(3) Generate communication Idoe: Separate Idoe are generated might demand a different version or a subset of master Idoe, are called communication Idoe. The recipients are determined from customer distribution model. (4) Deliver the communication Idoe: Delivers Idoe to the appropriate recipients using an asynchronous communication method, allowing the sending system to continue its processing without having to wait for the destination system to receive or process the Idoe.

42. What is Inbound process?Ans. The inbound process receives an Idoe & creates a document in the system. This process involves 3. Steps (1) Store the Idoe in the database: Idoe is stored in the database. Then Idoe goes through a basic integrity check & syntax check. (2) Invoke the posting module: The control information in the Idoe & configuration tables are read to determine the posting program. The Idoe is then transferred to its posting program. The Idoe is then transferred to its posting program. (3) Create the document: The posting program read the Idoe data and then creates a document in the system. The results are logged in the Idoe.

43. If outbound process is successful what is the status code of Idoe?Ans. 3-Data passed to port okay. & 12-Idoe has been successfully transferred. Program Name: RBDMOIND

44. If inbound process is successful what is the status code of Idoe?Ans.53-Application document posted

Page 6: sap_Final

45. What is the standard function module to distribute Idoe on ALE layer?Ans. MASTER_IDOC_DISTRIBUTE

46. What are the basic elements of the idoe?Ans. Idoc is made up of 3 type of records (1) CONTROL RECORD (one) (2) DATA RECORD (M) (3) STATUS RECORD(M)

47. Are we using workflow anywhere in ALE-Idoe technology?Ans. Yes, in error handling.

48. For SAP to Non-SAP anything special required?Ans. Yes, Converter or Translator

49. What are the major uses of ALE-Idoe?Ans. (1) Master Data Distribution (2) Application data Not used for COTROL Data

50. Methods of data posting in R/3 for ALE-Idoe?Ans. (1) Direct Insert (2) CALL TRANSACTION

51. What is a IDOC Type?Ans. IDOC Type represents s the definition of the IDOC, which defines the structure and the format of the data that is being transferred. IDOC can be seen as an instance of and IDOC Type.

52. How backward compatibility is supported in ALE-Idoc?Ans. Segments are version controlled. A new version of a segment always contains fields from previous version. And additional fields that are added in newer version. So segment can communicate with back level system by blanking out new fields. The version specified in segment release, in Idoc type field of the partner profile is read to determine version of the segment.Like segments, Idoc types are also version controlled. A new version of Idoc always contains segment of previous version. And additional segments added in the new version So, Idoc can communicate with back level system by deleting segments that do not exist in the version specified. The Idoc type field of partner profile can determine version.

53. Data in IDOC will be stored in which format?Ans. Data in IDOC will be stored in character format

54. What is BAPI?Ans. External Applications can access SAP business Objects using standard interfaces (Methods of SAP Objects) BAPIS are implemented through RFC enabled function modules.

Page 7: sap_Final

55. Data Transfer Flow:

Legacy Data

. Data Formatting

Sequential File Contains Data in SAP format

Data Mapping

Internal Table of structure (BDCDATA)

Call Transaction Batch InputDirect Input

SAP DataBase

54. How do you handle errors in your BDC Program?Ans.

(1) Data Validation &error reportingAs a first step of data processing data should be validated depending upon transaction requirement. On failure of validation error should be recorded in a log with meaningful error messages.

(2) Data transfer success or failure & error reportingOn failure of data transfer, error should be recorded in a log with meaningful error message.(3)Error documentationFor each error occurred, documentation should be maintained with cause and cure of error.

55. CALL TRANSACTIONAns.:CALL TRANSACTION<tcode>

USING<bdc_tab>MODE<mode> [A(All)/N (No Display) / E (Error)]UPDATE<update> [A (Asynchronous) /S (Synchronous) / L (Local]MESSAGES IN TO MESSTAB

57. Structure OF BDCDATA tableAns. Program Dynpro Dynbegin Fieldnam Fieldvalue

Page 8: sap_Final

58. BATCH INPUT SESSIONAns.:BDC_OPEN_GROUP

Client : CLIENTSession Name : GROUPLock Date : LOCKDelete Session After Processing : KEEPBDC User Name : USER

BDC_INSERTTransaction code : TCODEBDC table : DYNPROTAB

BDC_CLOSE_GROUP

59. Difference between CALL TRANSACTION & BATCHINPUT SessionAns.:BATCH INPUT SESSION CALL TRANSACTIONMultiple transaction handling Single transaction at a timeAsynchronous processing Synchronous processingAsynchronous/Synchronous database update

Synchronous database update

Error correcting Session Log

Faster than Batch Input Session

58. What is TABLE CONTROL and STEP LOOP?Ans. TABLE CONTROL and STEP LOOP are type of screen tables to display and use table data.(A step loop id a repeated series of field –blocks in a screen. Each block can contain one or more fields, and can extend over more than one line on the screen.)

59. How can you define TANBLE CONTROL in ABAP program?Ans. CONTROLS: <table control>TYPE TABLEVIEW USING SCREEN <screen no>

60. How can you process through TABLE CONTROL OR STEP LOOP?Ans. You must code a LOOP statement in both the PBO and PAI events for each table in your screen. This is because the LOOP statement causes the screen fields to be copies back and forth between the ABAP program and the screen field. For this reason, at least an empty LOOP…ENDLOOP must be there.Ex.Lopp At<internal table>This statement loops through an internal table and the screen table row in parallel.

61. Type OF User Exits?Ans. Menu. Screen, Function Exit, Field Exit

Page 9: sap_Final

62. Sap-script is a client dependent or client independent ?Ans. It’s a client dependent. sap have a standard Script Form. its All stored in default client.  sap script text  abd lines are stored in tables . that table have a mind field. so it is client dependent.

63. Which function modules are used for sap-script layout?Ans. START_FORM. OPEN_FORM,WRITE_FORM, CLOSE_FORM and END_FORM.

64. What contains Text Elements in the sap-script?Ans. It contains variables and control statement.

65. Can we execute and run sap-script without ABAP program?Ans. Yes. we can

66. Which are the main components in the Basic Setting of sap-script?Ans. sat up page and Default values for text formatting .In Set up page, Page format. Orientation, Lines inch. Characters /Inch and First page are available. In Default values for text formatting, Default paragraph, tab stop, font family, font size, bold, italic, underlines, spacing, thickness and intensity are available.

67. How can we define named text element?Ans. By entering/E, in the tag column in the page-windows.

68. Which are the window types in layout set?Ans. Main, Constant and Variable

69. For outputting text in the main windows, which modes are available?Ans. TOP, BOTTOM and BODY

70. Which are the standards attributes of the paragraph formats?Ans. Standard, Font, Tabs and Outline

71. Explain the Font attributes of the paragraphs?Ans. Font family, Font size, Bold/italic and underlined.

72. What is RDI output parameter?Ans. It’s a Raw Data Interface output mode. Following modes are available-Sap-script formatting, ‘X’ – output mode spool, ‘D’- output mode I-doc, and ‘I’- output mode sinple spool are available.

73. Can we debug a sap-script like abap program?Ans. Yes, we can.

74. Which control commands are available in sap-script?Ans.NEW-PAGE, PROTECT, NEW-WINDOW, DEFINE, SET DATE MASK, SET TIME MASK, SET COUNTRY, SET SIGN, RESET, INCLUDE, STYLE, ADDRESS, TOP, BOTTOM, IF CASE, PERFORM etc.

75. Can we debug a sap-script like abap program?Ans. Yes. We can

76. Which command is used for page-break in sap-script?Ans. PROTECT….ENDPROTECT. If this page protect attribute is set then the complete paragraph is always printed on one page. This property applies only to that particular paragraph

77. Can we call an abap subroutine in sap-script?Ans. Yes PERFORM command is used to cal an abap subroutine from any program.

Page 10: sap_Final

78. Which command is used to call certain printer functions from a sap-script text?Ans. PRINT-CONTROL command is used for that. /: PRINT-CONTROL name. Specify the name of the print control either with is without inverted commas.

79. Which symbols are used in sap-script?Ans. System symbols, Standard symbols, program symbols and Text symbols e.g. System symbols: Current Date (DATE), Day (DAY), MONTH number (MONTH), year (YEAR), local Date (LDATE), Time (TIME), Underline (ULINE) , Vertical line (VLINE) etc.Standard symbols: &KNAI-NAME I &. &KNAI-UMSAT (1) & ect Program symbols: CURR, DEC, QUAN, INTI INT2, INT4, PRIC, and FLTP.

80Which system fields are used in sap-script?Ans

&SAPSCRIPT-SUBRC&,&SAPSCRIPT-DRIVER&&SAPSCRIPT-FORMPAGES&&SAPSCRIPT-JOBPAGES&,&SAPSCRIPT-COUNTER x&(x =0...9)&SAPSCRIPT-TELELAND&,&SAPSCRIPT-TELENUM&,&SAPSCRIPT- TELENUME&,

81. Can we define more than one OPEN_FORM in print program?Ans. Yes. We can

82. What is different between BAPI function and normal function?Ans : BAPI's are remotely enabled function modules are normally implemented as methods of a business object .Using this BAPI methods other application can communicate with SAP.

83. What are the function for print SAP smart forms?Ans : with FM -> SSF_FUNCTION_MODULE_NAME U CAN GET THE GENERATED FUNCTION MODULE NAME OF A SMARTFORM. AND THAT U NEED TO PASS IN FM -> FM_NAME...

84. where  can we see  the name s of  the pool &. cluster tables in ABAP data dictionary?Ans : SE11

Page 11: sap_Final

85 Can v define a more then one mail window in one SAP  script?Ans:YES 00 TO 99 MAIN WINDOW..

86. What is different between SAP Script and Smartforms.?Ans : Creating and maintaining forms requiring half the time Adapting forms without any programming knowledge due to entirely graphical user interface Web Publishing using the generated XML output.