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

abap help

Former Member
0 Likes
621

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
Read only

Former Member
0 Likes
594

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

Read only

0 Likes
594

Nicole

can i have your mail id ?? please

kishore

Read only

0 Likes
594

Hi,

nicole.lorenz@hella.de

you can also see it in my profile.

Read only

Former Member
0 Likes
594

thank you

Read only

Former Member
0 Likes
594

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!!!