05-10-2006 12:32 PM
Hello everybody,
I created an ALV list and use the event "TOP_OF_PAGE" and "GROUPLEVEL_CHANGE" that means I have several sites with an ALV grid.
Now I would like to have all of them interactiv, so that it is possible to change order structure.
Is it possible and how can I activate this again?
Second problem is, that I would like to have information out of the output data in the top of each page.
The output data table looks like:
data1 data_rest
and data1 is on each page the same because it is the group criteria. How can I get this data into the head of the page?
Thanks a lot for each answer.
Joachim
05-10-2006 12:40 PM
hii
try out this form
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE 😕 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE 😕 'MATERIAL TYPE :' , V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
hope this helps.If not reply back.
Thanks & Regards
Naresh
05-10-2006 12:59 PM
Thanks for your answer, but I don't know how to use your form and what it should help.
Best regards
Joachim