<?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: logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268549#M492576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare 5 parameters of type d1-m1 &lt;/P&gt;&lt;P&gt;                                           d1-m2&lt;/P&gt;&lt;P&gt;                                          ;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;                                           d1-m5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ means parameters of database table d1 of m1 type fields which has the months value]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and declare a internal table having alll therquired fields&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab ,&lt;/P&gt;&lt;P&gt;               f1 type d1-f1,&lt;/P&gt;&lt;P&gt;                 ......&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;             fn type dn-fn,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type itab occurs 0 with header line.&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;select a~matnr &lt;/P&gt;&lt;P&gt;          b&lt;SUB&gt;maktx a&lt;/SUB&gt;menge &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;netpr a&lt;/SUB&gt;peinh &lt;/P&gt;&lt;P&gt;a~bprme &lt;/P&gt;&lt;P&gt;c~ekorg &lt;/P&gt;&lt;P&gt;d~meins &lt;/P&gt;&lt;P&gt;e~stprs &lt;/P&gt;&lt;P&gt;e~peinh &lt;/P&gt;&lt;P&gt;f~atwrt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from ekpo as a&lt;/P&gt;&lt;P&gt;inner join makt as b&lt;/P&gt;&lt;P&gt;              ekko as c&lt;/P&gt;&lt;P&gt;              mara as d&lt;/P&gt;&lt;P&gt;mbew as e&lt;/P&gt;&lt;P&gt;cawn as f&lt;/P&gt;&lt;P&gt;into table itab1&lt;/P&gt;&lt;P&gt;where  d1-m1 = 'm1' and    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [ where give d1 as database table and m1 and field corresponding to that table]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           d1-m2 = 'm2' and&lt;/P&gt;&lt;P&gt;           d1-m3 = 'm3' and&lt;/P&gt;&lt;P&gt;           d1-m4 = 'm4' and&lt;/P&gt;&lt;P&gt;           d1-m5 = 'm5' .&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 09:55:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T09:55:09Z</dc:date>
    <item>
      <title>logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268548#M492575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have to get these following output :&lt;/P&gt;&lt;P&gt;1)	Material Number&lt;/P&gt;&lt;P&gt;2)	Material Description&lt;/P&gt;&lt;P&gt;3)	UNSPSC code&lt;/P&gt;&lt;P&gt;4)	Standard Price&lt;/P&gt;&lt;P&gt;5)	Per &lt;/P&gt;&lt;P&gt;6)	Unit&lt;/P&gt;&lt;P&gt;7)	Volume per [Pricing date 1]                 &lt;/P&gt;&lt;P&gt;8)	Volume per [Pricing date 2]&lt;/P&gt;&lt;P&gt;9)	Volume per [Pricing date 3]&lt;/P&gt;&lt;P&gt;10)	Volume per [Pricing date 4]&lt;/P&gt;&lt;P&gt;11)	Volume per [Pricing date 5]&lt;/P&gt;&lt;P&gt;12)	Contract price per [Pricing date 1]&lt;/P&gt;&lt;P&gt;13)	Per&lt;/P&gt;&lt;P&gt;14)	Unit&lt;/P&gt;&lt;P&gt;15)	Contract price per [Pricing date 2]&lt;/P&gt;&lt;P&gt;16)	Per&lt;/P&gt;&lt;P&gt;17)	Unit&lt;/P&gt;&lt;P&gt;18)	Contract price per [Pricing date 3]&lt;/P&gt;&lt;P&gt;19)	Per&lt;/P&gt;&lt;P&gt;20)	Unit&lt;/P&gt;&lt;P&gt;21)	Contract price per [Pricing date 4]&lt;/P&gt;&lt;P&gt;22)	Per&lt;/P&gt;&lt;P&gt;23)	Unit&lt;/P&gt;&lt;P&gt;24)	Contract price per [Pricing date 5]&lt;/P&gt;&lt;P&gt;25)	Per&lt;/P&gt;&lt;P&gt;26)	Unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ekpo:- matnr, menge, netpr, peinh, bprme&lt;/P&gt;&lt;P&gt;ekko:- ekorg&lt;/P&gt;&lt;P&gt;mara:- meins&lt;/P&gt;&lt;P&gt;mbew:- stprs, peinh&lt;/P&gt;&lt;P&gt;cawn:- atwrt&lt;/P&gt;&lt;P&gt;makt:- maktx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user will enter 5 consecutive months as date and the desired output will be obtained.&lt;/P&gt;&lt;P&gt;please help me out with the logic in specific code format.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 09:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268548#M492575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268549#M492576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare 5 parameters of type d1-m1 &lt;/P&gt;&lt;P&gt;                                           d1-m2&lt;/P&gt;&lt;P&gt;                                          ;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;                                           d1-m5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ means parameters of database table d1 of m1 type fields which has the months value]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and declare a internal table having alll therquired fields&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab ,&lt;/P&gt;&lt;P&gt;               f1 type d1-f1,&lt;/P&gt;&lt;P&gt;                 ......&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;             fn type dn-fn,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type itab occurs 0 with header line.&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;select a~matnr &lt;/P&gt;&lt;P&gt;          b&lt;SUB&gt;maktx a&lt;/SUB&gt;menge &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;netpr a&lt;/SUB&gt;peinh &lt;/P&gt;&lt;P&gt;a~bprme &lt;/P&gt;&lt;P&gt;c~ekorg &lt;/P&gt;&lt;P&gt;d~meins &lt;/P&gt;&lt;P&gt;e~stprs &lt;/P&gt;&lt;P&gt;e~peinh &lt;/P&gt;&lt;P&gt;f~atwrt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from ekpo as a&lt;/P&gt;&lt;P&gt;inner join makt as b&lt;/P&gt;&lt;P&gt;              ekko as c&lt;/P&gt;&lt;P&gt;              mara as d&lt;/P&gt;&lt;P&gt;mbew as e&lt;/P&gt;&lt;P&gt;cawn as f&lt;/P&gt;&lt;P&gt;into table itab1&lt;/P&gt;&lt;P&gt;where  d1-m1 = 'm1' and    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [ where give d1 as database table and m1 and field corresponding to that table]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           d1-m2 = 'm2' and&lt;/P&gt;&lt;P&gt;           d1-m3 = 'm3' and&lt;/P&gt;&lt;P&gt;           d1-m4 = 'm4' and&lt;/P&gt;&lt;P&gt;           d1-m5 = 'm5' .&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 09:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268549#M492576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T09:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268550#M492577</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;selection-screen begin of block temp with frame.&lt;/P&gt;&lt;P&gt;select-options : so_month for &amp;lt;tablename&amp;gt;.&lt;/P&gt;&lt;P&gt;selection-screen end of block temp&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;select ekpo~matnr&lt;/P&gt;&lt;P&gt;          ekpo~menge&lt;/P&gt;&lt;P&gt;          ekpo~ netpr&lt;/P&gt;&lt;P&gt;          ekpo~peinh &lt;/P&gt;&lt;P&gt;          ekpo~bprme&lt;/P&gt;&lt;P&gt;          ekko~ekorg&lt;/P&gt;&lt;P&gt;          mara~meins&lt;/P&gt;&lt;P&gt;          mbew~stprs&lt;/P&gt;&lt;P&gt;          mbew~peinh&lt;/P&gt;&lt;P&gt;          cawn~atwrt&lt;/P&gt;&lt;P&gt;          makt~maktx&lt;/P&gt;&lt;P&gt;          into corresponding fields of table &amp;lt;internal table name&amp;gt;&lt;/P&gt;&lt;P&gt;          from ekko&lt;/P&gt;&lt;P&gt;          inner join ekpo on ekko&lt;SUB&gt;ebeln eq ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;          inner join mara on ekpo&lt;SUB&gt;matnr eq mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;          inner join mbew on mara&lt;SUB&gt;matnr eq mbew&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;          inner join makt on mara&lt;SUB&gt;matnr eq makt&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;          where &amp;lt;month field&amp;gt; in &amp;lt;so_month&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this u will have to create select options so_month field in the selection screen    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Suresh Krishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 09:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic/m-p/2268550#M492577</guid>
      <dc:creator>former_member15255</dc:creator>
      <dc:date>2007-05-21T09:58:27Z</dc:date>
    </item>
  </channel>
</rss>

