<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: calling mm03 from program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206803#M1377035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:pa_matnr type mara-matnr.

data:it_param type table of RFC_SPAGPA.
data:wa like line of it_param.

wa-parid = 'MAT'.
wa-parval = pa_matnr.
append wa to it_param.



CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
  EXPORTING
    tcode                         = 'MM03'
    SKIP_SCREEN                   = 'X'
 TABLES
   SPAGPA_TAB                    = it_param
 EXCEPTIONS
   CALL_TRANSACTION_DENIED       = 1
   TCODE_INVALID                 = 2
   OTHERS                        = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some other signatures in the Function module.make use of it if you are handling any messages,updates etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2009 07:40:28 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-09-21T07:40:28Z</dc:date>
    <item>
      <title>calling mm03 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206799#M1377031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a program for displaying material details&lt;/P&gt;&lt;P&gt;when even click on one material number.it should show the mm03 transaction with that matnr&lt;/P&gt;&lt;P&gt;i used interactive, hide, and cal transaction mm03.&lt;/P&gt;&lt;P&gt;i wrote like this &lt;/P&gt;&lt;P&gt;..................&lt;/P&gt;&lt;P&gt;tables : mara.&lt;/P&gt;&lt;P&gt;data : co type sy-tcode value 'mm01'.&lt;/P&gt;&lt;P&gt;types : begin of wa_mara1,&lt;/P&gt;&lt;P&gt;matnr type matnr,&lt;/P&gt;&lt;P&gt;mtart type mtart,&lt;/P&gt;&lt;P&gt;end of wa_mara1,&lt;/P&gt;&lt;P&gt;it_mara1 type standard table of wa_mara1.&lt;/P&gt;&lt;P&gt;data : wa_mara type wa_mara1,&lt;/P&gt;&lt;P&gt;it_mara type it_mara1.&lt;/P&gt;&lt;P&gt;select-options : so_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select matnr mtart into table it_mara from mara where matnr in so_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara into wa_mara.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa_mara-matnr,&lt;/P&gt;&lt;P&gt;Wa_mara-mtart.&lt;/P&gt;&lt;P&gt;hide wa_mara-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;case sy-lsind.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;leave to transaction co.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;...........................&lt;/P&gt;&lt;P&gt;but i won't work &lt;/P&gt;&lt;P&gt;please any body help me&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206799#M1377031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: calling mm03 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206800#M1377032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;inplace of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;leave to transaction co.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID 'MAT' FIELD wa_mara-matnr .
      CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206800#M1377032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: calling mm03 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206801#M1377033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
when 1.
  SET PARAMETER ID 'MAT' FIELD wa_mara-matnr.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206801#M1377033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: calling mm03 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206802#M1377034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was a small mistake.&lt;/P&gt;&lt;P&gt;use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : mara.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : co TYPE sy-tcode VALUE 'MM03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF wa_mara1,&lt;/P&gt;&lt;P&gt;matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;mtart TYPE mtart,&lt;/P&gt;&lt;P&gt;END OF wa_mara1,&lt;/P&gt;&lt;P&gt;it_mara1 TYPE STANDARD TABLE OF wa_mara1.&lt;/P&gt;&lt;P&gt;DATA : wa_mara TYPE wa_mara1,&lt;/P&gt;&lt;P&gt;it_mara TYPE it_mara1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_matnr FOR mara-matnr.&lt;/P&gt;&lt;P&gt;SELECT matnr mtart INTO TABLE it_mara FROM mara WHERE matnr IN so_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_mara INTO wa_mara.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa_mara-matnr,&lt;/P&gt;&lt;P&gt;  wa_mara-mtart.&lt;/P&gt;&lt;P&gt;  HIDE wa_mara-matnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  CASE sy-lsind.&lt;/P&gt;&lt;P&gt;    WHEN 1.&lt;/P&gt;&lt;P&gt;      LEAVE TO TRANSACTION co.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206802#M1377034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: calling mm03 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206803#M1377035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:pa_matnr type mara-matnr.

data:it_param type table of RFC_SPAGPA.
data:wa like line of it_param.

wa-parid = 'MAT'.
wa-parval = pa_matnr.
append wa to it_param.



CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
  EXPORTING
    tcode                         = 'MM03'
    SKIP_SCREEN                   = 'X'
 TABLES
   SPAGPA_TAB                    = it_param
 EXCEPTIONS
   CALL_TRANSACTION_DENIED       = 1
   TCODE_INVALID                 = 2
   OTHERS                        = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some other signatures in the Function module.make use of it if you are handling any messages,updates etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 07:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-mm03-from-program/m-p/6206803#M1377035</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-09-21T07:40:28Z</dc:date>
    </item>
  </channel>
</rss>

