Need to create a filter concatenating 3 functions

Hi All ,
I need to create a filter like for a below column which has value like :
2013 Week08
I have created an expression
Concat(Concat(Char(39),CONCAT(CONCAT(Cast(Year(Now()) AS Char), ' Week'), Case when Week_Of_Year(Now())-1 in (1,2,3,4,5,6,7,8,9) then
CONCAT('0',Cast(Week_Of_Year(Now())-1 as Char)) else Cast(Week_Of_Year(Now())-1 as Char) end)),char(39))
it gives me the value
'2013 Week08'
but when i try to create a filter with the same expression i am not getting any value rather its telling no data found when i run with hardcoded one of '2013 Week08' it gives me data.
Kindly help me with the same.
Regards ,
Nidhi

You are getting value as below, you might need to take out the quotes and the space at the end.
'2013 Week08 '
To narrow down to the issue use that exp as one of column expression instead of filter, that would tell you where its going wrong.
If helps mark as correct
Try this
CONCAT(Cast(Year(Now()) AS Char), 'Week') ||Case when Week_Of_Year(Now())-1 in (1,2,3,4,5,6,7,8,9) then CONCAT('0',Cast(Week_Of_Year(Now())-1 as Char)) else Cast(Week_Of_Year(Now())-1 as Char) end
Edited by: Srini VEERAVALLI on Feb 26, 2013 2:14 PM

Similar Messages

  • Need to create a filter in BADI

    Hello Experts,
    Iu2019ve a requirement and according to it I need to Create a filter BUKRS in the BADI definition which makes the BADI call acceptable only when Company Code is XXXX and XXXX.
    Can somebody tell me which BADI I should use?
    Thanks,

    Hello.
    If it is a custom BADI please check the box available in BADI definition (SE18) attributes.
    Step1 - Check the check box Filter in BADI attributes. So that I will enables the filter field and there you need to choose BUKRS.
    Step2 - By doing step1 system adds one more parameter flt_XX to all the methods available in BADI definition.
    Now you need to pass this variable when you are calling the proxy call in the actual application.
    If it is standard BADI you need to check the filter dependent BADIs so that you can impliment them for specific Countries.
    All the best. Let me know if you need any more help.
    - Mohan.

  • Help needed to create a filter

    Experts,
    I would like to create a filter to return data corresponding to the last month of the year or the month for which the latest data is available. For example, If the end user selects 2012 from the year prompt (we have a PV associated to it), then it has to show the Aug 2012 (Data till Aug '12 is available in the DB). On the other hand if he/she selects 2011, 2010 or prior, then it has the return Dec month data of the respective year
    Filter needs to be created on the PERIOD.MONTH attribute which has values like this Jan 2010, Feb 2010....... Jul 2012, Aug 2012
    I am using obiee 10g
    Any help is appreciated
    Edited by: sarvan on Sep 22, 2012 7:17 PM

    Thanks for the response, but it did't work as expected. I have provided the other Time dimensional attributes in my DB.
    Period          Year      Month ID
    Oct 2010 2010 10
    Nov 2010 2010 11
    Dec 2010 2010 12
    Jan 2011 2011 01
    Feb 2011 2011 02
    Nov 2011 2011 11
    Dec 2011 2011 12
    Jan 2012 2012 01
    Jul 2012 2012 07
    Aug 2012 2012 08
    I need to write a filter expression that will return the latest/last period (Column 1) for that year. In my example,
    For 2010 -> Dec 2010
    2011 -> Dec 2011
    2012 -> Aug 2012
    I hope with the max(month ID) for that year we can retrieve it, but I am not finding the right direction
    Edited by: sarvan on Sep 22, 2012 7:31 PM

  • Need to create filter in reports

    hi ,
    i need to create a filter on my report .
    the filter for field contract end date.
    for exammple - the object which i need to create the filters (HDREN_DT -
      Remove records with value < System Date
    ) this is the logic so what i need to do i want to go for customer exit or what
    need to create 2 CKF
    Earliest Doc Header End Date     Calculated KF     Min (HDREN_DT)
    Oldest Doc Header End Date     Calcualted KF     Max (HDREN_DT)
    Can anyone give some idea how can i go with this one.
    i choosen a formula variable with replacement path for the both the fields. whether this option is right or wrong.
    please help me in this one
    Regards ,
    vijju

    Hi,
    You have correctly identified.
    To achieve the filter on HDREN_DT, you can declare an exit variable & write the code behind. But here I'd suggest implementing logic like Date greater than or equal to System date (instead of removing dates less than System date as it will improve the querying.
    For the 2 CKFs, you can try the formula variable concept.
    --Akash

  • How can I create a filter that automatically copies sent items to other folder than "sent" folder?

    I tried to create filter which automatically copies sent to different recipients messages to other folder than "sent". I tried many times with different setting but it doesn't work. With inbox messages it works fine.
    Thank you

    If you want to 'reply' to an email, but you want the sent reply to auto appear in the same folder of the message you are replying to.
    Tools > Account Settings > Copies & folders for the mail account
    There is a checkbox to select: 'Place replies on the folder of the message being replied to'
    then click on OK to save changes.
    If you want all sent emails not just replies to got to different fodlers based on who you sent the email to, then you would need to create a filter which when manually run moves selected emails to specific folders.
    So let the sent emails get auto stored in Sent folder.
    Tools > Message Filter
    click on New
    give filter suitable name
    Apply filter when: manually run
    select 'match all of the following'
    To is email address
    Perform these actions
    Move message to and select the folder.
    Do not enable.
    When you need to run this filter,
    open Message filter.
    enable only the filters you require
    Run selected filters on: Sent folder on the mail account
    click on 'run now'
    Best used when you have several sent emails which you need moving.
    Not exactly what you are looking for, but works if organising loads of sent emails.

  • How to Create a new Number Range Function in R3

    Hi,
    I need to create a new number range function in R3 and i have to call this function to get the new material number incremented by 1. Can any one please let me know the transaction code to create the number range function? Please also tell me how to call this number range function in ABAP pogram? Thanks for your help  in advance.
    Thanks and Regards,
    Kannan

    Hi,
    Go to snro
    create an object say zabc
    specify short text and long text and
    number length domain say num10
    then click number range interval at the top and specify starting and ending number.The number you want
    for ex
    from number 5700000000
    to number   6799999999
    make sure i should be no of digits in specify in previous .
    Then you use this object i.e zabc where ever you want
    for ex
       call function 'NUMBER_GET_NEXT'
                  exporting
                  nr_range_nr                   = '01'
                  object                        = <b>'ZABC'</b>
                  quantity                      = '1'
           SUBOBJECT                     = ' '
           TOYEAR                        = '0000'
           IGNORE_BUFFER                 = ' '
             importing
             number                        = number
           QUANTITY                      =
           RETURNCODE                    =
             exceptions
               interval_not_found          = 1
               number_range_not_intern     = 2
               object_not_found            = 3
               quantity_is_0               = 4
               quantity_is_not_1           = 5
               interval_overflow           = 6
               others                      = 7

  • How to create a new request for function group?

    Hi Friends,
    My client has changed their development server. Now all the objects in old DEV server are transfered to new one. Except for function group objects, we have created new change request number for all others. Now I need to create a new request for function group objects. Can anyone suggest which transaction code I have to use for this purpose?
    Thanks,
    Kaarthick.V

    Hi Karthick,
    If you want to Change the request for your FG means,
    1. Go to SE80 ->  work bench ->  Edit object.
    Here you have the option two change the request.
    or If you want to create the Function Group means,
    Go to SE80 -> Select Function Group -> Enter name -> press Enter
    Thanks,
    Reward If Helpful.

  • Create a generic extractor using Function module,  what steps must I follow

    Hello gurus team
    I need to Create a generic extractor using Function module,  what steps must I follow?
    Just I have a function module not estructures or something, only the program.... and I have intented to do it in rso2 using the fm option, but give an error... somebody can helpme???
    BR

    Hi,
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm
    Thanks,
    JituK

  • Is it possible to create a filter function in Muse?

    I was wondering how to create a filter function in Adobe muse. I need this for a website that rents B&B´s, Agriturismo and some other stuff. I would like to have this filter where people have search options.
    Michiel

    Hi Hans,
    I mean a filter for searching in your website. I give you a website and you see what I mean. I think i have to make a database for this to work.
    www.vivere-e-gustare.com. Here you find on the left top a search engine to fill in your wishes about what you are looking for. I hope I made myself clear.
    Thank you
    Verzonden met Windows Mail
    Van: hans-g.
    Verzonden: donderdag 29 mei 2014 10:08
    Aan: michiel brouwer
    Is it possible to create a filter function in Muse?
    created by hans-g. in Help with using Adobe Muse CC - View the full discussion 
    Hello,
    in which area "people" should have search options? About your whole website, in a menu or, or ...
    To be not left empty-handed  here some links:
    http://helpx.adobe.com/muse/tutorials/building-your-first-website-part-7.html  >>> how to filter the items in the menu list ...
    http://helpx.adobe.com/muse/tutorials/creating-mobile-layout-designs-muse-2.html  >>> Adding links with the Links menu
    Hans-Günter
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6417713#6417713
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • Need to create a TASKS page with a filter default in PWA Project Server 2013 (Online)

    Never done this so, I am wondering How to go about or what I would need to create a simple PWA page like "Tasks" in Project Server 2013 online where it default to a filter that is set to not equal to the user that is logged on?
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    The "my tasks" page or "my timesheet" are automatically filtered on the user currently connected. Unless you are using workarounds such as status manager or delegation, I see no way to bypass this.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Need to create a validation Function Module

    Hi,
    I need to create a Validation Function Module.
    I have a ITAB into which data comes.
    FIELD-SYMBOLS : <ITAB> TYPE ANY ,
                                  key      TYPE ANY,
                                  char  TYPE ANY.
    <ITAB> = local_file.
    there is a field KEY whose sum when becomes equal to 10.000 for every CHAR,system should show a popup in the below FM
    CALL FUNCTION 'POPUP_WITH_WARNING_ALV'
      EXPORTING
        TEXTLINE1       = LT_POPUPTEXT
      TEXTLINE2       = ' '
      TITEL           = 'Warnung'
    Please let me know if the requirement is not clear.
    Thank U very Much.

    Hi annapurna ,
    In your case even the KEY value is the most useful one right,
    If so go about this way,
    have another field flag set it when the sum of the KEY values exceeds 10.
    Loop in an internla table.
    Now the internal table will have all the data including the flag and now based on the flag (whether set or not) call the function module popup which should retrieve those matnr field where flag is set.
    Display the error message saying that the KEY value fr this matnr exceeds 10.
    Revert for further clarification.
    Thanks and Regards
    Srikanth.P

  • Need to create pdf using adobe live cycle designer using function module

    Hi,
    Needed some help regarding creating a pdf at the backend. I will have function module in the backend which contains all my data and also an image represented as a Base64 encoded string.
    What i need to do is pass this data onto adobe live cycle designer fromthe function module and create a pdf at a particular location. Please let me know how can we achieve this. if there is any function module to do the same. how does the function module i have defined call the adobe live cycle designer transaction or module to create a pdf. i am not an abaper so dont have much idea about the details.
    Thanks.
    Regards
    Srikumar V

    Hi,
         I will try to find the standard function module. If there is no such standard function module, then we need to create a custom function module.
    Check this link:
    [https://www.sdn.sap.com/irj/sdn/adobe]
    Points that you can note:
    1) Adobe Interactive forms can be created & connected to SAP database using ABAP Workbench, through WebDynpro.
    2) Also adobe Interactive forms can be created & connected to SAP database using Transaction SFP.
    3) And for both of the above 'Adobe Live cycle Designer' should be installed on the front end.

  • Privilege need to create functional index

    Greeting gurus?
    What privilege I needed for create functional index
    I am writing a definer righted procedure to create index however when creating functional index, it gives me ora-0131 insufficent but unique, bitmap and reverse index works
    and I granted create any index and create any indextype already. what else is missing ?

    CREATE INDEX
    To create a function-based index, in addition to the prerequisites for creating a conventional index, if the index is based on user-defined functions, then those functions must be marked DETERMINISTIC. Also, you must have the EXECUTE object privilege on any user-defined function(s) used in the function-based index if those functions are owned by another user.

  • Need to creat filter to the BADI

    Hi All,
    We are trying to create one implementation to the BADI DPR_CONTROLPLAN,as this BADI is filter dependent so at the time of saving its prompting for Filter.
    I have given one filter to the define filter section, but I am not able to understand how I can use the filter to my program.
    And I am not sure what filter I have given is the right one because I have not defined the data element and domain to the filter.
    Can any one please suggest me how I can create the filter for my implementatin and use it??
    Thanks in advance.
    Reagrds,
    Sandy.

    Thanks Sesh.
    In order to use the filter to the implemenation, do I need to create any variable of the type FLT_VAL  and add to the DEFINED FILTER SECTION??
    Regards,
    Sandy.

Maybe you are looking for