<?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 Trigger MM01 from Workflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-mm01-from-workflow/m-p/6991017#M1493992</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;P&gt;I am having a problem with a call of MM01 from a workflow.  The workflow must extend an item to another plant.  From the workflow I would like MM01 to be displayed with the following parameters filled:&lt;/P&gt;&lt;P&gt;1) Material&lt;/P&gt;&lt;P&gt;2) Industry Sector&lt;/P&gt;&lt;P&gt;3) Material Type&lt;/P&gt;&lt;P&gt;4) Copy From Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then allow the user to use their default settings for Select Views and Organizational Levels or change these settings manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem&lt;/P&gt;&lt;P&gt;When I use a BDC then the default values do not work for Select Views and Organizational levels and I get an OK_CODE prompt displaying on the screen.  I did some research on SDN and found that CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE' would do what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE' then user cannot select their Select Views and Organizational levels settings.  If I leave PSTAT blank then Material &amp;amp; Copy From Material are not filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me some help on accomplishing what Iu2019m trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 15:27:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-17T15:27:03Z</dc:date>
    <item>
      <title>Trigger MM01 from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-mm01-from-workflow/m-p/6991017#M1493992</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;P&gt;I am having a problem with a call of MM01 from a workflow.  The workflow must extend an item to another plant.  From the workflow I would like MM01 to be displayed with the following parameters filled:&lt;/P&gt;&lt;P&gt;1) Material&lt;/P&gt;&lt;P&gt;2) Industry Sector&lt;/P&gt;&lt;P&gt;3) Material Type&lt;/P&gt;&lt;P&gt;4) Copy From Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then allow the user to use their default settings for Select Views and Organizational Levels or change these settings manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem&lt;/P&gt;&lt;P&gt;When I use a BDC then the default values do not work for Select Views and Organizational levels and I get an OK_CODE prompt displaying on the screen.  I did some research on SDN and found that CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE' would do what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE' then user cannot select their Select Views and Organizational levels settings.  If I leave PSTAT blank then Material &amp;amp; Copy From Material are not filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me some help on accomplishing what Iu2019m trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 15:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-mm01-from-workflow/m-p/6991017#M1493992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger MM01 from Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-mm01-from-workflow/m-p/6991018#M1493993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your requirement but have you tried to directly call transaction MM01 and set fields using parameter IDs. Each of your required input fields has assigned parameter ID (MAT, MTP, MTA, RMA), You can write your own FM where you will set all these fields using command SET PARAMETER ID and then just simply call transaction MM01 with additional option AND SKIP FIRST SCREEN. That's how it is implemented in business object BUS1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 03:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-mm01-from-workflow/m-p/6991018#M1493993</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-06-18T03:21:57Z</dc:date>
    </item>
  </channel>
</rss>

