Application Development 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: 

how to find the correct Parameter Id

former_member342013
Contributor
0 Kudos

hi

below is my code...

i have the report in ALV grid display...

wn i double click on the materail number i want to get the "Basic data 1" screen but my problm is wn i click on the material it is displaying the view selections tab i dont want it to be displayed...

i hav written below code..

wt is wrong in my code?

and tell me exactly how can i find the Parameter ID for a perticular screen....

FORM F01_ALV_EVENT_USER_COMMAND

USING COMMAND LIKE SY-UCOMM

SELFIELD TYPE SLIS_SELFIELD.

ENDIF.

CLEAR wa_final-aufnr.

WHEN 'PLNBEZ'.

READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.

IF SY-SUBRC EQ 0.

SET PARAMETER ID 'MAT' FIELD WA_FINAL-PLNBEZ.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDIF.

Regards

Smitha

1 ACCEPTED SOLUTION

babu_kilari4
Active Contributor

Hi Smitha,

This can be done in the following way.

SET PARAMETER ID 'MXX' FIELD 'K'.

SET PARAMETER ID 'MAT' FIELD S_MATNR.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN

Note: Check the table T132 for the status of various views. In the above example 'K' is used to define the basic data view

Hope this helps.

Thanks,

Babu Kilari

17 REPLIES 17

Former Member
0 Kudos

Press F1 on selected field,you will get field documentation,

in that documentation menu you can find technical settings option.

Click on that a pop will appear with all the Technical details..there it self you can find your parameter ID of that field.

Hope this Help ful

Former Member
0 Kudos

By using TPARA Table also you can find Parameter ID's

Former Member
0 Kudos

Hi Smitha,

I worked on the similar example that you have stated.....

You try using this way...

You are assinging the parameter id write....i think the field that you are clicking check the value and then compare that value and proceed this way....it will work....


get cursor field fs_lips-vbeln value w_data.
  if fs_lips-vbeln  ne 'FS_LIPS-VB'.
    message 'Click on Delivery Number Only'(004) type 'E'.
  endif.
  set parameter id 'VL' field w_data.
  call transaction 'VL02N' and skip first screen.
  commit work.
  wait up to 10 seconds.

Regards.

Former Member
0 Kudos

Hi Smitha ,

You can use the tale TPARA to find the correct Parameter id .

Regards,

Chitra

0 Kudos

Hello

Goto SE11 , and give the dataelement for the field in datatype option input field.

U can find the parameter Id within the Furtherchracteristics tab of the data element screen

Regards

Former Member
0 Kudos

Hi Smitha,

in order to find the corrct parameter ID, just click F1 on the material number in MM03 transaction and then click on technical information.

inside that you will get the parameter ID for the required screen field.

hope this may be usefull..

Regards,

Prashant

babu_kilari4
Active Contributor

Hi Smitha,

This can be done in the following way.

SET PARAMETER ID 'MXX' FIELD 'K'.

SET PARAMETER ID 'MAT' FIELD S_MATNR.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN

Note: Check the table T132 for the status of various views. In the above example 'K' is used to define the basic data view

Hope this helps.

Thanks,

Babu Kilari

0 Kudos

This was a bulls eye.

0 Kudos

Thank you Anupama. I am glad, it helped you !!

0 Kudos

Hi Babu,

I am still not able to pass value using this method .

My requirement is to pass value of change number field from selection screen to the tcode'CS03' .Tcode is called when one radiobutton is clicked from selection screen.

hence I did coding in At selection screen event.

Please share you knowledge on this.

0 Kudos

Hi ,

Try as suggested by Babu.It works fine.

SET PARAMETER ID 'MXX' FIELD 'K'.

SET PARAMETER ID 'MAT' FIELD 'L5-01080-07A'.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

Thanks,

Ahsan

Former Member
0 Kudos

Hi,

As in MM02 there are views available, it wont skip the views popup by the statement " SKIP FIRST SCREEN".

what yu can do is , that you have to record the Tcode MM02 upto screen BASIC DATA1 and then

call transaction MM02 using itab mode 'E'.

without recording you cant achieve ur requirement.

Regards,

Naveen

Former Member
0 Kudos

hi,

You can use this code

FORM F01_ALV_EVENT_USER_COMMAND
USING COMMAND LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.

ENDIF.
CLEAR wa_final-aufnr.
WHEN 'PLNBEZ'.
READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
IF SY-SUBRC EQ 0.
SET PARAMETER ID 'MXX' FIELD 'K'. "add this statement
SET PARAMETER ID 'MAT' FIELD WA_FINAL-PLNBEZ.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDIF.

0 Kudos

Thanks for the reply....

babu_kilari4
Active Contributor
0 Kudos

Smitha,

I have implemented the scenario and it is working fine for me.

Check the solution give by me.

Thanks,

Babu Kilari

Former Member
0 Kudos

Hi ,

From table TPARA you can find Parameter ID's.

Regards

Satish s

Former Member
0 Kudos

hello Ppl,

The below code is very correct.

SET PARAMETER ID 'MAT' FIELD lv_value.

SET PARAMETER ID 'MXX' FIELD 'K'.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

Can anyone help me know that how could you find parameter id 'MXX' for the material view. I see fields for material view status PSTAT and VPSTA but they have no parameter id attached with them.

I know the way of finding parameter id for a field, but am interested in finding the way for this specific one 'MXX'.

Thanks to reply.