Questions about authorization variable customer user exit
Dear all,
To reduce the authorization maintenance effort, I found from the web that we can use authorization variable with customer user exit RSR00001.
When I use the transaction CMOD to display the maintain the user exit RSR00001, the user exit does not found. I would like to know how can I use thie user-exit?
My SAP version is R/3 4.7
The information of authorization variable from web is as follow:
http://help.sap.com/saphelp_nw04/helpdata/en/6d/58f438114ee836e10000000a114084/frameset.htm
Would anyone have some ideas to solve my questions?
Many thanks
Sunny
Edited by: LI Sunny on Aug 3, 2010 12:08 PM
Dear Bala Duvvuri,
Firstly, many thanks of your reply.
Actually, what I want to do is to call some user-exit when performing authorization checking. I want to add some logic to the authorization checking and the user exit can be called automatically when performing authorization checking.
I mainly use this checking in the FI module.
Are there any ways I can perform this checking?
One more findings, I have another machine containing SAP XI, I can search the user exit RSR00001. but it doesn't exit in SAP R/3 4.7. Is it version issue or my SAP R/3 4.7 doesn't contain the BI module?
Many Thanks again.
Sunny
Similar Messages
-
Formula variable with User Exit
Hi,
Can we create a Formula Variable of processing type USER EXIT...which will display a constant Value Y
Any syntax would be helpful
ThanksHi,
check this for formula variables with user exits;
http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
http://sap.ittoolbox.com/groups/technical-functional/sap-bw/customer-exit-to-derive-formula-variable-to-text-variable-sap-bw-35-3030684
Also Check the issues and solution :
Formula Variable with User Exit....Problem
Thanks
Hemav -
Formula Variable with User Exit....Problem
Hi
My requirment is to create a Formula Variable on User Exit that will give me Current Cal Year...so that i can use that vale in Formulas
Created Formula Variable with processing Type Customer Exit single Value,Mandator and Unchecked the Variable input ready
The below code in CMOD
WHEN 'XXXXXXX'.
Year = sy-datum(4).
CLEAR L_S_RANGE.
L_S_RANGE-LOW = Year.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND l_s_range TO e_t_range.
But when i execute the query i am getting the below error
No value could be determined for variable xxxxxxx.
Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET
Diagnosis
This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
Termination message BRAIN 632 appears:
Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
WHAT WRONG I AM DOING...please update meUse the code:
WHEN 'XXXXXXX'.
IF i_step = 2.
Year = sy-datum(4).
CLEAR L_S_RANGE.
L_S_RANGE-HIGH = Year.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Let me know, if it is work or not!
- Balajee Kannan -
Question about Local Variables (Multiple answers welcomed!)
A couple of questions about Local Variables
1. Programmers always say: “Do not abuse of Local Variables”. I’d like to know, when and where Local variable are most efficiently used?
2. If I have to create a couple of local variables, is there anyway to “clone” them without going through the repetitive “create/local variables” mouse click each time? (When I try to copy and paste, it creates a new variables instead of the one that I am trying to reproduce)
3. Which is faster in execution: Updating a variable through a) writing to property node/value or b) through local variable
Everyone’s input is welcomed, so if this question is already answered, please
feel free to add additional comments/answers!1. Use Local Variables in user interface code and no where else. The only exception is using a local variable of a cluster output to define the datatype for a bundle by name node.
2. You can drag copy them then right click to get to a menu of all the currently defined controls and indicators on the VI.
3. B. The problem with A is that it forces a thread switch to the user interface thread--which can take time if you aren't already in it, and it's a very convoluted process under the hood. NI's advice never update indicator values through a property node unless you absolutely, positively can't figure out some other way of doing it.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Differnce Between Customer & User Exits
Pls tell me
What are various types of exits?
with Regards,
Manmeet singhHi Manmeet,
Differnce Between Customer & User Exits
In contrast to customer exits, user exits allow developers to access and modify program components and data objects in the standard SAP System. On upgrade, each user exit must be checked to ensure that it conforms to the standard system.
There are the following types of user exit:
User exits that use INCLUDEs -
These are customer enhancements that are called directly in the program.
User exits that use tables -
These are used and managed using Customizing.
Customer Exit
SAP creates customer exits for specific programs, screens, and menus within standard applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
If you want to enhance the functionality of your SAP System, you should take advantage of the exits available in standard applications. There are two main reasons why you should use exits rather than modifying SAP software yourself. Add-ons attached to exits have the advantage that:
· They do not affect standard SAP source code
When you add new functionality to your SAP System using SAPs exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAPs standard software package.
· They do not affect software updates
When you add new functionality to your SAP System using SAPs exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects names ensure that they will not be affected by any changes or new additions to the standard software package.
Customer exits are not available for all programs and screens found in the SAP System. You can only use customer exits if they already exist in the SAP System. You find find more information about locating applications with pre-defined exits in Locating Applications that have Exits
User Exits:
User exits allow you to add additional functions to the SAP standard.
Programs with user exits contain subroutine calls at certain points in their syntax that are identified by the prefix USEREXIT. The actual user exits are located in an include that has been assigned to a module pool. This is where customers can include any changes (enhancements) that they want to make to the system. These includes are always processed during program flow.
Advantage: In principle, customers can modify anything they want that is found in the include (tables, structures, and so forth).
Disadvantage: SAP cannot check the individual enhancements themselves which often leads to errors in the enhancement process.
Types of Exits.
1)MENU EXITS
2)FUNCTION EXITS
3)TABLE EXITS
4)SCREEN EXITS
5)KEYWORD EXITS
6)FIELD EXITS
Menu Exits
Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
Function Module Exits
Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.
When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.
Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.
These calls have the following syntax:
CALL CUSTOMER-FUNCTION 001.
screen exits:
http://help.sap.com/saphelp_erp2005/helpdata/en/94/bef83770798b76e10000009b38f842/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/13/1f2d1a831a43be8a43ecd14170bf1c/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
Function Module Exits
Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.
When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.
Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.
These calls have the following syntax:
CALL CUSTOMER-FUNCTION 001.
Field Exits
Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field. Example: The data element BBBNR identifies a companys international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100.
The field exit concept lets you create a special function module that contains this logic.
You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number.
In 4.6c, you can use "RSMODPRF" program to create field exits.
Screen exits:
http://help.sap.com/saphelp_erp2005/helpdata/en/94/bef83770798b76e10000009b38f842/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/13/1f2d1a831a43be8a43ecd14170bf1c/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
Regards,
Priyanka. -
A question about authorization of "me29n".
I have a question about authorization of "me29n".
In the screen of me29n, after I choose "cancel release" option, there are several button I can use, such as "delete","lock","unlock" and so on. now I want the "delete" button become unavailable after I choose "cancel release". how can I archive ? Is there any authorization object to use? thanks a lot.Hello Victor,
It is possible through Transaction code "SHDS".
try to create new variant for it.Also you need to take
ABAP'rs help in this .Try it.All the Best.
Regards,
Manjula. -
Webi Bypassing BEx Authorization Variable with SAP Exit
BEx query has Hierarchy Node Variable with Authorization as processing type. Its set as User Input ready
When the Webi report is refreshed, the LoVs appear as per the Authorization. However, if user doesn't select any value (pushes from right to left in variable screen) he gets NOT_AUTHORIZED error. Which is not intended, it should check the authorization in the background via SAP exit and populate the result. This is how it runs inBEx query.
However, in Webi it's giving NOT_AUTHORIZED error? This is how the product is designed to work or is it a bug.
I see several forum threads and SAP KBAs/notes but they are not answering my question. Could anyone please help.
I am ready to provide more details on this error.
Thanks,
TilakHi,
this is how authorization variable would work in any of the clients and not just Web Intelligence.
You created an authorization variable which is configured as "read for input", so the user is getting prompted.
So In Web Intelligence the LoV shows up.
if the user does not select a value, then you are not sending a value, so you basically asking for all data and you are not allowed to see all data and therefore you are getting the message "no authorization".
if you are making authorization variables as ready for input then the user needs to select the proper values - regardless of the BI tool.
if you want the authorization to be check in the background then the authorization variable should be configured to not have ready for input.
regards
Ingo Hilgefort -
Can i assign a string to a variable in User Exit?
Friends,
I would like ot write a User Exit that will assign a string to a variable depending on the value of the other variable.
I just wanted to know if such a code is valid:
When zimport
IF i_step = 2. " read user input parameter
l_s_range-low = 'Important'.
APPEND l_s_range TO e_t_range.
ENDIF.
If so, my second problem is that in the variable exit definition with processing Customer type you need to identify a "Dimension" for the variable. Non of them really fit, because the value is a string so why convert it to another format?
Your input is appreciated in advance,
Xibihi Xibi,
say you have var1 and var2, var2 will be filled depend on value of var1, you can write something like following.
please be remind that var2 is not marked as ready for input and is set to mandatory variable entry.
hope this helps.
The second step (I_STEP = 2) is called after the processing of the variable pop-up. This step is called only for those variables that are not marked as ready for input and are set to mandatory variable entry.
WHEN 'var2'.
IF I_STEP = 2.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'var1'.
CLEAR L_S_RANGE.
if LOC_VAR_RANGE-low = ...
L_S_RANGE-LOW = 'IMPORTANT'.
else.
L_S_RANGE-LOW = '....'.
endif.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF. -
Hi,
I am trying to populate a fiscal year period (from and to) dynamically using a user exit variable. The fiscal year selection is for data slicing at the planning area.
Anyone has an idea of how I can achieve this ? Some function module lines will be appreciated.
Regards,
ucheHi Uchenna,
i don't clearly understand your scenario, but i there's a great HOWTO for user exit variable. If you specify your mail i can send you.
However i have created an user exit var filled with the entries on a customer table, follows the code:
FUNCTION z_sem_bps_slice_comp.
""Interfaccia locale:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_Y_AREA
*" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
*" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
*" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
*" EXPORTING
*" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
CONSTANTS:
*l_source_var TYPE upc_y_variable VALUE 'SOURCE',
*l_source_area TYPE upc_y_area VALUE '4PERF001',
l_use_restricted_values TYPE boole-boole VALUE ' ',
l_buffer_call TYPE boole-boole VALUE 'X'.
DATA:
l_type LIKE upc_var-vartype,
lto_varsel_all TYPE upc_yto_charsel,
lto_varsel TYPE upc_yto_charsel,
lto_var TYPE upc_yto_charsel,
lto_chanm TYPE upc_yto_cha,
z_noslice(1) TYPE n.
BREAK-POINT.
DATA: ls_varsel TYPE upc_ys_charsel,
lt_chavl TYPE STANDARD TABLE OF zcompslice,
ls_chavl TYPE zcompslice.
HERE I FILL LT_CHAVL WITH THE VALUE IN THE CUSTOMER TABLE
CLEAR:lt_chavl,ls_chavl,z_noslice.
REFRESH:lt_chavl.
SELECT zsocieta FROM zcompslice INTO TABLE lt_chavl
WHERE zflag = 'X'.
IF sy-subrc <> 0.
z_noslice = 1.
ENDIF.
HERE YOU FILL THE "USER EXIT VAR" WITH PROPER VALUE EXTRACTED ABOVE, LT_VARSEL IS THE TABLE FOR THE OUTPUT VALUE OF THE USER EXIT VARIABLE
IF z_noslice EQ 1.
ls_varsel-seqno = '0000'.
ls_varsel-chanm = '0COMP_CODE'.
ls_varsel-opt = 'EQ'.
ls_varsel-sign = 'I'.
ls_varsel-low = '#'.
APPEND ls_varsel TO eto_charsel.
ELSE.
ls_varsel-seqno = '0000'.
ls_varsel-chanm = '0COMP_CODE'.
ls_varsel-opt = 'EQ'.
ls_varsel-sign = 'I'.
LOOP AT lt_chavl INTO ls_chavl.
ls_varsel-seqno = ls_varsel-seqno + 1.
ls_varsel-low = ls_chavl-zsocieta.
APPEND ls_varsel TO eto_charsel.
ENDLOOP.
ENDIF.
ENDFUNCTION.
Hope it helps
Fabio -
How to find if 1000 variables have user exit or not
Hi could you please let me know any table
to find if a list of variables In bex have a user exit or not .
actually i have 7000 variables and want to document if these variables have a user exit or not for Reporting Documentation
Wuld really appreciate your help
Thanks and regards
NovinoHi,
See following tables related to Rpeorts, so check in that tables to find the Variables and properties
Use RSZGLOBV table and there give OBJVERS = A and VPROCTP = 3 or 4 then execute it and se eth variables, all that are SAP/Customer Exit varaibles.
RSZELTDIR Directory of the reporting component elements
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references
RSRREPDIR Directory of all reports (Query GENUNIID)
RSZCOMPDIR Directory of reporting components
RSZRANGE Selection specification for an element
RSZSELECT Selection properties of an element
RSZELTDIR Directory of the reporting component elements
RSZCOMPIC Assignment reuseable component <-> InfoCube
RSZELTPRIO Priorities with element collisions
RSZELTPROP Element properties (settings)
RSZELTATTR Attribute selection per dimension element
RSZCALC Definition of a formula element
RSZCEL Query Designer: Directory of Cells
RSZGLOBV Global Variables in Reporting
Thanks
Reddy -
How to access variables outside user exit
Hi,
I'm working with a user exit and my problem is that in a particular moment I have to access variables located outside the scope of the user exit (they are in a standard program)
How can I reach these variables?
thanks in advanceHi,
If they are global variables then you can access them using Global assign technique,
For example,
FIELD-SYMBOLS: <fs_value> TYPE ANY.
ASSIGN ('(SAPMV45A)XVBAK') TO <fs_value>.
It is basically,
ASSIGN ('(<Std. Program Name>)<Variable name>') TO <field symbol>.
NOTE: To make sure they are accessible in your user exit, just put a break-point in the user exit and once you are there in debugging, type in,
(<Std. Program Name>)<Variable name> in the Field names section and if it does not show it in RED then it is accessible..
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni -
Question about Logon ticket with user mapping at BI-JAVA environment
We're implementing BI 7.0 including BI Java and SAP EP for end user
access.
I have two question about SSO method when we're using BI Java.
I know we can simply configure SSO logon ticket with BI-Java(EP
included) and BI-ABAP through BI template installer and we already
succeeded in that case.
But the problem is we want to change it to user mapping SSO method for
some our internal reason.
After we configure user mapping SSO, we've got SSO failed error when we
call BI-Java stuff like BEx Web Application iView.
After many testing implemented, we found SSO Logon ticket with user
mapping (using SAP reference system). It seems working now.
But our question is "Is it no problem when we use SSO logon ticket with
user mapping?" Is there any restriction or issue?
One more question is we can ONLY use user base mapping when reference
system used. How can we assign BI-ABAP users to EP Group?Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
Hope this helps!! -
Display a variable d'user exit as text in the title of a colomn
Hi, experts,
I would like to calculate the number of days of a certain month. This calculation would be done in the user exit.
Then in the report, this number will be displayed in the title of the colomn.
Is it possible to realise this requirement and what is the configuration regarding as this variable?
Thanks in advance.Hi,
Yes you can do it.
Create text variable 'ZNO_MNTH', with processing by Customet Exit.
Variable Entry = Mandatory
Length of Input field = 0008
Uncheck ready for input.
Note: Here I'm using based on SY-DATUM, for your requirement you can change the LOGIC. Insted of SY-Datum you can pass your Date.
WHEN 'ZNO_MNTH'.
*ZDATE = SY-DATUM.
DATA: NODAYS TYPE INT1.
LOOP AT i_t_var_range INTO loc_var_range.
IF sy-subrc = 0.
CLEAR: l_s_range.
CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
EXPORTING
IV_DATE = SY-DATUM
IMPORTING
EV_DAYS = NODAYS .
L_S_RANGE-LOW = NODAYS.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
ENDLOOP.
In Report you just gve text variable and check it, don't give any Alphabets in heading, just give this Text Variable.
Thanks
Reddy -
How can I define global variable in user exit whic I can use anywhere.
Hi all,
How can I define global variable( Table ) which I can use when it come back to same user exit where I defined and stored some data.
What I mean is I want to define 1 global table.
In user exit when it comes I store some information. and again when it will come I will have that stored information so I can use it.
Thanks a lot in advance.You can use EXPORT TO MEMORY ID and IMPORT FROM MEMORY ID Statement for this.
EXPORT T_ITAB FROM T_ITAB TO MEMORY ID 'ABC'.
IMPORT T_ITAB TO T_ITAB FROM MEMORY ID 'ABC.' -
Accessing variable across User Exit (i.e. across function pools)
Hi,
I have writen a user exit for MB31 transaction. Which uses following function modules...
EXIT_SAPLIPW1_001
EXIT_SAPLIPW1_004
EXIT_SAPLIE01_005
EXIT_SAPMM07M_001
First three functions belongs to XQSM function group and last function fuction belong to XMBC function group.
I have two top includes, ZXQSMTOP for first 3 and
ZXMBCTOP for the last one.
I am not able to access the variables declared in ZXMBCTOP in the first 3 functions...
(I am using EXIT_SAPMM07M_001 only to get the posting date.)
How to do it?
Advance thanks.
Regards,
Balaji Viswanath.Hi,
there are several ways to achieve this.
a) export the variables to a parameter using set/get parameter
b) export the variables to a memory using export/import to/from memory
c) create your own fm and pass the values to the fm, post it to the global memory of your fm and in the other exits, get from the global memory of your fm.
Hope this helps
regards
Siggi
Maybe you are looking for
-
Error " M7 185 " consignment stock does not exists with Customer/vendor
Dear SDN Team, The system is throwing the error "Special stock at customer/vendor 3000000001 does not exist (Notification E M7 185) . The consignment Process has been sucessfully maintained correctly with the customer/vendor in ECC system ,but the CR
-
Extracting data from Ms power point ?
Hello every one My application is to draw the user defined symbols on the map area . And then represent the whole map along with the shapes drawn on it in labview 2d picture control So, 1 While reading the image from power point is it possible to sep
-
Need Help on Integration between OAM - IAM
Hi, Any one Please Share me the Documents related to Integration between OAM - IAM. Regards, Sai.
-
Posting iweb site to ftp...help
I created a web page for a charity but when I upload it to the ftp it goes through the process of uploading but the page shows at 404 forbidden. What can cause that? I did not change any settings or do anything different from other sites I have made
-
Hello everbody: I have two options: rent sap ides or installing sap ides in my computer, Well in the case I rent a server: someone can say me a good place to rent it, to pay $40 per month It is good?. I need to practice SAP ABAP, MM and SD for now.