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

at line-selection event triggering issue?

Former Member
0 Likes
300

hi,

I am working on a interactive report using at line-selection event, in that i have 3 list & now on 4 list i have to perform a BDC operation,for that I have used the PF-STATUS syntax, & at user command code.

but for this particular list my at user command is not working properly. if 1 clk on a record its move to nxt action,but it shd happen when i clk on a record & than press the icon for action set by PF STATUS.

Code is below:

WHEN '3'.

SET PF-STATUS 'Z203'.

LOOP AT itab4.

AT FIRST.

WRITE:/1 'Material' ,8 'Descp'.

ENDAT.

WRITE:/1 itab4-matnr,8 itab4-maktx.

ENDLOOP.

ELSE.

WRITE:/ 'No Data Found'.

ENDIF.

ENDCASE.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'CALL'.

PERFORM bdc_mm02.

pls tell how to use it.

reds

Vipin

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
272

in your AT LINE-SELECTION event, add this code

CHECK sy-lsind NE 3.

(this is valid if your list is 4th list displayed as it begins with 0)