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.

Similar Messages

  • 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

  • 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.

  • 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.

  • Problem in creating new implementation for filter dependent badi

    Hi Experts,
       I want to use badi NOTIF_EVENT_POST.It is a filter dependent badi. It is asking filter type while implementing thro se19. Could anyone pls tel me how to create new implementation for the filter dependent badi. Existing filter type is QMART. is there any problem if i change the filter type?
    Thanks in Advance!

    Hi ,
    NOTIF_EVENT_POST is filter dependent and filter values are based on QMART value in table TQ80. You need to specify the filter value ie : QMART value before implimentation , before that check all active implimentations for the same , if u have to impliment on same filter value , you need to deactivate the one which is implimented on same filter value .
    You are not supposed to change the filter type.
    Regards,
    Vamsi
    Edited by: CH. VAMSHI on Sep 29, 2009 11:58 AM

  • 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 |

  • How to create an entry in Badi Filter table T77HAP_FLT_PRP

    How to create an entry in Badi Filter table T77HAP_FLT_PRP

    Hello Rahul,
    Filter types should be created on badi implementations ( in transaction se19 )
    Read my answer on this thread :
    Re: BADI:Filter type un editable
    I hope it helps.
    Bulent

  • Need to Create a Date for Use in Filter

    I need to set a filter to the effect of Modified Date >= [CURRENT_YEAR] || '02-01' and can't seem to get the filter right to allow me to concat/insert the year to the '02-01' to just get MM/DD/YYYY = 02/01/[Current Year]. It keeps throwing SQL errors.
    Here is the text I used to get the string but I can't seem to get this into an actual date format. I've tried doing CAST as DATE and doing a DATE 'YYYY-MM-DD' format as well.
    CAST(VALUEOF(NQ_SESSION.CURRENT_YEAR) AS CHAR)) || '-02-01'

    Ok. I finally found something that will work no matter what month we are talking about. The goal was to find the first day of the prior month so I always look for the two months activities.
    So if current date is 06/08/2010 then I wanted all activities >= 05/01/2010. If the date were 01/12/2010 then I would want 12/01/2010 as my date to filter etc. It is the rollover that messes up most of the date logic when using date parts as filters.
    Here is what I came up with and it works great. You basically subtract a month from today's date and then subtract the number of days (minus one) to get back the first of the prior month.
    TIMESTAMPADD(SQL_TSI_DAY,
    ((DAY(TIMESTAMPADD(SQL_TSI_MONTH,-1,VALUEOF(NQ_SESSION.CURRENT_DT))) -1) * -1)
    TIMESTAMPADD(SQL_TSI_MONTH,-1,VALUEOF(NQ_SESSION.CURRENT_DT)) )

  • Creating query filter from a created variable

    Hi,
    On my report, I am using two of my measures to derive a text message in a third column, which is a list of exceptions, so it is a finite list, which will be displayed on the screen.
    I want to create a filter in the query that allows me to filter the results for the third column, allowing me to select a list of values of what I want. Is this possible?
    The closest I've gotten is a report filter (which is not at the query level) and even then, the list of finite values has not populated automatically, I need to type the values that I want in the report. This is not optimal, as other users of the system will not have any knowledge of what possible values there are, so I need it to display the different possible variable values to filter on as a list, rather than free standing text.
    Can anyone help me with my problem? Thanks

    John responded to our hiring ad, but didn’t give us everything we asked for, he only gave us our keywords, & he seemed so sincere saying they were down to earth, great at customer service, etc., so I sincerely told him it’s too bad he didn’t give us all we asked for. I wasn’t being sarcastic, I was simple stating my disappointment.
    http://reviewsoffreelancers.com/2008/04/30/graphic-web-designer-john-zagurasky/

  • Filter Dependent BADI - All Country codes to be included

    Hi,
    I am using a BADI 'CMS_RE_LR_DIALOG' which has a filter type 'CMS_RE_DTE_LR_ID'.
    This BADI is used in conjunction with a screen field that can take as inputs the 'country codes'. However currently this BADI has only one implementation for the country code 'DE' (Germany) and this is a SAP implementation and should not be modified. The requirement is that I need to include all the country codes in this BADI so that the associated transaction is executed for all country codes.
    Could anyone brief me how this could be done? One procedure would be to create an impl each for every country code, however this is not a feasible solution. Is there any other way in which we can pass all values in a structure to the filter type? I tried using the data element LAND1 for this purpose, but not getting the required output with it.
    Kindly pitch in your inputs as to how this could be implemented.

    filter is implemented in se18 in badi definition.
    certain times u may require to implement certain checks based on country so u can specify the country element as key and implementa filter dependant badi.
    кu03B1ятu03B9к
    Edited by: kartik tarla on Feb 15, 2009 12:46 PM

  • Need To Create a table in Sql Server and do some culculation into the table from Oracle and Sql

    Hello All,
    I'm moving a data from Oracle to Sql Server with ETL (80 tables with data) and i want to track the number of records that i moving on the daily basis , so i need to create a table in SQL Server, wilth 4 columns , Table name, OracleRowsCount, SqlRowCount,
    and Diff(OracleRowsCount - SqlRowCount) that will tell me the each table how many rows i have in Oracle, how many rows i have in SQL after ETL load, and different between them, something like that:
    Table Name  OracleRowsCount   SqlRowCount  Diff
    Customer                150                 150            
    0
    Sales                      2000                1998          
    2
    Devisions                 5                       5             
    0
    (I can add alot of SQL Tasks and variables per each table but it not seems logicly to do that, i tryid to find a way to deal with that in vb but i didn't find)
    What the simplest way to do it ?
    Thank you
    Best Regards
    Daniel

    Hi Daniel,
    According to your description, what you want is an indicator to show whether all the rows are inserted to the destination table. To achieve your goal, you can add a Row Count Transformation following the OLE DB Destination, and redirect bad rows to the Row
    Count Transformation. This way, we can get the count of the bad rows without redirecting these rows. Since the row count value is stored in a variable, we can create another string type variable to retrieve the row count value from the variable used by the
    Row Count Transformation, and then use a Send Mail Task to send the row count value in an email message body. You can also insert the row count value to the SQL Server table through Execute SQL Task. Then, you can check whether bad rows were generated in the
    package by querying this table.  
    Regards,
    Mike Yin
    TechNet Community Support

  • How to create a filter based on Effective date EFFDT

    Hello to all,
    I am currently creating reports from an HR database that stores records by employee (EMPLID) based on effective date(EFFDT) and Effective Sequence (EFFSEQ).
    It is easy to get a report that shows all entries up to a certain data (using <= or >=), however, I am not able to create a Filter (in the report or in the prompt)
    that shows me the MAX(EFFDT) up to a certain data dd/mm/yyyy. (any one)
    The sql script we use is the follwiing
    SELECT A.EFFDT, A.EFFSEQ, A.ACTION, A.EMPL_CLASS, *
    FROM PS_JOB A
    WHERE A.EMPLID=' ' ----*(PROMPT1)*
    AND A.EFFDT=(SELECT MAX(B.EFFDT) FROM PS_JOB B
    WHERE B.EMPLID=A.EMPLID
    AND B.EFFDT<=' ') *(PROMPT2)*
    AND A.EFFSEQ=(SELECT MAX(B.EFFSEQ) FROM PS_JOB B
    WHERE B.EMPLID=A.EMPLID
    AND B.EFFDT=A.EFFDT)
    Do I need to create a variable? If yes, How?
    Please send me your suggestions or past experiences with BI on the subject.
    Thanks
    Roberto

    Hi Roberto,
    I would create a session variable via the Oracle BI Administration Tool.
    See the following of how to achieve this:
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_Variables4.html
    Reference this variable in your filter. It looks something like this VALUEOF(NQ_SESSION."VARIABLE_NAME")
    Good Luck,
    Daan Bakboord

  • Is there a way of creating a filter by Activity ID if all the data is in Excel?

    Hello, I am a new user of P6 and I am trying to find a quick way of creating a filter by activity ID. I have a list of activity IDs that I need in an excel file but I am trying to see if there is a quicker way than typing up each ID in the filter. I am not able to block copy and paste from excel when using filters. Is it possible to import from excel to P6? Any advice would be much appreciated.

    Hold down the option key when you click the + button on the criteria. You can then set up Or conditions (Any).

Maybe you are looking for

  • Can I get a replacement for my iPhone 5s in Europe which I have bought in Middle East?

    Hi there, I bought my iPhone 5s two months ago, when I was in Iran for vacation. Now, it is dead and I can not turn it on!!! Some of my friends tell me that some of these iPhone 5s are factory defect and that is why Apple asked everyone who has bough

  • List all files in a directory on a server that hosts the applet

    Hei :) I have a problem. I want to list all files in a directory on my server. ( http://www.foo.bar/tw ) The applet is in the root folder ( http://www.foo.bar ). So i tried it like this File fi = new URL(getCodeBase() + "/all/").getFile();But when I

  • Can I reinstall Adobe Design Premium cs5.5 Student and Teacher edition onto another computer?

    Can I reinstall (deactivate on old computer and activate on new computer) Adobe Design Premium cs5.5 Student and Teacher edition onto another computer? If this is possible would I have to prove that I am a student again, send you the documents etc?

  • Alarm clock silent

    I use my phone as my alarm clock. Suddenly it does not vibrate or sound. It is set to ON with a tone and volume high but still is silent. Help!

  • How to start GC logs?

    hello i was reading this article http://www.jivesoftware.com/jive/entry.jspa?externalID=701 and i wanted to track my GC logs. we start our jvm using this script. can someone please tell me what arguments would i need to and how i would edit this scri