Variable Value for BADI

Hello Forum
We have an issue with BADI implementation.
We have a key figures in query are restricted to a user exit variable for calendar month (as current month and previous month) and fetches results.
Now due to some requirement we need to check if the "Cal Month" determined is current month or the previous month and return a value.
We have implemented a BADI for the same reason to determine this however can anyone please let us know how can we use the value of a user exit variable in the query can be used in BADI ?
Thanks & Regards
Ashish

Hello Shani Bashkin 
You don't need EXIT_SAPLRSBBS_001, you need EXIT_SAPLRSBBS_002
Here goes:
You go to se18 select SMOD_RSR00004 then you go to Implementation->Create
           then you create a BADI implementation with the name Z*something_something. The system then brings you to the SE19 definition of BADI implementaition you there see both of the RSBBS exit, in methode form EXIT_SAPLRSBBS_001
EXIT_SAPLRSBBS_002
You select the second one EXIT_SAPLRSBBS_002 double click on it, it brings u to abap code Method .....End method U then insert this code and adapt it to your usage. Activate everything, go to smod find the exit RSR00004 activate everything there with the magic WAND, got o rsrt generate and debug, u then should pass in that code and then use some imagination, thats all folks!!!!
DATA: I_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAPPING,
      E_THX_MAPPING_WA TYPE LINE OF RSBBS_THX_MAP_BY_EXIT,
      I_RANGE TYPE RRRANGESID,
      I_DATE LIKE SY-DATUM,
      E_TT(2).
DATA: l_s_thx_mapping type rsbbs_sx_map_by_exit,
      l_s_range       type RRRANGESID.
FIELD-SYMBOLS:
      <l_sx_mapping>  TYPE rsbbs_sx_mapping.
IF I_S_RECEIVER-RONAM = 'IW29'.
read table i_thx_mapping ....
PS: You need to Have ITS installed and configured and your web server maintained for BW to R/3 connect

Similar Messages

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

  • Retaining Variable Value for Scenario Restart

    I have a slave-package where i use many variables for JDBC connection/url/login/passwd and Target File Path - all have been defined as type HISTORIZE
    My packages are as follows
    (1) There are many odiSqlUnload steps in the slave-package which uses the connection information & file path from the variables which have been declared in it.
    (2) I just have declare variable steps in the slave-package, and have created a master-package which calls this slave-package's scenario using the command[i] "odiStartScen -GLOBAL.var_name=<var_value>"
    so that all variables get their values from the master-package's call with variable values sent thru it
    (3) Now, the problem occurs when I have to re-start my slave-package's scenario. Say for eg, the first step in my slave-package works fine, but errors out on the next step;
    But when I re-start it for the next step, ODI doesn't seem to pick up values from the variables even though they are of type HISTORIZE, and I get an error with empty values for JDBC, URL & file path which I had specified as variables.
    Why is it that the variables are not able to retain their values.
    Any help would be greatly appreciated!

    finally I get it. I have to use #varname instead of :varname, otherwise it won't get error but just cannot get value. and I find out this #varname cannot be defined anywhere, otherwise the value will get lost also.

  • How to save  particular variable values for all users

    Hi Experts,
    I have variables posting period with user entry default value  and fiscal year(with entry vulaue mandataory)in 30 queries.Now user wants to set this values i.e.posting period to 0 -16 (interval) and fiscal year to 2008.
    whoever opnes the workbook he should  get the the defualt values as posting period 0-16 and fiscal
    2008 in variable selection screen.unless user enters the values it should remain same Please suggest me how to do that.Is this changes should be saved as vaintat in variable selection screen and transported or shall I do this change for all thse quesries or shall I change the variable value to default setting in variable propeties so that changes should be visible to all 30 queries .Please suggest....!!!!
    Regards
    Prasad

    Hi Prasad,
    Just go to that variables in query designer, and give the default values for the variables as 0-16 and for Fiscal year 2008.
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/ae/1e9b3c334d8c15e10000000a114084/content.htm
    Now while generating the query in the variables screen select the personalization, so that these values will be fixed and personalized for the query.
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/30ae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3f/30ae3d47afd652e10000000a114084/frameset.htm
    Rgs,
    I.R.K

  • Variable value for IP Revaluation

    Hi Experts,
    I would like to run a revaluation function (with a button in workbook - IP). Variable is on the key-figure.
    The situation is strange:
    - click on the button with planning function call  - nothing happened
    - then when I click on change variable screen button (standard BEX function), system ask for variable value and execute the revaluation with entered %!
    What I'm doing wrong?
    How this could be marge together?
    What is the procedure to enter variable value in some cell in the WB?
    Thanks, Tom

    Hi,
    Just check the link below: how to pass variables to planning functions executed from BeX Analyzer.
    It also specifies how to enter variable value in some cell in the WB.
    I suggest you to use seperate variables for filter and seperate variable for Planning functions so as to avoid confusion.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be
    Best Rgds
    Shyam

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • Filter Value for BADI

    Hi,
    Kindly Let me know the Filter Defined for Implementaing
    BADI.
    Hoping for your Response...!!!

    Hi,
    BADI may be implemented depending on a specific filter value( example COUNTRY-SPECIFIC VERSIONS: distinct implementations of the BADI can be created for the COUNTRY).
    a filter type must be entered when defining your enhancement ( a country or industry, for example).
    all methods created in the enhancement's interface have filter value 'FLT_VAL' as their import parameter.
    the method then selects the active implemetation based on the data provided in the filter value.
    for seting the filter value, you must enable the option FILTER DEPEND and provide FILTER TYPE in the ATTRIBUTES of the BADI defination.
    SE18 is the transaction code for creating BADI.
    Filter dependence for BADI definitions means that each interface method automatically has an importing parameter FLT_VAL assigned ot it. This parameter must be filled with a filter value as current parameter when it is called.
    A BADI definition should be marked as filter-dependent whenever the characteristic of the BADI implementation should match the characteristics of the filter type - that is, whenever the implementation of different filter values should be different or should only exist at all for certain filter values.
    Typical filter types are line of industry or country.
    The BADI is filter dependent. In the first tab of your BADI implementation (SE19), the lower half will contain filter details.
    STEPS FOR SETTING UP A FILTER
    just go to se18 and give ur BADI name..
    then Select 'Attributes' Tab ,there u will find option Filter-Dependent in window named "type"..
    check tht filter dependent checkbox and give ur data element/field in the Filter type field say u can give 'MOLGA' ..save and come back..
    now go to se19 and implement this BADi and there u can give filter values for filed MOLGA..
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • How to retain the presentation variable values for Dashboard Prompt

    I've a dashboard prompt with date and two other drop down field, with default value as yesterday's date set for date and All Values set for other two drop down list. Presentation Variables are D1, P1 and P2 respectivilly
    I'm using GO URL from "Report A" and passing presentation variable to navigate to other report (Report B) that works fine. eg:
    '<a href = saw.dll?GO&path=/shared/Reports/ABC/ReportB&Action=Navigate&p0=1&p1=eq&p2="-%20Time"."Next%20Day"&p3=@{d1}>Test</a>'
    From Report B I'm using Dashoard URL to go back to Previous Report like:
    <div class="XUIPromptEntry minibuttonOn">
    Return to Previous Screen</div>
    This also works fine.
    My problem is that, when users selects different values in the Main dashboard prompt for date and other other two drop down and navigates to other report (Report B), and from Report B, when user returns to previous screen (Main Dashboard), Prompts values gets refreshed to original default values.
    Is there any way to retain the values of presentation variable in dashboard Prompt when I return to main dashboard from Report B?
    I'd appreciate your help.
    Thanks

    Change your dashboard url include the column and column value for the date column sample shown below,
    [a href=saw.dll?Dashboard&PortalPath=/shared/sample/_portal&page=pagename&Action=Navigate&col1=Dim.Date&val1=@1>Return to Previous Screen[/a>
    In my second report Date is the first column so I referenced it's value as @1 in the dashboard URL
    note: replace [ with <
    Thanks,
    Vino                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • How to change the variable value for the SCript in debugging

    I have a variable &KNA1-NAME4&
    i want to change the value of this variable in debugging mode
    can any one please tell me how to do in step by steb mode.

    Hi Ravi,
    In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
    Search for the element name where u r printing this variable. U can see some thing like
    CALL FUNCTIOn 'WRITE_FORM'
    element = ur element name.
    Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
    Thanks,
    Vinod.

  • Different variable values for same query inserted 6 times in One workbook.

    Hi,
    We have one workbook with the same query inserted on 6 different tabs (sheets in excel), a variable on Business Unit that is different for each tab.
    How can we control the variable input in BW2004s such that the different BU values are processed for each tab.
    At present the BU value input in the "variable pop-up screen" over rides all the fixed variables on the different tabs.
    Generous points will be awarded for useful solution.
    Thanks,
    Jasmine

    Hi,
    I am  trying to use filters for executing 2 queries in a Web App. I have 2 dataproviders (one for each query), and I am trying to use filters for say Version.
    The URL is
    /sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=ZTW_XXX&DATA_PROVIDER_1= DP1&FILTER_IOBJNM_1=0VERSION&FILTER_VALUE_1=F01&DATA_PROVIDER_2= DP2&FILTER_IOBJNM_2=0VERSION&FILTER_VALUE_2=F02.
    This doesnot work. Both queries get filtered on both 'F01' and 'F02'.
    I am trying to filter DP1 by F01 and DP2 by F02.
    Any help is appreciated.
    Thanks,
    NS

  • Variable Values in BADI's

    Hello All
    We have a requirement where we need to pass the value of a characteristic variable entered by the user to a cutomer exit variable and based on that need to perform a validation and return back the same value if it is correct else to return the blank/null value.
    Can anyone plz advice how can I achieve it ?
    Regards
    Ashish

    Hi Ashish,
    Please go through the following BAdi PDF:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f05700a6-23e2-2910-b48a-c58392764dda
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/409fa539-30e2-2910-7a8e-80279d09893e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702
    BADi Enhancement:
    [Enhancement in BW]: How to use BaDI : RSU5_SAPI_BADI
    Implementing BADIs:
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/content.htm
    goto Tcode se19, give the implementation name and write a code as per yr field enhancement , save it then it will be serving as a badi which u can use

  • How to authorize users to change only Variable Values for Planning Folders

    My users want to be able to change the values of the Planning Area variables for the Planning Folders in SEM BPS. However I wouldn't like them to have access to change anything else except the variables.
    What is the best way to do this.
    Please let me know
    Thanks

    Hi Arvind,
    If they are variables to be set by the users, change the type to user specific variables and check the values can be changed by user check box.
    M.

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • Using Broadcaster to run a query for sequential Variable Values

    Hi SDN Community
    I came across a powerpoint slide regarding broadcasting which i hope to use in one of our reports.
    We are on SAP BW 35.
    Broadcaster has been used
    Your opinion would be greatly valued in regards to the direction i should proceed for our particular purpose.
    We basically have a report which is a web report.  This contains much html and javascript enhancements.
    But it essentially has queries with a series of variables.
    The customer would like the Queries to be cached for each variable value for performance reasons, on a daily basis.
    eg. Run the same query for Variable value BMABRM, then BMASRM, etc...
    In a loop fashion.
    Do not need to set a process chain to trigger broadcaster, or rather simply to schedule the broadcaster to run daily.
    I would basically then want to run this (cache) query in an iterative fashion, ie. rerun it for all the sites.
    Can you please make a recommendation to which is the best approach, whether a process chain should be set up, and any experience you may have had setting up a query to rerun for different variable values.  We would of course want the query to run successfully before rerunning it for the next variable to avoid locks, etc.
    Thank you in advance.
    Simon

    Hi Rahul,
    i have been trying to use the process chain functionality to do this but unsure how to do it.
    Which objects do you use in the process chain:
    Trigger Event Data Change (for Broadcaster)
    or Execute APD Model
    or Precalculation of Web Templates
    i am unsure how to incorporate the queries into the process chain.
    If you have any steps , it would be much appreciated.
    Thank you.
    Simon

Maybe you are looking for

  • Setting up Remote Desktop Apps for access from a Mac with 2FA

    Hi Setting up Remote Desktop Apps for access from a Mac with 2FA. I have a server 2012 remote access gateway, with remote apps published(which uses single signon), behind a 2FA connection (web based) and want to know if its possible to allow macs to

  • Automatic Filing With Rules - Long

    This is a long post, sorry, but I think the details might be worthwhile for someone who might be like me and wants to automate their mail processing as much as possible. I do have a question below about how I might better configure some rules, and ab

  • Entry missing in but_hier_type?

    Hi All We are trying to replicate customer hierarchies (created via VDH1N) from ECC to CRM. I followed the steps in the SAP help: http://help.sap.com/saphelp_crm70/helpdata/en/a1/2bfc3f37c2e569e10000000a155106/content.htm In CRM download (RSA3) the D

  • Create a JAVA client calling a proxy...

    Hi, I succeed creating a servlet that calls a web service via a "deployable proxy". Is it possible to create a java class (not a servlet or jsp) that connect to this proxy ? Here is a sample of my client class:                InitialContext ic = new

  • Safari not opening certain pages

    Hey Whenever I log onto my bank's website the web address appears in the window as if the page has loaded but the page onto which I typed my login remains on the screen and the whole page freezes as though I had not hit "continue".  It happens more f