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

get selection screen parameters from sap query

Former Member
0 Likes
738

Hello. I use SAP Query Reporting, so I added a report assignment for detailing (sq01 -> Change button -> Goto -> Report Assignment -> Insert row -> Other type row -> Abap Report Program)

and put there ABAP program.

When I run query and press CtrlShiftF1 (or double click) It calls my abap program.

So the question is: how to get selection screen parameters in my program ?

to be more precise I want to get date parameter (begda, endda)

Thanks a lot.

3 REPLIES 3
Read only

Former Member
0 Likes
631

Hi , Can you elaborate a scenario bit.

Read only

0 Likes
631

There is a Z query which I can see in sq01. I set reporting period and run the query; when I run it, it gives me the employee list.

So I wrote the abap report to get an employee details, customized query as I mentioned above.

The query calls my report and I need to get parameters.

SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-001.
PARAMETER :  p_pernr LIKE p0001-pernr OBLIGATORY MATCHCODE OBJECT prem.
PARAMETER : p_date LIKE sy-datum.
SELECTION-SCREEN END OF BLOCK frm1.

Parameter

p_pernr

passes normal. ALV Query contains it, but I'd like to get one more parameter from selection screen of the query and don't know how to get it.

Read only

0 Likes
631

Maybe I expressed my thoughts wrong and nobody can understand me ?