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: 

abap help

Former Member
0 Kudos

HI gurus,

i am SD consultant.

i need a sample code /programme for calling the transaction (material master display - mm03) by double clicking on the materail number.

points will be rewarded

kishore

5 REPLIES 5

Former Member
0 Kudos

HI,

CASE l_ucomm.

WHEN '&IC1'.

IF l_selfield-sel_tab_field = 'ihead-MATNR'.

PERFORM aufruf_mm03 USING l_selfield-tabindex.

ENDIF.

endcase.

FORM aufruf_mm03 USING l_index.

DATA: ld_matnr TYPE matnr.

CLEAR wa_ihead.

READ TABLE it_master INDEX l_index

INTO wa_ihead.

CHECK sy-subrc = 0.

  • CALL FUNCTION 'CONVERSION_EXIT_MATN2_OUTPUT'

  • EXPORTING

  • input = wa_ihead-matnr

  • IMPORTING

  • output = ld_matnr.

CLEAR xx-text.

xx-text = text-024.

REPLACE '&1' WITH ld_matnr INTO xx-text.

CONDENSE xx-text.

SET PARAMETER ID 'MAT' FIELD wa_ihead-matnr.

SET PARAMETER ID 'MXX' FIELD 'K'.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDFORM. " aufruf_mm03

Regards

Nicole

0 Kudos

Nicole

can i have your mail id ?? please

kishore

0 Kudos

Hi,

nicole.lorenz@hella.de

you can also see it in my profile.

Former Member
0 Kudos

thank you

Former Member
0 Kudos

Check the code below, i hope it serves ur purpose

REPORT ZTRIP_TEST.

tables mara.

select-options: S_MATNR for MARA-MATNR.

data:

begin of itab occurs 0,

matnr like mara-matnr,

end of itab.

select matnr into table itab

from mara

where

matnr in s_matnr.

loop at itab.

write:/ itab.

hide itab.

endloop.

at line-selection.

if itab-matnr is not initial.

SET PARAMETER ID 'MAT' FIELD ITAB-MATNR.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

endif.

Reward points if useful, get back in case of query...

Cheers!!!