Manual input for Date offset Buckets in Due date analysis 0FIAR_C03

Hi Experts,
I have a requirement where i need to provide a manual input selection to fill offset values of dates for due date analysis.
For example, current standard report 0FIAR_C03_Q0005 provides data with buckets of 0 days, 1-30 days, 31-60 and so on. Instead of this we need to define this bucket as manual input field and based on that the due date report should fetch the data like as if a user enters 7, 14, 21, 28 and so on till last option as 999 in 6 to eight variables provided than the report should come in buckets of 0-7, 8-14, 15-21 and so on.
How can i achieve this with BEx.
-Kushal

I'm considering you are running this report on a daily basis. Under this assumption, you may create a Key Date Varaible in BEx Query Designer. SAP BEx offers a very useful concept called Key Date. Purpose of Key Date is to execute your report as of today's date (sy-datum) based on a variable. You may create variables also on 'Key Date' & use this variable as subsequent your offsets in the row/col structure. This gives you a better leverage from ABAP side. For such bucket scenarios, your defined variable will give you option to choose input date which can be customized to choose sy-datum as the current date.
There's no necessity for user to define bucket limits for each level. As per the statements, its obvious the values are multiple of ZOFFSET (The offset provided by users). We can use a simple Customer Exit Variable. We need to first capture the value of ZOFFSET:7. Using CMOD, we can write the custom exit returning a value which gives the bucket range. Another input also must be passed to the exit program to capture 'How many lines you need to process/iterate?'. Say, you create a small formula variable to capture the # of slabs: ZSLABS.  I've just written a basic skeleton. Pls. incorporate your requirements as necessary.
CASE I_VNAM
WHEN 'XXXX'.     
     IF I_STEP=2 +(i.e.after popup!)+
          READ TABLE I_T_VAR_RANGE INTO L_S_RANGE WITH KEY VNAM='ZOFFSET'.
FOR (ZTEMP_I=0; Z_TEMP_1 <= ZSLABS; ZTEMP_I++)
     IF SYSUBRC=0
          CLEAR L_S_RANGE.
          L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).      +This is YYYYMMDD+
                    ZOFF_PREV = L_S_RANGE-LOW + 1.
          ZOFFSET = ZOFFSET * ZTEMP_I.
               IF(ZOFFSET) IS INITIAL.     
                    L_ST_RANGE-HIGH = SY-DATUM.
                    L_S_RANGE-LOW+6(2) = ZOFFSET.          +Just filter only DD from YYYYMMDD+
               ELSE     
                    L_ST_RANGE-HIGH = ZOFF_PREV.
                    L_S_RANGE-LOW+6(2) = ZOFFSET.
               ENDIF.               
          L_S_RANGE-SIGN='I'.
          L_S_RANGE-OPT ='B'.
          APPPEND L_S_RANGE TO E_T_RANGE.
END FOR +(Not sure about For loops; but you may similar logic using normal do/while loops too...)+     
ENDCASE
There may be a few errors in code. Pls. review them & let me know your comments. 
Typos regretted. Thanks!
Edited by: Arun Bala G on Oct 16, 2010 12:44 AM

Similar Messages

  • Baseline date not driving the due date

    My client is currently implementing ECC 6.
    In my past project, I had always thought that the baseline date drives the due date of a vendor invoice for example. But in transaction FB60, when i put in my baseline date, the due date gets calcualted using the payment terms. Is this correct? My client would like the baseline date to drive the due date for paying invoices. How can I correct this please?
    Thanks for your help.

    Hi,
    Yes, it is possible to overwrite the baseline date while making the posting in FB60. However, the payment terms is also taken into account for calculating due date. For example if payment terms id P30 - net due 30 days, the due date will be 30 days from baseline date.
    If baseline date is May 29th 2007, due date will be Jun 27th 2007
    If baseline date is changed to May 31st 2007, due date will change to Jun 30th 2007.
    Probably, you would like to increase or decrease the credit period days, which can done by changing the payment terms.
    Thanks
    Murali.

  • Custom Prompts with manual input for filtering

    Hi,
    In Bex I need a user prompt which can accept only 1 of 3 possible manual input values:
       Flash
       Actual
       blank
    If the input value is Flash, then filter Version = 'ZFL'
    If the input value is Actual, then filter Version =  '#'
    If the input value is blank, then filter Version = 'XYZ'   (goal here is to filter out all values)
    Can this be done via Replacement Path processing, or should it be via CMOD assuming that's possible?
    Thanks in advance!

    Hi ,
    If  Flash ,Actual ,blank are one info  object values
    then create a charecterstic variable with user entry default with Single value then automatically it takes only one value.after this restrict flash with ZFL,version with # & blank withXYZ.
    If  Flash ,Actual ,blank are not one info  object values u will go for customer exit.
    Hope this helps.
    Thanks,
    sai.

  • Exit or Enhancement for TCode FB02 to manipulate Due Date

    Hi,
    We would like to change the value on the due date field based on some custom logic in TCode FB02 on the item detail screen (program SAPMF05L screen no 304, SAP version 4.7). Is there any user exit or BADI for this?
    We have tried various user exits but nothing seems to work. We found one BADI, which we thought would work, ADJUST_NET_DAYS, but this is marked for internal use (SAP use) only.
    Please help.
    Thanks.
    John

    Hi Friend,
    Exits,
    F050S001  FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002  FIDCC1: Change IDoc/do not send
    F050S003  FIDCC2: Change IDoc/do not send
    F050S004  FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not sen
    F050S005  FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006  FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007  FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001  Balance Sheet Adjustment
    FARC0002  Additional Checks for Archiving MM Vendor Master Data
    FEDI0001  Function Exits for EDI in FI
    RFAVIS01  Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00  Line item display: Checking of selection conditions
    RFKORIEX  Automatic correspondence
    SAPLF051  Workflow for FI (pre-capture, release for payment)
    Badi's,
    AC_QUANTITY_GET
    AC_QUANTITY_GET
    BADI_ENJ_ALT_ADR
    BADI_ENJ_ALT_ADR
    BADI_F040_SCREEN_600
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    BADI_FDCB_SUBBAS03
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    BADI_MIRO_SPLT_ADD
    BADI_PRKNG_NO_UPDATE
    BADI_TAX1_XTXIT_SET
    F050S008
    FBAS_CIN_LTAX1F02
    FBAS_CIN_MF05AFA0
    FI_AUTHORITY_ITEM
    FI_DOC_DISP_LI
    FI_GET_INV_PYMT_AMT
    FI_HEADER_SUB_1300
    FI_PAYREF_BADI_010
    FI_TRANS_DATE_DERIVE
    INVOIC_FI_INBOUND
    RFESR000_BADI_001
    Enhancement Spot
    AC_QUANTITY_GET                Transfer of Quantities to Accounting - Customer Exit
    BADI_ENJ_ALT_ADR               Go to alternative vendor/customer data
    BADI_TAX1_XTXIT_SET
    FI_DOC_DISP_LI                 Diversion to Document Items (FB03)
    Thanks,
    santhosh
    Edited by: santhosh kumar on Dec 23, 2010 8:02 AM

  • Table name for the field FAEDT(net due date)

    hi every body,
    plz can any body tell me the table name for the field net due date(FAEDT).
    its very very urgent
    thanq.

    Hi mark chalfen,
    thanq very much ur reply.
    actually my client want to change the payment term for all the vendor invoices.so wt we did is... we created aprogram to change the old payment term to new payment term in the vendor line items(fbl1n).
    when we run the program its changing the payment term and the base line date and the NO of days in the vendor linitems.but it not changing the net due date based on the new baseline date.
    i think with out changing the net due date only changing the payment term is use less.coz the item again show as due in the same date.
    so how can we change the net due date based on the new baseline date.?from which table we can take the field FAED and update with the new date.
    plz advise me?
    thanq.

  • Different discount date from that of due date without using payment terms

    Hi,
    We would like have separate discount due date from due date without using payment terms for each invoice.
    We wants to modify ERDK-FAEDS but unable to find suitable event/exit for the same.
    So can anyone suggest any event where this can possibly be achived.
    Regards,
    Paresh

    Hi,
    We are using continuous days for working out due date from document date.
    But for discount due date business sought to provide only working days (say 7 days) from document date.
    So as to satisfy this requirement, I had adopted event R436 where system intially takes values provided but somehow it gets cleared in below lines. So I am unable to find a workaround to resolve this issue.
    PERFORM get_user_exit_function USING 'R436'.
      LOOP AT t_fbstab WHERE funcc <> 'ISU_SAMPLE_R436'.
        tmp_erdk = p_iiu-print_doc-erdk.
        tmp_erdz[] = p_iiu-print_doc-t_erdz[].
        CALL FUNCTION t_fbstab-funcc
          EXPORTING
            x_invoice_param    = p_param
            x_invoice_unit     = p_iiu
          TABLES
            xy_printdoc_lines  = tmp_erdz
            y_new_bill_lines   = tmp_new_bill_lines
          CHANGING
            xy_printdoc_header = tmp_erdk
          EXCEPTIONS
            error_message      = 1.
    Regards,
    Paresh

  • Due date analysis  for open  items

    Hello All,
    I have to do the following things..can anyone of you help me .....to say is this possible and yes then may be just overview of how could i do this....
    i have been asked to go to transaction S_ALR_87012168...then the report will come ..in that enter say company code..and execute...
    when we will execute my job starts from here ..i have been asked to add one attribute WBS_ELEMENT  to the left navigation..(add one in addition of the entry you see like compnay code ,customer,......)....
    and when i click on the WBS_ELEMENT it should show dues on the riigh as you can see ....
    please help.

    There is not only one type of Open Items reports. For all marketing documents, the Due Dates are readily available.  If you want to combine all Due Dates into one, what is the meaning of this due date then?
    Thanks,
    Gordon

  • Due date for BoEx is not picked up by payment programme RFFOF_V??

    Hi!
    I would be most grateful for your help/advise on my problem;
    I have a French customer for which I have set up BoEx with payment method 4 -LCR non accepté with payment programme RFFOF_V, as it is compliant with the bank's file specification "AFB-CONFB pour le virement et prelevement par fichiers".
    File is generated according to bank file specification (and accepted by bank), but I am having problems with the due date of BoEx since it is not picked up by payment programme when running trx F110. Instead issue date is picked up by file.
    What do I need to do/change in order for file to pick up BoEx due date instead of issue date?
    It should be possible to run F110 and group items so that file picks up information on due date instead of issue date so that bank does not withdraw money from customer bank account before BoEx due date..or??
    At least it was possible for payment method 2 LCR magnétique and payment method 4 does not seem that different.
    Ex.
    Trx: F110
    Posting date: 2014.04.08
    Docs entered up to: 2014.04.08
    Customer items due by: 2014.04.30
    Pmt method:4
    Next pmt: 20140501
    B.ex/pmt request > Issue date=2014.04.08
    B.ex/pmt request>Items Due by=2014.04.30
    B.ex/pmt request>Incoming pmt due by=2014.04.30
    Config settings for paying company code:
    Bill/exch pymt: X
    One bill of exch. per due date period: X
    Latest due date in: 90 days
    Bill on demand for due date up until:- (blank)
    Payment method 4: Create BoEX before due date.
    Any information that could help me resolve my problem is highly appreciated.
    Kind regards
    Linda

    Dear Ramana,
    I am really thank to you for your kind answer.
    With your guidence, i could able to solve this problem, but i would ask you one question.
    Why this sales order is not updated in VEPVG table? Does the data in  this table will archieve after some time. if yes what is that particular time.
    Onemore thing, my understanding on delivery due list VL10C, that system will not pick those sales order for which the delivery date is older than one month. i,e if the sales order in created in the month of september and has the delivery date as 29.08.2010 then system will not pick up this sales order.
    Please correct me if my understanding is wrong.
    Once again i am really thank you for your great help.
    Warm Regards,
    Sridhar Burugula

  • How to make a single payment for different open  items with same due date

    Hi,
    I have created a payment method  and selected "Payment per due day " option in payment method company code settings.
    Even I have selected that option, Payment will not happen grouping for the items with same due date
    for ex : I have two open items with one due date and another open item with another due date so when I am trying performing F110 system should make a single payment for the item with same due date and seperate payment for another item.
    But system making single payment for all items
    Could you please suggest anything how to make a seperate payment with due date.
    Regards
    VK GUPTA

    Hi,
    Please check Vendor Master data: FK02 ->company code data -> Payment transaction accounting: unflag 'individual payment'.
    Make a test and let me know if it's okay.
    regards

  • Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow

    Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
    I need to set it today because there are tasks that is needed to be completed on the same day.
    Is there a way without modifying the page/form. like a configuration or something?
    ----------------------- Sharepoint Newbie

    Hi ,
    As Ajeet said,  for implement your requirement, you can change the data validation on the Due data field.
    You can do as the following :
    Open the site with SharePoint Designer 2010
    Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
    On the Forms section, click ‘ReviewApproval_***.xsn’
    Then you can find Due Data for All Tasks, and change the validation
    In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Invoice-wie Due Date List for Vendors

    Hi,
    Please inform me, if there is an report for vendor informing exact the Due Date for each Invoice Drawn for that Vendor
    Regards
    Ashwin

    Use Transaction Code FBL1N & EXECUTE,  then  you go for
    change layout button,
    select "Net due date" field & activate(means get the field  from right side to left side).
    System will give the due date each invoice wise.
    chandra

  • Fixed day limit to calculate Due date for payments

    Dear Gurus,
    My Management wants to regulate its cash flows and want to use terms of payment in such a way that customer invoicing should be due on whole month evenly
    Proposed payment plan is that
    if invoices are created with 01 to 15th of the month, term of payment should be 40 days due net
    if invoices are created with 16 to 25th of the month, term of payment should be 30 days due net
    if invoices are created with 26 to 30th of the month, term of payment should be 25 days due net
    so according to above scenario, plan should be
    Invoice date     Payment terms     payment due date
    9/1/2011     40     10/11/2011
    9/15/2011     40     10/25/2011
    9/16/2011     30     10/16/2011
    9/25/2011     30     10/25/2011
    9/26/2011     25     10/21/2011
    9/30/2011     25     10/25/2011
    Requirement,
    Please advice how to cater it through OBB8 or should we have to look towards ABAP solution
    BR
    Sajida

    Hi
    Create the payment terms like
    1)
    Payment Terms           Z01
    Day Limet                    15
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          40
    2)
    Payment Terms           Z01
    Day Limet                    25
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          30
    3)
    Payment Terms           Z01
    Day Limet                    30
    In Payment Terms TAB
    Term      Percentage            No,of.days
    1             0.00                          25
    This will resolve your issue,we can create multiple levels with same payment term with different day limit
    Thanks
    Kameshwar Rao

  • Alert for change in due date on sales order

    Hi,
    I would like the system to create an alert when ever a user changes the due date on an existing sales order. The alert should only be triggered once when the change takes place.
    Please help
    Kind Regards
    Grant

    Grant,
    You could use the Query below 
    SELECT DISTINCT T1.DocNum AS 'Document Number', T1.CardCode, T1.CardName, T0.DocDueDate [Old Due Date], T1.DocDueDate [New Due Date] FROM  [dbo].[ADOC] T0  INNER JOIN  [dbo].[ORDR] T1 ON T0.DOCNUM = T1.DOCNUM WHERE T0.ObjType = N'17'   AND  T0.DocNum = 400000
    AND T1.DOCDUEDATE <> T0.DOCDUEDATE
    NOTE: The number of times the Alert appear cannot be controlled through a Query, it is a setting in the Alerts windows. 
    Suda

  • How to generate 3 payment due dates& 3 posting against single invoice?

    Hello Experts,
    Kindly provides some inputs on below requirement.
    For example :- In the Utility Bill,
    Consumption months: June, July, August
    Meter Reading taken in August
    Billing Months: September, October, November
    Bill generated in August
    Consumer receives the bill on September month
    Payment Due dates: 12 Sep 2009, 12 Oct 2009 and 12 Nov 2009
    Issues-:
    1.How to generate three posting against single invoice?
    2.How to generate three payment due dates for above postings in three consecutive months since payment due date logic is incremental in nature here, e.g.
    1st due date = posting date + 15 days
    2nd due date = 1st due date + 30 days
    3rd due date = 2nd due date + 30 days
    Requirement description:-
    The utility generates bill quarterly for domestic consumers. For such consumers, the utility takes reading from the consumers premises after end of consumption period (quarterly ) and generates bill on the 1st billing month (here 1st billing month is September).
    In the bill the utility divides total consumption into three parts (considering each part for each consumption month) and calculates all charge heads separately on each part. It however, consolidates and generates a single bill having three rows, each row showing charge heads of each consumption month and also net and gross amount to be given for each consumption month.
    Moreover, three postings have to be generated in FICA against that single bill. Also, it provides three due dates to the consumer, each date falling in each billing month, to pay the above three net amounts respectively. Dunning and other activities should be triggered if the consumer fails to pay the stipulated amount by corresponding due date.
    Looking forward for valuable suggestions
    Thanks in advance
    Regards,
    Vaseem
    Moderator note - question reposted - OP notified of violation Issue on quarterly bill
    Edited by: William Eastman on Jun 3, 2010 3:25 PM
    Edited by: William Eastman on Jun 3, 2010 5:01 PM

    Hello Experts,
    Kindly provides some inputs on below requirement.
    For example :- In the Utility Bill,
    Consumption months: June, July, August
    Meter Reading taken in August
    Billing Months: September, October, November
    Bill generated in August
    Consumer receives the bill on September month
    Payment Due dates: 12 Sep 2009, 12 Oct 2009 and 12 Nov 2009
    Issues-:
    1.How to generate three posting against single invoice?
    2.How to generate three payment due dates for above postings in three consecutive months since payment due date logic is incremental in nature here, e.g.
    1st due date = posting date + 15 days
    2nd due date = 1st due date + 30 days
    3rd due date = 2nd due date + 30 days
    Requirement description:-
    The utility generates bill quarterly for domestic consumers. For such consumers, the utility takes reading from the consumers premises after end of consumption period (quarterly ) and generates bill on the 1st billing month (here 1st billing month is September).
    In the bill the utility divides total consumption into three parts (considering each part for each consumption month) and calculates all charge heads separately on each part. It however, consolidates and generates a single bill having three rows, each row showing charge heads of each consumption month and also net and gross amount to be given for each consumption month.
    Moreover, three postings have to be generated in FICA against that single bill. Also, it provides three due dates to the consumer, each date falling in each billing month, to pay the above three net amounts respectively. Dunning and other activities should be triggered if the consumer fails to pay the stipulated amount by corresponding due date.
    Looking forward for valuable suggestions
    Thanks in advance
    Regards,
    Vaseem
    Moderator note - question reposted - OP notified of violation Issue on quarterly bill
    Edited by: William Eastman on Jun 3, 2010 3:25 PM
    Edited by: William Eastman on Jun 3, 2010 5:01 PM

  • Due Date on Reconciliation printout

    Dear All,
    In the Automatic Reconciliation - General/Manual - for a GL Account - Internal there is a field called Due Date, which displays the Due Date from the Journal Entry.
    We have a client who prints out this screen before doing the reconciliation using the system layout (Unreconciled Transactions (System)) but for one user on the layout the Due Date field is left blank. It only happens for one user, for all the other users (who use the same layout) it works fine.
    Does anyone have any idea why could it happen?
    Thanks and regards,
    Nat

    Hi Suda,
    We figured out that the Due Date field is only filled when doing an external reconciliation but as it uses the same layout as the internal one, for the internal this field is left blank when printing.
    But if we run an external first and then an internal one, the layout for the internal will display the Due Date which was set up for the external previously - so I assume it is a bug.
    Thanks again for your help!
    Regards,
    Nat

Maybe you are looking for

  • HP Laserjet Pro Scan not correct

    Since a few days the scans are not scanning properly using the flatbed anymore. If I have a selection box over something that I want to scan, the result is shifted a bit. A part of the right side is cut off and shown on the left in the scanned image.

  • Where is open links in new tab option as I dont want to right click?

    I am using kubuntu 12.04 Fire fox 20. I want to open links in a new tab without right clicking I used to be able to this why can't I now?

  • JTextArea:  How do I force a JTextArea to refresh?

    Hi All, I have a JTextArea that I append data do when I'm in a while loop. The JTextArea displays the text after the loop has finished, not as data is appended to it during the while loop. How can I force the JTextArea to refresh immediately after te

  • Clean Install mavericks? CC question

    Hi, I know how to clean install mavericks on my mac as that's very simple but: I know I should deactivate Creative Cloud on this machine first, But it's not deactivated on my time machine backups so: When I reinstall from my time machine backup all m

  • HT4859 Problem loading my info on a different iPhone

    I bought the new iPhone 5 and handed down my old iPhone 4S to my son.  We can not get the 4S to restore my sons info.  I keep getting a warning that says, "There was a problem connecting to the server.  The apple store said that the problem was my so