<?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: displaying only error records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136731#M1975657</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION 'XK02' USING IT_BDCDATA

UPDATE 'A'

MODE 'N'

MESSAGES INTO IT_MSG.



READ TABLE IT_MSG WITH KEY MSGTYP = 'E'.

IF SY-SUBRC = 0.

IT_ERRORS-LIFNR = IT_MAT-LIFNR.

IT_ERRORS-BANKS = IT_MAT-BANKS.

IT_ERRORS-BANKL = IT_MAT-BANKL.

IT_ERRORS-BANKN = IT_MAT-BANKN.

IT_ERRORS-KOINH = IT_MAT-KOINH.

IT_ERRORS-BANKA = IT_MAT-BANKA.

IT_ERRORS-BRNCH = IT_MAT-BRNCH.

IT_ERRORS-SWIFT = IT_MAT-SWIFT.



CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

ID = SY-MSGID

LANG = '-D'

NO = SY-MSGNO

V1 = SY-MSGV1

V2 = SY-MSGV2

V3 = SY-MSGV3

V4 = SY-MSGV4

IMPORTING

MSG = IT_ERRORS-TEXT

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2

.

APPEND IT_ERRORS.

E1 = E1 + 1.

ELSE.

S1 = S1 + 1.

ENDIF.

ENDLOOP.

IF SY-SUBRC = 0.

MESSAGE I100(ZMSG1) WITH S1 'RECORDS TRANSFERRED SUCCESSFULLY' E1

'RECORDS CONTAINS ERRORS,PLS REFER DOWNLOAD FILE'.

ENDIF.

ENDFORM.

this is my function module can please provide me a sample program for solution&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jan 2020 08:59:16 GMT</pubDate>
    <dc:creator>former_member612655</dc:creator>
    <dc:date>2020-01-30T08:59:16Z</dc:date>
    <item>
      <title>displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136728#M1975654</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I developed a bdc program for uploading the vendor bank details. My excel file contain some error records for that i used function module "Format_message", But after uploading excel file it displays only the popup msg like how many records contains errors and how many records were uploaded succesfully. But i wanted to see and display those error records .Can you please help to find out this.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Bhavani.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136728#M1975654</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2020-01-30T07:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136729#M1975655</link>
      <description>&lt;P&gt;Without sharing your code we will not be able to help you and I don't think the FM is the issue since the only thing it does is give you the text for an error message and nothing else.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136729#M1975655</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2020-01-30T07:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136730#M1975656</link>
      <description>&lt;P&gt;Hi Bhavani&lt;/P&gt;&lt;P&gt;you can show your messtab like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Convert BDCMSGCOLL to BAPIRET2
CALL FUNCTION ‘CONVERT_BDCMSGCOLL_TO_BAPIRET2‘
   TABLES
   imt_bdcmsgcoll = messtab[]
   ext_return  = bapiret2.
*
*Display messages from BAPIRET2
   CALL FUNCTION ‘RSCRMBW_DISPLAY_BAPIRET2‘
   TABLES
   it_return = bapiret2.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136730#M1975656</guid>
      <dc:creator>former_member370623</dc:creator>
      <dc:date>2020-01-30T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136731#M1975657</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION 'XK02' USING IT_BDCDATA

UPDATE 'A'

MODE 'N'

MESSAGES INTO IT_MSG.



READ TABLE IT_MSG WITH KEY MSGTYP = 'E'.

IF SY-SUBRC = 0.

IT_ERRORS-LIFNR = IT_MAT-LIFNR.

IT_ERRORS-BANKS = IT_MAT-BANKS.

IT_ERRORS-BANKL = IT_MAT-BANKL.

IT_ERRORS-BANKN = IT_MAT-BANKN.

IT_ERRORS-KOINH = IT_MAT-KOINH.

IT_ERRORS-BANKA = IT_MAT-BANKA.

IT_ERRORS-BRNCH = IT_MAT-BRNCH.

IT_ERRORS-SWIFT = IT_MAT-SWIFT.



CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

ID = SY-MSGID

LANG = '-D'

NO = SY-MSGNO

V1 = SY-MSGV1

V2 = SY-MSGV2

V3 = SY-MSGV3

V4 = SY-MSGV4

IMPORTING

MSG = IT_ERRORS-TEXT

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2

.

APPEND IT_ERRORS.

E1 = E1 + 1.

ELSE.

S1 = S1 + 1.

ENDIF.

ENDLOOP.

IF SY-SUBRC = 0.

MESSAGE I100(ZMSG1) WITH S1 'RECORDS TRANSFERRED SUCCESSFULLY' E1

'RECORDS CONTAINS ERRORS,PLS REFER DOWNLOAD FILE'.

ENDIF.

ENDFORM.

this is my function module can please provide me a sample program for solution&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136731#M1975657</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2020-01-30T08:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136732#M1975658</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;its something like this &lt;BR /&gt;CALL TRANSACTION 'XK02' USING IT_BDCDATA

UPDATE 'A'

MODE 'N'

MESSAGES INTO IT_MSG.

*Convert BDCMSGCOLL to BAPIRET2
CALL FUNCTION ‘CONVERT_BDCMSGCOLL_TO_BAPIRET2‘
   TABLES
   imt_bdcmsgcoll = IT_MSG[]
   ext_return  = bapiret2.
*
*Display messages from BAPIRET2
   CALL FUNCTION ‘RSCRMBW_DISPLAY_BAPIRET2‘
   TABLES
   it_return = bapiret2.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136732#M1975658</guid>
      <dc:creator>former_member370623</dc:creator>
      <dc:date>2020-01-30T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: displaying only error records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136733#M1975659</link>
      <description>&lt;P&gt;Function module FORMAT_MESSAGE is obsolete because you can use the statement MESSAGE instead.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 11:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-only-error-records/m-p/12136733#M1975659</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-30T11:41:17Z</dc:date>
    </item>
  </channel>
</rss>

