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

CODE in ABAP Query

Former Member
0 Likes
975

Hi,

I wanted to add a check box in ABAP query.

if that check box is checked then

it shuld satisfy follow conditions.

*Z_HANDQTY = ABS( MARD-LABST ) + ABS( MARD-SPEME ).

in abap query where do I write this piece of code.

can anybody pls help asap.

Thanks

Jaya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
936

where u displaying the check box in report or selection screen.

7 REPLIES 7
Read only

Former Member
0 Likes
936

Hi,

Try this.

You would have used SY-UCOMM for the checkbox chk event. Inside that chk the required condition, if it satisfies continue the process, else make the checkbox unchked.

Sharin.

Read only

0 Likes
936

actually it is a query sq01trans...

I wanted to insert a code in that... how do I indert this line of code......

its not an ordinary report

Read only

0 Likes
936

Hi,

Are you using any standard query or custom one

we can aciheve this using exit for that transaction.

Regards

Lekha

Read only

Former Member
0 Likes
936

Hi,

data:

w_chk type c.

write: w_chk as checkbox.

at scelection screen. or any interactuive event.

if w_chk = 'X'. " check ox is checked

then process the things

else.

endif.

or

REPORT test NO STANDARD PAGE HEADING.

DATA: check1 TYPE c LENGTH 1 VALUE 'X',

check2 TYPE c LENGTH 1 VALUE ' '.

START-OF-SELECTION.

WRITE: / check1 AS CHECKBOX, 'Checkbox 1',

/ check2 AS CHECKBOX, 'Checkbox 2'.

AT LINE-SELECTION.

READ: LINE 1 FIELD VALUE check1,

LINE 2 FIELD VALUE check2.

Regards

Lekha

Read only

0 Likes
936

hi...thanks a lot for the help.but I wanted to inserrt this in sap query sq01.... I am not aware how to do it.

can you please help

Read only

Former Member
0 Likes
937

where u displaying the check box in report or selection screen.

Read only

Former Member
0 Likes
936

Hi ,

check in SQ02---->change mode ->GOTO(menu)->CODE/Enhancements.

Regards

prabhu