Step bystep abap_field help or documentation

1,933 views
1,784 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,933
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
54
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Step bystep abap_field help or documentation

  1. 1. Field Help (Documentation and or Supplementary /Additional Documentation)Creating Field HelpPrerequisites 1) Transport Request [see StepByStepCreateTransportRequestUsingSE80.pdf] 2) Package [use the package created in the first class] or create new [see StepByStep_ABAP_Create_Package.doc] 3) Copy Z027393_007A as Z027393_009A [See StepByStep_Copy_Function_Group_Program.pdf]Instead of creating from scratch we are using an exiting program, duplicating it and makingchanges. First copy the program and continue from here.Note: There are three methods for creating the Field Help1) Method 1: Documentation: Here the data element documentation help is specified in theABAP dictionary for every data element by using Go To > Documentation menu.2) Method 2: Additional Documentation: This is used in case the data element documentationhelp is not applicable, here the additional documentation is entered that can be called from thedynpro using the Process on Help Request (POH) event as shown below.PROCESS ON HELP-REQUEST. FIELD fieldname WITH num.3) Method 3: This is a custom help where you may call your own screens etc from a module modthat in turn is trigger by the Process on Help Request (POH) event as shown below.PROCESS ON HELP-REQUEST. FIELD fieldname MODULE mod.In the following instructions, we are creating Field Help using the 1st and 2nd methods.Step by Step Instructions (complete prerequisites shown abovebefore you proceed)Launch SE80.Ensure that you are on the ‘Repository Browser’.Select Package from the drop down and enter your Package name [ZxxxxxxA], then click on the[Display] button. Your Function Group should be displayed below the package [if it waspreviously copied correctly to this package.]Open the Function Group Zxxxxxx_009A that was previously copied from Zxxxxxx_007A (ifnot already opened.) 1 of 21
  2. 2. Field Help (Documentation and or Supplementary /Additional Documentation)To display the property page, double click on the program name (node - Zxxxxxx_009A). Theproperties may be updated by clicking on the [Change <> Display] icon (Ctrl+F1). If any valuesare updated (example: the short text), ensure they are saved by clicking on the [Save] button.Now, click on the [Main program] button. 2 of 21
  3. 3. Field Help (Documentation and or Supplementary /Additional Documentation)After the main program is opened, toggle the [Change <> Display] icon (Ctrl+F1) to update theprogram code. Note the name of the Main Program [SAPLZ027393_009A] it will be used tocreate a transaction code (T-code) later.Add description on the top as shown.*&---------------------------------------------------------------------**& Module Pool Z027393_009A*& DEMO -> Field Help (Documemtation and Additional Documentation.)*&---------------------------------------------------------------------*Save the program.Activate the Function Group by clicking on the [Activate] button on the top tool bar. 3 of 21
  4. 4. Field Help (Documentation and or Supplementary /Additional Documentation)If a list of objects to be activated is provided, select all the objects (related to this program), byclicking on each of them and then click on the [Continue] button or [hit Enter] to activate themall.Before we make any changes to create the Input Help, we will confirm that the program runs fineusing the T-Code.If you have not created a Transaction Code while copying the program, create it now.To create a Transaction Code (T-Code), we need the name of the Function Group Main program[SAPLZ027393_009A] and use following menu in SE80 (or by directly using T-Code SE93 –not shown here.) 4 of 21
  5. 5. Field Help (Documentation and or Supplementary /Additional Documentation)Enter the Transaction Code name and a short description. Leave remaining fields as default asshown below on this screen. Click [Continue] or hit [Enter]. 5 of 21
  6. 6. Field Help (Documentation and or Supplementary /Additional Documentation) 6 of 21
  7. 7. Field Help (Documentation and or Supplementary /Additional Documentation)Enter program name as [main program - SAPLZ027393_009A] and the (starting) Screen numberas [0100]. Save. Accept the Package and the Transport Request in the subsequent screens.Run the program by entering the T-code/Transaction Code [Z027393_009A] or[/nZ027393_009A], to confirm that the program runs fine.Note: /n is required if you are not currently in the SAP Easy Access screen, but in anothertransaction.Note: If the program is not working correctly, check the name of the Functions and the Programname in three places – see next 3 screenshots. Update if necessary. 7 of 21
  8. 8. Field Help (Documentation and or Supplementary /Additional Documentation) 8 of 21
  9. 9. Field Help (Documentation and or Supplementary /Additional Documentation) 9 of 21
  10. 10. Field Help (Documentation and or Supplementary /Additional Documentation)Save and Activate.After you ensure that you have a working program to get started, the following (new) changesthat will demo the Field Help may be done.METHOD 1:We need to add the documentation to the Date Element of the field that needs the F1 helpdocumentation. To access the Data Element, we can access the Table first, then the Field, andfinally the Data Element. Open the Function Group and access the TOP include(LZ027393_009ATOP) [or directly using the T-Code se11 – Dictionary: Maintain Table] 10 of 21
  11. 11. Field Help (Documentation and or Supplementary /Additional Documentation)Double click on the Table name ZBC400_S_DYNCONN shown above (highlighted.) The Tabledefinition is displayed. 11 of 21
  12. 12. Field Help (Documentation and or Supplementary /Additional Documentation)Double click on the ZCITYFROM Data Element. Click on the [Display <> Update] button tomake this data element updateable. 12 of 21
  13. 13. Field Help (Documentation and or Supplementary /Additional Documentation)Now click on the ‘Documentation’ button displayed on the top tool bar. 13 of 21
  14. 14. Field Help (Documentation and or Supplementary /Additional Documentation)After the Documentation is entered, Click on Save and Activate (the Documentation.) Then clickon the green back button two time to get back to the Table Definition, or go back to TOP include(LZ027393_009ATOP) and Double click on the Table name ZBC400_S_DYNCONN.METHOD 2:To demo method 2 (Supplementary/Additional Documentation) access a different fieldZCITYTO.Double click on the ZCITYTO Data Element. 14 of 21
  15. 15. Field Help (Documentation and or Supplementary /Additional Documentation)Click on the [Display <> Update] button to make this data element updateable. 15 of 21
  16. 16. Field Help (Documentation and or Supplementary /Additional Documentation)Now click on the ‘Supplementary Documentation’ button displayed on the top tool bar. 16 of 21
  17. 17. Field Help (Documentation and or Supplementary /Additional Documentation)Enter ‘0001’ for the Data Element Suppl field.Click on [Change] button shown above.After entering the supplementary documentation, Save and Activate it.Click on the green back button. Then click on the sub screen 0202 (because this has the CITYTOfield), and access the Flow Logic Tab. Enter the code shown below for the POH Logic.PROCESS ON HELP-REQUEST.FIELD ZBC400_S_HDR_CURR-CITYTO WITH 0001. 17 of 21
  18. 18. Field Help (Documentation and or Supplementary /Additional Documentation)Save and Activate.Run the program, using its T-Code created earlier. 18 of 21
  19. 19. Field Help (Documentation and or Supplementary /Additional Documentation)Click (one time) on the CITYFROM field (to move cursor focus) and then hit the F1 help button. 19 of 21
  20. 20. Field Help (Documentation and or Supplementary /Additional Documentation)The Documentation is displayed as shown above.Exit the documentation by clicking on the [x] at the top right corner.Now access the second tab and click (one time) on the CITYTO field. 20 of 21
  21. 21. Field Help (Documentation and or Supplementary /Additional Documentation)Advantage of using the Additional or Supplementary documentation is that we can definemultiple instances of the supplementary documentation (‘0001’, ‘0002’, ‘0003’, etc) and call theappropriate [supplementary] documentation from any DYNPRO screen - based on requirementof the field. In other words, theoretically we could have various different [numerous]documentation for one field and any one of these could be accessed - depending on theDYNPRO screen the field is displayed. 21 of 21

×