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

index

Former Member
0 Likes
760

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.

1 ACCEPTED SOLUTION
Read only

rahulkavuri
Active Contributor
0 Likes
726

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

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.

5 REPLIES 5
Read only

Former Member
0 Likes
726

ITS TAKING THE LAST VALUE IN THE INTERNAL TABLE.

Read only

Former Member
0 Likes
726

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

Read only

0 Likes
726

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.

Read only

rahulkavuri
Active Contributor
0 Likes
727

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

Read only

Former Member
0 Likes
726

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