<?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: problem in bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603612#M596513</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;when you are running in the A mode you will intactively enter the command.. for example if you get some warning message during the execution of the transaction you press enter when you are running in A mode but when you run in N mode the program should have that logic to add extra enter okcode at that point of the message.. i had a similar problem earlier and written code for the enter command and run in n mode it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember when you record these kind of enter's command for warning messages are not recorded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 10:58:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T10:58:32Z</dc:date>
    <item>
      <title>problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603611#M596512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m running a bdc for me22n its working well in all screen mode but not in no screen mode wat could be the problem how to overcome it plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603611#M596512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T10:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603612#M596513</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;when you are running in the A mode you will intactively enter the command.. for example if you get some warning message during the execution of the transaction you press enter when you are running in A mode but when you run in N mode the program should have that logic to add extra enter okcode at that point of the message.. i had a similar problem earlier and written code for the enter command and run in n mode it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember when you record these kind of enter's command for warning messages are not recorded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603612#M596513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603613#M596514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz check the code once and suggets me wer to change thanks for u r reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_DATE1 RADIOBUTTON GROUP GRP1. "DEFAULT ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 3(26) TEXT-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_DATE LIKE EKKO-AEDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_EBELN1 RADIOBUTTON GROUP GRP1." DEFAULT ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 3(26) TEXT-004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF I_EKKO OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KNUMV LIKE EKKO-KNUMV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF I_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF I_EKPO OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EBELN LIKE EKPO-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P&gt;&lt;P&gt;INCLUDE STRUCTURE T100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : END OF I_MESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CNT TYPE SY-TABIX VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CNT1 TYPE SY-TABIX VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CNT2 TYPE SY-TABIX VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CNT4 TYPE SY-TABIX VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA L_SUBRC LIKE SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_MSTRING(480).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_DATE1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBELN FROM EKKO INTO TABLE I_EKKO WHERE AEDAT &amp;lt; P_DATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_EBELN1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBELN KNUMV FROM EKKO INTO TABLE I_EKKO WHERE EBELN IN S_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBELN EBELP ELIKZ EREKZ LOEKZ FROM EKPO INTO TABLE I_EKPO FOR ALL ENTRIES IN I_EKKO WHERE EBELN = I_EKKO-EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND PSTYP NE '9'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND LOEKZ NE 'S' AND LOEKZ NE 'L'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at i_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if i_ekpo-LOEKZ eq 'S' or i_ekpo-LOEKZ eq 'L'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*READ TABLE I_EKKO WITH KEY EBELN = I_EKPO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete table i_ekko WITH TABLE KEY ebeln = i_ekpo-ebeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;KNUMV = I_EKKO-KNUMV.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*endif.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_EKKO BY EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_EKPO BY EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNT4 = CNT4 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE I_EKPO WITH KEY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CNT1 &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_dynpro using 'SAPLMEGUI' '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'=METOGG'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'SAPLMEGUI' '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=TABIDT6'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'SAPLMEGUI' '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=MEV4001BUTTON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'SAPLMEGUI' '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=MEPO1211MALL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_DYNPRO USING 'SAPLMEGUI' '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=ME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SPRSL = MESSTAB-MSGSPRA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND ARBGB = MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND MSGNR = MESSTAB-MSGNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_MSTRING = I_MESS-TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF L_MSTRING CS '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;1' WITH MESSTAB-MSGV1 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;2' WITH MESSTAB-MSGV2 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;3' WITH MESSTAB-MSGV3 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;4' WITH MESSTAB-MSGV4 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH MESSTAB-MSGV1 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH MESSTAB-MSGV2 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH MESSTAB-MSGV3 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH MESSTAB-MSGV4 INTO L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE L_MSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&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;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;PROGRAM text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;DYNPRO text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA-PROGRAM = PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA-DYNPRO = DYNPRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;FNAM text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;FVAL text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FVAL &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_FIELD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 11:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603613#M596514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603614#M596515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to try t-code ME22 in place of ME22N.  ME22N uses a lot of SAP controls, which does not play nice with BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can complete the tasks you need to do in ME22 it might be the best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course the code modifications suggested previously would also work quite well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 15:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603614#M596515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603615#M596516</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;Actually you cannot use bdc fot TCODES with ends with 'N'.&lt;/P&gt;&lt;P&gt;Because these TCODES are made by Control frameworks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If u find useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603615#M596516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603616#M596517</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;Never use Njoy Tranactions, i.e. transaction with N, for BDC. In your case, use ME22 instead of ME22N for recording &amp;amp; BDC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603616#M596517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603617#M596518</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 had a problem in handling the warning messages in BDC using the call transaction method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added one more okcode but still not getting resolved while calling the tcode in N mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in providing the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ME11 tcode for Creating info records ... &lt;/P&gt;&lt;P&gt;for some materials getting an warning message as 'Material can be used interanlly'  ...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603617#M596518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603618#M596519</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;when you are running in the A mode you will intactively enter the command.. for example if you get some warning message during the execution of the transaction you press enter when you are running in A mode but when you run in N mode the program should have that logic to add extra enter okcode at that point of the message.. i had a similar problem earlier and written code for the enter command and run in n mode it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember when you record these kind of enter's command for warning messages are not recorded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above information ... can you please pass me the piece of code how to handel the wraning message by inlcuding extra enter command in the recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 15:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603618#M596519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T15:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603619#M596520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Christopher and others for the helpful hint about using BDC with ME22N.  I switched to calling transaction ME22 instead and it worked.  That brings me to a new question, however: from what I hear, SAP transaction ME22 will be retired at some future date.  This could affect this work around.  Does anyone know when this will be?  My objective here was to print a P.O. (needed to be done in change mode).  Is there a BAPI to do that or will the BAPI mentioned in this thread (BAPI_PO_CHANGE) also print P.O.'s?  I checked it out, and it did not seem to have that capability.  Thanks for any information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bdc/m-p/2603619#M596520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T15:19:26Z</dc:date>
    </item>
  </channel>
</rss>

