You are on page 1of 9

14/01/22 14.

28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Community
Follow

Ask a Question
Write
Like a Blog Post Login

 RSS Feed

Technical Articles

Dipti Ranjan Das


February 22, 2019 | 4 minute read

Add New Field on the Dynamic


Selection Using Logical Database
 5  6  12,227

Overview :

Customer always asking some additional fields either in the selection screen or in
the output of a report and we try to convince the customer as it’s a standard
report we can’t change or with the help of Abapers we are changing the reports.

I prepared this attached document which can help you to add the new
fields in the standard report without any help of Abapers .

Selection Screen in Logical Database :

Whenever any report is created by using Logical database or, if any Transaction Code is
using any Logical Database, in those cases we can observe that the Dynamic Selection
Button automatically appears on the Selection Screen.

As an example, below is the screenshot of Transaction code FBL5N for Customer Line
Item Report .

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 1/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Follow

 Like

 RSS Feed

On clicking that Dynamic Selection button, selection screen opens a window where user
can further pass certain selection criteria.

We will learn how any additional field can be made available on this Dynamic
Selection Screen.

As an example, Transaction Code FBL5N is referred throughout the document.

Adding New Field on the Selection Screen

Now our requirement is to add new field on the left-hand side folder (as well as in
the selection screen) that is not 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 Code

Following steps are followed to get the Program Name of any Transaction Code:

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 2/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

1. Execute Transaction Code FBL5N.

Follow 2. On the Selection Screen go to menu System > Status.

3. One pop up window appears which shows the Program name. Here
 Like RFITEMAR is the program associated with Transaction code FBL5N.

4. Double click the program name. It will navigate to the ABAP Editor of the
 RSS Feed 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 DDF is the Logical Database used by the
Transaction Code FBL5N.

Add the Field on Selection Screen

Following 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 DDF.

2. From the Menu Bar go to Extras > Selection Views.

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 3/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Follow

 Like

 RSS Feed

3. On the next screen which appears select Origin of View as SAP and Name of
View as STANDARD and click Display Button.

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. KNA1, ADDR1_VAL, KNAS, KNKA,
KNKK,KNBK 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.

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 4/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Follow

 Like

 RSS Feed

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
must be transportable.

7. When the selection view is copied then go to Change mode to add the new fields.

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.

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 5/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Follow

 Like

 RSS Feed

In the Table KNAS we added VAT Registration Number under Functional Group 01
Customer Master

9. Now execute Transaction code FBL5N and open the Dynamic Selection Screen. You
will find the selected fields .

You can Get the report as per the Requirement .

Alert Moderator
Conclusion :

Assigned Tags By Using the blog ,lot of Customer can benefited by saving money and time and
one more big advantage is without knowledge of ABAP , One Functional
ABAP Development consultant can Configure this to get the fields in the standard Report .

fbl5n

new fields

Similar Blog Posts 


Adding Field in standard Fiori apps of S/4HANA with Custom Fields and Logic
By Masaaki Arai Feb 01, 2020

ABAP Geek 13 - Interactive Dynamic WHERE Clauses


By Horst Keller Sep 03, 2009

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 6/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

Changing Fields Financial Accounting

Follow
By Rafael Sá Jun 22, 2015

 Like
Related Questions 
Modifying Dynamic selection in standard logical database
 RSS Feed
By Former Member May 05, 2009

Add new Fields to Dynamic Selection FBL5n


By Former Member Aug 13, 2009

Add Z field in dynamic selection in FBL5N transaction


By Robert López Aug 04, 2015

Join the Conversation 


SAP TechEd
Tune in for tech talk. Stay for inspiration. Upskill your future.

SAP BTP Learning Group


SAP Business Technology Platform Learning Journeys.

Coffee Corner
Join the new Coffee Corner Discussion Group.

5 Comments

You must be Logged on to comment or reply to a post.

Mohammed Shakeelahmed
November 28, 2019 at 6:29 am

Dear Dipti,

Nice Document. However when I tried it is not working.


https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 7/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

I guess there is some step missing. How system will pick our copied/created CUS while running the
report????
Follow
Like 0 | Share

 Like

Nishanth Kandhasamy
 RSSMarch
Feed26, 2020 at 11:31 am
Hi Mohammed,

I have copied the below comment from SAP Technical,

When a selection view with origin CUS (customer) 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 particular logical database, then the selection view SAP – STANDARD is used
to determine the dynamic selections.

Regards,

NishanthVK

Like 0 | Share

Rose Paratto
March 10, 2020 at 5:53 pm

Dear Dipti, thank you for the informative article. I would like to include fields from KNVV in the dynamic
selections of FBL5N. Do you have an article that would explain how to add KNVV fields in addition to the
tables and fields available in LDG DDF?

Thank you in advance

Like 0 | Share

Darcy Morse
December 22, 2020 at 7:44 pm

I did an initial test by adding KUNNR from KNA1. This worked, so I know I have the CUS set up correctly.

I need to get Sort2 into the dynamic selection (Node ADDR1_VAL).

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 8/9
14/01/22 14.28 Add New Field on the Dynamic Selection Using Logical Database | SAP Blogs

I followed the same process: Double Click on ADRR1_VAL, Assign 01 to SORT2 and click Preselect. The
field doesn't show up.
Follow
Any suggestions?

 Like

Like 0 | Share
 RSS Feed

Yoel Tovi
January 13, 2022 at 3:40 pm

Dear Dipti,

Is it possible to add fields from KNB1 as well?

Thank you,

Yoel.

Like 0 | Share

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2019/02/22/add-new-field-on-the-dynamic-selection-using-logical-database/ 9/9

You might also like