Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

Hi experts,
i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
target dso where information is stored by fiscal period, year material etc. finally there is  a keyfigure in target whih needs to be filled with sum of 12
months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
i am not expert in abap please kindly gothrough and guide me in this
TYPES: BEGIN OF s_/BIC/AZOSLS00,
FISCPER  type /BI0/OIFISCPER,
FISCVARNT  type /BI0/OIFISCVARNT,
PLANT  type /BI0/OIPLANT,
STOR_LOC  type /BI0/OISTOR_LOC,
/BIC/MATERIAL  type /BIC/OIMATERIAL,
VTYPE  type /BI0/OIVTYPE,
BILL_QTY  type /BI0/OIBILL_QTY,
END OF s_/BIC/AZOSLS00.
DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
wa_/BIC/AZOSLS00  TYPE s_/BIC/AZOSLS00.
SELECT
FISCPER
FISCVARNT
PLANT
STOR_LOC
/BIC/MATERIAL
VTYPE
BILL_QTY
     FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
       FOR ALL
      ENTRIES IN RESULT_PACKAGE
       WHERE
below field is from value of fiscal period (which is fiscal period -999 ex:  for 001.2014 this
value will be 002.2013 so 12 months including current period)
FISCPER >=  RESULT_PACKAGE-/BIC/ZFISCPERF
below is result filed fiscal period (here i dont know which keyword or statement to be used to select
interval values this between statement giving syntax error that can not be used in where for for all entries
between RESULT_PACKAGE-FISCPER
        AND
         FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
         PLANT = RESULT_PACKAGE-PLANT AND
         STOR_LOC = RESULT_PACKAGE-STOR_LOC and
      /BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
    SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
    /BIC/MATERIAL .
    LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
      READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
below dont know what statement i need to use in read statement for interval of fiscal periods
giving error that >= can not be used
     FISCPER >=  <result_fields>-/BIC/ZFISCPERF
FISCPER = <result_fields>-FISCPER
         FISCVARNT = <result_fields>-FISCVARNT
         PLANT = <result_fields>-PLANT
         STOR_LOC = <result_fields>-STOR_LOC
      /BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
       BINARY SEARCH.
      BREAK-POINT.
      IF sy-subrc = 0.
below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
sum statement giving error
            <result_fields>-/BIC/ZLSTSLS12 =
             sum(wa_/BIC/AZOSLS00-BILL_QTY).
          ENDIF.
    ENDLOOP.
friends please help me in this.
Thanks
Chandra.

Hiii,
If you only want to store last  12 months data in Target ODS .
Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
Refer the below link to create filter routine :
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
Regards,
Akshay

Similar Messages

  • I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can

    I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can't  believe that the monthly CT tax is higher than the payment for the phone itself. Does this make sense. Last time I spoke with them on the phone it was for 1 1/4 hours for something simple. I don't want to call unless I need to. The salesman told me nothing about any of this. Thank you for any help you can offer.

    The bill from last month states:
    CT state sales tax**     $38.10
    ** In some states sales tax or surcharges are calculated on the full cost of the full retail price or VZW cost of the device you purchased and not on the discounted price you pay. The sales tax or surcharges charged on your device was based on $599.99 and appears on this first bill.
    The current bill says the same.
    Actually, now I'm realizing that last month's bill stated I was making the first payment toward the phone. Now this month also says it's the first payment toward the phone when it's really the second.

  • HT201359 Why have I been extra charged for an app and have been billed twice for the same app?

    Why have I been extra charged for an app and have been billed twice for the same app?

    We are are fellow users here on these forums, you're not talking to iTunes Support here, we won't know why.
    I don't know what you mean by 'extra charged' (have you made in-app purchases within the app, or are you in the US and need to add on your state's sales tax to the listed price ?), or have you added or changed your credit card details on your iTunes account ? If you have then each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so.
    Store holding charge : http://support.apple.com/kb/HT3702
    If you've been double-charged then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com .
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I have full membership to CC and have been using it for 4 months. Randomly Photoshop stopped opening jpgs, so I uninstalled and re-installed. Photoshop then stopped working all together. I signed out of the app manager and when I signed back in all my inf

    I have full membership to CC and have been using it for 4 months. Randomly Photoshop stopped opening jpgs, so I uninstalled and re-installed. Photoshop then stopped working all together. I signed out of the app manager and when I signed back in all my info was gone and only "TRIAL VERSIONS" of CC apps were available. I paid for this software. I need to be able to download it again.

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • TS2755 I don't have an iPhone. My friend does and we have been texting for 5 months now and all of a sudden I can't revcieve her messages. I can message any other iPhone no problem and she has no problem texting other people as well. What is happening?

    I don't have an iPhone. My friend does and we have been texting for 6 months and havn't had any problems. All of a sudden I cannot get her text messages. She revieces mine but i cannot recieve her's. I can also text other iPhone users with no difficulty at all.
    What is happening?

    I would have your friend first do a reset on her iPhone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. Also, SMS is a carrier feature and if she is having trouble, she might want to contact her carrier and have them double check her account provisioning. It might just need a reset on their end.

  • I am using iphone 4 and planning to visit india for few months. can i buy local sim card from india and use in my iphone? i have alrady unlock my iphone.

    I am using iphone 4 and planning to visit india for few months. can i buy local sim card from india and use in my iphone? i have alrady unlock my iphone.

    Of course

  • How do I know  what transactions executed by specific user for last month

    All
    We have a request to find out  what transactions are executed by secific user
    for last couple of months.
    Is there any report in SAP would tell me ?
    Please advise.
    From
    PT.

    Hello PT,
    If you use the search for the term "How do I know what transactions executed by specific user for last month" then I guarantee you some good hits in the result, and further more detailed search terms to use...
    Cheers,
    Julius
    (this time in response to the correct thread...)

  • Why I can only download 20 photos for last month from the photostream while I have more than 3GB photos kept in iCloud? Many thanks.

    Why I can only download 20 photos for last month from the photostream while I have more than 3GB photos kept in iCloud? My iPhone was stolen and the photos in it are very precious to me. Many thanks.

    On a new device you can only download what is currently stored in "My Photo Stream" in iCloud. iCloud keeps up to the last 1000 photos, but only the photos, that have been added during the last month. Older photos may be removed, when the time is up. On other devices you may be seeing older photos as well in "My Photo Stream", that will depend on the available storage on those devices, and when the Photo Stream has been enabled on those devices, see:  My Photo Stream FAQ - Apple Support
    If you are seeing other photos in the Photo Stream on other devices, that you want to save, mail them to you from the other devices.
    Have you tried to restore your iPhone from the last iCloud backup of the old phone? The backup will contain the photos in the Camera Roll, but not the photos in Photo Stream.   iOS: Back up and restore your iOS device with iCloud or iTunes

  • STAD Report for last month

    Hi,
       Iam getting stad report for last one week,iam not getting the stad report for last month.i want to get stad report for particular day in last month.how to rectify the same.
    Thanku

    Hi,
    rsau/local/file /usr/sap/LID/DVEBMGS00/log/
    you will have to set DIR_AUDIT parameter instead of it.
    Set the following parameter with reference value:
    Parameter                                  Description                                   Reference Value
    DIR_AUDIT                  Directory for security audit files          S:\ECP-AUDIT\ECP\DVEBMGS00\ECP_security_audit_log
    FN_AUDIT                  Name of security audit file                   ECP_AUDIT_++++++++.AUD
    rsau/enable                  Enable the Security Audit Log                       1
    rsau/max_diskspace/local       Maximum space for security audit file                 2147483647
    rsau/max_diskspace/per_day  Maximum size of all security audit files per day            (If you wish, otherwise let it be default '0')
    rsau/max_diskspace/per_file      Maximum size of one single security audit file             (If you wish, otherwise let it be default '0')
    rsau/selection_slots              Number of filters to allow for the Security Audit Log            (If you wish, otherwise let it be default '2')
    rsau/user_selection              Defines the user selection method used inside kernel functions         (If you wish, otherwise let it be default '0')
    activated profile in sm19,still iam not getting audit log for last week in sm20.
    After Proper setting of Security Audit log parameters, the Application Server needs to be restarted to make the changes effective. You will only get the Audit Data since the activation of valid Security Audit parameter.
    Regards,
    Bhavik G. Shroff

  • Unable to see my bills online for 2 months now

    Hi
    I had BT broadband, Vision and a new phoneline installed back in September. When I placed the order online I chose online billing (which I am now massively regretting!) Since everything was succesfully installed I have been unable to see my online bills.
    I can log into the "myBT" area but it then says I need to verify my email address, which I then do but when I click the link in the email it takes me to a screen which says that due to technical issues my email address cannot be verified, and it asks me to try again later. After three weeks of trying again later I sent an email to BT and was then phoned by one of their advisers. They failed to see my problem and passed me on to another adviser who eventually said that "everyone was getting this message" and that it would be "resolved shortly". Three weeks later and the problem is still not resolved and I'm still getting the same message.
    What makes this even more frustrating is that last week I had £40 debited from my account by BT but I have no idea what this is for as my broadband should be free for three months, I've used the phone three or four times (all in the evenings or at weekends) I paid for a lot of my line reental up front and I only have the basic Vision package so I'd really like to know what I've been charged for!
    Any help/advice would be massively appreciated, I really don't want to have to battle through another fruitless 20 minute phone call!

    Just a quick note to say hello as anotherfrustrated new customer with exactly the same issue as the original post?
    I will go through the care team and I hope this gets resolved, so far I had one call where the advisor tried to fix a problem I had not mentioned, one chat session where I was re-queued and then given a new phone number, and a call to this number whose solution was to log on, change the email address for contact and try again. Needless to say this also didn't work.
    In a word,shambolic and I am yet to see my first bill.
    I will report back when/if this is resolved?
    Thanks
    Michael McGrath

  • Why did I get an emails stating that i uploaded 50 photos and have used my quota for the month when I have not uploaded ANY photos. I just installed PSE 12.

    I just installed PSE12 and I think it automatically synced photos to REVEL?
    I don't want all my photos on REVEL. How do i control this.
    It also states that I reached my 50 max for the month. I didn't upload any photos!
    i this a push for paid subscription?
    There is no upload button under share?
    so how is this controlled. I looked at my revel and I have some older pic up there from about 8 months ago.
    All my nikon pics are in raw, when will you support this?
    If I have to convert them all into jpgs, this is a tedious task and I may as well use Flikr?
    Thanks,
    Chet

    Hi Chet-
    This is a user to user forum that  adobe employees also monitor and reply on.
    Our records  show that you have indeed hit your limit of 50 uploads. The uploads began around 5/2 from Elements on Windows to Chester's library, which was then deleted on 5/5. Each upload counts, even if you delete and re-upload.
    When you first install elements, it asks if you want to make all your albums mobile or just select ones. If you say all, then all will be uploaded to revel (if you have enough uploads available). If you select certain ones, then only those will sync with revel. It sounds like you seleted either some or all and your elements organizer is trying to sync with revel as requested. The idea behind mobile albums is that they stay in sync whether you upload from elements or revel.
    If you do not want to have all albums as mobile albums in the Elements Organizer,
    you can open up Preferences, switch to the Adobe Revel Preferences section and if the box is checked saying
    "Automatically access all my catalog media in Adobe Revel", uncheck that checkbox and click OK.
    You do not have to have a premium subscription as long as you only want to upload 50 files or less to revel. A subscription will get you unlimited uploads.
    Regarding raw files:
    1) If you select a raw file to upload to revel from elements, it will first create a jpg and then upload it to revel 12.1. You will only see a jpg file in revel when you look from your other devices.
    2 )If you then edit the raw file from elements, it will replace the old jpg in revel with the edited one.
    3)If you edit the jpg file in revel (that was made from the elements raw file and uploaded to revel in 1 above), then it will show there and will also show up in the version set in elements.
    4) If you import a raw file directly into revel (say from adoberevel.com rather than elements) you will not see it show up in elements. There is not a feature to sync a raw files or their associated jpg file with elements.
    I hope this helps. Please let me know if you have further questions.
    Pattie

  • We paid the annual premium and are still being charged for the monthly.

    We started with Adobe by paying $14.99 monthly. Last August, we decided to go with the annual to save money, Since that time, we have continued to be charged monthly since August - December 14.99 monthly, in error. How can I get refunded the overcharge $59.96 and stop this charge?

    Sara, thank you for your response. I was in touch with customer care before they contacted you to contact me. They said they could not help completely but that you should be able to. I need to cancel the $14.99 monthly charge and be refunded the $14.99 charges since I paid the annual fee. The $14.99 is a duplicate charge as I only have one form. Please advise as to how I can stop the monthly charges and receive a refund for the duplicate charges. My phone number is 931.372.7200 if you would like to speak in person.  This is the transcript:
    Adobe <[email protected]>
    Jan 9 (3 days ago)
    to Debi
    For additional help, reach us at http://helpx.adobe.com/contact.html 
    General Info
    Chat start time
    Jan 9, 2015 8:01:45 AM PST
    Chat end time
    Jan 9, 2015 8:28:01 AM PST
    Duration (actual chatting time)
    00:26:15
    Operator
    Sunil Kumar
    Chat Transcript
    info: Thank you for your patience.
    While you wait, you can try our community forums where experts are available 24 hours a day, 7 days a week.
    info: You are now chatting with Sunil Kumar.
    Sunil Kumar: Hello! Welcome to Adobe Customer Service.
    Sunil Kumar: Hi Debi.
    Sunil Kumar: One moment while look into the issue
    info: Your chat transcript will be sent to [email protected] at the end of your chat.
    Sunil Kumar: I understand that you want the refund for the subscription which you have purchased by mistake thinking that it is a yearly subscription, right?
    Debi Smith: We started with Adobe by paying $14.99 monthly. Last August, we decided to go with the annual to save money, Since that time, we have continued to be charged monthly since August - December 14.99 monthly, in error. How can I get refunded the overcharge $59.96 and stop this charge?
    Debi Smith: I want to cancel the monthly $14.99 service because we have paid for the annual service. This charge should have stopped when we started the annual. Are they two different programs?
    Sunil Kumar: Thank you for the information.
    Sunil Kumar: Please allow me 3-4 minutes while I check your account for information and help you.
    Debi Smith: k
    Debi Smith: I have to leave you. Can you please email me any other questions? Otherwise, please refund the $59.96 to my credit card, stop the $14.99 charges and keep the annual subscription going, as it. My email is [email protected] and phone 931.372.7200 Thanks!
    Sunil Kumar: Okay.
    Sunil Kumar: Is there anything else I can help you with?
    Sunil Kumar: I'm sorry, did I lose you?
    Debi Smith: ARE YOU STILL THERE?
    Sunil Kumar: Yes. Sorry for the delay.
    Debi Smith: What is the status of the refund and the correction to my account?
    Sunil Kumar: I'm sorry that it id not possible to provide the refund for all the charges. As you are contacting now, I can provide you the refund for the last charges.
    Sunil Kumar: Will that be helpful for you?
    Debi Smith: I have contact Adobe before about this and thought it was taken care of.
    Sunil Kumar: Thank you for your patience.
    Sunil Kumar: I  check and see that I need top  forward the case to our relevant team for the for the refund for the subscription.
    Sunil Kumar: They'll contact you in 2-3 business days for the refund issue.
    Sunil Kumar: Is that okay for you?
    Debi Smith: General Info Chat start time Nov 12, 2014 3:07:00 PM EST Chat end time Nov 12, 2014 3:37:31 PM EST Duration (actual chatting time) 00:30:31 Operator Rakesh Chat Transcript info: Thank you for your patience. While you wait, you can try our community forums where experts are available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: We are still assisting other customers, thank you for your patience. You can also try our community forums, available 24 hours a day, 7 days a week. info: You are now chatting with Rakesh. Rakesh: Hello! Welcome to Adobe Customer Service. How are you doing today? Rakesh: Could you please elaborate your issue Rakesh: Are we still connected? Rakesh: Are we still connected? Rakesh: We have not heard from you for some time. Do you wish to continue to chat? Rakesh: Since we have not heard from you for some time, we will now end this chat. Please click to chat with us again if we can be of further assistance. Rakesh: Thank you for contacting Adobe. We are available 7 days a week, 24 hours a day. Goodbye! info: Your chat transcript will be sent to [email protected] at the end of your This was an email from 11/12/14 Debi Smith: When I realized that the monthly charge wast $14.99, I paid for the annual subscription and understood that the $14.99 charges would stop and the previous one paid would be refunded. Please advise as to when the refund will be given. I purchased the annual in September and the last $14.99 charge was October 13th. My account shows that both plans are still in play and I am being charged for both. Please help as I only want the annual and the other needs to be credited.
    Debi Smith: Will they email or call? I have to go now.
    Sunil Kumar: They'll email you.
    Sunil Kumar: Is there anything else I can help you with?
    Sunil Kumar: Are we still connected?
    Sunil Kumar: Since we have not heard from you for some time, we will now end this chat.  Please click to chat with us again if we can be of further assistance.
    Sunil Kumar: Thank you for contacting Adobe.  We are available 7 days a week, 24 hours a day. Goodbye!

  • Need to authorise new laptop after old one crashed.  Have 5 computers already authorised and cannot wait until July for 12 month "Deauthorise all computers" to become available again.  How can I authorise this new laptop?

    Hello... I need to authorise a new laptop after my old one completely died (before I could deauthorise it!!).  I have 5 computers already authorised and cannot wait until July for the 12 month "deauthorise all computers" option to become available again.  Does anyone know how can I authorise this new laptop as one of the 5, in place of the old one?  Any help gratefully received!

    Go to one of the authorized computers and de-authorize it individually.
    The one year limitation is ONLY for the de-authorize all option.

  • Depreciation is not executed for last month and the period is closed. Giving Error in this Dep. Cycle.

    Hi All,
    We had a month End scenario where the depreciation for a company code is not executed for the last month and closed the period without checking it.
    While  running the Depreciation posting for this month we encounted a error that last motn period is closed. Can we do the depreciation without opening the period closed. Kindly let us know the options available.
    Regards,
    Lakshmi Narayana

    Lakshmi,
    There is no way you can post depreciation without opening the prior periods. Please discuss with your business and secure all necessarry approval, I believe the business has a process on this kind of situations. As long as it is fully documented, auditors will not find it wrong.
    This is the best time to improve your process, think of possible ways so that business will not forget to post depreciation (e.g send automatic email during 3 days before, 2 days before., 1 day before and during the day of depreciation run).
    Hope this helps.
    Thanks!
    Jhero

  • Buying Iphone and moving to another country for 10 months?

    I am going to Northern Ireland for 10 months, but I want to buy an Iphone. Should I buy one in Denmark or Ireland?
    If I buy one in N. Ireland, can I use it in Denmark when i get back? Or would it be better to bring one with me from Denmark to N. Ireland?
    Please help me!

    Factory Unlocked iPhones in the UK are only available from Apple Retail Stores in the UK and also through UK  Apple online but only if you have a credit card registered to a UK address
    I  am sure you are aware Northern Ireland is part of UK unlike Eire a separate country south of the border
    I have no idea what is available there
    The NI store is in Belfast
    http://www.apple.com/uk/retail/victoriasquare/
    No other retailers supply unlocked iPhones in the UK despite anything you may be told

Maybe you are looking for