Authorization check on Function module return values

Advertisement
Hi,
I have a tricky situation. In our BW implementation, many of the FI infoobjects are authorization relevent. One of the objects is 0COSTCENTER.  A user has been assigned with authorization profile, in which the user is authorised for COST CENTER = A* and #.  All planning templates were working nice.
We were on SP 12 earlier, now we upgraded to SP 20. Now came a issue, the user gets error that user is not authroised for the data. After our analysis, we found nothing wrong as such, so contacted SAP. They came back with a root cause
In my planning function, an ABAP function module is used. The function module returns a COSTCENTER value. This return value is then assigned to a variable, this variable is of type 0COSTCENTER.
SAP said there was a bug in their own design. The bug was, if the cost center value is directly used in planning function for other calculations, it will throw an authorization error.  But, if the COST CENTEr value is given to a variable and that variable is used for other calculations,  it works fine. Thats why it worked for us earlier.
Now, they have removed that bug, so variables are also checked against authorizations and they said we need to either change the code or give * for the COST CENTER authorization.
So we have a problem. It is not straight forward to give * for COSTCENTER in FI BW implementation. SAP theory is that they cannot say which value the functional module will return. So they will check against ALL the values for COSTCENTER but not the authorised values.
Has anyone seen this issue before? is it only specific to planning function or its just ABAP concept? Any suggesations to come out this problem?
Advertisement

Replay

Bindu, thanks,
The error is coming at the program compile level itself i.e. before executing the planning group itself. As per the F1 help on forumla editor and from their support, the system reads all the reference data,  So when it sees the function module and its export parameter, it captures all the data for COST CENTER as reference data.
Thus even I am sure that the return value will be always authorized, the reference data is checked for the full authorization. Thus its failing

How to pick the entries from a function  module fields values

hi guys,             i have a function module 'BP_JOBLOG_READ’.when i execute this for a particular jobname,i will get some entries.again if i click those entries,i will get some fields with values.in that one field 'text' contains total credit amoun

Authorization check  for posting a specified movement type on certain plant

<h5>Iu2019m posting goods movements using BAPI_GOODSMVT_CREATE, I have to check If the user has authorities for posting for a specified movement type on certain plant. How do I implement it, do I need to create a authorization object with ACTVT, WER

Function module PTRA_WEB_EXPENSE_REPORT_GET_2 not working when used in loop

Hi All, I have used a function module PTRA_WEB_EXPENSE_REPORT_GET_2  in a custom fumction module which i am developing fetch the travel expense data . The function module PTRA_WEB_EXPENSE_REPORT_GET_2  returns the travel expense data based on the emp

Process Chain Review Question: function module/ABAP program/Event

Hi, 1. Can you tell me a bit more about function modules such as RSPC_CHAIN_ACTIVATE_REMOTE 2. What are function modules in general terms. i.e.  What is their role? 3. How do I see all function module available? 4. When is function module used instea

Authorization Check in Personnel Cost Planning (PA-CP)

Dear Experts, We are facing an issue where there is no authorization checking when performing the Cost Planning functions. The requirement here is to put in an authorization check such that when: 1) collecting cost plan data for employees (tcode: PHC

Function Module or alike for Data Cleansing

Hi Experts, Does someone know a function module, method or something to create a complete cleansing case, that is, a cleansing case (header) and its mapping (relationship among the master and sourceu2019s fields). I found the FM BAPI_CLEAR_CASE_CREAT

Standard function modules

how to work with standard function modulesTo work with standard function modules, First Check the function module in se37  and also read the function module documentation if available execute the function module. u will get a screen. You need to give

No function module has been generated  , when transported to quality ?

Hi People, I created a zsmartform and transported to quality,  but when i checked the function module of smartform in quality its saying ' No function module has been generated yet '  but the smartform is in active status . when i tried to activate i

UDPWrite in a loop. "A Windows Sockets function call returned an unexpected error."

Hello together, i use UDP Support Library in NI CVI 9.0. When i wait for receiving a packet at the pc to send then a packet from the pc, the functions UDPRead and UDPWrite work fine. If i want to test the maximum throughput, i put the UDPWrite in a l

HR TEM - Function Module  to Replace Attendee in the Background

Hi Experts, We are on SAP 4.7. We have a requirement to automate the Replace Attendee process(T code PV03) in TEM. I need to ask, if there is any standard function module or BAPI like we have for Booking (BAPI_BOOK_ATTENDANCE) and for pre booking (BA

Inbound custom IDOC  function module

I have created a custom idoc and attached a process code to it. The proceesing function module, reads values from the idoc and inserts into a database table. My question is will this function module be invoked simultaneously? If so, should I first lo

How to find the function module for standard tables.

Hi Could any one please tell me how to find the standard function module to update the standard tables Thanks & Regards SowmyaHi sowmya, To find the function modules for standard tables you go for a where used list of that particular table and check

Is there any Function Module to create SERIAL NUMBER

Hi All,      I need to create "SERIAL NUMBER" by passing "Material & Equipment Category ('S' -Always) ". Plz Advise me , is there any Function Module to Create  "Serial Number ". Thanks in Advance. Vyshu.hi, check this fu

Function Module For Sending Mail

Hi Experts, Is there any function module to send a mail from the ABAP program. My requirement is to run a report and send the content of the an Internal table as mail. Thanks in AdvancehI,   Here is the example program *& Report ZSENDEMAIL * *& Ex

Function Module or Program to get where used list

Hi, I´ve been searching for Function Module or program to get where used list for an object. I try using the FM 'RS_TOOL_ACCESS' with parameters operation = 'CROSSREF', objectname = 'ZMYPROG', object_type = 'PROG' and in effect i get the list of obje

How to capture the User input value to user exist function module.

Hi, How can i capture user input value.Here i am using User exist in BPS variable. Calculating days using user exist functin module and my input is another variable i.e user defined value. How can i capture user defined vaule into my function module.

Function module not returning revisision level in Report

Hello Abap Gurus, I am not a regular ABAP programmer, but i do few changes here and there if programmer is busy. My dilemma is, When i use REVISION_LEVEL_SELECT function module via SE37 it works fine: Import parameters               Value AENNR AEOBJ

Function module for se16 with out authority check for se16

Hi , I am creating a tode YSE16 which has same functionality as SE16 but having its own authority check. I am calling a function module RS_TABLE_LIST_CREATE function module to get the functionality of SE16. But is there any way that i can get the fun

Passing values to function module

Hello Everybody!      I have defined a function group ZSUB_FGROUP1 and within that, I have defined a function module ZSUB_FMOD1. I wish to pass one set of values of following types: VBELN, POSNR, MATNR, ARKTX, KWMENG, VRKME, NETWR   from VBAP and  WA