<?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: Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958122#M66766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this issue been resolved. If so kindly assign Reward Points and close the thread. Otherwise please get back to us with any other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2005 02:05:55 GMT</pubDate>
    <dc:creator>former_member221770</dc:creator>
    <dc:date>2005-10-04T02:05:55Z</dc:date>
    <item>
      <title>Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958111#M66755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patric Yee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank very much for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table is uploded from internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to display in output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many Records Updated &amp;amp;&lt;/P&gt;&lt;P&gt;How many records Duplicate or error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used foloowing logic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got output what are records in itab that show as updated records&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;no error records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see my code let me the modification to get desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advanced thanks to your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fieldcatalog type slis_t_fieldcat_alv with header line,&lt;/P&gt;&lt;P&gt;header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;gd_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;wa type slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : nlinechar(20) type c, rows type i, tabcount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 100.&lt;/P&gt;&lt;P&gt;include structure zpcard.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabs occurs 100.&lt;/P&gt;&lt;P&gt;include structure zpcard.&lt;/P&gt;&lt;P&gt;data : end of itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabe occurs 100.&lt;/P&gt;&lt;P&gt;include structure zpcard.&lt;/P&gt;&lt;P&gt;data : end of itabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block sel with frame title text-sel.&lt;/P&gt;&lt;P&gt;parameters: p_file type rlgrap-filename &lt;/P&gt;&lt;P&gt;selection-screen: end of block sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;field_name = 'p_file'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = p_file&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : itab, itabs, itabe.&lt;/P&gt;&lt;P&gt;sort itab by inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztable-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check not itab[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;move-corresponding itab to itabs.&lt;/P&gt;&lt;P&gt;append itabs.&lt;/P&gt;&lt;P&gt;clear itabs.&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;select single * from ztable&lt;/P&gt;&lt;P&gt;where inter_audit_cd eq itab-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab to itabe.&lt;/P&gt;&lt;P&gt;append itabe.&lt;/P&gt;&lt;P&gt;clear itabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab.&lt;/P&gt;&lt;P&gt;clear itab.&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;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;rollback work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;perform disp_rpt.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;*Display Error File Data&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form disp_rpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'MANDT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;fieldcatalog-emphasize = 'X'.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'INTER_AUDIT_CD'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'COST CENTER'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'TRAN_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'TRANSACTION DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 2.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'POSTING_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'POSTING DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 3.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'TRAN_AMT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'TRANSACTION AMOUNT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 4.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'CURR_KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'CURRENCY KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 5.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'DEBIT_CREDIT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'DEBIT CREDIT KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 6.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'UPLOAD_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'UPLOAD DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = 'Zprg'&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP_OF_PAGE1'&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = ITABe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " Disp_rpt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAGE HEADERS IN ALV REPORT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form top_of_page1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;describe table itabs lines rows.&lt;/P&gt;&lt;P&gt;rows = sy-tfill.&lt;/P&gt;&lt;P&gt;nlinechar = rows.&lt;/P&gt;&lt;P&gt;concatenate nlinechar text-002 into&lt;/P&gt;&lt;P&gt;wa-info separated by space.&lt;/P&gt;&lt;P&gt;append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;describe table itabe lines rows.&lt;/P&gt;&lt;P&gt;rows = sy-tfill.&lt;/P&gt;&lt;P&gt;nlinechar = rows.&lt;/P&gt;&lt;P&gt;concatenate nlinechar text-001 into&lt;/P&gt;&lt;P&gt;wa-info separated by space.&lt;/P&gt;&lt;P&gt;append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;it_list_commentary = header.&lt;/P&gt;&lt;P&gt;clear: header, header[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i look forward to your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja Sekhar.T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2005 11:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958111#M66755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-22T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958112#M66756</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;You can use a event like END_OF_LIST where you write how many records are updated, duplicated or error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is some errors in your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This statament is useless, the mandt is automatically &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  inserted by system&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  ztable-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;  modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This control is useless, you are in loop of your &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table, so it means there are records in it, you should &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;place this control out of loop/endloop&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  check not itab[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This control is useless, sy-subrc is always 0, because &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;statament MODIFY ITAB is successfully done&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This statament is wrong: you are updating the table &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ZTABLE with all records in ITAB in only one time, but * you repeat this action for each record in ITAB. So if * you have 100 records, in the first loop you update &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ZTABLE for all 100 records, in the second loop you &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;update for all 100 records too, and so... &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;ERROR-----&amp;gt;   modify ztable from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You should write:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   modify ztable from itab.&lt;/P&gt;&lt;P&gt;   move-corresponding itab to itabs.&lt;/P&gt;&lt;P&gt;   append itabs.&lt;/P&gt;&lt;P&gt;   clear itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you want to know how many records you have update&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   modify ztable from itab.&lt;/P&gt;&lt;P&gt;   count_modify = count_modify + 1.&lt;/P&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;I can't understand what you want to do here, because I understand your IF control:&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;select single * from ztable&lt;/P&gt;&lt;P&gt;where inter_audit_cd eq itab-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab to itabe.&lt;/P&gt;&lt;P&gt;append itabe.&lt;/P&gt;&lt;P&gt;clear itabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab.&lt;/P&gt;&lt;P&gt;clear itab.&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;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2005 12:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958112#M66756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-22T12:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958113#M66757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bit trouble following what you are trying to do. Let me go through what I THINK you are trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a table ITAB. ITABS are the successful changes. ITABE are the errors (if the record already exists in ZTABLE it is considered an error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is how I would do it. Take out you code from&lt;/P&gt;&lt;P&gt;"loop at itab" all the way to "perform disp_rpt" and replace with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get all the records that already exist in ZTABLE into &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ITABE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;       into table itabe&lt;/P&gt;&lt;P&gt;       from ztable&lt;/P&gt;&lt;P&gt;       for all entries in itab&lt;/P&gt;&lt;P&gt;       where inter_audit_cd = itab-inter_audit_cd.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Prepare for Binary Search&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sort itabe by inter_audit_cd.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check to see if ITAB record exists in ITABE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table itabe with key inter_audit_cd = &lt;/P&gt;&lt;P&gt;                            itab-inter_audit_cd &lt;/P&gt;&lt;P&gt;                            binary search. &lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Record exists, delete the record from ITAB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    delete itab.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Record does not exist in ZTABLE, insert the Client &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;    modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now ITAB will only have records that do not exist in &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ZTABLE, while ITABE will have records that exist in &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ZTABLE. Time to update ZTABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt;  modify ztable from table itab.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Records Updated&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update failed - move the records inITAB to ITABE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    rollback work.&lt;/P&gt;&lt;P&gt;    loop at itab.&lt;/P&gt;&lt;P&gt;      itabe = itab.&lt;/P&gt;&lt;P&gt;      append itabe.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    refresh itab.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now ITABE will have the records that exist in ZTABLE and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the records that failed the MODIFY. And ITAB contains &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the records that were updated into ZTABLE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform disp_rpt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure when you specify your CALLBACK PROGRAM parameter in your ALV FM you use upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.Kindly assign Reward Points if you found this post helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 01:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958113#M66757</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-23T01:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958114#M66758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patric Yee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u very much ur help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display no of records updated in table from itab&lt;/P&gt;&lt;P&gt;and no of error or duplicate record display in output and display record of error or duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During updates of new record, Z_PCARD_UPLOAD runs the program however, ZPCARD table doesn't remove old records and update with new records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In upload program, can you place a check (for each field) to make sure the uploading data is "clean" (eg. Formats, etc)?   SAP has standard check however, it gives ABAP dump.  Instead of system dump, I would like the program to display the line item with "unclean" data.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the code and let me know the modification &lt;/P&gt;&lt;P&gt;iam very much tahnkful to u , this is urgent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advanced thanks to u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i look forward to ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : zpcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fieldcatalog type slis_t_fieldcat_alv with header line,&lt;/P&gt;&lt;P&gt;      header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;      gd_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;      wa type slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;data : l_index type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : nlinechar(20) type c, rows type i, tabcount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 100.&lt;/P&gt;&lt;P&gt;       include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabs occurs 100.&lt;/P&gt;&lt;P&gt;       include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabe occurs 100.&lt;/P&gt;&lt;P&gt;       include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block sel with frame title text-sel.&lt;/P&gt;&lt;P&gt;parameters: p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen: end of block sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            field_name = 'p_file'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            file_name  = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename = p_file&lt;/P&gt;&lt;P&gt;            filetype = 'DAT'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab = itab&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zpcard into table itabe&lt;/P&gt;&lt;P&gt;for all entries in itab&lt;/P&gt;&lt;P&gt;where inter_audit_cd eq itab-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itabe by inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-inter_audit_cd is initial.&lt;/P&gt;&lt;P&gt;*message i001.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEaR L_INDEX.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;L_INDEX = L_INDEX + 1.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT L_INDEX OF STRUCTURE ITAB TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;FS&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; delete from zpcard where inter_audit_cd eq itabe-inter_audit_cd.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt; modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt; modify zpcard from table itab.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; commit work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; rollback work.&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt; itab_e = itab.&lt;/P&gt;&lt;P&gt; append itabe.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; refresh itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform disp_rpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;*Display Error File Data&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;form disp_rpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'MANDT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'MANDT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 0.&lt;/P&gt;&lt;P&gt;  fieldcatalog-emphasize   = 'X'.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'INTER_AUDIT_CD'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'COST CENTER'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'TRAN_DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'TRANSACTION DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 2.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'POSTING_DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'POSTING DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 3.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'TRAN_AMT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'TRANSACTION AMOUNT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 4.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'CURR_KEY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'CURRENCY KEY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 5.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'DEBIT_CREDIT'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'DEBIT CREDIT KEY'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 6.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fieldcatalog-fieldname   = 'UPLOAD_DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_l   = 'UPLOAD DATE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos     = 1.&lt;/P&gt;&lt;P&gt;  append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;  clear  fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program      = 'Z_PCARD_UPLOAD'&lt;/P&gt;&lt;P&gt;            i_callback_top_of_page  = 'TOP_OF_PAGE1'&lt;/P&gt;&lt;P&gt;            it_fieldcat             = fieldcatalog[]&lt;/P&gt;&lt;P&gt;            i_save                  = 'A'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                = ECARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " Disp_rpt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAGE HEADERS IN ALV REPORT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;form top_of_page1.&lt;/P&gt;&lt;P&gt;  wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;  describe table itabe lines rows.&lt;/P&gt;&lt;P&gt;  rows = sy-tfill.&lt;/P&gt;&lt;P&gt;  nlinechar = rows.&lt;/P&gt;&lt;P&gt;  concatenate nlinechar text-001 into&lt;/P&gt;&lt;P&gt;  wa-info separated by space.&lt;/P&gt;&lt;P&gt;  append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;  describe table itabs lines rows.&lt;/P&gt;&lt;P&gt;  rows = sy-tfill.&lt;/P&gt;&lt;P&gt;  nlinechar = rows.&lt;/P&gt;&lt;P&gt;  concatenate nlinechar text-002 into&lt;/P&gt;&lt;P&gt;  wa-info separated by space.&lt;/P&gt;&lt;P&gt;  append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            it_list_commentary = header.&lt;/P&gt;&lt;P&gt;  clear: header, header[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 08:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958114#M66758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958115#M66759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max binchi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u very much ur help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display no of records updated in table from itab&lt;/P&gt;&lt;P&gt;and no of error or duplicate record display in output and display record of error or duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During updates of new record, Z_PCARD_UPLOAD runs the program however, ZPCARD table doesn't remove old records and update with new records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In upload program, can you place a check (for each field) to make sure the uploading data is "clean" (eg. Formats, etc)? SAP has standard check however, it gives ABAP dump. Instead of system dump, I would like the program to display the line item with "unclean" data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the code and let me know the modification &lt;/P&gt;&lt;P&gt;iam very much tahnkful to u , this is urgent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advanced thanks to u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i look forward to ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : zpcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fieldcatalog type slis_t_fieldcat_alv with header line,&lt;/P&gt;&lt;P&gt;header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;gd_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;wa type slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;data : l_index type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : nlinechar(20) type c, rows type i, tabcount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 100.&lt;/P&gt;&lt;P&gt;include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabs occurs 100.&lt;/P&gt;&lt;P&gt;include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itabe occurs 100.&lt;/P&gt;&lt;P&gt;include structure ztable.&lt;/P&gt;&lt;P&gt;data : end of itabe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block sel with frame title text-sel.&lt;/P&gt;&lt;P&gt;parameters: p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen: end of block sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;field_name = 'p_file'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = p_file&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zpcard into table itabe&lt;/P&gt;&lt;P&gt;for all entries in itab&lt;/P&gt;&lt;P&gt;where inter_audit_cd eq itab-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itabe by inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-inter_audit_cd is initial.&lt;/P&gt;&lt;P&gt;*message i001.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEaR L_INDEX.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;L_INDEX = L_INDEX + 1.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT L_INDEX OF STRUCTURE ITAB TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;FS&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;delete from zpcard where inter_audit_cd eq itabe-inter_audit_cd.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt;modify zpcard from table itab.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;rollback work.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;itab_e = itab.&lt;/P&gt;&lt;P&gt;append itabe.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform disp_rpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;*Display Error File Data&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;form disp_rpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'MANDT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;fieldcatalog-emphasize = 'X'.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'INTER_AUDIT_CD'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'COST CENTER'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'TRAN_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'TRANSACTION DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 2.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'POSTING_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'POSTING DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 3.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'TRAN_AMT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'TRANSACTION AMOUNT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 4.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'CURR_KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'CURRENCY KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 5.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'DEBIT_CREDIT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'DEBIT CREDIT KEY'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 6.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'UPLOAD_DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_l = 'UPLOAD DATE'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;append fieldcatalog to fieldcatalog.&lt;/P&gt;&lt;P&gt;clear fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = 'Z_PCARD_UPLOAD'&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP_OF_PAGE1'&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = ECARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " Disp_rpt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAGE HEADERS IN ALV REPORT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;form top_of_page1.&lt;/P&gt;&lt;P&gt;wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;describe table itabe lines rows.&lt;/P&gt;&lt;P&gt;rows = sy-tfill.&lt;/P&gt;&lt;P&gt;nlinechar = rows.&lt;/P&gt;&lt;P&gt;concatenate nlinechar text-001 into&lt;/P&gt;&lt;P&gt;wa-info separated by space.&lt;/P&gt;&lt;P&gt;append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-typ = 'S'.&lt;/P&gt;&lt;P&gt;describe table itabs lines rows.&lt;/P&gt;&lt;P&gt;rows = sy-tfill.&lt;/P&gt;&lt;P&gt;nlinechar = rows.&lt;/P&gt;&lt;P&gt;concatenate nlinechar text-002 into&lt;/P&gt;&lt;P&gt;wa-info separated by space.&lt;/P&gt;&lt;P&gt;append wa to header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;it_list_commentary = header.&lt;/P&gt;&lt;P&gt;clear: header, header[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 08:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958115#M66759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T08:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958116#M66760</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;You can use two internal table (one for updating and one for inserting) as zpcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how ZTABLE is, so you can use statament MOVE-CORRESPONDING to convert automatically the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  delete from zpcard where inter_audit_cd eq &lt;/P&gt;&lt;P&gt;                                itabe-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_OLD.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;  modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_OLD.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After instea of MODIFY ZCARD FROM TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZCARD FROm ITAB_NEW.&lt;/P&gt;&lt;P&gt;UPDATE ZCARD FROM ITAB_OLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't understand because you want to delete old record before and what DUPLICATE and ERROR mean for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 09:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958116#M66760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958117#M66761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max bianchi &lt;/P&gt;&lt;P&gt;Thank u for ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload record should not amend the existing data.It should always clear the existing records in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During updates of new record, Zprogram runs the program however, ZPCARD table doesn't remove old records and update with new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;validation part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before uploading to the table, check to make sure that the data are clean.    Make sure that the format of each record is correct.  (eg. Not blank space.  If capital letter is required for upload, check the data in .txt file to make sure the records for the field are in Caps, Etc.) &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;to Validate all internal fields and covert all data into upper case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;advanced tahnks to ur reply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja Sekhar.T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 10:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958117#M66761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T10:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958118#M66762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are displaying your ALV, you are using table ECARD as your output table. I can't see where you have defined or populated an internal table called ECARD. Do you mean ITABE (records from ITAB which already exist in ZPCARD)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2005 22:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958118#M66762</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-25T22:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958119#M66763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem hereis that when you find out that a record in ITAB already exists in ZPCARD (ie. is is ITABE), youdo not delete the ITAB record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that when you do your "MODIFY ZPCARD FROM TABLE ITAB" command, you are putting the record back in ZPCARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a segment of your code that needs changes (I have also put comments in your code to I can keep track of what is happening - the changes you need to do are in &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If INTER_AUDIT_CD is empty, raise an error and stop &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;everything&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-inter_audit_cd is initial.&lt;/P&gt;&lt;P&gt;*message i001.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make all fields Upper Case&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEaR L_INDEX.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;L_INDEX = L_INDEX + 1.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT L_INDEX OF STRUCTURE ITAB TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;FS&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ITABE contains records that already exist in ZPCARD.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the record also exists in ITAB, delete the record &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from ZPCARD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;delete from zpcard where inter_audit_cd eq itabe-inter_audit_cd.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ITAB record exists in ITABE, delete it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;delete itab.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;modify itab transporting mandt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now ITAB only contains records that were not in ZPCARD&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To display the records that are in error, display ITABE, &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to display the records that were loaded, use ITAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gets you what you are after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Kindly assign Reward Points to the posts you find helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2005 23:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958119#M66763</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-25T23:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958120#M66764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your email you said: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"In upload program, can you place a check (for each field) to make sure the uploading data is "clean" (eg. Formats, etc)? SAP has standard check however, it gives ABAP dump. Instead of system dump, I would like the program to display the line item with "unclean" data."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, your DO loop looks ok to me for converting field contents to upper case. But what do you mean by "clean"? Do you mean Validation checks against check tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an earlier post you said that the load file has the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal_audit_cd&lt;/P&gt;&lt;P&gt;txn_dt&lt;/P&gt;&lt;P&gt;posting_dt&lt;/P&gt;&lt;P&gt;txn_amt&lt;/P&gt;&lt;P&gt;currency_key&lt;/P&gt;&lt;P&gt;debit_credit&lt;/P&gt;&lt;P&gt;upload_dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to perform a validation check against the relevant Check Tables, then you can only really do it for  CURRENCY_KEY (see table TCURC) and DEBIT_CREDIT (H = Credit / S = Debit). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify what you mean by "clean".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2005 23:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958120#M66764</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-25T23:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958121#M66765</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 can't understand if a record there is ITAB and in ZPCARD should be deleted, updated or not updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;    inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here you are deleting old record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  delete from zpcard where inter_audit_cd eq &lt;/P&gt;&lt;P&gt;                                    itabe-inter_audit_cd.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of old record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_OLD.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of new record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_NEW.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there aren't old record in ZPCARD, so if you want to insert only new record:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  INSERT ZPCARD FROM TABLE ITAB_NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you don't want to delete and update old record, then code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;    inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here you are deleting old record&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; delete from zpcard where inter_audit_cd eq &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; itabe-inter_audit_cd.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of old record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_OLD.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of new record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_NEW.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZPCARD FROM TABLE ITAB_NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want update old record, then code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabe with key&lt;/P&gt;&lt;P&gt;    inter_audit_cd = itab-inter_audit_cd binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here you are deleting old record&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; delete from zpcard where inter_audit_cd eq &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; itabe-inter_audit_cd.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of old record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_OLD.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here it's storing new data of new record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MOVE-CORRESPONDING ITAB TO ITAB_NEW.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZPCARD FROM TABLE ITAB_NEW.&lt;/P&gt;&lt;P&gt;UPDATE ZPCARD FROM TABLE ITAB_OLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping ITAB you should do your control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 00:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958121#M66765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T00:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958122#M66766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this issue been resolved. If so kindly assign Reward Points and close the thread. Otherwise please get back to us with any other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 02:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent/m-p/958122#M66766</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-10-04T02:05:55Z</dc:date>
    </item>
  </channel>
</rss>

