<?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: Fill transaction fields automatically through code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404981#M1406868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;BAPI_MATERIAL_SAVEDATA&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2009 11:26:49 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-12-04T11:26:49Z</dc:date>
    <item>
      <title>Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404978#M1406865</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;Every time we create a material we have to extend it in all plants and in all storage location of every plant.&lt;/P&gt;&lt;P&gt;The steps that we are using are: We first create the material to a plant and a storage location using transaction &lt;/P&gt;&lt;P&gt;MM01. Then we use transaction mm17 and we extend the materials in all plants automatically.&lt;/P&gt;&lt;P&gt;Then we use transaction MMSC to extend material to every storage location. We enter the material code, the plant code and after hitting enter we fill the fields with the storage locations of the plant where we want to extend material to. We have 9 plants and 3 storage location on every plant, so we do this procedure (mmsc) 9 x 3 = 27 times.&lt;/P&gt;&lt;P&gt;Is there a way to write code to fill automatically the fields in MMSC transcaction from a file so that can automate the procedure? Any Ideas how to start?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 09:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404978#M1406865</guid>
      <dc:creator>xt_inergo</dc:creator>
      <dc:date>2009-12-03T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404979#M1406866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have start writing an abap program using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MMSC' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;SET parameter ID 'MAT' FIELD zmatnr. "field in first screen&lt;/P&gt;&lt;P&gt;SET parameter ID 'WRK' FIELD '1100'. "field in first screen&lt;/P&gt;&lt;P&gt;SET parameter ID 'LAG' FIELD '1120'. "field in second screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second screen there are many fields with the same parameter id 'LAG'. I can't pass values to second screen probably because there are many fields with the same parameter id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;how can I save the transaction at the end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 11:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404979#M1406866</guid>
      <dc:creator>xt_inergo</dc:creator>
      <dc:date>2009-12-04T11:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404980#M1406867</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;If you find that you will have to use CALL TRANSACTION with fields that have no parameter id or same parameter id for different fields, you could probably try creating a partical BDC recording the transaction till the point where user interaction is required and using the mode 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 11:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404980#M1406867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-04T11:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404981#M1406868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;BAPI_MATERIAL_SAVEDATA&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 11:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404981#M1406868</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-12-04T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404982#M1406869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer,&lt;/P&gt;&lt;P&gt;can you be more specific.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 12:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404982#M1406869</guid>
      <dc:creator>xt_inergo</dc:creator>
      <dc:date>2009-12-04T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fill transaction fields automatically through code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404983#M1406870</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;Here's an example of this stuff, 100% working, but of course you have to change the BDC part for your code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REFRESH: gt_bdcdata.
      PERFORM bdc_dynpro      USING 'ZMFI_AA_KTGH' '9502'.
      PERFORM bdc_field       USING 'BDC_OKCODE' '=ENTER'.
      PERFORM bdc_field       USING 'ANLZ-KOSTL' gs_change_asset-kostl.
      PERFORM bdc_field       USING 'ANLZ-ADATU' gs_change_asset-bdatu.
      PERFORM bdc_field       USING 'ANLZ-PERNR' gs_change_asset-pernr.
      PERFORM bdc_field       USING 'ANLZ-STADT' gs_change_asset-stadt.
      PERFORM bdc_field       USING 'ANLZ-XSTIL' gs_change_asset-xstil.
      PERFORM bdc_field       USING 'ANLZ-RAUMN' gs_change_asset-raumn.

      PERFORM bdc_dynpro      USING 'ZMFI_AA_KTGH' '9502'.
      PERFORM bdc_field       USING 'BDC_OKCODE' 'DUMMY_OK_CODE'.

      MOVE 'E' TO lv_mode.
      CALL TRANSACTION 'ZMFIAA_MOD' USING gt_bdcdata
                                         MODE lv_mode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very important to give a 'DUMMY_OK_CODE' where you wanted to stop the processing. It is because the dummy ok code will cause a BDC error and the process will stop there and you'll get back the control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 13:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-transaction-fields-automatically-through-code/m-p/6404983#M1406870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-04T13:02:56Z</dc:date>
    </item>
  </channel>
</rss>

