‎2008 Mar 19 9:31 AM
Hi gurus,
My requirement is when i click a perticular record material master it should goto mm03 transaction code.
by using this syntax :
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
Upto this it is commming perfectly. But my client donot want to select views in second screen . He want basic data1 screen.
how can i achive this requirement plz help me in this case.
<REMOVED BY MODERATOR>
Thanks & Regards,
P.Naganjana Reddy
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 7:11 PM
‎2008 Mar 19 10:14 AM
Hello,
I think better you record a BDC to call the Transaction MM03. We will not get the control when we call the Tcode using CALL TRANSACTION. SO better record a BDC and use it in ur case.
Cheers,
Vasanth
‎2008 Mar 19 9:38 AM
hi check this ..
this is ur requirement i thing....
&----
*& Report Z_TEST001
*&
&----
REPORT Z_TEST001.
TYPE-POOLS: slis.
tables: mara.
DATA: begin of TAB_MARA occurs 0.
INCLUDE STRUCTURE MARA.
DATA: END OF TAB_MARA.
DATA: T_FIELDCAT TYPE slis_t_fieldcat_alv.
DATA: c_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
START-OF-SELECTION.
<<< YOUR CODE >>> ***********************
select * from MARA into table TAB_MARA .
END-OF-SELECTION.
perform build_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = space
i_callback_program = sy-repid
I_CALLBACK_USER_COMMAND = c_user_command
I_STRUCTURE_NAME =
IS_LAYOUT =
IT_FIELDCAT = T_FIELDCAT[]
TABLES
T_OUTTAB = TAB_MARA
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC ne 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
**&----
---
**& Form USER_COMMAND
**&----
FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
I_SELFIELD TYPE SLIS_SELFIELD.
DATA: F_SUBRC LIKE SY-SUBRC,
S_MARA like TAB_MARA.
READ TABLE TAB_MARA INDEX i_selfield-tabindex INTO S_MARA.
CASE F_UCOMM.
WHEN '&IC1'.
CASE i_SELFIELD-SEL_TAB_FIELD.
WHEN 'TAB_MARA-MATNR'.
CHECK NOT S_MARA-MATNR IS INITIAL.
SET PARAMETER ID 'RBN' FIELD S_MARA-MATNR.
SET PARAMETER ID 'GJR' FIELD S_MARA-MEINS.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDCASE.
ENDFORM.
**&----
**& Form build_fieldcat
**&----
FORM build_fieldcat .
DATA: FIELDCAT TYPE SLIS_FIELDCAT_ALV.
CLEAR FIELDCAT.
FIELDCAT-FIELDNAME = 'MATNR'.
FIELDCAT-TABNAME = 'TAB_MARA'.
FIELDCAT-REF_TABNAME = 'MARA'.
FIELDCAT-REF_FIELDNAME = 'MATNR'.
fieldcat-hotspot = 'X'.
FIELDCAT-COL_POS = 1.
APPEND FIELDCAT TO t_fieldcat.
CLEAR FIELDCAT.
FIELDCAT-FIELDNAME = 'MEINS'.
FIELDCAT-TABNAME = 'TAB_MARA'.
FIELDCAT-REF_TABNAME = 'MARA'.
FIELDCAT-REF_FIELDNAME = 'MEINS'.
FIELDCAT-COL_POS = 2.
APPEND FIELDCAT TO t_fieldcat.
ENDFORM. " build_fieldcat
regards,
venkat.
‎2008 Mar 19 9:39 AM
Hi Reddy,
For this purpose while creating a material appropraite default view set will have to be set for that material and then chek the checkbox for "View Slection only on request".
Only after this for that material the view selection screen wont appear.
<REMOVED BY MODERATOR>
Regards,
Mansi.
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 7:12 PM
‎2008 Mar 19 9:52 AM
Hi,
you must first set some parameter ids
e.g
SET PARAMETER ID 'MXX' FIELD 'E'.
SET PARAMETER ID 'MAT' FIELD '0234319'. "your material number here
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.Hope this helps,
br
Kostas
‎2008 Mar 19 10:09 AM
Hi....
Your requirement is quite similar i have worked on.
I can suggest you one function module : " VIEW_MAINTENANCE_CALL"
Put 'U' for maintain in action parameter and the view name you want to call in view_name.
It solved my requirement and hopefully yours also......
*****************************************************
call function 'VIEW_MAINTENANCE_CALL'
exporting
action = 'U'
view_name = ' '
exceptions
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
others = 15
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*****************************************************
Regards,
Mandeep.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 7:13 PM
‎2008 Mar 19 10:14 AM
Hello,
I think better you record a BDC to call the Transaction MM03. We will not get the control when we call the Tcode using CALL TRANSACTION. SO better record a BDC and use it in ur case.
Cheers,
Vasanth
‎2008 Mar 19 11:02 AM
i wrote like this.
WHEN 'I_STPO1-COMPONENT'.
SET PARAMETER ID 'MAT' FIELD I_STPO1-COMPONENT.
SET PARAMETER ID 'CSV' FIELD '1'.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
by using this code i selected mm03 basic view also but enter is required . my client donot want to enter . he want to see that basic data1 screen.
‎2008 Mar 19 11:06 AM
i wrote like this.
WHEN 'I_STPO1-COMPONENT'.
SET PARAMETER ID 'MAT' FIELD I_STPO1-COMPONENT.
SET PARAMETER ID 'CSV' FIELD '1'.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
by using this code i selected mm03 basic view also but enter is required . my client donot want to enter . he want to see that basic data1 screen.
‎2008 Mar 19 11:09 AM
Hello,
Thatswhy better record a BDC for that.
Hope you got my point.
Regards,
Vasanth
‎2008 Mar 19 11:15 AM
Hi,
write like this.
WHEN 'I_STPO1-COMPONENT'.
SET PARAMETER ID 'MAT' FIELD I_STPO1-COMPONENT.
SET PARAMETER ID 'MXX' FIELD 'E'.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
Kostas
‎2008 Mar 19 11:22 AM
hi Kostas Tsioubris
It is going directly to external objects but i want basic data1.
How to do that
Thanks and Regards,
P.Nag
‎2008 Mar 19 11:36 AM
Hi there,
in my system value 'E' is for basic data1, anyway you can try some these values, one of them should be for basic data1 'BDEKLPQSVXZA'.
Kostas
‎2008 Apr 03 2:04 PM
Hi,
Could you please tell me how did u identify parameter-id to be 'MXX' for MM03 transaction.
My requirement is to navigate to a particular tab in the transaction QM03. But, i am unable to go to a particular other than the default one. If u have any thoughts please let me know.
Thanks & Regards,
Anand Patil.