‎2007 May 09 6:13 AM
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
‎2007 May 09 6:18 AM
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
‎2007 May 09 6:18 AM
Hi VijayKumar,
May i know your program so that i can help to my extent. Whats your abap query?
From,
KK
‎2007 May 09 6:25 AM
This is my Abap Query
AQZZPR==========ZPR60_HCC_FMPD
waiting for your response.
regards,
vijay
‎2007 May 09 7:09 AM
‎2007 May 09 7:27 AM
‎2007 May 09 7:33 AM
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.
‎2007 May 09 9:28 AM
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