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

Call transaction

Former Member
0 Likes
1,479

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,422

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,422

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.

Read only

Former Member
0 Likes
1,422

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

Read only

kostas_tsioubris
Contributor
0 Likes
1,422

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

Read only

Former Member
0 Likes
1,422

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

Read only

Former Member
0 Likes
1,423

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

Read only

0 Likes
1,422

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.

Read only

0 Likes
1,422

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.

Read only

0 Likes
1,422

Hello,

Thatswhy better record a BDC for that.

Hope you got my point.

Regards,

Vasanth

Read only

0 Likes
1,422

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

Read only

0 Likes
1,422

hi Kostas Tsioubris

It is going directly to external objects but i want basic data1.

How to do that

Thanks and Regards,

P.Nag

Read only

0 Likes
1,422

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

Read only

0 Likes
1,422

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.