<?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: Issues while process the tcode OX09 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296067#M1533415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the issue myself and this is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_plant = plant.&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;types: begin of ty_slocs,&lt;/P&gt;&lt;P&gt;      	lgort type LGORT_D,&lt;/P&gt;&lt;P&gt;        seq_no type LFDNR_TWLAD,&lt;/P&gt;&lt;P&gt;       end of ty_slocs.&lt;/P&gt;&lt;P&gt;data: it_slocs type table of ty_slocs,&lt;/P&gt;&lt;P&gt;      wa_slocs type ty_slocs,&lt;/P&gt;&lt;P&gt;      lv_tzone type LFREG.&lt;/P&gt;&lt;P&gt;select lgort lfdnr from twlad into table it_slocs where werks = lv_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;select single zone1 from t001w into tzone where werks = lv_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;describe table it_slocs lines lv_no_of_records.&lt;/P&gt;&lt;P&gt;loop at it_slocs into wa_slocs.&lt;/P&gt;&lt;P&gt;  lw_record-lgort = wa_slocs-lgort.&lt;/P&gt;&lt;P&gt;  lw_record-kzill = wa_slocs-seq_no.&lt;/P&gt;&lt;P&gt;  append lw_record to lt_records.&lt;/P&gt;&lt;P&gt;  clear lw_record.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;sort lt_records by lgort.&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do ( lv_no_of_records ).&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;lt_start_row = lt_start_row + 1.&lt;/P&gt;&lt;P&gt;clear lw_record.&lt;/P&gt;&lt;P&gt;read table lt_records into lw_record index lt_start_row.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   sloc     = lw_record-lgort.&lt;/P&gt;&lt;P&gt;   position = lw_record-kzill.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear lw_record.&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;TCD ( XXXX , XXXX_1 ).&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the logic will be useful when the same kind of error is encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 13:39:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-06T13:39:54Z</dc:date>
    <item>
      <title>Issues while process the tcode OX09</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296065#M1533413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issues while executing the eCATT script for multiple records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue is as under:&lt;/P&gt;&lt;P&gt;- I will be getting only the PLANT data from the excel file&lt;/P&gt;&lt;P&gt;- we need to fetch the Storage Locations connected to this PLANT from table TWLAD&lt;/P&gt;&lt;P&gt;- then process all the Storage locations for the tcode OX09&lt;/P&gt;&lt;P&gt;- the code is as under:&lt;/P&gt;&lt;P&gt;lv_plant = plant.&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;types: begin of ty_slocs,&lt;/P&gt;&lt;P&gt;           sloc type LGORT_D,&lt;/P&gt;&lt;P&gt;           end of ty_slocs.&lt;/P&gt;&lt;P&gt;data: it_slocs type table of ty_slocs,&lt;/P&gt;&lt;P&gt;wa_slocs type ty_slocs,&lt;/P&gt;&lt;P&gt;lv_tzone type LFREG.&lt;/P&gt;&lt;P&gt;select lgort from twlad into table it_slocs        where  werks = lv_plant.&lt;/P&gt;&lt;P&gt;select single zone1 from t001w into lv_tzone where  werks = lv_plant.&lt;/P&gt;&lt;P&gt;describe table it_slocs lines lv_no_of_records.&lt;/P&gt;&lt;P&gt;loop at it_slocs into wa_slocs.&lt;/P&gt;&lt;P&gt;   sloc = wa_slocs-sloc.&lt;/P&gt;&lt;P&gt;   tzone = lv_tzone.&lt;/P&gt;&lt;P&gt;   if sloc is not initial.&lt;/P&gt;&lt;P&gt;      TCD ( OX09 , OX09_1 ).&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   clear wa_slocs.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;- I need to populate the Transportation zone from T001W for the PLANT and populate this zone for each and every Storage Loc&lt;/P&gt;&lt;P&gt;- I was getting error at the statement "TCD ( OX09 , OX09_1 )." in the code, but when I kept this statement after endabap, I was&lt;/P&gt;&lt;P&gt;  not getting any error but only the last record is getting processed.&lt;/P&gt;&lt;P&gt;- The loop is getting executed only once for the last record fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please let me know your inputs on how to process this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296065#M1533413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while process the tcode OX09</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296066#M1533414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can not place a TCD-command inside of an ABAP-ENDABAP block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 21:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296066#M1533414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T21:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while process the tcode OX09</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296067#M1533415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the issue myself and this is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_plant = plant.&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;types: begin of ty_slocs,&lt;/P&gt;&lt;P&gt;      	lgort type LGORT_D,&lt;/P&gt;&lt;P&gt;        seq_no type LFDNR_TWLAD,&lt;/P&gt;&lt;P&gt;       end of ty_slocs.&lt;/P&gt;&lt;P&gt;data: it_slocs type table of ty_slocs,&lt;/P&gt;&lt;P&gt;      wa_slocs type ty_slocs,&lt;/P&gt;&lt;P&gt;      lv_tzone type LFREG.&lt;/P&gt;&lt;P&gt;select lgort lfdnr from twlad into table it_slocs where werks = lv_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;select single zone1 from t001w into tzone where werks = lv_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;describe table it_slocs lines lv_no_of_records.&lt;/P&gt;&lt;P&gt;loop at it_slocs into wa_slocs.&lt;/P&gt;&lt;P&gt;  lw_record-lgort = wa_slocs-lgort.&lt;/P&gt;&lt;P&gt;  lw_record-kzill = wa_slocs-seq_no.&lt;/P&gt;&lt;P&gt;  append lw_record to lt_records.&lt;/P&gt;&lt;P&gt;  clear lw_record.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;sort lt_records by lgort.&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do ( lv_no_of_records ).&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;lt_start_row = lt_start_row + 1.&lt;/P&gt;&lt;P&gt;clear lw_record.&lt;/P&gt;&lt;P&gt;read table lt_records into lw_record index lt_start_row.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   sloc     = lw_record-lgort.&lt;/P&gt;&lt;P&gt;   position = lw_record-kzill.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear lw_record.&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;TCD ( XXXX , XXXX_1 ).&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the logic will be useful when the same kind of error is encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296067#M1533415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while process the tcode OX09</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296068#M1533416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered to myself satisfactorily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-while-process-the-tcode-ox09/m-p/7296068#M1533416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:42:50Z</dc:date>
    </item>
  </channel>
</rss>

