<?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: Delivery Status Extraction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003377#M956467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone  help me. its very urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 03:50:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T03:50:30Z</dc:date>
    <item>
      <title>Delivery Status Extraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003376#M956466</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 am extracting all the fields from z1ychlog table and display this records in ALV. z1ychlog table contains delivery data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to extract  delivery status(using selection screen delivery number) in VBUP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case i need to check for 3 status&lt;/P&gt;&lt;P&gt;1. Picking status(vbup-kosta)&lt;/P&gt;&lt;P&gt;2.Goods Issue ( vbup-wbsta)&lt;/P&gt;&lt;P&gt;3.Billing status (vbup-fksta)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i need to check Picking status. If this status is A (Not yet picked) i need to continue to check goods issue. &lt;/P&gt;&lt;P&gt;If      this value is C, i must stop checking and tell them &lt;/P&gt;&lt;P&gt;       Goods  issue completed.&lt;/P&gt;&lt;P&gt;Else &lt;/P&gt;&lt;P&gt;       i need to check Billing document status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one pls help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to add 2 more fileds (status and remark) in ALV output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select *
  into corresponding fields of table lt_z1log
  from z1ychlog  where
                vbeln in s_vbeln
       and      werks in s_werks
       and      vkorg in s_vkorg
       and      vstel in s_vstel
       and      matnr in s_matnr
       and      bstnk in s_bstnk
       and      awbill in s_awbill
       and      spinvno in s_invno
       and      kunag in s_kunag
       and      lifnr in s_lifnr
       and      lfdat in s_lfdat
       and      wadat in s_wadat
       and      record_id in s_recid
       and      APPROVELNO in s_aprno
       and      ernam  in s_ernam
       and      RUNDATE  in s_erdat.
endform.                    " GET_Z1YCHLOG_DATA_ALL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 02:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003376#M956466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T02:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delivery Status Extraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003377#M956467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone  help me. its very urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 03:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003377#M956467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T03:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delivery Status Extraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003378#M956468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a field status in your itab and try some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;  into corresponding fields of table lt_z1log&lt;/P&gt;&lt;P&gt;  from z1ychlog  where&lt;/P&gt;&lt;P&gt;                vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;       and      werks in s_werks&lt;/P&gt;&lt;P&gt;       and      vkorg in s_vkorg&lt;/P&gt;&lt;P&gt;       and      vstel in s_vstel&lt;/P&gt;&lt;P&gt;       and      matnr in s_matnr&lt;/P&gt;&lt;P&gt;       and      bstnk in s_bstnk&lt;/P&gt;&lt;P&gt;       and      awbill in s_awbill&lt;/P&gt;&lt;P&gt;       and      spinvno in s_invno&lt;/P&gt;&lt;P&gt;       and      kunag in s_kunag&lt;/P&gt;&lt;P&gt;       and      lifnr in s_lifnr&lt;/P&gt;&lt;P&gt;       and      lfdat in s_lfdat&lt;/P&gt;&lt;P&gt;       and      wadat in s_wadat&lt;/P&gt;&lt;P&gt;       and      record_id in s_recid&lt;/P&gt;&lt;P&gt;       and      APPROVELNO in s_aprno&lt;/P&gt;&lt;P&gt;       and      ernam  in s_ernam&lt;/P&gt;&lt;P&gt;       and      RUNDATE  in s_erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln kosta wbsta fksta into table itab from vbup&lt;/P&gt;&lt;P&gt;for all entries in lt_z1log where vbeln = lt_z1log-vbeln.&lt;/P&gt;&lt;P&gt;if itab is not initial.&lt;/P&gt;&lt;P&gt;sort itab ascending by vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_z1log.&lt;/P&gt;&lt;P&gt;	read table itab with key vbeln = lt_z1log-vbeln transporting &lt;/P&gt;&lt;P&gt;			kosta wbsta fksta binary search.&lt;/P&gt;&lt;P&gt;		if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;			if itab-kosta  = 'A'.&lt;/P&gt;&lt;P&gt;			  lt_z1log-status = 'Not yet picked'.&lt;/P&gt;&lt;P&gt;			endif.&lt;/P&gt;&lt;P&gt;			if itab-kosta  = 'C'.&lt;/P&gt;&lt;P&gt;			  lt_z1log-status = 'Completed'.&lt;/P&gt;&lt;P&gt;			endif.&lt;/P&gt;&lt;P&gt;			if itab-kosta  = 'A'.&lt;/P&gt;&lt;P&gt;			  lt_z1log-status = 'Not yet picked'.&lt;/P&gt;&lt;P&gt;			endif.&lt;/P&gt;&lt;P&gt;		modify lt_z1log transporting status.&lt;/P&gt;&lt;P&gt;clear lt_z1log.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 03:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delivery-status-extraction/m-p/4003378#M956468</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-06-23T03:59:00Z</dc:date>
    </item>
  </channel>
</rss>

