Creating Transparent Table

Embed Size (px)

Citation preview

  • 7/30/2019 Creating Transparent Table

    1/56

    Creation of Transparent Table

    1. Enter the table name and press Create

    2. Enter the description, Delivery class and check on table maintenance allowed. Then clickon the tab Fields.

  • 7/30/2019 Creating Transparent Table

    2/56

    3. Enter the ZCHAR in fields tab and ZCHAR_DE in field type tab.

  • 7/30/2019 Creating Transparent Table

    3/56

    4. Double click on ZCHAR_DE. Then it will ask for Save. Press YES.

    5. Save it as a local object on pressing Local object button

  • 7/30/2019 Creating Transparent Table

    4/56

    6. Now it will ask for the creation of the data element. Press Yes.

  • 7/30/2019 Creating Transparent Table

    5/56

    7. Click on the Field label tab and enter the lengths and descriptions accordingly.

  • 7/30/2019 Creating Transparent Table

    6/56

    8. Then press Definition tab and enter the domain.

    9. Double click on that zchar_d to create domain, then it will ask for save before going nextscreen.

    Press Yes.

  • 7/30/2019 Creating Transparent Table

    7/56

    10. Save it as a local object.

  • 7/30/2019 Creating Transparent Table

    8/56

    11.

    Now it will ask for domain creation. Press Yes.

    12. Give short description for that domain which you are creating. And mention the data typein data type field and length in no. characters field an press ENTER.

  • 7/30/2019 Creating Transparent Table

    9/56

    13. Then press Ctrl+F3. It will ask for save before activation. Save it as a local Object.

  • 7/30/2019 Creating Transparent Table

    10/56

    14. Press Enter.

    15. Then the following screen appears. Press on back button.

  • 7/30/2019 Creating Transparent Table

    11/56

    16. Press Ctrl+F3. You will get the following screen. Press Back button.

    17. You will get the following screen.

  • 7/30/2019 Creating Transparent Table

    12/56

    18. Create one more field ZNUM and give data element name as ZNUM_DE. And doubleclick on ZNUM_DE

  • 7/30/2019 Creating Transparent Table

    13/56

    19. Save it by pressing Yes.

    20. Now it will ask for the data element creation. Press Yes.

  • 7/30/2019 Creating Transparent Table

    14/56

    21. Give short description of the data element. And give the lengths and field labelsaccordingly in Field label tab.

    22. Press on Definition tab and give the domain name in Domain field. Double click onZNUM_D.

  • 7/30/2019 Creating Transparent Table

    15/56

    23. It will ask for save. Press Yes.

    24. Save it as a local Object.

  • 7/30/2019 Creating Transparent Table

    16/56

    25.Now it asks for Domain creation. Press Yes.

    26. Give short description in short text field. Enter the data type and no. characters, PressEnter.

    Then Press on Activate button or Press Ctrl+F3.

  • 7/30/2019 Creating Transparent Table

    17/56

    27. Save this as a local object.

  • 7/30/2019 Creating Transparent Table

    18/56

    28. Press enter.

  • 7/30/2019 Creating Transparent Table

    19/56

    29. Now you will get the following screen. Press Back button.

  • 7/30/2019 Creating Transparent Table

    20/56

    30. Activate the data element By pressing Activate button or Pressing Ctrl+F3.

  • 7/30/2019 Creating Transparent Table

    21/56

    31. Press enter.

  • 7/30/2019 Creating Transparent Table

    22/56

    32. Press Back button.

  • 7/30/2019 Creating Transparent Table

    23/56

    33.

    Now we created two fields. And Data elements and Domain for these two fields.

    Now we have to maintain the technical settings. Press on Technical settings button.

  • 7/30/2019 Creating Transparent Table

    24/56

    34. Give the data class and size category of the table as per the requirement.

    And press the back button.

  • 7/30/2019 Creating Transparent Table

    25/56

    35. Now activate the table by pressing the activate button or CTRL+F3.

  • 7/30/2019 Creating Transparent Table

    26/56

    36. Press enter.

    37. Now you will get the following screen.

  • 7/30/2019 Creating Transparent Table

    27/56

    38. Now enter the data into table. Go to Utilities Table contents Create Entries.

  • 7/30/2019 Creating Transparent Table

    28/56

    39. Now enter the data in the fields and Save it.

  • 7/30/2019 Creating Transparent Table

    29/56

    40. You will get the following screen after clicking the Reset Button.

  • 7/30/2019 Creating Transparent Table

    30/56

    41. Enter the data for the second entry into the table.

    42. Save it and press reset.

  • 7/30/2019 Creating Transparent Table

    31/56

    43. You will get the following screen.

  • 7/30/2019 Creating Transparent Table

    32/56

    44. Again enter the data for the third entry.

    45. Press save, Reset (Optional) and Back button.

  • 7/30/2019 Creating Transparent Table

    33/56

    46. Now you will get the following screen.

  • 7/30/2019 Creating Transparent Table

    34/56

    47. To see the table contents go to Utilities Table contents Display. Or pressCtrl+Shift+F10.

  • 7/30/2019 Creating Transparent Table

    35/56

    48. You will get the following screen.

  • 7/30/2019 Creating Transparent Table

    36/56

    49. Press on run button or press F8. Now it will display the table contents.

  • 7/30/2019 Creating Transparent Table

    37/56

    Now enjoy by creating tables on your own.

  • 7/30/2019 Creating Transparent Table

    38/56

    Creating a Structure in ABAP Dictionary

    By Vikram Chellappa, Mouri Tech Solutions

    Go to transaction SE11 and select the radio button Data type. Enter a structure name startingwith Y or Z.

    Press create button.

    A pop-up screen appears with 3 different options. Select the radio button structure.

    The screen will be displayed like this.

  • 7/30/2019 Creating Transparent Table

    39/56

    Provide the description and also components.

    Then press SAVE, CHECK andACTIVATE.

    Structure Created Successfully.

  • 7/30/2019 Creating Transparent Table

    40/56

    Creating Search Helps (Elementary and Secondary)

    By Vikram Chellappa, Mouri Tech Solutions

    Go To SE11 T-code.

    Select the radio button of search help.

    Provide the search help name. Select the create button.

  • 7/30/2019 Creating Transparent Table

    41/56

    Select ELEMENTARY search help.

    Press Enter.

    Provide the short description, the selection method.

    Provide the fields.

  • 7/30/2019 Creating Transparent Table

    42/56

    Save it, Check It & Activate it.

    Then execute it.

    We can see the screen like this, and then press F4 in this page.

  • 7/30/2019 Creating Transparent Table

    43/56

    Then press F4 View the output like this.

    This is the output for elementary search help.

  • 7/30/2019 Creating Transparent Table

    44/56

    The Collective Search Help is like this.

    Goto T-Code Se11.

    Provide name. Select collective search help button.

    Press enter.

    Provide the Values

  • 7/30/2019 Creating Transparent Table

    45/56

    Select include search help.

    Then provide search help name, which is already define by the same fields.

    Then save it, activate it & execute it.

  • 7/30/2019 Creating Transparent Table

    46/56

    Press F4 we can see the output like this.

  • 7/30/2019 Creating Transparent Table

    47/56

    Diff Between Elementary search helps & Collective search helps

    1) Elementary search helps describe a search path. The elementary search help must definewhere the data of the hit list should be read from (selection method), how the exchange of valuesbetween the screen template and selection method is implemented (interface of the search help)and how the online input help should be defined (online behavior of the search help).

    2) Collective search helps combine several elementary search helps. Collective search help thuscan offer several alternative search paths.

    3) An elementary search help defines the standard flow of an input help.

    4) A collective search help combines several elementary search helps. The user can thus chooseone of several alternative search paths with collective search help.

    5) A collective search help comprises several elementary search helps. It combines all the searchpaths that are meaningful for a field.

    6) Both elementary search helps and other search helps can be included in a collective searchhelp. If other collective search helps are contained in collective search help, they are expanded tothe level of the elementary search helps when the input help is called.

  • 7/30/2019 Creating Transparent Table

    48/56

    Creating a secondary index

    By Neha Kapoor

    There are two types of indexes: Primary index and secondary index. Primary index isautomatically created using the primary keys defined.

    Secondary index could be created as per the user requirement. This article discusses aboutcreating a secondary index.

    Go to transaction SE11.

    For our demo purpose, we have considered the table ZAUTHOR.

    To know if there are any secondary indexes available, click on Goto Indexes

  • 7/30/2019 Creating Transparent Table

    49/56

    Following popup appears:

    From the above screenshot, it is evident that there are no secondary indexes already created.

    Click on Create Create Index

  • 7/30/2019 Creating Transparent Table

    50/56

    Enter the name of the index.

    Fill in the details Short description and the fields in the index.

    Save and activate.

    Now you can observe the index created above in the list now:

  • 7/30/2019 Creating Transparent Table

    51/56

    Maximum number of secondary indexes we can have are 9.

    Secondary Indexes

    by Suresh Kumar Parvathaneni

    Consider the following example:

    SELECT * FROM SPFLI%_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'

    .......ENDSELECT.

    In the above example, 001 is the secondary index of the table SPFLI. It's a well-known fact thatthe efficient way of retrieving data from the database tables is by using secondary indexes. Manydatabase vendors provide the optimizer hints for the same. From SAP v4.5, optimizer hints canbe provided by the %_HINTS parameter. This is dependent on the database systems that supportoptimizer hints. The point to be noted here is these optimizer hints are not standardized by theSQL standards. Each database vendor is free to provide the optimizer hints.Now to know which index to use for our table:1. Go to SE11 and there specify the table name

    2. Now from the menu, goto --> indexes3. select the required index.

    Now suppose that the identifier 001 represents a non-unique secondary index comprising of thecolumns CITYFROM and CITYTO. The index name should be defined as:

    ~like SPFLI~001 in the above example.

  • 7/30/2019 Creating Transparent Table

    52/56

    The sequence of fields in the WHERE condition is of no relevance in using this optimizers index.If you specify hints incorrectly, ABAPTM ignores them but doesn't return a syntax error or runtimeerror.The code was written in R/3 4.6C.

    Code

    Consider the following example:

    REPORT Suresh_test.

    TABLES: spfli.

    DATA : t_spfli LIKE spfli OCCURS 0 WITH HEADER LINE.

    SELECT * FROM spfliINTO TABLE t_spfli

    %_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'.

    LOOP AT t_spfli.

    WRITE :/ t_spfli.

    ENDLOOP.

  • 7/30/2019 Creating Transparent Table

    53/56

    Working with Table Maintenance Generator

    Go to SE11 and enter the Z table name for which the table maintenance generator has to be

    generated. Click on Change.

    Click on Utilities Table Maintenance Generator

  • 7/30/2019 Creating Transparent Table

    54/56

    Enter Authorization group (For e.g. &NC&)Function group (go to SE80 for creating function group)

    You can select either one step or two step. Assign Screen numbers (To assign Screen numbersclick on the button 'Find Scr no'. It will propose screen no's)

    Then Create. Save

    Single step: Only overview screen is created i.e. the Table Maintenance Program will have onlyone screen where you can add, delete or edit records.

    Two step: Two screens namely the overview screen and Single screen are created. The user cansee the key fields in the first screen and can further go on to edit further details.

    You can now create TCode for the table maintenance generator. Enter the TCode to be createdand click on Create.

  • 7/30/2019 Creating Transparent Table

    55/56

    Select Transaction with parameters (Parameter transaction)

  • 7/30/2019 Creating Transparent Table

    56/56

    Click on save.

    Now you can create the table entries through the transaction created above.