2006 Dec 27 1:29 PM
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'MATNR'.
Read data table, using index of row user clicked on
READ TABLE i_vbap INTO wa_vbap INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'MAT' FIELD wa_vbap-MATNR.
CALL TRANSACTION 'VA02' and skip first screen .
ENDIF.
ENDCASE.
IN THIS CODE WA_VBAP IS NOT TAKING THE VALUE OF INDEX FIELD, CAN ANY ONE HELP ME OUT IN THIS.
2006 Dec 27 1:35 PM
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
LEAVE TO SCREEN 0.
WHEN '&IC1'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "USER_COMMAND
implement the code in the above format
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
LEAVE TO SCREEN 0.
WHEN '&IC1'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "USER_COMMAND
implement the code in the above format
2006 Dec 27 1:32 PM
2006 Dec 27 1:32 PM
Hi ,
First i am wondering with your code .. you are trying to call VA02 transaction and sending material information which is impossible to call VA02 , you need to send Sales order information here . Hope you confused and sending wrong information here. Please check your requirement or let us know your requirement .
Regards,
Raghav
2006 Dec 27 1:34 PM
SORRY
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'VBELN'.
Read data table, using index of row user clicked on
READ TABLE i_vbap INTO wa_vbap INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'AUN' FIELD wa_vbap-vbeln.
CALL TRANSACTION 'VA02' and skip first screen .
ENDIF.
ENDCASE.
I HAVE PLACE WRONG CODE.
2006 Dec 27 1:35 PM
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
LEAVE TO SCREEN 0.
WHEN '&IC1'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "USER_COMMAND
implement the code in the above format
2006 Dec 27 1:36 PM
Hi Chyaarun,
Please Make sure that the table i_vbap has values for particular index.
if the values are there,
then make sure that the table rs_selfield has value for the field (MATNR)
if both or Ok,
Please check the decalration of the work area wa_vbap.
Regards,
Sunil
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |