Macro calculation to change for one particular month of year.

Hi All,
I have a query for change in macro. WE have a macro to calculate Target inventory which has same calculation for all through future months for 18 months. Now my user wants to change this all future months calculation would be same except for September every year. Now What function do I use in condition for calculation to check if month is September than do a different calculation.
Thanks
siva

Hi Verma,
As u need to exclude the spetemner month you need to add the code in of clause.
If
new condition
Month(row) = 9
result row
else
result row.
Inthe result row u can do ur calcualtions...
You can do this in a new step  for the exception you want to maintain.Hope this will help you.
Let me knw if u have further doubts.
Thanks
karthik

Similar Messages

  • Need working days for a particular month and year

    Hi,
    I need the number of working days for a particular month and year.Saturdays and Sundays are holidays.
    Regards,
    Vignesh

    Try this:
    SQL> var yr NUMBER;
    SQL> exec :yr := 2010;
    PL/SQL procedure successfully completed.
    SQL> with t as (select :yr yr from dual)
      2  SELECT TO_CHAR(dat,'MON-RR'),COUNT(*) FROM
      3  (select TO_DATE('01-JAN-'||yr) + lv dat FROM
      4  (select level - 1 lv,yr from t
      5  connect by level <= TO_DATE('31-DEC-'||yr) - TO_DATE('01-JAN-'||yr) + 1))
      6  WHERE TO_CHAR(Dat,'DY') NOT IN ('SAT','SUN')
      7  GROUP BY TO_CHAR(dat,'MON-RR');
    TO_CHAR(DAT,   COUNT(*)
    APR-10               22
    AUG-10               22
    DEC-10               23
    FEB-10               20
    JAN-10               21
    JUL-10               22
    JUN-10               22
    MAR-10               23
    MAY-10               21
    NOV-10               22
    OCT-10               21
    TO_CHAR(DAT,   COUNT(*)
    SEP-10               22
    12 rows selected.
    SQL> Edited by: AP on Jul 27, 2010 7:54 AM

  • Table for Material Quantity and Value for particular month and year

    Hi All
    My requirement is that for a particular month and year I want to know the stock quantity and stock value for a particular material for a given plant.From which SAP table can I get this data as I want to fetch data for my Y report?
    Regards
    Satish Kumar

    Hi,
    You can use MB5B table as suggested earlier.also you can use:
    MBEW-VMKUM --> stock for previous month period
    MBEW-VJKUM --> stock for previous year period
    PLease view these links which migh tbe helpful to you:
    http://help.sap.com/saphelp_47x200/helpdata/en/39/55fee3bc6111d4b3960050dadf0791/content.htm
    TableStock
    Thanks
    Nisha

  • Making short text field in Display mode for one particular Purchasing

    Hi All,
    This is regarding Making the Short text field in Display mode of PR for one Particular Purchasing.. i am giving you a bit elaborate...We are into E-Catalog Procurement.I will do the shopping from the Vendors external catalog and i will return back to SAP.
    While doing so, i dont want the user to change the Short Text field. I want that field shud display the Description. When i tried with the Screen Layout settings, it is fully grayed out and i am not able to see the Description of the Material. Is there any other options to get this enabled?. Please advice me on this settings to be done. Thanks in Advance.
    With Regards,
    Saakithyan

    Hi
    Define a Field selection key (new not the one which is assigned to document type) which makes  short text editable in screen layout config. and assign it to functional authorization value in t.code OMET. (it should be numeric). Then assign that functional authorization value in user master SU01 for users with parameter id EFB.
    Then it will work
    Regards
    Antony

  • How to retrieve the Sapscript layout changes for a particular Transport request in development server after this Transport request so many requests created  ?

    Dear Abapers,
    I request the Abapers kindly reply for this blog
    I want to retrieve the sapscript layout changes for a particular transport request in development server after that many transport request created and moved to quality ? 
    I checked in SE03 transaction the transport request was there.  But I want to retrieve the existing transport request which is not moved to Quality?
    Is it possible to retrieve the existing transport request in development which is not moved to quality ?
    Like how we retrieving the programs using versions in development server,  In the same way I want to retrieve the sapscript layout in development server ?
    Thanks & Regards
    Muzeebur Rahiman.S

    Hi,
    There is no version management for SapScript or Smartforms .
    When you write "transport request in development which is not moved to quality" - was the transport ever released and exported from the development system? If yes, and if the "Transport files" are still available in "Transport directory" (or if the transport files were backed up and could be retrieved), the transport could be imported again. If the TR was not exported, you are out of luck, I believe...
    I would not recommend you do it on your own even if you happen to have enough authorizations (consult with Basis and/or Transport Admin, if you have one in your organization). I would not recommend that it's imported on a development system or QA system, even if the transport contains no other objects - only the SapScript form in question. Import it on a "sand-box" that gets overwritten by system copy from time to time... Once the transport is imported, you should have the old version of SapScript in that system and could analyse the changes and perform manual merge.
    cheers
    Jānis

  • Display list of sales orders for one particular customer using BAPI in WD

    Friends,
    i want to display list of sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer, using Webdynpro.
    Please somebody send me related info,blogs,help links , to complete this task, this is very urgent.
    Please help
    Peter

    Find the WD tutorials here...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20sample%20applications%20and%20tutorials.htm">Tutorials</a>

  • Query not executing for one particular value

    Hi
    I have query on multi provider. and this multi provider is combination of Info objects only but not any ODS or cubes. I have one key figure in this multi provider.while executing the query i need to give input for variabl which has 7 different values. Query is executing fine for 6 values but not for one particular value.
    query executed in listcube transaction and it is executed fine here for the same selection. then what might be the reason?
    Please advise as soon as possible.
    Thanks

    Hi Kiran,
    are you maintaining any filters in the query? or is there any logic in the exit for this variable.
    regards.

  • EDI message is not sending to the third party for one particular SA

    DearAll,
                   We have the scenario to send the schedule lines to the third party system. for one particular schedule agreement schedule lines not sending to the third party system.
    while processing the messgae it is giving the error as "Message XEDI already processed on 20110317 070042"
    What could be the reason?.. we have checked all the EDI settings maintained for this supplier. some two weeks back there is no problem now only getting this message.
    how to resolve this?..
    Thanks in Advance
    Ananth.

    Hi Hareesh,
    Thanks a lot for the help. I have tried with removing the xml namespace, still the same result. I believe, the problem is with MTs tag in response message structure, bank xml data is trying to map with the response structure in PI, but when its finding the MTs tag I believe then its not mapping, and directly its passing the response in SXMB_MONI without any mapping.
    My question is how can I define my response structure without the MTs tagm, I mean same as what I am receiving from bank.
    Also I tried with without any mapping in response structure, I mean I used only one Message type for "response from bank" to "response to ECC" , without xml namespace, in this case I am able to receive the response in ECC, but there is exception called "PARSE_APPLICATION_DATA Error during XML => ABAP
    conversion: Response Message; CX_ST_MATCH_ELEMENT in " while receiving response, and when I go and see the logs, it says "System expected element 'MT_Response_MT940_Test'" , as its try to match with the defined structure in PI.
    Please experts help me, so my question is how can I avoid the MTs tag in my response structure, I just want to define my response structure in PI same as bank is sending me the data in xml tag, without any MTs tag.
    Thanks,
    Farhan

  • Ship-To Address not getting picked for one particular user

    Hi SRM Gurus,
    I am working on SRM5.0 system with ECC6.0 as backend.
    For one particular SRM user, the Ship-To address number which has been maintained in his attributes through transaction PPOMA_BBP, as default delivery address, is not populated when he creates a SC.
    This default ship-to address is not seen while creating the cart even though the address can be found via the F4 search help in the same SC.
    Can anyone tell me why this is happening for one particular user?
    Please note that this problem is occuring even when the user is shopping for self and creating a new SC (no copying from template). So SAP note 1055203 is not valid in my case.
    I have checked the ADRC table, and this address number exists. Infact, when I assign this address number to some other user's Ship-To attribute, this default delivery address is picked in the SC.
    So, I understand that the problem is not with the address, but with the linking of this address number to this user. I even tried deleting and re-assigning the address number in the attribute to this user. But, it doesnot work still.
    Can anyone help me out?
    Thanks n Regards,
    Ancy

    Ship to address not being picked from attributes for any user it was being picked from Org address data , and I had reset the value
    now , when I am trying to create a SC and I have tried to add delivery address  bby 2 types .
    1. By adding through the portal
    2> i have tried to add the same throgh ppomabbp in user attributes "Delivery address"
    I have also made it default however when I raise the SC it again shows me as blank :
    I am not too sure how do I populate the value that I need . Please see below still the delivery address is blank !!

  • Can revison of the item is degraded from 07 to 03 in Oracle Inventory for one particular Org?

    Can revison of the item is degraded from 07 to 03 in Oracle Inventory for one particular Org?

    Avinash,
    What is the problem and what are you trying to do?  Is it Item Revision or BOM revision or both?

  • I want to accumulate rain for the day, month and year; What formula can I use?

    I want to accumulate rain for the day, month and year; What formula or expression can I use.
    I am using a Rain Wise product that converts pulses to an analog value.  The Rain Wise device can be
    set to measure up to 1", 5", or 10".  I will be setting the unit to 10 inches in increments of 0.01 inches.
    What I would like to do is everytime the signal increments I would like to count it as 0.01 then after reaching
    a period of time whether it be a day or a month reset back to zero.
    Need some advise on this problem.
    Solved!
    Go to Solution.

    Hello Ryan,
    Lookout gets a Modbus over Ethernet signal which originates as a 4-20mA input to a Moxa Ethernet I/O Module (E1240) in the field.  In Lookout I created a ModbusEthernet Driver and a tag which scales 0 - 65534 RAW to 0-10 Eng.  [0 - 10 is inches of rain]  Also, another piece of information is that after the rain gauge maxes out at 10 inches it will zero out and start over.
    I though the accumulator was time based and took a sample over a specific time period, for instance, one sample every 30 seconds then accumulate.  If this is so then if I have 5 inches of rain and then it stopped raining, then 30 seconds latter it would sample, it would see 5 inches and add that to be 10 inches when actually it had only rained 5 inches. 
    I really need some help with this process,
    David Lopez
    City of Corpus Christi

  • TO GET WEEKS for a given MONTH AND YEAR

    Is there any FM to get the no of weeks for a given month, say 01 2005.
    Can i get the week numbers say 1 2 3 4 5 for the given month and year.
    Please let me know.
    Happy Holidays.
    Regards,
    Manohar E

    Hi Manohar,
       Use FM DATE_GET_WEEK twice; first time pass first day of the month and again pass the last day of the month as a parameter. So u will be having week number(yyyyxx) for the first week of the month and week number for the last week of the month. From these two, in between week numbers u can easily fetch. I hope this will help u out.
    Regards,
    Kavya Shah

  • Getting all dates of a particular month and year

    I want to get list of all dates of a particular month and year .
    How to get using Calendar List?

    Create a Calendar object. Set it's month and year. Then call getActualMaximum(Calendar.DAY_OF_MONTH); on the Calendar object. That will tell you how many days are in the month of that year.

  • PF calculation for that particular month

    Hi all
    An employee PF is deducted on basic.
    If an employee worked for u201Cxu201D company up to mid of the month say up to15th date (ex: 10.01.2005 joining date and 15.04.2008 is leaving from the company)
    And now he joined u201Cyu201D company on 16.04.2008 and has been working for that company up to 31.12.9999 (our sap hr terminology).
    My question is employee has to pay PF in both companies in that particular month April?
    Thanks & Regards
    MVR

    Hi shyam
    Thanks for ur quick responce.
    if that employee has 2 PF numbers then there is no problem (if i am not wrong)
    if employee has the one number there may be problem
    This is my idea.
    correct me if anything wrong
    MVR

  • Is there a way to change the ring tone to none for one particular contact?

    I see there is an option to turn the text message settings for a particular contact to 'none'.  Is there a way to change the ring tone to 'none' or 'silent' for only one contact.  This is a person who calls way too often and I used to turn their ringer to 'none' when I had a blackberry.  This way I can talk to this person when it is convenient for me and not have to listen to the ringer everytime they call.

    You need to sync a silent ringtone to your phone & then assign it to that contact. Here's one already made:
    http://richardkmiller.com/702/iphone-tip-use-a-silent-ringtone-to-screen-calls-i n-your-sleep

Maybe you are looking for

  • Transferring all data from a mac to another

    I'm purchasing a new macbook soon, and i wish to move all of my current data on my macbook to the new one. Is it as simple as copying to an external, then moving it into the new macbook, or is there some weird complex process required?

  • IPod not being recognized during Installation

    Hi i was just installing my ipod software, and when i plugged in the ipod when it said to, nothing happened, and now my ipod is stuck with just the apple symbol I cant even turn it off... please help

  • Urgent : Making heirarchy report by fetching data froma single table

    Hi, I am making a report in which i hae to display the data like this:- If there is a material and it contains batch and that batch furhter conatins sub-batches of it. The problem is dat all the data which is to be displayed is from the table CHVW  a

  • Web service Call failed

    Hi, When I try to post some messages to Web service, Follwing Error displayed is the Receiver SOAP communication channel, No description available except the following message Requet entering and Call failed.  What could be the problem? How can test

  • How to avoid printing zero in amount field in adobe forms

    Hi All, If the amount is empty in the amount field then it is printing 0,00. I have written some peice of code to avoid printing that value. I wanted to print space. Below is the  logic which  i have tried in  javascript. if  ( this.WRSHB.rawValue ==