Restrict values on the matchcode for 0COMP_CODE

Hello all,
I have the following scenario; I have to restrict information access to users by country and company code.
A user can have access to different countries by means of the assignment of the corresponding roles.
When a user execute a query, the variable screen for country appears with the different countries the user is able to display, but depending on the country the user select, on the variable entry for COMP_CODE, just the values of the companies for the country selected by the user must appear.
For this purpose, I am using an exit value to calcule the values for companies once the user has selected the country; but what I want to do is restrict the 0COMP_CODE matchcode with the values calculated on the exit.
How can I do it? What is the FM I must use on the exit?
Thanks in advance

Hi Ste,
check this:
Displaying filter values in WEB reporting
SAP Note Number: [587751|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
Attributes are missing in F4 Help for characteristic values
SAP Note Number: [562497|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler] 
Regards
Andreas

Similar Messages

  • Need to restrict values in F4 help for Batch Characteristic

    Hi,
    I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
    Regards,
    Nikhil

    Hi nikhil simha,
    first of all, find out which search help is called.
    [Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
    may help you.
    If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
    If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
    Regards
    Clemens

  • Delete the transferred values using the transaction for changing old assets

    how to Delete the transferred values using the transaction for changing old assets.
    i want delete the my asset.
    Thank you
    Anil

    Dear Anil,
    AS06                 Delete Asset Record/Mark for Delet.
    AS26                 Mark group asset for deletion     
    Hope this will help.
    Regards,
    Naveen.

  • Restricting values on the drop down list, while creating a PO

    Hello SAP Experts,
       Could you help me with the following.
      While creating a PO (ME21N), based on the Account Assignment Category(KNTTP) entered , I have to restrict the values in the drop down list for selecting the material group (MAKTL). I have searched some in SDN, but couldn't find anything suitable. Appreciate any help.
    Thank you,
    Sorab

    Could anyone tell me , if it is possible. Has anyone tried this before.
    Thank you,
    Sorab

  • Standalone table as drop down and restrict values in the report

    Hi,
    I have report where the measure values has to be restricted based on the threshold value table.Threshold values has the below values.
    Threshold table:
    threshold id threshold values descr
    13345 10000 initial
    13346 20000 start
    13347 30000 initial start
    13348 40000 end
    13349 50000 last end
    This table is independent of the star schema for the OBIEE report and created for the user given threshold values.
    Threshold values shud be shown has drop down values and the drop down prompt is always GTE to 10,000 by default.The report shud display measure values GTE 10,000 in the 4 measure columns in the report by deafult based on the default prompt and shud work as per the user selection in the drop down.
    I was planning to implement this using Presentation variable but when i select GTE in the Prompt ,this option is not present.Please throw some light on this issue.
    Thanks in Advance.

    Use is equal to operator in the prompt..change the show section to all values to sql results..after that change the column formula to case when 1=0 then <some column> else 1 end..now you can make it a presentation variable..use that variable in your report with is greater that operator in your report..hth..
    Edited by: Venkata on Jul 20, 2010 10:57 AM

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • How to keep the field value in the forms for one week

    I have an application that when the user logs on to it , it shows all the documents that are in the current dept.
    the form has the following fields:
    document no
    sent date
    assigned to
    dep_LOV
    and a check box
    if a user clicks the check box and assignes the document to another dept by cliking the LOv then the assigned to field should be populated with the new value and the sent date should be today's date(sysdate). the requirment is that once the user assignes the documnet to certain depts (for example sales dept) the assigned to field and the sent date should show up in the form for one week and the user should be able to see that data in the form the next time she /he logs onto the application. the one week time is to make sure the documcnt has reached the assigned dept. after one week from today's date the updated assigned_to field and the document no should not display on the form. During the one week if the user logs on to the form again that particular document and the assigned to and sent to fields shoould be grayed out and shhould not be updatable. I will greatly appreciate any suggetion as of what to do to solve this problem. it is urgent. Pleade help

    -> so you are saying that I should have a block level post_query trigger and put the where clause in it?
    No. Post-query trigger runs AFTER the query has been executed, and it runs once for each row fetched. It is for other purposes, NOT for setting a where clause.
    -> Plus i want to be able to gray out the field once populated with the sales dept.I have come up with the following code:
    Your Set_item_instance_property is almost correct. And THAT line would go into the Post-Query trigger. This is what you might use:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> Set_item_instance_property ('docs.assigned_to',:system.trigger_record, Enabled,Property_False);</font></pre>
    Please watch your use of underscore, dashes, commas and parentheses: _ - , ( )
    The way to set your default where clause would be the following, and you should do it in the key-exeqry trigger, or someplace similar:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> set_block_property('DOCS', default_where,
    'NVL(sent_date,sysdate) >= sysdate-7' );
    Go_block('DOCS');
    Execute_Query;</font></pre>
    I used the NVL function so your select will show rows where sent_date is null OR sent_date has a value that is within 7 days prior to the current date.
    What is the field :docs.assigned_to used for? If you want to include ONLY rows that are assigned to a particular person, then your where clause might be:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> 'assigned_to = :ctrl.assigned_to and NVL(sent_date,sysdate) >= sysdate-7' </font></pre>
    and you should have a control block with the assigned_to field in it, where the user can enter a value before querying the DOCS block.

  • How to read value of the period for which the sales volume has been entered

    Hi Experts,
    In the transaction "/ncrm_ipm_d_usage_data", we have a scenario where a user can enter value in the "sales volume reported" column for more than one period. Now we need to read the period_from (date from) for the first "sales volume reported" value entered.
    For example: If a user enters values in "sales volume reported" column for the period_from 02/01/2009, 05/01/2009 & 08/01/2009. We need to read the first period_from value for which sales volume value is entered. Which means it should be 02/01/2009.
    Our issue is that we are unable to find the standard method or variable which holds this value. We found these classes through debugging but it does not help us.
    1. Class CL_CRM_IPM_USAGE_DATA
    Methods we found:
    1. FIND_CONTRACT
    2. MAINTAIN_DATA
    3. MAP_UI_DATA
    4. FILL_CUMULATED_I
    5. GET_USAGE_DATA_KEY
    Please help us to find the standard method or variable which reads the period_from for the first sales volume entered.

    Hi Student5088,
    I used a Copy-Block to create a delay for a certain number of values (time) of a signal. With that you can continuously compare signal at T1 with Signal at T1*0.5.
    Greetings
    Walter
    Attachments:
    Compare.DAC ‏28 KB

  • How to restrict from creating the  Network for  1st & 2nd level  WBS

    Hi All,
        In our project structure we have up to 5 levels of WBS, In some cases we have creates  3 level also . Now we want to restrict creates Network for first two level WBS  , actually we want to restrict user to Create PR for those WBS so if we restrict them from creation of Network for 1st &  2nd level then they not able to create PR for same  .
    Thanks,
    Virendra

    Hi Virendra,
    I can suggest you other way round solution.
    If you are sure that those two WBS will not take any actual or commitment cost, then its better to NOT to mark those WBS elements as Account Assignment Element. I mean, if you do not set the indicator of Acct. Assignment Element (Untick Acct Assignment Element) on those WBS, then user will not be able to create Networks on those WBS Elements. Try this on your development or quality client and let me know if it works.
    If it works, then you just need to disabled the Acct. Assignment Element indicator for those two WBS element and you can achieve that through substitution and field selection of WBS as well.
    OR
    Just look at OPSG settings at tab component. Just look if that can solve your purpose because your requirement is to stop PR from those WBS element. (I am just wondering if you can stop user from creating/change material components from those WBS-Networks)
    OR
    Go for User Status and set it to on those WBS Elements. Object Types will be Networks and Network Header.
    OR
    Try to achieve a validation or substitution where in you can mark Res./Pur. Req as 1 (Never) only for those two WBS elements. In this way user cannot create PR on those two WBS elements.
    Regards,
    Amit

  • Best way to create an array of bound values (to the resourceManager for example)

    What's the best practice for creating an array (array collection) where each element is bound to another value?
    An example would be an array of error strings that are used by an application.  Each string needs to change as the resource manager changes.
    Passing a list of strings to a list control is another example.  These should get localized as well.

    hobby1 wrote:
    Crossrulz, I was planning on handling it like this: 
    I have a total of 17 element I need to build an array from.  Each case would include another element to be written to the array.  Is this the correct way to handle this?
    Thats one way to do it.  Not nearly as efficient as using the Build Array, but it will work.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • SessionID with different 13 digit value at the end for evry request

    Hi all,
    Our session descriptor looks like this
    <wls:session-descriptor>
    <wls:timeout-secs>1200</wls:timeout-secs>
    <wls:debug-enabled>true</wls:debug-enabled>
    <wls:id-length>100</wls:id-length>
    <wls:cookie-max-age-secs>1200</wls:cookie-max-age-secs>
    <wls:persistent-store-type>REPLICATED_IF_CLUSTERED</wls:persistent-store-type>
    <wls:sharing-enabled>false</wls:sharing-enabled>
    </wls:session-descriptor>
    However the session id has a extra 13 digit value appended at the end.
    Please see some sample session ids printed from debug logs.
    these vary in different servers and are causing the session replication to fail .Any reason why such an anamoly happens
    Session ID:nzsQP7BQmKppYpqyGzZZLd61lWQyDnJgq5n8NgRG0vG1cb6FTfX7Qs6K1nhvkyzh2wQdGnhr2knXsPRXTrWMpLVMJGzn9vBTTwdM!-1438928405!1009911873!1337672080496
    Session ID:p2NJP7GHyzRNTglRvV8hQLsdpxJfRNPW3hRGnlXpgy7Y2KmkyFzK4dZQQQmpQ17Mhm2bhT0vqvsG1MK1r32vkmG2Fq5RcQn0S7Pg!-1438928405!1009911873!1337672743271

    So the engineer came and, of course, everything was working ok. He did fit some kind of RF filter on my main socket, and 'changed the pair' on one of the outside cables. Since then, I've only had a noisy line once, and seem to have been connected for 3 days solid, which is a record!
    I've switched back to my BT Home hub 3, which guavas me more stats. The line has previously given me up to 6mb/s, now only getting 1.6.
    Do you think, now the line seems more stable, with the stats below I should be able to maintain a higher speed now?
    Thanks
    Line state: Connected
    Connection time: 3 days, 02:19:39
    Downstream: 1.601 Mbps
    Upstream: 444.9 Kbps
    ADSL Settings
    VPI/VCI: 0/38
    Type: PPPoA
    Modulation: G.992.3 Annex A
    Latency type: Interleaved
    Noise margin (Down/Up): 17.7 dB / 22.6 dB
    Line attenuation (Down/Up): 44.8 dB / 27.0 dB
    Output power (Down/Up): 18.6 dBm / 12.6 dBm
    FEC Events (Down/Up): 3144673 / 0
    CRC Events (Down/Up): 14434 / 38
    Loss of Framing (Local/Remote): 0 / 0
    Loss of Signal (Local/Remote): 0 / 0
    Loss of Power (Local/Remote): 0 / 0
    HEC Events (Down/Up): 111873 / 10
    Error Seconds (Local/Remote): 1011 / 4

  • No values in the dropdown for Adapter Engine

    Hello Colleague,
    While configuring a sender adapter engine in the integration directory, there are no value displayed when we select an Adapter and do a dropdown on the "Adapter Engine" Field.
    Could you pls. help.
    Regards,
    Gajendra.

    Hi Gajendra,
    Have you imported the SAP_BASIS content into yor repository?? If not do that.
    Also you can go through the below thread
    <i>No Adpater Engine available in Communication Channel creation
    Regards
    Sunita

  • How to cehck the restricted values in Query desingner

    HI ,
    I have a infoobject restricted with some values in the query desingner.
    NOw I want to check the restricted values ( which are there as an interval shown below the infoobejct in the query desingner).
    I can check it by going to change mode in the desinger but I dont have authorization to goto change mode . Is there any other way to check these restricted values.
    REquest  solution for this .

    hi please check my blog..
    [Query Details|/people/shanthi.bhaskar/blog/2009/05/22/query-details]
    Tcode : RSRTQ

  • Restrict the values in the Query Designer

    Hi Guru’s,
    I want to Restrict PLANT or  SALES ORG  values in the Query Designer, in the Query, PLANT has selected in the rows and having variable and SALES ORG is display attribute of the PLANT. In this scenario How can we Restrict the values?
    Thanks in Advance,
    Ravi.

    Hi Ravi,
    You cannot restrict values on the display attributes. Better change it to navigational attribute and check the box as navigational in the cube.
    Regards
    Ram

  • InfoView - How to Restrict values of Month Dimension Combo Box

    Post Author: alexrox
    CA Forum: Publishing
    Product: Business Objects Enterprise XI R2
    Version: XI R2
    Patches Applied:
    Operating System(s): Linux RHEL 4 x86
    Database(s): Oracle 10gR2
    Error Messages:Steps to Reproduce:
    Hello, we are using Business Objects Enterprise XI R2 in the company I work, and we are facing a problem in some web intelligence reports.Our BO version is in Spanish, so maybe I do not translate some BO terms properly into English.
    We have the "Time" class in the Universe we use, and in that class, we have the "month" dimension.
    When we create some reports in InfoView, we can use the "month" dimension to display the results of that month (dragging and dropping that dimension in the "Analysis Context" Area).
    The user can choose values in the "month" dimention through a combobox in the "analysis context" area. The problem is that Infoview allows the user to select the value "all the values" of that dimension, I mean, all the months, so that the results of the report are according to the "automatic aggregation" calculated of the values of that dimension (all the months).
    But, we do not want to allow the user to select that value (all the values) of that dimension, because it causes that the report displays incorrect results (we have some percentages that have incorrect values in the aggregation, for example). I hope that you understand the problem I have tried to explain.
    My question is how can we restrict so that the combo box (of the month dimension at the analysis context area ) does not allow to select "all the values"?
    Is it possible?  If so, do we have to make a change in the universe or is it a restriction of the web intelligence repport?
    Thank you very much!
    Alejandro Usero Ruiz

    Post Author: jsanzone
    CA Forum: Publishing
    Alejandro,
    In your posting, quote "(we have some percentages that have incorrect values in the aggregation, for example).", I'm wondering if you are calculating the percentages within your universe or not?  I.e. do you have a universe object that in essence is doing the math?  If so, I might suggest that you not do it this way (even though in total aggregation calculations this will produce a valid result), but in disaggregate calculations (during the users "slicing and dicing") the percentages are not re-calculated by the BusObjects tool because it thinks that the data it received from the SQL output is good to go, and this is where the incorrect values in the aggregation start to show up.  We had this problem too, so we ceased from calculating at the universe level and built a local variable to the report, thus BusObjects will recalcuate the percentage properly for each level of aggregation that user selects.  The downside to this approach is that every report that has percentage calculations will require the local variable to be built for that report.  Even users who build their own reports will have to build their own local variable to compute the percentage for their reports.  The upside is that the calculations will be correct every time.

Maybe you are looking for

  • "Reduce Motion" and "Dynamic wallpaper" were not available in my iPhone 4 after iOS7 update

    I updated my iPhone 4 today morning, and could not find the "Redcue Motion" option at "Settings>>General>>Accessabilty" and also the "Dynamic Wallpaper" option in the "Wallpapers & Brightness" opitons. I am sure "AirDrop" is not available for iPhone

  • Designer who want to become a AS3 coder

    I'm an established graphic designer. I don't have any prior knowledge of any programming what so ever. I know my way around the basic flash animation functions but now I want to take the step to become a master in Flash and Actionscript. I want to kn

  • K_SETTLEMENT_RULES_UPDATE the settelment rule

    Hi, Ive created the settement rule. its fine.. if the end user change the Maintenance activity type[cobrb-ilart] in iw32. the settelment rule should be updated or re-write.. ive got K_SETTLEMENT_RULES_UPDATE. function module. how to pass the paramete

  • $9.99 limited time offer LR5 & PS CC

    Hi! I already have purchased licenses for LR 5 and PS CS6 and they are installed on my computer with many plugins tied to them, meaning a lot of investment there. What is the advantage here 20GB of cloud storage for $9.99 with an insurance for free u

  • Lightning: How can I permanently change the event organiser's email address when inviting attendees?

    I have two email accounts associated with Thunderbird; one is the default account from which my emails are being sent. However, when attempting to send an event invitation, through Lightning, my secondary email appears in the organiser's field and it