Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseApplies to:ECC 6.0For more information, ...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseTable of ContentsSelection Screen in Log...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseSelection Screen in Logical DatabaseWhen...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseOn clicking that button, selection scree...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseAdd the Field on Selection ScreenFollowi...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   3. On the next screen which appears s...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   4. This shows the Standard Selection ...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   5. As we want to extend the SAP-deliv...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   8. If any field is already assigned t...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   9. Now execute Transaction code QA33,...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database   11. Scroll down the SAP Selection Vie...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database    12. To select these fields first ass...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseRelated Contenthttp://www.sdn.sap.com/ht...
Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseDisclaimer and Liability NoticeThis docu...
Upcoming SlideShare
Loading in …5
×

SAP Adding fields to dynamic selection for fbln transactions (2)

4,847 views

Published on

Published in: Lifestyle, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,847
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
104
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

SAP Adding fields to dynamic selection for fbln transactions (2)

  1. 1. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseApplies to:ECC 6.0For more information, visit the ABAP homepage.SummaryAny report or Transaction code which uses Logical Database has a feature to show dynamic selectionscreen, which contains the fields of the tables associated with corresponding Logical Database. Here we willlearn how to make any field available on the Dynamic Selection Screen.Author: Anurita WagheCompany: Larsen & Toubro InfoTech LtdCreated on: 3 Aug 2009Author BioThe author has 4.5 years of experience in SAP ABAP and is working with L&T InfoTech. She has worked forvarious Support and Implementation Projects which includes ABAP developments.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 1
  2. 2. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseTable of ContentsSelection Screen in Logical Database ................................................................................................................ 3 Adding New Field on the Selection Screen..................................................................................................... 4 Get the Logical Database Used by the Transaction Code ........................................................................................... 4 Add the Field on Selection Screen ............................................................................................................................... 5How It Suppresses the SAP Standard Selection View? ................................................................................... 12Related Content ................................................................................................................................................ 13Disclaimer and Liability Notice .......................................................................................................................... 14SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 2
  3. 3. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseSelection Screen in Logical DatabaseWhenever any report is created by using Logical database or, if any Transaction Code is using any LogicalDatabase, in those cases we can observe that the Dynamic Selection Button automatically appears on theSelection Screen.As an example, below is the screenshot of Transaction code QA33 for Inspection Lot.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 3
  4. 4. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseOn clicking that button, selection screen opens a window where user can further pass certain selectioncriteria. In this case we cannot see any field on the right side, which is explained further.We will learn how any additional field can be made available on this Dynamic Selection Screen.As an example, Transaction Code QA33 is referred throughout the document.Adding New Field on the Selection ScreenNow our requirement is to add new field on the left hand side folder (as well as in the selection screen) that isnot present currently.For this we need to get the Logical Database which is used by the report.Get the Logical Database Used by the Transaction CodeFollowing steps are followed to get the Program Name of any Transaction Code: 1. Execute Transaction Code QA33. 2. On the Selection Screen go to menu System > Status. 3. One pop up window appears which shows the Program name. Here RQEEAL10 is the program associated with Transaction code QA33. 4. Double click the program name. It will navigate to the ABAP Editor of the concerned program. 5. In the ABAP Editor go to the menu Goto > Attributes. This displays the attributes of the program. 6. This shows the logical database which is used in the program. In the below screenshot it can be observed that PGQ is the Logical Database used by the Transaction Code QA33.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 4
  5. 5. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseAdd the Field on Selection ScreenFollowing steps are followed to add the field on the selection screen: 1. Go to Transaction code SE36 and give the name of Logical Database as PGQ. 2. From the Menu Bar go to Extras > Selection Views.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 5
  6. 6. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 3. On the next screen which appears select Origin of View as SAP and Name of View as STANDARD, and click Display Button.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 6
  7. 7. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 4. This shows the Standard Selection View. In the below screen shot it can be observed that there is a column named as ‘Preselect’. By default only those fields appear on the selection screen of Transaction Code which are assigned to any Functional Group and the checkbox for Preselected is selected. SAP uses the below view to generate the dynamic selection screen. The top left side shows the Functional Groups involved with this Logical Database. Each Functional Group contains fields from the tables that are listed on the right side e.g. QALS, QAOBJMS, QPRN, QAVE, etc. The field which is assigned to a functional group will be available in left hand side of the dynamic selection screen under the folder with name of the functional group.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 7
  8. 8. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 5. As we want to extend the SAP-delivered dynamic selections with new fields, so we must create our own selection view. This view will have CUS as the Origin of View, and Name of View as STANDARD. To create such a view, simply use the Copy button on the top of the screen, and copy the SAP delivered view to a CUS view. 6. Once you check the Continue Button it will ask for the Package in which the Customized View has to be saved. And create the Transport Request if the changes have to be transportable. 7. When the selection view is copied then go to Change mode to add the new fields.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 8
  9. 9. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 8. If any field is already assigned to any Functional Group then just select the Checkbox of Preselect to make the field available for dynamic selection screen. Save the changes.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 9
  10. 10. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 9. Now execute Transaction code QA33, and open the Dynamic Selection Screen. You will find the selected fields on the right side of the selection screen. 10. In the Selection View there are some fields which are not even assigned to any Functional Group. Let us learn how to add those fields.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 10
  11. 11. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 11. Scroll down the SAP Selection View, there you will find some fields that are not assigned to any Functional Group and consequently the checkbox for Preselect does not appear for those fields.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 11
  12. 12. Add New Field on the Dynamic Selection Screen of Any Report Using Logical Database 12. To select these fields first assign them to any Functional Group. Here three fields STAT15, ZAEHL1 and PRBNAVV are assigned to Functional Group 01. Fields can be assigned to different Functional Groups also. 13. Now the Preselect Checkbox appears for these fields. It can be selected as explained earlier. And these fields can also be made available on the dynamic selection screen.How It Suppresses the SAP Standard Selection View?When a selection view with origin CUS and name STANDARD exists, and is assigned to a logical database,then this view takes precedence over the SAP-defined view. When such a view does not exist for a particularlogical database, then the selection view SAP – STANDARD is used to determine the dynamic selectionsSAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 12
  13. 13. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseRelated Contenthttp://www.sdn.sap.com/http://help.sap.com/For more information, visit the ABAP homepage.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 13
  14. 14. Add New Field on the Dynamic Selection Screen of Any Report Using Logical DatabaseDisclaimer and Liability NoticeThis document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,and anyone using these methods does so at his/her own risk.SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com© 2009 SAP AG 14

×