How to roll up Amount field upto Input Criteria Posting period

Hi All,
          I have a requirement to create a FI Budget report where the User will give the Posting Period as the input criteria, and based on the entered Posting period, 2 amount fields, "Original Budget" & "Current Month" need to get derived by looking at another amount field called “actual”, by rolling up the Amounts up to the entered Posting period.
For example, the user gives input as Posting period = 06, which is December because Fiscal year starts from July here. And my Cube has an amount field "Actual" which displays amount for each posting period. Therefore when posting period = 06, then the "Actual" amount value for months July (PP = 01) through December (PP = 06) should be rolled up i.e added and displayed in the "Original Budget field". The “Current month” should only display the amount for the input criteria month.
How can I do that, any suggestions please?
Thanks!!

Hi Sam,
         Is there any way i could do it without the SAP Exit? If yes, how? If no, can u specify in the document you sent, which code i could use as reference for my requirement?
Thanks

Similar Messages

  • How to maintain the amount field format after GUI_DOWNLOAD

    Hi everyone.
    I have this problem on my object.
    The format of field ERFMG in table AUFM is 3.921,569.
    After I SELECT it INTO an internal table it becomes like this 3921.569
    I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
    However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
    How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
    The Decimal Notation in my User Profile is already set to 1.234.567,89
    Thank you in advance.

    Hi Cris,
    To get the output in the user format for the decimals, try the following code.
    data: wg_dec(7) type p decimals 2.
    data: wg_dcp type usr01-dcpfm.
    data: wg_dec_str(10) type c.
    wg_dec = '111135.67'.
    select single dcpfm from usr01
            into wg_dcp
           where bname = sy-uname.
    move wg_dec to wg_dec_str.
    if wg_dcp ne 'X'.
      replace all occurrences of '.' in wg_dec_str with ',' .
    endif .
    write:/ wg_dec, wg_dec_str.
    I dont feel there is any other option where you can change the decimals format as per the user profile.
    While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
    This code will help you to set the decimal value as '.' or ',' as per the user profile.
    Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
    Hope this proves of some help to you.
    Regards,
    Pulkit

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

  • A/R Invoice amount splited into 2 different posting periods

    Dear forum members,
    Is there a way to split an A/R invoice into 2 different posting periods?
    The Scenario example is as follows:
    My customer issues invoices on a 15 days base, i.e., every 15 days they issue an invoice to the customer, corresponding to the past 15 days;
    Now, let us suppose on 10th February they issued an invoice corresponding to the past 15 days (26/01/2012 to 9/02/2012).
    As we see this invoice covers both January and February posting periods.
    I would like to find a way to have the total amount of the invoice splited into corresponding month.
    In other words, I want the value corresponding to 26/01 to 31/01 to fall into January and the value corresponding to 01/02 to 09/02 posted to February.
    Any contribution on finding a way to handle this, will be very much appreciated.
    Thanking you in advance!
    Kind Regards,
    Victor

    Dear Victor,
    One Invoice can only have one posing date in B1. So the only solution is to split it to two invoices. You can not beat the system.
    Thanks,
    Gordon

  • How to display total amount field in PO layout

    Dear All,
    I have a query related to Purchase Order Printing.
    I copied the standard programme SAPFM06P as ZSAPFM06P. I didn't make any changes to standard program.
    I copied the standard layout MEDRUCK as ZMEDRUCK.
    I am able to display all the data of PO but I am facing problem in displaying <b>Total Amount</b> field (i.e sum of amount and tax value).
    How can we display the Total Amount in the layout without changing the Standard program. I want to make the changes only in ZMEDRUCK for this field.
    My main window details are as follows :
    MatNo MatDesc Uom Quantity rate amount <b>Total amount</b>
    Here I am not able to print Total amount(amount + tax value)
    Please help me on this .
    Thanks & Regards
    Rajvinder

    Hi Rajvinder,
    u need not be so much against changing the program.. infact it s the best way to get the desired output if its done properly...to be completely safe,wat u can do is insert a subroutine somewhere after the values have been populated in the program n then add these inside the subroutine to get the total in a different variable..in this way ur original data s intact n u can use ur new variable in the script as total..
    neways if u dont want to change ur program, then u need to keep these things in mind..
    the value of total & tax shud be available at the point of calling the perform from the sapscript so that u can pass those to a new program for addition.
    eg :
    while writing this in script
    :/ perform add in program znew using &total& &tax& changing &final&
    before this command u need to make sure that total & tax values r ther to pass to the program..
    then u can write a FORM in ur znew to add these two n pass to final..
    in sapscript u can then print &final&
    Hope it helps,
    Regards,
    Bikash

  • How to know if a field is input or display when doing a BDC

    HI everybody
    Im performing a BDC on transaction, theres a field, which is somtimes inputtable and sometimes display.
    If its inputtable, I shd insert a value in it.
    Now, how do i know if its inputtable or display?
    regards
    anjali

    Hi sia,
    1. Unfortunately, from inside the bdc program,
       we cannot detect,
       whether the field on screen,
       is in input mode or display mode.
    regards,
    amit m.

  • How to delte empty segments/fields from input XML graphical mapping

    Hi
      I would like to delete segments which don have any values in their child segments in graphocal mapping?
    How should i use createif and existsmapping functions for this?
    Edited by: Rajesh on Jun 15, 2009 8:42 PM

    I would like to delete segments which don have any values in their child segments in graphocal mapping?
    How should i use createif and existsmapping functions for this?
    If you want to check if a value if present in a particular node or not then I dont think exists function will help you....exists function will only check if the node is existing or not.....
    <SRC>
    <Node1>
    <Field1>SAP</Field1>
    </Node1>
    <Node2>
    <Field2></<Field2>
    </Node2>
    </SRC>
    If above is your structure on which you want to implement the logic..then as per your req you dont need to have the Node2 as the field(s) within it is not having any value....then you need to implement the below logic:
    Field
                             ----------> equalS ----> Not ---> If...then / createIf ----> Target
    Constant(keep it blank)
    Regards,
    Abhishek.

  • How to Call Total Amount field from t.code - PC00_M40_ANN in driver program

    Hi,
    There is a standard Transaction for Payroll Annual display - PC00_M40_ANN. From this transaction we can see the Pension Amount month wise and in Totals as well as.
    In my report, we want to call Total Amount (from T.Code PC00_M40_ANN).
    For Ref., I have design a Smartform with its driver program. In driver program i required this Value...
    Plz guide..

    Hi,
        Please check the below code ....
        Declare variables , structures .....
      call function 'CU_READ_RGDIR'
        exporting
          persnr          = pernr-pernr  <--- pass the pernr
        importing
          molga           = w_molga
        tables
          in_rgdir        = itrgdir
        exceptions
          no_record_found = 1
          others          = 2.
      if not w_molga is initial.
        call function 'CD_READ_LAST'
          exporting
            begin_date      = pn-begda
            end_date        = pn-endda
          importing
            out_seqnr       = w_seqnr
          tables
            rgdir           = itrgdir
          exceptions
            no_record_found = 1
            others          = 2.
      endif.
      if itrgdir is initial.
        continue.
      else.
        select single relid from t500l into w_relid where molga = w_molga.
        call function 'PYXX_READ_PAYROLL_RESULT'
          exporting
            clusterid                    = w_relid
            employeenumber               = pernr-pernr
            sequencenumber               = w_seqnr
            read_only_international      = 'X'
          changing
            payroll_result               = itresult
          exceptions
            illegal_isocode_or_clusterid = 1
            error_generating_import      = 2
            import_mismatch_error        = 3
            subpool_dir_full             = 4
            no_read_authority            = 5
            no_record_found              = 6
            versions_do_not_match        = 7
            error_reading_archive        = 8
            error_reading_relid          = 9
            others                       = 10.
    get all the earnings and deductions
        loop at itresult-inter-rt into wa_rt.
          case wa_rt-lgart.
            to get the net pay
            when '/560'.
              wa_pernr-npay = wa_rt-betrg.
              v_npay = wa_rt-betrg.
           endcase.
    endloop.

  • Web app: How can I make a web app input form post directly to a sub category

    Please, how can I go about this? Some of the ideas coming to my head is to  replace the section I require with the  generated webapp input form code with this:
    <input type="radio" name="CAT_Category" value="{module_category, ID} onclick="javascript: return false;" >2013 /> // Not tested because am not sure of the markup
    Am I on point ? Or is there any other way I can get this done.

    I Trickster, pardon me if am not clear enough. But this is it. I have many BC Categories setup for different web apps. If you use the module {module_categorylist} only. BC will populate all the categories on the BC site, instead of a specific category  relevant to the web app. If it is {module_categorylist, categoryID}, you are telling BC to use the the categories in a specific category.
    When you say that you want to assign a web app item to a sub-category... do you mean the built in BC categories . I want to do this via the web app input form not through the admin.
    Do you have a top-level category that contains all the relevant sub categories that the user could use to classify/categorize the web app item upon submission?  Yea I have a top category that the user could use. It is this top-level category ID, I have used with the categorylist module.
    If you don't want the user to choose the sub-category themselves, how do you plan to derive the sub-category anyway? Thanks again Trickster. You have provided the solution to that with the hidden input field code you shared earlier. The sub-category has been pre setup as usual in BC and the sub-category ID would be used as you instructed in the code. This is intended for another web app that won't require users selecting a category. This is the example you shared:
    <input type="hidden" name="CAT_Category" value="my category ID"/>
    Using my example above I was able to test and have it working (using {module_categorylist} with the SELECT element) on a web app input form and when I submitted the new web app item it was classified in the category I chose. Yes Trickster, it works for me too that way. the web app item was classified perfectly, but if you go to your the web app item submitted at the admin-end, you will discover in that the category the user selected in the front-end is not selected, even though the item was classified
    I have highlighted it here: http://screencast.com/t/dwiXzBFXp
    The option selected  by the user is not captured. It often defaults to the 2012, even when the user selected 2013 and the item has been classified as 2013.
    I hope am more clearer. Thanks for all the effort.

  • How to use a subreport field as selection criteria for the main report

    Dear All,
       I created a report with one subreport and im comparing information from both reports but i need to apply selection criteria in the main report using one of the fields in the subreport, the problem is that the subreport field doesnt appear in the select expert screen. By any chance, someone knows how make a subreport field be used by the select expert.
    Thanks,
    Martha Medrano

    Dear Dom,
       I created the subreport table called IIM (748 items) in sql in the main report as you suggested with the below code:
    SELECT "IIM"."IPROD", "IIM"."IDESC", "IIM"."IID"
    FROM   "S102F360"."BPCS405CDF"."IIM" "IIM"
    WHERE   NOT ("IIM"."IDESC" LIKE 'GEN%' OR "IIM"."IDESC" LIKE 'OBS%') AND "IIM"."IID"<>'IZ' AND "IIM"."IPROD" LIKE '3%'
    and i have another table called ITEM_MASTER (3221 items):
    SELECT "ITEM_MASTER"."ITEM_ID", "ITEM_MASTER"."DESCRIPTION"
    FROM   "WHSPRO"."dbo"."ITEM_MASTER" "ITEM_MASTER"
    ORDER BY "ITEM_MASTER"."ITEM_ID"
    and im trying to display all items in the ITEM_MASTER table that are not in the IIM file but i haven't been able to accomplish this, i am using as primary the ITEM_MASTER table with 'Inner Join' as Join Type,  and '!=" as Link Type. Do you have any ideas on how can i display the requested items.
    Thanks for your help

  • How to add standard "reason" field as search criteria for service orders?

    Hi,
    I would like to add the criteria "reason" in search tool for service orders.
    Would it be standard or woudl it need development?
    Many thanks,
    Eli

    Hi Eli,
    Please go to the web ui configuration and search reason feild is available for the config view. If it is available please move from hidden to visible. If it is not available you can add using development or AET to add that feild in the view.
    Regards,
    karthik J

  • Fiscal Year field when Setting up posting period

    Hi,
    Our client has financial year from 1st July - 30 June.  How we normally do is:
    for 1/7/2007 - 30/6/2008, Fiscal Year field = 2008 and 1/7/2008 - 30/6/2009, Fiscal Year field = 2009. etc etc.
    However, what I notice is:
    When creating new period, eg: for 1/7/2008 - 30/6/2009, SAP will default the Fiscal Year = 2008.  So, it really requires our client to be very careful and overwrites the default.
    My question is:
    (a) Does the field 'Fiscal Year' play any signigicant role in SAP?
    (b) What is your normal approach about filling in this 'Fiscal Year' field?
    (c) We also notice that when we put in 2008 as the Fiscal Year, when writing report using XL Reporter, we can never reply on the Period code.  We need to refer to the Period name instead.    It is rather confusing for some of our client.
    Any thoughts appreciated.

    Hi
    I'm not sure what impact that it has but I usually change it to be 2008 (Jul 07 to Jun 08) etc.. as this make more sense to our clients.
    Also, I change the period names to be more logical as well, like July 2007 rather than 2007/08-1. This means that on reports (like XLReporter) it makes more sense to the non-financial people receiving the reports.
    Regards
    Jenny

  • In vf01 tcode how to increase amount field decimals?

    Hi experts,
       while maintain the price for  the item in PR00  conditions   In VF01 THE AMOUNT FIELD IS TAKING ONLY 2 DECIMALS.
                 MY REQUIREMENT IS TO ENTER MORE THAN 2 DECIMALS (3).
               HOW TO INCREASE THE AMOUNT FIELD DECLMALS.
           PLS GIVE ME THE PROCEDURE.PLS HELP ME.

    Hi
    The decimals depend on the currency you're using to post the bill, I suppose you're using a currency support two decimals only
    If you want to use more than 2 decimals you need to define a new currency having all decimals you need.
    For example I've sometime defined an internal currency EUR3, just like EUR but with 3 decimals instead of 2
    Anyway this new currency is like a foreign currency so it needs to maintain the exchange rate
    Max

  • Validate/compare 2 amount fields

    Hi All,
    I am using oracle Forms 10G on windows.
    I need help on how to validate 2 amounts fields.
    I am comparing 2 amounts fields, if the amounts are equal then all is good. However, if the amounts are within 5 dollars that is fine but I would like to display a warning message to the user. And if the amounts are more than 5 dollars, then display another message and do not allow any further processing.
    Thanks for your help in advance,

    Hi,
    Assume you have a datablock named YOUR_BLOCK, and items named S1 and S2.
    You must to create an alert, it is easy, go to objet navigator palette, look for Alerts and then click Create button, give to alert a name, we named our alert CFG_ASK.
    Try this in a trigger or a button, I suggest you use when validate item trigger ...
    IF :YOUR_BLOCK.S1 IS NOT NULL AND :YOUR_BLOCK.S2 IS NOT NULL THEN
    IF :YOUR_BLOCK.S1 <> :YOUR_BLOCK.S2 THEN
         IF ABS(:YOUR_BLOCK.S1 - :YOUR_BLOCK.S2) <= 5 THEN
          ALERT_CALL('CFG_ASK','ALERT','THERE IS A LITTLE DIFFERENCE');
         ELSE           
              ALERT_CALL('CFG_ASK','ERROR','TOO MUCH DIFFERENCE!');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    END IF;
    END IF;Alert_call code (in Program Unit):
    PROCEDURE alert_call(alert_name varchar2, title_name varchar2, msg_name varchar2) IS
    AL_ID ALERT;
    AL_BUTTON NUMBER;
    BEGIN          
      AL_ID := FIND_ALERT(alert_name);
      IF ID_NULL(AL_ID) THEN
           MESSAGE('There is no alert window '||alert_name); -- you must to create an alert              
           RAISE FORM_TRIGGER_FAILURE;
      ELSE              
           Set_Alert_Property(AL_ID, TITLE, title_name);
           Set_Alert_Property(AL_ID, ALERT_MESSAGE_TEXT, msg_name);
        AL_BUTTON := SHOW_ALERT(AL_ID);          
        IF AL_BUTTON = ALERT_BUTTON1 THEN        
             NULL; 
        END IF;
      END IF;
    END;Hope it helps.
    Remember the points.

  • Amount field to be non editable at line item level in MIRO

    Hi,
    Plz let me know the steps, how to make the "Amount" field at line item level to be non editable in Invoive verification (MIRO).
    Regards,

    Create a screen variant for MIRO and make DRSEG-WRBTR filed output only.
    Program: SAPLMR1M
    Screen no : 6000

Maybe you are looking for

  • How to convert a .jar file to a .sda

    Hi, I have a login module which is created in the form of .jar file. I was deploying this login module using the Deploy tool(deploy.bat). Now I am looking for deploying my login module using the SDM, which happens to be the recommended mode with NW04

  • What about Full-text indexing and search?

    Great idea! Has ORACLE NoSQL db this feature? What about indexing/search using multiple languages simultaneously? Thank you.

  • Please provide me how change the Materil using BAPI...?

    Hi Guru's, could please provide me how change the Materil using BAPI... please provide the BPAI name and step by step process... if ou provide any program logic that would be helpfull to me... thanks in advance Srinivas....

  • Rescan USB drives or SD cards

    Hi, this is my first time posting on a forum and i'm having the following question, I often eject my USB device or SD card and after want to reuse it, the way my mac is placed it is annoying to always have to remove my drive and put put it back to re

  • Cluster ware services

    Hi gurus, I red some where like, oracle 10g r2 supports 100 services and 2 internal services. If suppose if we have 200 databases in a server that 100 services are not sufficient right. so how we can managed these 200 databases with 100 services. Ple