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

how to set parameter ID

Former Member
0 Likes
5,911

hi

this my code

my problm is wn i double clik on any vendor code i want to call 'XK03' in ALV grid display i hav written below code...

can any body help me to meet my requirement.

in ' standarard ' how to specify '&IC1' and how to set parameter ID?

FORM F01_ALV_EVENT_PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS 'STANDARD'.

ENDFORM.

form F01_ALV_EVENT_USER_COMMAND

using command like sy-ucomm

selfield type slis_selfield.

CASE SY-UCOMM.

  • CHECK FUNCTION CODE

WHEN '&IC1'.

  • CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT

IF SELFIELD-FIELDNAME = 'LIFNR'.

  • READ DATA TABLE, USING INDEX ROW USER CLICKED ON

READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.

  • SET PARAMETER ID FOR TRANSACTION SCREEN FIELD

SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.

  • EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.

CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

hi

this my code

my problm is wn i double clik on any vendor code i want to call 'XK03' in ALV grid display i hav written below code...

can any body help me to meet my requirement.

in ' standarard ' how to specify '&IC1' and how to set parameter ID?

FORM F01_ALV_EVENT_PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS 'STANDARD'.

ENDFORM.

form F01_ALV_EVENT_USER_COMMAND

using command like sy-ucomm

selfield type slis_selfield.

CASE SY-UCOMM.

  • CHECK FUNCTION CODE

WHEN '&IC1'.

  • CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT

IF SELFIELD-FIELDNAME = 'LIFNR'.

  • READ DATA TABLE, USING INDEX ROW USER CLICKED ON

READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.

  • SET PARAMETER ID FOR TRANSACTION SCREEN FIELD

SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.

  • EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.

CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

8 REPLIES 8
Read only

Former Member
0 Likes
2,420

Use the following


SET PARAMETER-ID 'ZABCD' FIELD V_FIELDA " Where  V_FIELDA is the paramter whih you wnat to set in transaction  to be called

Regards,

Mansi.

Read only

Former Member
0 Likes
2,420

Hi,

double click on pf-status 'Standard' it will navigate to the PF-STATUS screen, there in the function keys, for the function key F2 just give the function code &IC1 and actviate it....

now for which field you want to set the parameter id check the parameter id for that field in this way...

go to transaction XK03 and press F1 on the field you want the parameter id.... then click on technical information a small popup box will appear in that you will get the parameter id.... otherwise go to the data element level for that element and check for parameter id over there....

and use the

SET PARAMETER ID 'LIF' FIELD WA_FINAL-LIFNR.

Regards,

Siddarth

Read only

0 Likes
2,420

hi siddart

thanks for the reply...

i got the out put..

but if i click on double click on the field it is not going if i click on F2 ya it works fine....

how to do for double click???

Regards

Smitha

Read only

0 Likes
2,420

hi,

just write a break-point statement at the place mentioned in the code below....

then execute the program and double click on the screen.... when it goes to debugging mode check the value of sy-ucomm and ok_code....

put that code in F2.... then it will work fine....

form F01_ALV_EVENT_USER_COMMAND
using command like sy-ucomm
selfield type slis_selfield.

break-point.    " write this statements at this place and it will go to debugging mode
CASE SY-UCOMM.
* CHECK FUNCTION CODE
WHEN '&IC1'.
* CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT
IF SELFIELD-FIELDNAME = 'LIFNR'.
* READ DATA TABLE, USING INDEX ROW USER CLICKED ON
READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
* SET PARAMETER ID FOR TRANSACTION SCREEN FIELD
SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.
* EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.
CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.

Regards,

Siddarth

Read only

Former Member
0 Likes
2,420

Hi,

Parameter id for LIFNR should be 'LIF'

Regards,

Anil

Read only

tarangini_katta
Active Contributor
0 Likes
2,420

Hi smitha,

U can find in the further chracterstics of datelement of LIFNR.

U r passing 'BAS' as parameter but it is 'LIF'.

Just chenage and check it will work for u.

Thanks

Read only

Former Member
0 Likes
2,420

use this code

*

SET PARAMETER ID 'LIF' FIELD WA_FINAL-LIFNR.

CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.*

Read only

Former Member
0 Likes
2,420

see the following example

FORM alv_callback USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.

CHECK rs_selfield-fieldname EQ 'VBELN'.

SET PARAMETER ID 'VF' FIELD rs_selfield-value.

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

ENDFORM.