Derivation from variable type authorization in exit

Hi Experts,
I have got a query with two variables "AUTH" type authorization and "DERI" which should be derivate from "AUTH".
"DERI" is type Exit.
my problem, in the exit "AUTH" is not in i_t_var_range. Where do I get the value of "AUTH" from, to use it in the exit logic?
Thanks for your help
Pierre

I Peter
I needed to make the same thing.
Did you found a solution?
Best regards
Joã

Similar Messages

  • How to derive a variable value from another variable of a different IO?

    Hi Gurus,
    I am aware that using BEx variables and Customer Exit you are able to derive a variable value from another variable of the same infoobject (for example, Fiscal Year/Period (0FISCPER) and Calendar Day (0CALDAY)).
    However, is is possible, using the same approach to derive a variable value from another variable that is in a different InfoObject? (for example, Input Fiscal Year/Period (0FISCPER) but derive Output of Required Start Date (0REQSTDAT))?
    There are 2 BEx variables involved,
    1) A user entry variable that is restricted in 0FISCPER
    2) A customer exit variable that is restricted in ZREQSTDAT
    In CMOD under EXIT_SAPLRRS0_001, Include ZXRSRU01, the code (I assume, correct me if I'm wrong) should perform 3 functions in I_STEP = 2,
    1) After the pop up, capture user entry of Fiscal Year/Period
    2) Identify or convert Fiscal Year/Period to Calendar Day range (unsure on how to code this portion)
    3) Use the Calendar Day to lookup on matching Required Start Date and display all Required Start Date that matches. (unsure on how to code on this portion)
    Hope to hear your thoughts soon.
    Regards,
    Eric

    Hi Shanthi,
    I've made the necessary adjustments. The only difference in my code is,
    Instead of,
    If I_VNAM = 'ZREQSTDAT'
    I use,
    CASE I_VNAM.
    Instead of,
    PARAMETERS: ZFISCPER TYPE /BI0/OIFISCPER.
    ZYEAR = ZFISCPER(4).
    ZMM = ZFISCPER+4(3).
    I use ,
    This is the Customer Exit Variable in ZREQSTDAT
    WHEN 'ZRSD_CX'.
    The loop I use for the User Entry Variable in 0FISCPER-ZFYP_IN
      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZFYP_IN'.
        IF SY-SUBRC = 0.
            CLEAR L_S_RANGE.
    ZYEAR = LOC_VAR_RANGE(4).
    ZMM = LOC_VAR_RANGE+4(3).
    The codes were checked with no errors.
    However, when I input the Fiscal Year/Periods and hit 'Execute'. The report went blank, not sure what is the cause. I've tried it several times. No error message appeared.
    Regards,
    Eric

  • Variable type Hierarchy, how to get the value from another similar variable

    Hi.
    We have created a variable, type hierarchy (using ORGEH hierarchy in HR based on 0ORGUNIT). Let's call this VAR1. We want to fill this with an User Exit, beacuse we want VAR1 to have the value from another variable, VAR2, which is also type hierarchy (and based on the same characteristic).
    However, when we program this user exit and use the VAR1 afterwards, it just behaves as if we have a single characteristic value and not a node value. As a result, we just get posts which do have the 'parent itself' as characteristic value, and none of the subnodes...  Any hints as to what we can do in our User exit to get the value passed over from VAR2 to VAR1 as a node value? Is there any spesific syntax to be used here that we are missing? ( The VAR1 and VAR2 are both defined as hierarchy variables, we have double checked...).

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

  • Derive Number of months from variable entry

    I have a requirement to calculate the average sales qty using the number of months entered in the variable entry and not the actual number of months the product was sold. For example Variable cal month entered as the range 01/2009 - 03/2009. The average needs to be calculated with the 3 month range even if sales only occurred in months 01 and 02. I understand I need to create a formula variable type customer exit, but I need assistance in creating the formula that would count the number of months from the variable entry.
    Any help would be appreciated.
    Craig

    Hi,
    Yes you can replace the variable and use if the code has been declared in such a way. Use i_t_var_range instead of It_var_range. This is a table which should been defined in your existing code.
    I have modified the code. Hope this helps
    WHEN 'FORMULAVARIABLE'.
    IF I_step = 2.
    CLEAR l_s_var_range.
    LOOP AT l_t_var_range INTO l_s_var_range WHERE vnam = 'MONTH_VARIABLE'.
    CLEAR l_s_range.
    l_s_range-low = l_s_var_range-high4(2) - l_s_var_range-low4(2) + 1
    IF l_s_range-low < 0.
    l_s_range-low = l_s_range-low + 12
    endif.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR l_s_range.
    ENDLOOP.
    endif.
    Regards
    Akhan

  • Variables with Authorization as Processing type ...

    Hi Gurus, I also wanted to see if we have any good example for this kind of variable?
    I also have a question. If we have Authorizations on 0ORGUNIT and 0EMPLOYEE. The users will be able to see only what they are supposed to see. Now what is the use of a variable that is built on this chareacteristics with processing type "Authorization"? Since they already are restricted to see the data?

    Consider this example:
    Every cost center manager should only be allowed to evaluate data for his/her cost center. Within the SAP authorization standard, a role or a profile with the authorization for the InfoObject 0COSTCENTER equal to ‘XXXX’ (XXXX stands for the particular cost center) would have to be made for every cost center manager X. This has to be entered in the user master data for the cost center manager. In organizations where cost centers change on a regular basis, this involves significant administrative effort.
    Using a variable reduces the authorization maintenance workload with the InfoObject 0COSTCENTER equal to ‘$VARCOST’, as well as with the role or the profile, which is maintained for all cost center managers. The value of the variable ‘VARCOST’ is then set for runtime during the authorization check by the CUSTOMER-EXIT ‘RSR00001’.
    Maintaining the authorizations restricts the entries for the values to the length of the existing InfoObject. It is possible, however, to use both limits of the interval. In the example 0COSTCENTER with 4 spaces, the variable ‘VARCOST’ is, therefore, entered as ‘$VAR’ – ‘COST’.
    refer:
    http://help.sap.com/saphelp_nw04s/helpdata/en/91/a62c42fb6fdd2ce10000000a1550b0/frameset.htm for more details

  • SEM- VARIABLE TYPE EXIT

    Hi
    We have a planning area where I have various variable that represent the product hierarchy, in particular:
    u2022     Market
    u2022     Brand
    u2022     Family
    The user select the value for any variables and thereu2019s a function module that derives the value of material, the material is another variable type exit.
    The IO material has various attributes that I use in layout, one of these (material group 3) has many value, but I need only two values:
    u2022     PCO
    u2022     STD
    In layout the user has to see only material with PCO, then I create a variable for characteristic material group 3 fixed PCO used in level and layout. Itu2019s ok
    Now I must create another layout in same planning area, where the user has to see both, PCO and STD.
    I created a new level where I donu2019t use the variable for characteristic material group 3, but this variable is fixed PCO, the material derived by FM obviously are only PCO.
    How can I do?
    Thanks in adavance for suggestion
    Edited by: Celi Laura on Apr 28, 2009 3:23 PM

    Hi Dieter,
    Refer to Marc's comment in the below post that Planning layouts lock all data
    How to avoid SEM-BPS Lock entries
    Hence the best option would be to create a different Planning level for Cost center based on the need for planning.
    You could also explore the possibility of creating a BEx report wherein the data just needs to be viewed by the boss and not planned.
    Hope it helps
    Cheers
    Anurag
    Also take a look at this document to get some more insight into locking in BPS
    https://websmp102.sap-ag.de/~sapdownload/011000358700004574572003E/SEMBPSLocking.pdf
    Hope you have access to the service marketplace.
    Message was edited by: Anurag  Khungar

  • My video i have successfully worked on for seven days now won't open at all.  It says there is no sequence of this type found... But in the very bottom bar I can see the whole project load.  But the only option from the error screen is exit out of Premier

    My video i have successfully worked on for seven days now won't open at all.  It says there is no sequence of this type found... But in the very bottom bar I can see the whole project load.  But the only option from the error screen is exit out of Premiere Pro CC.  I am on a PC withe Windows 8.1 and apps are up to date.  Thanks much for any help!!

    Hi Bryan,
    My video i have successfully worked on for seven days now won't open at all.  It says there is no sequence of this type found... But in the very bottom bar I can see the whole project load.  But the only option from the error screen is exit out of Premiere Pro CC.  I am on a PC withe Windows 8.1 and apps are up to date.  Thanks much for any help!!
    Sounds like an activation issue. Quite Premiere Pro. Sign out of Creative Cloud. Restart Premiere Pro. Sign back in: http://bit.ly/CC-sign-out
    Hope that works for you.
    Kevin

  • Another partner function is derived from the partner types than was entered

    Hi Dear SRM Experts,
    I am sending  Purchase Requisition to SRM and it gives the error on SRM side Transaction SLG1
    "Another partner function is derived from the partner types than was entered from external source"
    Experts please reply me iIt is very urgent.please suggest any ideas.
    Regards
    Ilhan Ertas

    Hello,
    Check:
    A. RFC user has been assigned to Local Purchase org & local purchase group.
    B. RFC user is consistent in BBP_ATTR_CHECK.
    C. Plants have been replicated properly into SRM and have been assigned the proper GUID's.Check table BBP_LOCMAP for this.
    D. Also check the SRM RFC destinations and the SRM RFC user assigned in both the Systems.
    SAP Note might be useful. 801133 - Interface used to transfer external requirements is adjusted
    Thanks
    Ashutosh

  • The type of the value being assigned to variable ... differs from the current variable type

    I am trying to load a variable on SSIS Execute SQL Task with a string value. I keep on getting an error message :-
    “The type of the value being assigned to variable “User::LegacyColumns” differs from the current variable type”.
    Below are the settings on my package:
    Execute SQL Task Result Set –
    Single Row
    Variable Data Type –
    String
    The data to be loaded on the variable is a single row shown below:
    FirstName,LastName,MiddleName,PatientType,Title
    Can someone kindly help me to solve this as I’m lost for ideas.
    Thanks,
    Mpumelelo

    Thank you Sorna. I think I have managed to solve it. After a long search I have found a solution which advises that I should use a Foreach Loop Container. The help is on this link:
    https://social.msdn.microsoft.com/Forums/en-US/f46dea91-c26b-4ffe-ab1c-ebeef57c90b6/error-0xc001f009-at-mypackage-the-type-of-the-value-being-assigned-to-variable?forum=sqlintegrationservices
    Mpumelelo

  • Variable Type EXIT - Locking Transaction Data

    Dear all,
    I have to use a variable type Exit in the level to identify all cost centers for a planner and his corresponding boss (master data lookup). Now e.g.
    the planner has cost center 1 and 2 as possible single values. The boss has cost center 1, 2, 3,and 4 because he also is the boss of an other one.
    The result is now that the boss locks all cost centers 1,2,3 and four even if he only plans e.g. the cost center 4. In this way it is not possible for the planner to enter data for 1 or 2 the same time.
    Does anybody has an idea to solve this situation or how to lock only the values of the variable that is really in use?
    Thanks a lot
    Dieter

    Hi Dieter,
    Refer to Marc's comment in the below post that Planning layouts lock all data
    How to avoid SEM-BPS Lock entries
    Hence the best option would be to create a different Planning level for Cost center based on the need for planning.
    You could also explore the possibility of creating a BEx report wherein the data just needs to be viewed by the boss and not planned.
    Hope it helps
    Cheers
    Anurag
    Also take a look at this document to get some more insight into locking in BPS
    https://websmp102.sap-ag.de/~sapdownload/011000358700004574572003E/SEMBPSLocking.pdf
    Hope you have access to the service marketplace.
    Message was edited by: Anurag  Khungar

  • Read variable type and value from LabView

    By using the TS. Sequence class i'm trying to get the variable type and values of locals, parameter, fileglobal and stationglobal. Unfortunately i'm not able to find the right function. Hope someone can help me.
    Kind regards
    Lars
    Solved!
    Go to Solution.
    Attachments:
    ReadName.JPG ‏34 KB

    added PropertyObject Type to the loop. But doesn't matter what i do, i just get the first type from fileglobals back...
    Attachments:
    With_PropObj_Type.JPG ‏61 KB
    With_PropObj_Type_output.JPG ‏33 KB

  • Time reference from variable in crcy transl. type

    Hi guys,
    does anybody know, where to create the variables displayed in RSCUR, when I want to create a crcy. transl. type with time reference from variable?
    Thanks in advance, Clemens

    Hi,
    With  step by step :
    http://www.sapdb.info/wp-content/uploads/2008/11/bw-howtousevariablestimereferencesincurrencyconversion.pdf
    with  steps and Definitions :
    http://www.scribd.com/doc/7061035/How-to-Use-Variables-for-Currency-Conversion
    The time reference for the currency translation can be either fixed or variable.
    If the time reference is fixed, the time at which the exchange rate is determined is independent of the data. You have the following options:
    ○       You can establish that the time reference be determined upon translation.
    ○       You can select the current date.
    ○       You can specify a fixed date as the key date.
    ○       You can specify any variable that exists for InfoObject 0DATE.
    ○       You can establish that the query key date be used. This is determined in the query settings.
    If the time reference is variable, the time at which the exchange rate is determined is decided by a time characteristic value.
    ○       A variable time reference can, for example, be determined using the end or start of a fiscal year or calendar year, a period and a month u2013 or even to the exact day. The following standard time characteristics are available: 0FISCYEAR, 0FISCPER, 0CALYEAR, 0CALQUARTER, 0CALMONTH, 0CALWEEK and 0CALDAY.
    ○       The time reference can also be determined using a customer-specific InfoObject of type date (for example, trading day). Note that this InfoObject has to have the same properties as the standard InfoObject selected in the variable time reference or must reference it.
    ○       You can specify an InfoSet: This is only necessary if you are determining the target currency using an InfoObject that exists in the InfoSet more than once. You enter the field alias so that the InfoObject can be specified uniquely.
    In the Business Explorer, you can only set time variable currency translations in query definition, and not for an executed query. See also Setting Variable Target Currency in the Query Designer.
    ○       In the Time Adjustment field of type INT4, you can specify whole numbers with a +/- sign.
    ○       In the Time Adjustment from Variable field, you can specify formula variables (1FORMULA). As these values of the variables may have to be whole numbers, they are rounded to whole numbers (integers) where necessary.
    The time adjustment (regardless of whether it is fixed or variable) is always related to the InfoObject specified under Variable Time Reference.
    Example of a time adjustment of -3:
    The variable time reference is To the exact day and the InfoObject under Variable Time Reference is 0CALDAY. Instead of 07.11.2006, after the time adjustment, 04.11.2006 is used for the translation.
    The variable time reference is End of Week and the InfoObject under Variable Time Reference is 0CALWEEK. Instead of 52.2004, the week 49.2004 is calculated and the end date is calculated from this.
    For more info pls refer this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/EN/80/1a6806e07211d2acb80000e829fbfe/content.htm
    I hope these will helps you.
    Thanks .
    Hema

  • BEX Variable processing type Authorization

    Hello ,
    Currently we have Company code as Authorization relevant and we have BEX Variable of processing type "Authorization". currently when user executes the BEX query, he is able to see list of company codes which he as authorization to and all of them were selected in the prompts. Now the requirement is, User want to see list of company codes which he as authorization to in F4 but nothing should have been pre-selected in the prompt, he will select manually the company codes what he wants.
    please guide me how to achieve this.
    Thanks,
    Ashok Kumar

    Actually, the default values(in Bex) are bound to appear as per RSECADMIN definition. That's how it behaves. To try in a different way for your Authorizations, you may try with a BADI with all Authorized values in the code. Please search below document in SCN.
    Restricting F4 (Input Help) Values While Running a SAP BW Query

  • Using BPS Variable of Type Authorization

    Hi,
      I have tried to use a variable of type 'Authorization' to effectively control the access of a certain set of users for certain version of plan data.
    Example: User A can have access (change) to both plan version 01, 02
                   User B can have change access to version 01 and only display access to version 02 of plan data.
    I am trying to have both the version displayed in the single layout (web as well as excel).
    I couldn’t find detail info on this, any help is appreciated.
    Thanks

    Hello,
    Authorization variables are not the appropriate option to restrict display/write access for the scenario you mention.
    My suggestion would be to create 2 layouts. In one layout the users can write to both the versions and in the second you can have the option to write to version 1 and display version 2.
    You can then have authorizations set on these layouts to restrict access.
    Hope this helps.
    Sunil

  • How can we derive the Abs quota type from absence type?

    we need to develop a report where we need to fetch Abs quota type from abs type.
    I checked T554S, we can get counting rule from it and then T556C and then to assigned deduction rule in table T556R.
    From T556R, qota type is there but the field is ABWKO and it is structure. How do read values from deduction rule.
    we need KTART field which is in V_T556A.

    Hello,
    Did you find the solution to your problem?
    Kr,
    Julien

Maybe you are looking for

  • Small Branch Equipment Question

    HI, A small remote site is going to need a dedicated 10mb connection to our Main Campus. Probably an 10mb ELAN connection(not decided as of yet). The site will be small - no bigger than 2500 sq feet with small walls possibly. Only one VLAN will be ne

  • Not loading correct startup prefs (safe mode?)

    Trying to rebuild my system after a hard drive failure (backup on external drive was somehow corrupted as well). Luckilly, my ipod contained all my music (although I did lose all movies and TV shows) and was up to date. I have my new system configure

  • How to run a particular test from a set of CodedUI tests?

    Hi, I have designed custom framework from which we can decide which test case needs to be run or not. When I mark a test case as Yes (which means this testcase needs to be execute), how can i execute only those test case alone from Visual Studio? Her

  • Improve video quality and flip video

    hello- Here is my issue - I am taking video from an iphone app and I need to put it into another software package - the video is not high enough quality for the analysis I need to do and when it goes in the software it is turned 90 degrees. questions

  • Collections or Temporary tables?

    I am trying to put together a wizard to collect data. These are employee timecards and consist of a master table and about 5 detail tables. I can successfully collect the master information into a collection, but I'm trying to figure out how to colle