<?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: Start MD48 with pre values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433510#M206957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. just change the material number,&lt;/P&gt;&lt;P&gt;   as per your variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;data : bdcdata like table of bdcdata with header line.&lt;/P&gt;&lt;P&gt;clear bdcdata.&lt;/P&gt;&lt;P&gt;perform bdcfield using  'X' 'SAPMM61M' '0103'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'RM61M-MATNR' '30046'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'RM61M-USPRF' 'SAPMPS'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'BDC_OKCODE' '=TCAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;call transaction 'MD48' using bdcdata mode 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdcfield USING p1 p2 p3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  IF p1 = 'X'.&lt;/P&gt;&lt;P&gt;    bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;    bdcdata-program = p2.&lt;/P&gt;&lt;P&gt;    bdcdata-dynpro = p3.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    bdcdata-fnam = p2.&lt;/P&gt;&lt;P&gt;    bdcdata-fval = p3.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "show_bdcmsg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2006 10:14:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-24T10:14:10Z</dc:date>
    <item>
      <title>Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433508#M206955</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 want to run the md48 and when the transaction starts i want to fill the Material field with one value that come from the program that calls the transaction and give the ok code to go to the screen that gives the information of the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basicly what i want is, i have a program, he calls the transaction M48 and pass the value for material and gives ok without the user see, and then what the user sees is the screen with the details of the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433508#M206955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433509#M206956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PARAMETER ID pid FIELD f.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &amp;lt;b&amp;gt;CALL TRANSACTION..SKIP FIRST SCREEN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest.

DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE.

START-OF-SELECTION.
  SELECT * FROM mara INTO TABLE it_mara UP TO 10 ROWS.

  LOOP AT it_mara.

    SET PARAMETER ID mat FIELD it_mara-matnr.

    CALL TRANSACTION 'MD48'
    AND SKIP FIRST SCREEN.

  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Other option.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can do a &amp;lt;b&amp;gt;partial BDC recording&amp;lt;/b&amp;gt; and then pass the values for the Material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Sambargi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433509#M206956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433510#M206957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. just change the material number,&lt;/P&gt;&lt;P&gt;   as per your variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;data : bdcdata like table of bdcdata with header line.&lt;/P&gt;&lt;P&gt;clear bdcdata.&lt;/P&gt;&lt;P&gt;perform bdcfield using  'X' 'SAPMM61M' '0103'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'RM61M-MATNR' '30046'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'RM61M-USPRF' 'SAPMPS'.&lt;/P&gt;&lt;P&gt;perform bdcfield using  '' 'BDC_OKCODE' '=TCAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;call transaction 'MD48' using bdcdata mode 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdcfield USING p1 p2 p3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  IF p1 = 'X'.&lt;/P&gt;&lt;P&gt;    bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;    bdcdata-program = p2.&lt;/P&gt;&lt;P&gt;    bdcdata-dynpro = p3.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    bdcdata-fnam = p2.&lt;/P&gt;&lt;P&gt;    bdcdata-fval = p3.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "show_bdcmsg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433510#M206957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433511#M206958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Material field in the MD48 has a parameterID attached to it, called MAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the matnr value to this ID, and then call transaction as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MAT' field matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MD48' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433511#M206958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433512#M206959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the field layout how do i fill it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433512#M206959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433513#M206960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the field layout is selected&lt;/P&gt;&lt;P&gt;  via the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see bold.&lt;/P&gt;&lt;P&gt;( i had already mentioned this code in the previous reply)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : bdcdata like table of bdcdata with header line.&lt;/P&gt;&lt;P&gt;clear bdcdata.&lt;/P&gt;&lt;P&gt;perform bdcfield using 'X' 'SAPMM61M' '0103'.&lt;/P&gt;&lt;P&gt;perform bdcfield using '' 'RM61M-MATNR' '30046'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform bdcfield using '' 'RM61M-USPRF' 'SAPMPS'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdcfield using '' 'BDC_OKCODE' '=TCAL'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where SAPMPS is the name of the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433513#M206960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433514#M206961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've used this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID pid FIELD f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and CALL TRANSACTION..SKIP FIRST SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zztest.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT * FROM mara INTO TABLE it_mara UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT it_mara.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    SET PARAMETER ID mat FIELD it_mara-matnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'MD48'&lt;/P&gt;&lt;P&gt;    AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but he does't skip the first screen because it gives a warning message before skip the first screen. can i skip this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433514#M206961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433515#M206962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we analyze the transaction MD48 &lt;/P&gt;&lt;P&gt;There are two mandatory parameters:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1)Material&lt;/P&gt;&lt;P&gt;2)Layout.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we have to pass values for both the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this corrected code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest.

DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
       layout TYPE rm61m-usprf.




START-OF-SELECTION.

  layout = 'SAPMPS'.
  SELECT * FROM mara INTO TABLE it_mara UP TO 10 ROWS.

  LOOP AT it_mara.

    SET PARAMETER ID 'MAT' FIELD it_mara-matnr. "Material

  &amp;lt;b&amp;gt; SET PARAMETER ID 'UPR' FIELD layout.         "Layout&amp;lt;/b&amp;gt; 


    CALL TRANSACTION 'MD48'
    AND SKIP FIRST SCREEN.

  ENDLOOP.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test and let me know if ant errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 10:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433515#M206962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433516#M206963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it jumps to the first screen with all the values correct but with a warning saying "Verify entry".and i press enter and he goes to the screen i want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 11:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433516#M206963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T11:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433517#M206964</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 think its because of incomplete records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working on it. Will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 11:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433517#M206964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T11:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Start MD48 with pre values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433518#M206965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the default setting for the transaction. Every time a value is entered , it prompts to check the entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can avoid this by doing a partial BDC recording and calling the transaction in &amp;lt;b&amp;gt;Error mode only&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest.

DATA : it_mara TYPE STANDARD TABLE OF mara WITH HEADER LINE,
       layout TYPE rm61m-usprf.

DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.


START-OF-SELECTION.

 &amp;lt;b&amp;gt; layout = 'SAPMPS'.&amp;lt;/b&amp;gt;

  SELECT * FROM mara INTO TABLE it_mara UP TO 2 ROWS.

  LOOP AT it_mara.


    PERFORM bdc_dynpro      USING 'SAPMM61M' '0103'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.

    PERFORM bdc_field       USING 'RM61M-MATNR'
                                  it_mara-matnr.
    PERFORM bdc_field       USING 'RM61M-USPRF'
                                  layout.
&amp;lt;b&amp;gt;    CALL TRANSACTION 'MD48'
    USING bdcdata
    MODE   'E'.&amp;lt;/b&amp;gt;
  ENDLOOP.



*----------------------------------------------------------------------*
*        Start new screen                                              *
*----------------------------------------------------------------------*
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO

*----------------------------------------------------------------------*
*        Insert field                                                  *
*----------------------------------------------------------------------*
FORM bdc_field USING fnam fval.

  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.

ENDFORM.                    "BDC_FIELD

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 11:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/start-md48-with-pre-values/m-p/1433518#M206965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T11:48:23Z</dc:date>
    </item>
  </channel>
</rss>

