‎2009 Apr 03 7:08 AM
Dear Friends
i have big problem
below i saved my program code.
SET PF-STATUS 'SD012_MENU2'. its button also coming to the display screen, my problem is when i click on the "New Remarks" button (FUNC01) i want to call another screen
but i unable to trigger the any kind of events i done in the screen
i used AT USER-COMMAND also but problem still there
please look this and let me know how can i solve this problem.
1. Selection Screen (Customer Menu 01) when click on the button ALV list Displaying
2. In ALV list (Customer Menu 02) when click on the button list Displaying (list with write statment)
3. In list (Customer menu 03) when click on the button i want to call screen but in this part any button not working (only display)
Thanks in advance
Hope,
you can understand about my problem.
*
*&---------------------------------------------------------------------*
*& Form CREATE_REMARKS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM CREATE_REMARKS .
* BREAK ITNR.
*
LOOP AT IT_ALLOCATION2 INTO WA_ALLOCATION2.
IF WA_ALLOCATION2-FLAG = 'X' AND WA_ALLOCATION2-DOCTP = 'LP'.
SELECT VBELN POSNR SEQNO CNGDATE CNGTIME CNGUSER REMAK
INTO CORRESPONDING FIELDS OF TABLE IT_ZSD012_002
FROM ZSD012_002
WHERE VBELN EQ WA_ALLOCATION2-EBELN
AND POSNR EQ WA_ALLOCATION2-POSNR.
*
IF SY-SUBRC = 0.
SET PF-STATUS 'SD012_MENU2'.
PERFORM WRITE_REMARKS.
CALL SCREEN '1012' STARTING AT 5 5 .
ELSE.
CALL SCREEN 1012 STARTING AT 5 5 .
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " CREATE_REMARKS
‎2009 Apr 03 7:14 AM
Hi,
Firstly check the function code of the New Remarks button i.e. (Customer menu 03)
then in the AT user-command event check if you have used the same function code in case endcase.
if you have used it then just write a break-point statement as the first statement and try debugging from there and check what happens and where exactly its going wrong...
Regards,
Siddarth
‎2009 Apr 03 7:47 AM
Hi,
Try this
Create a PF Status,say you have created 'SD012_MENU2'.
In this PF STATUS create one button.
Now while using call function
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SD012_MENU2'
i_callback_user_command = 'C_USER_COMMAND'
is_layout = er_layout
it_fieldcat = t_fieldcat
TABLES
t_outtab = t_final
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM SD012_MENU2 USING p_extab TYPE slis_t_extab.
SET PF-STATUS 'SD012_MENU2'.
ENDFORM. " STATUS
FORM c_user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF sy-ucomm EQ 'POST'. here post is button name
PERFORM something. here you want to go to some other screen.
ENDIF.
ENDFORM.
‎2009 Apr 03 8:08 AM
Dear Friend
thanks for your comments
but there are no any other duplicates and also its not possible to assign in ALV call Back statment
every thing should be separate