<?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: updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751919#M326066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Form update_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of udata occurs 0,&lt;/P&gt;&lt;P&gt;        MANDT  LIKE ZFIR008-MANDT,&lt;/P&gt;&lt;P&gt;        WVBELN LIKE ZFIR008-WVBELN,&lt;/P&gt;&lt;P&gt;        WPOSNR LIKE ZFIR008-WPOSNR,&lt;/P&gt;&lt;P&gt;        WVGBEL LIKE ZFIR008-WVGBEL,&lt;/P&gt;&lt;P&gt;        WVGPOS LIKE ZFIR008-WVGPOS,&lt;/P&gt;&lt;P&gt;        WFKDAT LIKE ZFIR008-WFKDAT,&lt;/P&gt;&lt;P&gt;        WCHARG LIKE ZFIR008-WCHARG,&lt;/P&gt;&lt;P&gt;        WFKIMG LIKE ZFIR008-WFKIMG,&lt;/P&gt;&lt;P&gt;        WNETWR LIKE ZFIR008-WNETWR,&lt;/P&gt;&lt;P&gt;        WKZWI1 LIKE ZFIR008-WKZWI1,&lt;/P&gt;&lt;P&gt;        WKUNNR LIKE ZFIR008-WKUNNR,&lt;/P&gt;&lt;P&gt;        WAUBEL LIKE ZFIR008-WAUBEL,&lt;/P&gt;&lt;P&gt;        WSITEM LIKE ZFIR008-WSITEM,&lt;/P&gt;&lt;P&gt;        WARKTX LIKE ZFIR008-WARKTX,&lt;/P&gt;&lt;P&gt;        WAUART LIKE ZFIR008-WAUART,&lt;/P&gt;&lt;P&gt;        WAUFNR LIKE ZFIR008-WAUFNR,&lt;/P&gt;&lt;P&gt;        WPITEM LIKE ZFIR008-WPITEM,&lt;/P&gt;&lt;P&gt;        pginum like vbfa-vbeln,&lt;/P&gt;&lt;P&gt;      end of udata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_vbfa occurs 0,&lt;/P&gt;&lt;P&gt;          VBELV     like VBFA-VBELV,&lt;/P&gt;&lt;P&gt;          POSNV     like VBFA-POSNV,&lt;/P&gt;&lt;P&gt;          VBELN     like VBFA-VBELN,&lt;/P&gt;&lt;P&gt;          POSNN     like VBFA-POSNN,&lt;/P&gt;&lt;P&gt;          VBTYP_N   like VBFA-VBTYP_N,&lt;/P&gt;&lt;P&gt;          VBTYP_V   like VBFA-VBTYP_V,&lt;/P&gt;&lt;P&gt;       end of u_vbfa.&lt;/P&gt;&lt;P&gt;data: begin of u_resb occurs 0,&lt;/P&gt;&lt;P&gt;        aufnr like resb-aufnr,&lt;/P&gt;&lt;P&gt;        charg like resb-charg,&lt;/P&gt;&lt;P&gt;      end of u_resb.&lt;/P&gt;&lt;P&gt;data: begin of u_mseg occurs 0,&lt;/P&gt;&lt;P&gt;         aufnr like mseg-aufnr,&lt;/P&gt;&lt;P&gt;         charg like mseg-charg,&lt;/P&gt;&lt;P&gt;      end of u_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_afpo1 occurs 0,&lt;/P&gt;&lt;P&gt;        aufnr like afpo-aufnr,&lt;/P&gt;&lt;P&gt;        kdauf like afpo-kdauf,&lt;/P&gt;&lt;P&gt;      end of u_afpo1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_vbfa1 occurs 0,&lt;/P&gt;&lt;P&gt;         vbelv like vbfa-vbelv,&lt;/P&gt;&lt;P&gt;         vbeln like vbfa-vbeln,&lt;/P&gt;&lt;P&gt;      end of u_vbfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select * into corresponding fields of table udata&lt;/P&gt;&lt;P&gt;                               from zfir008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0 and udata[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       select vbelv posnv vbeln posnn vbtyp_n vbtyp_v&lt;/P&gt;&lt;P&gt;                               into table u_vbfa&lt;/P&gt;&lt;P&gt;                               from vbfa&lt;/P&gt;&lt;P&gt;                               for all entries in udata&lt;/P&gt;&lt;P&gt;                               where vbelv   = udata-waubel&lt;/P&gt;&lt;P&gt;                               and   vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;     loop at udata.&lt;/P&gt;&lt;P&gt;      loop at u_vbfa where vbelv = udata-waubel&lt;/P&gt;&lt;P&gt;                     and   posnv = udata-wsitem&lt;/P&gt;&lt;P&gt;                     and   vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single * from lips&lt;/P&gt;&lt;P&gt;                      where vbeln = u_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                      and   posnr = u_vbfa-posnn&lt;/P&gt;&lt;P&gt;                      and   charg = udata-wcharg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;           select single * from vbfa&lt;/P&gt;&lt;P&gt;                           where vbelv = u_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                           and   posnv = u_vbfa-posnn&lt;/P&gt;&lt;P&gt;                           and   vbtyp_n = 'R'.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         update PGI No.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           UDATA-PGINUM = VBFA-VBELN.&lt;/P&gt;&lt;P&gt;           Modify udata.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;  endif.&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;loop at udata where not pginum is initial&lt;/P&gt;&lt;P&gt;              and warktx cp '&lt;STRONG&gt;L1&lt;/STRONG&gt;'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   if udata-warktx cp '&lt;STRONG&gt;L1&lt;/STRONG&gt;'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       select aufnr charg into table u_resb&lt;/P&gt;&lt;P&gt;                          from resb&lt;/P&gt;&lt;P&gt;                          where aufnr = udata-waufnr&lt;/P&gt;&lt;P&gt;                          and   werks = 'S1'&lt;/P&gt;&lt;P&gt;                          and   lgort = 'SSA'&lt;/P&gt;&lt;P&gt;                          and   bwart = '541'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       loop at u_resb where charg ne space.&lt;/P&gt;&lt;P&gt;         select aufnr charg into table u_mseg&lt;/P&gt;&lt;P&gt;                            from mseg&lt;/P&gt;&lt;P&gt;                            where charg = u_resb-charg&lt;/P&gt;&lt;P&gt;                            and   bwart ='101'&lt;/P&gt;&lt;P&gt;                            and   werks = 'S1'.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;           read table u_mseg.&lt;/P&gt;&lt;P&gt;           select aufnr kdauf into table u_afpo1&lt;/P&gt;&lt;P&gt;                              from afpo&lt;/P&gt;&lt;P&gt;                              where aufnr = u_mseg-aufnr.&lt;/P&gt;&lt;P&gt;           if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             read table u_afpo1.&lt;/P&gt;&lt;P&gt;             select vbelv vbeln into table u_vbfa1&lt;/P&gt;&lt;P&gt;                                from vbfa&lt;/P&gt;&lt;P&gt;                                where vbelv = u_afpo1-kdauf&lt;/P&gt;&lt;P&gt;                                and   vbtyp_n = 'L'.&lt;/P&gt;&lt;P&gt;                if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;                 read table u_vbfa1.&lt;/P&gt;&lt;P&gt;                   delete from zfir008 where wvgbel = u_vbfa1-vbeln .&lt;/P&gt;&lt;P&gt;                endif.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;        clear: u_resb,&lt;/P&gt;&lt;P&gt;            u_mseg,&lt;/P&gt;&lt;P&gt;            u_afpo1,&lt;/P&gt;&lt;P&gt;            u_vbfa1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Remove the records from UDATA which are delivered.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Loop at udata where pginum is not initial.&lt;/P&gt;&lt;P&gt;    delete from zfir008 where wvbeln = udata-wvbeln.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE IDATA WHERE NOT PGINUM IS INITIAL.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 07:17:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T07:17:52Z</dc:date>
    <item>
      <title>updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751916#M326063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have come up with a peculiar scenario. i writtena program to update the data to a customized table. and it has been working in development environment.&lt;/P&gt;&lt;P&gt;now i transported to QA and testing. here, table is not updating. i checked transported content too for proper transportation.&lt;/P&gt;&lt;P&gt;please do suggest me any to overcomethis issue.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751916#M326063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751917#M326064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you hard code mandt field ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use sy-mandt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check that it may create problem.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751917#M326064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751918#M326065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srini,&lt;/P&gt;&lt;P&gt;Could u pls send the piece of code, so that can have a glance and try to solve the prob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751918#M326065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751919#M326066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Form update_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of udata occurs 0,&lt;/P&gt;&lt;P&gt;        MANDT  LIKE ZFIR008-MANDT,&lt;/P&gt;&lt;P&gt;        WVBELN LIKE ZFIR008-WVBELN,&lt;/P&gt;&lt;P&gt;        WPOSNR LIKE ZFIR008-WPOSNR,&lt;/P&gt;&lt;P&gt;        WVGBEL LIKE ZFIR008-WVGBEL,&lt;/P&gt;&lt;P&gt;        WVGPOS LIKE ZFIR008-WVGPOS,&lt;/P&gt;&lt;P&gt;        WFKDAT LIKE ZFIR008-WFKDAT,&lt;/P&gt;&lt;P&gt;        WCHARG LIKE ZFIR008-WCHARG,&lt;/P&gt;&lt;P&gt;        WFKIMG LIKE ZFIR008-WFKIMG,&lt;/P&gt;&lt;P&gt;        WNETWR LIKE ZFIR008-WNETWR,&lt;/P&gt;&lt;P&gt;        WKZWI1 LIKE ZFIR008-WKZWI1,&lt;/P&gt;&lt;P&gt;        WKUNNR LIKE ZFIR008-WKUNNR,&lt;/P&gt;&lt;P&gt;        WAUBEL LIKE ZFIR008-WAUBEL,&lt;/P&gt;&lt;P&gt;        WSITEM LIKE ZFIR008-WSITEM,&lt;/P&gt;&lt;P&gt;        WARKTX LIKE ZFIR008-WARKTX,&lt;/P&gt;&lt;P&gt;        WAUART LIKE ZFIR008-WAUART,&lt;/P&gt;&lt;P&gt;        WAUFNR LIKE ZFIR008-WAUFNR,&lt;/P&gt;&lt;P&gt;        WPITEM LIKE ZFIR008-WPITEM,&lt;/P&gt;&lt;P&gt;        pginum like vbfa-vbeln,&lt;/P&gt;&lt;P&gt;      end of udata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_vbfa occurs 0,&lt;/P&gt;&lt;P&gt;          VBELV     like VBFA-VBELV,&lt;/P&gt;&lt;P&gt;          POSNV     like VBFA-POSNV,&lt;/P&gt;&lt;P&gt;          VBELN     like VBFA-VBELN,&lt;/P&gt;&lt;P&gt;          POSNN     like VBFA-POSNN,&lt;/P&gt;&lt;P&gt;          VBTYP_N   like VBFA-VBTYP_N,&lt;/P&gt;&lt;P&gt;          VBTYP_V   like VBFA-VBTYP_V,&lt;/P&gt;&lt;P&gt;       end of u_vbfa.&lt;/P&gt;&lt;P&gt;data: begin of u_resb occurs 0,&lt;/P&gt;&lt;P&gt;        aufnr like resb-aufnr,&lt;/P&gt;&lt;P&gt;        charg like resb-charg,&lt;/P&gt;&lt;P&gt;      end of u_resb.&lt;/P&gt;&lt;P&gt;data: begin of u_mseg occurs 0,&lt;/P&gt;&lt;P&gt;         aufnr like mseg-aufnr,&lt;/P&gt;&lt;P&gt;         charg like mseg-charg,&lt;/P&gt;&lt;P&gt;      end of u_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_afpo1 occurs 0,&lt;/P&gt;&lt;P&gt;        aufnr like afpo-aufnr,&lt;/P&gt;&lt;P&gt;        kdauf like afpo-kdauf,&lt;/P&gt;&lt;P&gt;      end of u_afpo1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of u_vbfa1 occurs 0,&lt;/P&gt;&lt;P&gt;         vbelv like vbfa-vbelv,&lt;/P&gt;&lt;P&gt;         vbeln like vbfa-vbeln,&lt;/P&gt;&lt;P&gt;      end of u_vbfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select * into corresponding fields of table udata&lt;/P&gt;&lt;P&gt;                               from zfir008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0 and udata[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       select vbelv posnv vbeln posnn vbtyp_n vbtyp_v&lt;/P&gt;&lt;P&gt;                               into table u_vbfa&lt;/P&gt;&lt;P&gt;                               from vbfa&lt;/P&gt;&lt;P&gt;                               for all entries in udata&lt;/P&gt;&lt;P&gt;                               where vbelv   = udata-waubel&lt;/P&gt;&lt;P&gt;                               and   vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;     loop at udata.&lt;/P&gt;&lt;P&gt;      loop at u_vbfa where vbelv = udata-waubel&lt;/P&gt;&lt;P&gt;                     and   posnv = udata-wsitem&lt;/P&gt;&lt;P&gt;                     and   vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select single * from lips&lt;/P&gt;&lt;P&gt;                      where vbeln = u_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                      and   posnr = u_vbfa-posnn&lt;/P&gt;&lt;P&gt;                      and   charg = udata-wcharg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;           select single * from vbfa&lt;/P&gt;&lt;P&gt;                           where vbelv = u_vbfa-vbeln&lt;/P&gt;&lt;P&gt;                           and   posnv = u_vbfa-posnn&lt;/P&gt;&lt;P&gt;                           and   vbtyp_n = 'R'.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         update PGI No.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           UDATA-PGINUM = VBFA-VBELN.&lt;/P&gt;&lt;P&gt;           Modify udata.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;  endif.&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;loop at udata where not pginum is initial&lt;/P&gt;&lt;P&gt;              and warktx cp '&lt;STRONG&gt;L1&lt;/STRONG&gt;'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   if udata-warktx cp '&lt;STRONG&gt;L1&lt;/STRONG&gt;'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       select aufnr charg into table u_resb&lt;/P&gt;&lt;P&gt;                          from resb&lt;/P&gt;&lt;P&gt;                          where aufnr = udata-waufnr&lt;/P&gt;&lt;P&gt;                          and   werks = 'S1'&lt;/P&gt;&lt;P&gt;                          and   lgort = 'SSA'&lt;/P&gt;&lt;P&gt;                          and   bwart = '541'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       loop at u_resb where charg ne space.&lt;/P&gt;&lt;P&gt;         select aufnr charg into table u_mseg&lt;/P&gt;&lt;P&gt;                            from mseg&lt;/P&gt;&lt;P&gt;                            where charg = u_resb-charg&lt;/P&gt;&lt;P&gt;                            and   bwart ='101'&lt;/P&gt;&lt;P&gt;                            and   werks = 'S1'.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;           read table u_mseg.&lt;/P&gt;&lt;P&gt;           select aufnr kdauf into table u_afpo1&lt;/P&gt;&lt;P&gt;                              from afpo&lt;/P&gt;&lt;P&gt;                              where aufnr = u_mseg-aufnr.&lt;/P&gt;&lt;P&gt;           if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             read table u_afpo1.&lt;/P&gt;&lt;P&gt;             select vbelv vbeln into table u_vbfa1&lt;/P&gt;&lt;P&gt;                                from vbfa&lt;/P&gt;&lt;P&gt;                                where vbelv = u_afpo1-kdauf&lt;/P&gt;&lt;P&gt;                                and   vbtyp_n = 'L'.&lt;/P&gt;&lt;P&gt;                if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;                 read table u_vbfa1.&lt;/P&gt;&lt;P&gt;                   delete from zfir008 where wvgbel = u_vbfa1-vbeln .&lt;/P&gt;&lt;P&gt;                endif.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;        clear: u_resb,&lt;/P&gt;&lt;P&gt;            u_mseg,&lt;/P&gt;&lt;P&gt;            u_afpo1,&lt;/P&gt;&lt;P&gt;            u_vbfa1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Remove the records from UDATA which are delivered.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Loop at udata where pginum is not initial.&lt;/P&gt;&lt;P&gt;    delete from zfir008 where wvbeln = udata-wvbeln.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE IDATA WHERE NOT PGINUM IS INITIAL.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751919#M326066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751920#M326067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per ur code what is the value of Sy-subrc after executing line &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of table udata&lt;/P&gt;&lt;P&gt;from zfir008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is it is failing here and thereby not updating. As the table mentioned in the select stmt is custom table check if there are any entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751920#M326067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751921#M326068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this FM to lock the table before deleting data from the table,before ur final loop  - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      tabname        = 'BNKA'  "give ur table  name here&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      foreign_lock   = 1&lt;/P&gt;&lt;P&gt;      system_failure = 2&lt;/P&gt;&lt;P&gt;      OTHERS         = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(0001) WITH 'Unable to lock table BNKA' .&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;Loop at udata where pginum is not initial.&lt;/P&gt;&lt;P&gt;delete from zfir008 where wvbeln = udata-wvbeln.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      tabname = 'BNKA'.   "give ur table name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 07:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751921#M326068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751922#M326069</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;thanks for all your suggestions. now i rectified the error. &lt;/P&gt;&lt;P&gt;since the table had no key field , this problem came . now i maintained the key field and working fine.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updation/m-p/1751922#M326069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:00:41Z</dc:date>
    </item>
  </channel>
</rss>

