05-20-2009 5:08 AM
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
05-20-2009 5:40 AM
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
05-20-2009 5:23 AM
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
05-20-2009 5:30 AM
05-20-2009 5:31 AM
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.
05-20-2009 5:33 AM
Hi Smitha ,
You can use the tale TPARA to find the correct Parameter id .
Regards,
Chitra
05-20-2009 5:42 AM
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
05-20-2009 5:37 AM
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
05-20-2009 5:40 AM
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
11-14-2013 10:03 AM
11-19-2013 1:20 PM
05-20-2015 12:03 PM
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.
05-20-2009 5:48 AM
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
05-20-2009 5:57 AM
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
05-20-2009 5:58 AM
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.
05-20-2009 6:05 AM
05-20-2009 6:00 AM
Smitha,
I have implemented the scenario and it is working fine for me.
Check the solution give by me.
Thanks,
Babu Kilari
05-20-2009 6:19 AM
03-30-2011 3:23 AM
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.