Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LDB selection screen field addition

former_member391265
Participant
0 Likes
2,447

Hi all,

I have seen many post but unfortunately, it is not happening in my case.

My doubt is i have Zreport in which i am using standard LDB. Now when i execute my report in se-38, it is showing some selection screen. My requirement is to add 2 more fields in the ABAP Selection Screen. (Means it should come in selection screen, when i run se-38). The 2 fields which i want to add are not custom field.

Please suggest.

Thanks

7 REPLIES 7
Read only

Former Member
0 Likes
2,035

Hi,

You can add the fields on your screen just like a normal report.

Since they are going to be the fields that you are going to add you need to add the processing logic as well.

Thanks and Regards,

Sriranjani Chimakurthy.

Read only

0 Likes
2,035

HI Sri,

Yes, we can add but i need to add in the same block where fields from LDB is coming. And since LDB is standard. We cannot add the fields with coding. i am trying using se36. But unable to get the fields on selection screen

Thanks

Read only

0 Likes
2,035

Hi ,

The fields that you are planning to add do they exist in the LDB?

If not , you cannot add in between the LDB i guess.

Thanks and Regards,

Sriranjani  Chimakurthy.

Read only

0 Likes
2,035

Hi, KSRCM, What is the problem, you can modify code  for LDB (logical data base) ? do you have permissions for that,  I would like that you gave us more detail,  code, picture, schema, and so on.

Thank you

Read only

0 Likes
2,035

HI Ale,

Thanks for your suggestion, LDB which i am using is PGQ in my Zreport. Since PGQ is standard, i cant modify code. lets say an example...

create a Zreport and assign LDB (PGQ), a seletion screen will come by default.

report  zreport.

tables : mara.

parameters : s_matnr for mara-matnr.

get qals.

write : 'Hello' .

it will give you by-default selection screen. Now my requirement is i want 2 more fields from QALS in the selection screen display along with other existing fields..

I hope i am clear this time.

Thanks

Read only

0 Likes
2,035

Hi,

You need to add only one statement to your program.

REPORT  zreport.
TABLES : mara.
PARAMETERS : s_matnr LIKE mara-matnr.
TABLES: qals.
GET qals.
  WRITE : 'Hello' .

It will give you fields from QALS.

Regards

Read only

GirieshM
Active Contributor
0 Likes
2,035

Hi,

You can copy the standard LDB and insert the fields that you need in the selection screen.

I have taken ZPGQ as a copy of PGQ using se36 t-code and select display. You can find Source code, Selections, Sel.Texts button at the top. Choose Selections and Inserted the below code    PARAMETERS:     s_matnr  TYPE mara-matnr FOR TABLE qals then execute now you can find the selection fields within LDB. Note: You need to make some changes in the Include    INCLUDE DBZPGQSXXX . " SEARCH HELP. But this will filter the values based on the selection screen for matnr, you have to explicitly restrict in GET QALS.

Hope it might help you.

With Regards,

Giriesh M