<?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: Functional Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545889#M248204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankx Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 19:08:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-21T19:08:26Z</dc:date>
    <item>
      <title>Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545885#M248200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;according to the given description i have to write one functional module&lt;/P&gt;&lt;P&gt;plz suggest me the code i should follow .&lt;/P&gt;&lt;P&gt;urgent issue in production.plz&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;a. Read XSI Tables for the previous day&amp;#146;s Shipment Number&lt;/P&gt;&lt;P&gt;Read table VTTK for VTTK-SHTYP = &amp;#145;ZPLD&amp;#146; AND VTTK-ERDAT =[SY-DATUM &amp;#150; 1] &lt;/P&gt;&lt;P&gt;Retrieve Shipment numbers with UPS as forwarding agent [VTTK-TKNUM] for [VTRKH-VBELN] =[VTTK-TKNUM] = &amp;#145;UPS&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. For each shipment number, VTTP-TKNUM = VTTK-TKNUM, get first delivery number in shipment VTTP-VBELN for VTTP-TPRFO = &amp;#145;0001&amp;#146;&lt;/P&gt;&lt;P&gt;      Retrieve Shipping point [VTRDI-VSTEL] for VTRDI-VBELN = VTTP-VBELN  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;c. Read MetaData Transaction Table [VLBL] for Current Shipment number VLBL-VBELN.&lt;/P&gt;&lt;P&gt;For VLBL-VBELN=VTTP-TKNUM, get first delivery number in shipment VTTP-VBELN for VTTP-TPRFO = &amp;#145;0001&amp;#146;&lt;/P&gt;&lt;P&gt;Retrieve Shipping point for current shipment [VTRDI-VSTEL] for VTRDI-VBELN = VTTP-VBELN &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;d. Shipment Number of previous day&amp;#146;s transmission &lt;/P&gt;&lt;P&gt;For [VTRDI-VSTEL] from step c. equal to [VTRDI-VSTEL] from step b., retrieve [VTTK-TKNUM from step a.&lt;/P&gt;&lt;P&gt;Previous shipment number VLBL-VBELN= VTTK-TKNUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Get Express Delivery Company Data Field [VLBL-VLABTYP] for VLBL-VBELN=VTTK-TKNUM and VLBL-VLABTYP = &amp;#145;ZIBOOKNO&amp;#146; {book number from previous shipment}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment Number of current day&amp;#146;s transmission [VBELN]&lt;/P&gt;&lt;P&gt;Page Number of current day&amp;#146;s transmission [PAGENO]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Current page number [VLBL-PAGENO] NE  &amp;#145;001&amp;#146; &lt;/P&gt;&lt;P&gt;BOOKNO = [VLBL&amp;#150;ZIBOOKNO] from previous shipment.&lt;/P&gt;&lt;P&gt;      Else,&lt;/P&gt;&lt;P&gt;           If [VLBL&amp;#150;ZIBOOKNO] = [VLBL-BOOK1]&lt;/P&gt;&lt;P&gt;                                        BOOKNO = [VLBL-BOOK1] &lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;	BOOKNO = [VLBL-BOOK2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Hridhayanjili.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545885#M248200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545886#M248201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could someone plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545886#M248201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545887#M248202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks pretty straight forward, have you tried coding the logic yourself yet?  Give it a try, you will learn more this way.  If you have any questions after trying, then please ask.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545887#M248202</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-21T18:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545888#M248203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can create a function module using transaction code SE37. Once you create the same you would need to use import parameters as shipment type and shipment number and export parameters as the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code for the function module would be :&lt;/P&gt;&lt;P&gt;ldate = sy-datum - 1.&lt;/P&gt;&lt;P&gt;select tknum from vttk &lt;/P&gt;&lt;P&gt;into itab&lt;/P&gt;&lt;P&gt;where shtyp = 'ZPLD' and &lt;/P&gt;&lt;P&gt;erdat = ldate and &lt;/P&gt;&lt;P&gt;tknum = 'UPS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  select vbeln into lvbeln from vttp&lt;/P&gt;&lt;P&gt;  where tknum = itab-tknum and tprfo = '0001'.&lt;/P&gt;&lt;P&gt;  select vstel into lvstel from vtrdi &lt;/P&gt;&lt;P&gt;  where vbeln = lvbeln.&lt;/P&gt;&lt;P&gt;  select * into ivlbl from vlbl&lt;/P&gt;&lt;P&gt;  where vbeln = itab-tknum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- the rest of the specs can be interpretted here&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;-- I have coded the part which I could understand from your techspecs(which in my view are a bit complex to understand.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545888#M248203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Functional Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545889#M248204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankx Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 19:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functional-module/m-p/1545889#M248204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T19:08:26Z</dc:date>
    </item>
  </channel>
</rss>

