<?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 BDC issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751814#M1303370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi this is saroj.&lt;/P&gt;&lt;P&gt;(1) i have issue bdc.i have done bdc by call transaction method.&lt;/P&gt;&lt;P&gt;    suppose i have 100 records.90 are uploaded.10 not uploaded.&lt;/P&gt;&lt;P&gt;   how to handle the error and how to upload the rest 10 records.&lt;/P&gt;&lt;P&gt;(2) suppose data is in unix file.how to upload the unix file in bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please answer the questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;saroj kanta maharana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2009 15:05:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-11T15:05:45Z</dc:date>
    <item>
      <title>BDC issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751814#M1303370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi this is saroj.&lt;/P&gt;&lt;P&gt;(1) i have issue bdc.i have done bdc by call transaction method.&lt;/P&gt;&lt;P&gt;    suppose i have 100 records.90 are uploaded.10 not uploaded.&lt;/P&gt;&lt;P&gt;   how to handle the error and how to upload the rest 10 records.&lt;/P&gt;&lt;P&gt;(2) suppose data is in unix file.how to upload the unix file in bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please answer the questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;saroj kanta maharana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 15:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751814#M1303370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751815#M1303371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using BDC message you can handle..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use session the error records which are not uploaded will create session ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next try to run the session with the 10 records which are not updated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL TRANSACTION 'ME22'
             USING bdc_tab
              MODE w_lmode
              UPDATE 'S'
          MESSAGES INTO message_tab.       "all the error messages are stored in message_tab

* Error handling
  READ TABLE message_tab WITH KEY msgtyp = 'E'
  IF sy-subrc NE 0.
    LOOP AT message_tab.
      MOVE message_tab-msgnr TO message_no.
      MOVE message_tab-msgv1 TO message_v1.
      MOVE message_tab-msgv2 TO message_v2.
      MOVE message_tab-msgv3 TO message_v3.
      MOVE message_tab-msgv4 TO message_v4.

      CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
        EXPORTING
          id         = message_tab-msgid
          number     = message_no
          language   = message_tab-msgspra
          textformat = textformat
          message_v1 = message_v1
          message_v2 = message_v2
          message_v3 = message_v3
          message_v4 = message_v4
        IMPORTING
          message    = err_msg_tab-message
          return     = return.
      APPEND err_msg_tab.
    ENDLOOP.

    CONCATENATE 'GM' sy-datum sy-uzeit INTO group.   "Group is the session name
    MOVE 'ME22' TO tcode.                                            "Pass your t-code

    CALL FUNCTION 'BDC_OPEN_GROUP'
      EXPORTING
        client   = sy-mandt
        group    = group
        user     = sy-uname
        keep     = keep
        holddate = holddate.

    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode     = tcode
      TABLES
        dynprotab = bdc_tab.

    CALL FUNCTION 'BDC_CLOSE_GROUP'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 15:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751815#M1303371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T15:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751816#M1303372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(2) suppose data is in unix file.how to upload the unix file in bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload the Unix file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to use FTP_connect ..FTP_command ...FTP_disconnect.. function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is application server..use open data set read data set and close dataset..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 15:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751816#M1303372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751817#M1303373</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;To capture error in call transaction method - use&lt;/P&gt;&lt;P&gt;call transaction PA30 using t_bdcdata&lt;/P&gt;&lt;P&gt;mode n&lt;/P&gt;&lt;P&gt;update S&lt;/P&gt;&lt;P&gt;messages in t_bdcmsgcoll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where t_bdcmsgcoll is type bdcmsgcoll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use function module 'format_message' to get those error and success messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for those records where error is occured, you can display to the user and then after correfting those errors&lt;/P&gt;&lt;P&gt;run call transation for only those records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to read the file from unix server , use open dataset and read dataset.&lt;/P&gt;&lt;P&gt;then use this data accordingly in your recording&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks. let me know if u have further queres..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 16:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751817#M1303373</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2009-06-11T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751818#M1303374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ANSWERED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 15:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-issue/m-p/5751818#M1303374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T15:56:27Z</dc:date>
    </item>
  </channel>
</rss>

