<?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: Error in displaying the message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044259#M1172748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using sy-subrc ne 0 as mentioned below.But still its not working.Can anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE gi_P0195 INTO gw_P0195 WITH KEY grnum = gw_p0194-grnum.&lt;/P&gt;&lt;P&gt;        IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'S'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Already exists'(t04).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gw_log-msg_txt  = 'Record Created'(t02).&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;*Changes end by deepthi&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'S'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Created'(t02).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gw_log-msg_txt  = 'Record Already exists'(t04).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 06:52:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-05T06:52:25Z</dc:date>
    <item>
      <title>Error in displaying the message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044255#M1172744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a BDC to upload the data for Infotype 0195.The BDC was already developed and I am looking into the support issue of the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDC is working fine.When I am uploading new records its giving the correct message 'Record Created'.But when I am trying to upload the already existing data then also the same message is being displayed instead of the message 'Record Already Exists'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am trying to insert the code using Read table..........I am missing the logic somewhere else.Ca anyone help me out in this.For ur convenience I am pasting the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            number = gw_p0195-pernr&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            return = gw_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF gw_return-type NE 'E'.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              infty         = '0195'&lt;/P&gt;&lt;P&gt;              number        = gw_p0195-pernr&lt;/P&gt;&lt;P&gt;              validityend   = gw_p0195-endda&lt;/P&gt;&lt;P&gt;              validitybegin = gw_p0195-begda&lt;/P&gt;&lt;P&gt;              record        = gw_p0195&lt;/P&gt;&lt;P&gt;              operation     = 'INS'&lt;/P&gt;&lt;P&gt;              dialog_mode   = p_ctumod                      "Mod-01&lt;/P&gt;&lt;P&gt;              tclas         = 'A'&lt;/P&gt;&lt;P&gt;              nocommit      = ' '&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              return        = gw_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              number = gw_p0195-pernr.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append gw_p0195 to gi_p0195.&lt;/P&gt;&lt;P&gt;clear gw_p0195.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF gw_return IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = gw_return-id.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num = gw_return-number.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = gw_return-type.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = gw_return-message.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gi_P0195 INTO gw_P0195 WITH KEY pernr = gw_data_d-pernr&lt;/P&gt;&lt;P&gt;                                         grnum = gw_p0194-grnum.&lt;/P&gt;&lt;P&gt;Check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_p0195-grnum INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;  If gw_p0195-grnum is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'I'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Already Exists'(t04).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'S'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Created'(t02).&lt;/P&gt;&lt;P&gt;        ENDIF.&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;        gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;        gw_log-msg_num = 'XXX'.&lt;/P&gt;&lt;P&gt;        CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;        gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;        gw_log-msg_typ  = 'E'.&lt;/P&gt;&lt;P&gt;        gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;       gw_log-msg_txt  =  'Case does not exists for Personnel No '(t03).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 04:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044255#M1172744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T04:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in displaying the message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044256#M1172745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE gi_P0195 INTO gw_P0195 WITH KEY pernr = gw_data_d-pernr&lt;/P&gt;&lt;P&gt;grnum = gw_p0194-grnum.&lt;/P&gt;&lt;P&gt;Check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if record is found sy-subrc value will become zero....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change to sy-subrc ne 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 04:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044256#M1172745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T04:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in displaying the message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044257#M1172746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;check whether gw_data_d has value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use if condition instead of check ( sy-subrc ....) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 04:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044257#M1172746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in displaying the message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044258#M1172747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked by changing the code SY-SUBRC NE 0.But no message is being displayed now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 04:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044258#M1172747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T04:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in displaying the message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044259#M1172748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using sy-subrc ne 0 as mentioned below.But still its not working.Can anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE gi_P0195 INTO gw_P0195 WITH KEY grnum = gw_p0194-grnum.&lt;/P&gt;&lt;P&gt;        IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'S'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Already exists'(t04).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gw_log-msg_txt  = 'Record Created'(t02).&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;*Changes end by deepthi&lt;/P&gt;&lt;P&gt;          gw_log-msg_id = 'CUST'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_num =  '000'.&lt;/P&gt;&lt;P&gt;          CONCATENATE gw_data_d-pernr gw_data_d-gcase INTO&lt;/P&gt;&lt;P&gt;          gw_log-msg_key SEPARATED BY '|'.&lt;/P&gt;&lt;P&gt;          gw_log-msg_typ  = 'S'.&lt;/P&gt;&lt;P&gt;          gw_log-rec_no   = gv_count.&lt;/P&gt;&lt;P&gt;          gw_log-msg_txt  = 'Record Created'(t02).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gw_log-msg_txt  = 'Record Already exists'(t04).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 06:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-displaying-the-message/m-p/5044259#M1172748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T06:52:25Z</dc:date>
    </item>
  </channel>
</rss>

