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

Abap Query problem

Former Member
0 Likes
847

I want to modify the abap query .

In my Query output there are Header and Summary.

Iam giving 2 check box in selection screen 1.Header

2.Summary.

When the user chooses Header it should display only header .

When the user chooses Summary it should display only summary data.

I found Header and summary internal tables.

Iam writing the code like this,

IF p_chkhdr = 'X' and p_chksum = ' '.

CLEAR T01.

REFRESH T01.

ENDIF.

IF p_chkhdr = ' ' and p_chksum = 'X'.

CLEAR %g00.

REFRESH %g00.

ENDIF.

Now my question is under which event i have to write above code in SQ02.

waiting for your response.

excellemt reward is compulsary.

regards,

vijay

7 REPLIES 7
Read only

Former Member
0 Likes
766

Hi

You can't separate the data like header and summary and write in the Sq01/sq02 query.

You will display the data like one list after selecting required fields from infosets.

You can't keep all conditions like our SE38 report in Sq01.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
766

Hi VijayKumar,

May i know your program so that i can help to my extent. Whats your abap query?

From,

KK

Read only

0 Likes
766

This is my Abap Query

AQZZPR==========ZPR60_HCC_FMPD

waiting for your response.

regards,

vijay

Read only

Former Member
0 Likes
766

Any body knows please help on this,

regards,

vijay

Read only

0 Likes
766

end-of-selection ==>before list output.

Regards

Prabhu

Read only

0 Likes
766

In the end-of-selection ==>before list output.

iam writen below code it is saying please declare T01 table.

In the Query already T01 was declared.

if i declared again it is going dump and saying already T01 is declared.

IF p_chkhdr = 'X' and p_chksum = ' '.

CLEAR T01.

REFRESH T01.

ENDIF.

Read only

Former Member
0 Likes
766

hi,

selection-screen : begin of block blk1 with frame title text-001.

parameters : header_chk1 as checkbox,

summary_chk2 as checkbox.

selection-screen: end of block blk1.

if header_chk1 = 'X'.

select header detais.

elseif summary_chk2 = 'X'.

select summary detais.

endif.

if helpful please reward with points