<?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: BDC problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049934#M422463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes,  &amp;lt;b&amp;gt;sy-subrc = 1001&amp;lt;/b&amp;gt; after the call transaction is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 09:54:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-08T09:54:43Z</dc:date>
    <item>
      <title>BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049931#M422460</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 m having some problems to make a BDC call on a Z program.&lt;/P&gt;&lt;P&gt;I did a recording using se35 and came out with the codes listed below.&lt;/P&gt;&lt;P&gt;During the recording, in order to fill a table with a list of material no, i need to click on a button called "create template" in order to make the table editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The clicking of the button generates the code&lt;/P&gt;&lt;P&gt;'BDC_OKCODE' '=CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i run the program, i will reach the screen 'ZMMR0021_SRTEMPLATE' '0100' and a dialog box will be shown and it shows OK-Code =CREATE and on the status bar, i have the following message&lt;/P&gt;&lt;P&gt;Field MAKT-MATNR(1) is not an input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After i click the dialog box, only then will it make my table editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has a clue of what could be the problem ?&lt;/P&gt;&lt;P&gt;Your help is much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDC codes are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_DETAILS WHERE ERROR IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.  REFRESH BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_DYNPRO      USING 'ZMMR0021_SRTEMPLATE' '0100'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_OKCODE' '=CREATE'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_CURSOR' 'MAKT-MATNR(1)'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'MAKT-MATNR(1)' ITAB_DETAILS-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_CURSOR' &lt;/P&gt;&lt;P&gt;                                                         'ZSRTEMPLATE-DESCRIPTION'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'ZSRTEMPLATE DESCRIPTION'                                   ITAB_DETAILS-DESCRIPTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZSRTEMPLATE-REQTYPE'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'ZSRTEMPLATE-REQTYPE'&lt;/P&gt;&lt;P&gt;                                  ITAB_DETAILS-REQTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZSRTEMPLATE-PLANT'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'ZSRTEMPLATE-PLANT'&lt;/P&gt;&lt;P&gt;                                  ITAB_DETAILS-PLANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZSRTEMPLATE-RECV_SLOC'.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD       USING 'ZSRTEMPLATE-RECV_SLOC'&lt;/P&gt;&lt;P&gt;                                  ITAB_DETAILS-RECV_SLOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'ZMM_SRTEMPLATE' USING BDCDATA MODE ' '&lt;/P&gt;&lt;P&gt;MESSAGES INTO ITAB_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR  ITAB_DETAILS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049931#M422460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049932#M422461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the session in background and see what happens.Are you able to process the session completely or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try again in foreground and check what happens.Once i was doing recording of changing authorization group in transaction SE11.I was facing the same problem. Have you generated the program directly from the recording.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049932#M422461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049933#M422462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run the session in background, it appears to have no problem but no data has been saved.&lt;/P&gt;&lt;P&gt;Yes i generated the code through the recording sm35 and then copy and paste it to the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m interpreting the message "Field MAKT-MATNR(1) is not an input field" because the table is not editable and it only gets in edit mode after a button is pressed.&lt;/P&gt;&lt;P&gt;i.e. ok-code = CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049933#M422462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049934#M422463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes,  &amp;lt;b&amp;gt;sy-subrc = 1001&amp;lt;/b&amp;gt; after the call transaction is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049934#M422463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049935#M422464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not copy and paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the session go to SM35.Press Recording Push Button your recording will be here,select the recording,press program push button,enter your program name,select the radio button tranfer from recording ,press enter it will ask for the package assign package now run this program i think it will solve your problem and it will not ask you to enter for going to editable mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 10:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/2049935#M422464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T10:06:18Z</dc:date>
    </item>
  </channel>
</rss>

