Skip to Content
author's profile photo Former Member
Former Member

Facing problem while making changes in Query

Hi All,

We have Query with one charge back date field in free char. and target data in ROWs .

My requirement is ..

By using the charge back date i need to derive target date as

Target date = Charge back date + 270 days .

how can i do this in the query designeed without using any customer exit variable .

Can i use formula variable and how ??

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 11:46 AM

    Hi Bilvanth, In BEx you can find a Data Function 'DATE(x)' Process Value as Date. Use a formula variable (preferably optional with Default Value: 270). Now process the FV using this Date() data function. Further, create a formula to edit your Change Back Date (Data type: 0CALDAY) with this factor for Target date result. For example, if you need to add, your DATE(270) will return date in DD.MM.YYY format as 28.09.0001. Thanks. (Edit in progress........... )

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Just a thought. Create Calculated Key Figure. In the formula editor use a Formula Variable, say ZFV_TEST. Use Processing by > Replacement Path; Use Reference Characteristic > Charg..Date Date. In Replacement Path > Replace Variable With > InfoObject, Replace With > Key. Save your variable ZFV_TEST. Goto Dimensions > Date. Formula: Target Date = DATE(Charg..Date + DATE(270)). This works iff your values are just for a few records with same date data sans aggregation. Would suggest you to use constant selection on the selection; as the values may be aggregated. If it doesn't work, you may try using a Virtual KF for each line items. Last option, you may try customer exits. You may refer this [thread |date-range-for-a-variable-from-number-of-days-ente;for your reference.

      Edited by: Arun Bala G on Oct 29, 2010 6:15 AM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.