Bypassing authority check in function module

hi experts
I have developed an abap  report on material bom explosion using function module cs_bom_explosion
Its working fine and all data are coming ok since I HAVE THE AUTHORITY OF T CODE CS03..
pls note all bom fn modules checks for authorization .
However in production environment some users may not have CS03 AUTHORIZATION.
for them this report is not displaying  any bom data.
Now the requirement  is such that user will not have cs03 authorization,
but will see the bom data through this report.
so how to stop the authorization check for cs_bom_explosion in  abap report.
regards
pankaj

as per my knowledge, granting the rights to those users is only the solution. Now a days the customers are wanting to add explicit authority-check too in the Z objects!! so, i dont see its good idea to bypass the check.
thanq
Edited by: SAP ABAPer on Mar 7, 2009 6:12 AM

Similar Messages

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • How to check if function module exist

    Hi All!
    Does anyone know how to check if function module, which name is provided by the user, exists?
    I have to execute a function but when user provides a incrrect name - i receive a short dump. I would like to chceck if this function exists before execution and if not - warn user with message box.
    Thanks
    Tomek

    REPORT z_tmtest MESSAGE-ID zz.
    PARAMETER: a_fname  LIKE tfdir-funcname.
    PERFORM test_fun_exist USING a_fname.
          FORM test_fun_exist                                           *
    Test FM Exists
    FORM test_fun_exist USING f_funcname  LIKE tfdir-funcname.
      CALL FUNCTION 'OM_FUNC_MODULE_EXIST'
           EXPORTING
                function_module = f_funcname
           EXCEPTIONS
                not_existent    = 1
                OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE e001.
      ENDIF.
    ENDFORM.

  • Is it possible to bypass authority check in standard program?

    Dear gurus,
    I met a problem, i am trying to build a costom program, which will call a sap standard function module, but the problem is:
    in the standard function module , there is a check against authorization object p_tcode, i dont want to give user this authorization in pfcg, so i want to bypass this check in the standard module , is that possible?
    I mean, in my program , before calling the sap fm, do something to trick the system that the curent user have the required authorization, after execute the fm , restore everything.
    is that possisible?
    thanks and best regards.
    netz

    Hi,
    What is the problem with giving them maintain authority for the transaction code that is being checked against ?
    Surely your program is allowing them to do the same functionality as the standard transaction or is there a lot more functional stuff you don't want them to have ?
    If it is an ESS function you are developing then surely they are accessing SAP via the portal and therefore cannot login to SAP directly and run the transaction anyway .....
    Kind regards
    Colin

  • Authorization check on Function module return values

    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?

    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

  • Authority-Checks in Function REUSE_ALV_GRID_DISPLAY

    Hi fellow developpers,
    I'm trying to figure out why a user with just basic
    display-authorizations has the option "Excel-Download"
    available in the ALV-Grid display variant of SE16
    (data browser) while on the other hand for such a user
    all the download-options seem to be automatically shut
    off in my programs on basis of the function module
    REUSE_ALV_GRID_DISPLAY. Does anybody know which authority
    object(s) need to be granted to make those functions
    available again?
    Thanks in advance for your appreciated help
    Andreas Flügel

    Hi,
    I found just one authority check.
      authority-check object 'S_GUI'
      id 'ACTVT' field '61'. "download
      if sy-subrc <> 0.
    Do you receive any message ?
    Svetlin

  • Combination Checks using Function Module

    Hi people,
    I am trying to use function module to carry out a 'simple' combination check.
    Rules: If no values are entered for WBS, Cost center and profit center, raise and error.
    Also, if a value is entered for both cost center and wbs raise an error.
    The fucntion module looks okay, but the combination check doesn't work. It still allows the records to be saved in the infocube when I test on the layout, even when the conditions specified are met. No errors are raised.
    see code below:
    FUNCTION ZFF_BPS_CHCK_CC_WBS_PC.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(IS_CHAS) TYPE  ANY
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"  EXCEPTIONS
    *"      NO_VALUES_ENTERED
    *"      MORE_THAN_ONE
       FIELD-SYMBOLS: <fc_profit_ctr> TYPE /BI0/OIProfit_Ctr,
                     <fc_wbs_elemt>  TYPE /BI0/OIWBS_ELEMT,
                     <fc_costcenter> TYPE /BI0/OICostcenter.
      ASSIGN COMPONENT:
      '0PROFIT_CTR' OF STRUCTURE is_chas TO <fc_profit_ctr>,
      '0WBS_ELEMT' OF STRUCTURE is_chas  TO <fc_wbs_elemt>,
      '0COSTCENTER' OF STRUCTURE is_chas TO <fc_costcenter>.
    *CHECK IF ALL THE VALUES ARE EMPTY
      IF <fc_profit_ctr> = '#'
          AND <fc_wbs_elemt> = '#'
          AND <fc_costcenter> = '#'.
        MESSAGE e000(ZBPS) RAISING NO_VALUES_ENTERED .
      ENDIF.
    *Check if both cost centre and wbs are entered.
      IF <fc_costcenter> <> '#'
        AND <fc_wbs_elemt> <> '#'.
        MESSAGE e000(ZBPS) RAISING MORE_THAN_ONE.
      ENDIF.
    ENDFUNCTION.
    Any helps will be appreciated.
    Regards,
    Uche

    Hi Uchenna,
    The function module will not be called if all of the characteristics being checked are unassigned.  Therefore if you are trying to test this combo check by entering a line with blank WBS, CC, PC, then the code will never actually be called.
    If you want to ensure this doesn't happen then I recommend writing a FOX that checks for this combination and throws an error if found.  You can run the FOX on refresh so the check will happen each time the user enters a new line and hits refresh.
    Hope this helps,
    Tristan

  • Transaction BUS3 - Further checks - Own function module

    In order to create additional checks on BP Identification Numbers, we used tx BUS3 to add to view BUP520 under Further Checks our own function module.
    As a start we took a straight copy of BUP_BUPA_PAI_MISC, the SAP delivered function module.
    After the SAP FM, our Z-module gets called with parameter I_SICHT, identical to the
    parameters of the SAP FM. No other parameters nor tables get passed.
    How can we get hold of the same data as the SAP FM ? We want to check e.g. table
    GT_BUT0ID (identification numbers). It is filled in the SAP FM at the end of FORM bup520_pai, but is empty in the Z-module ?
    Thanks for your solution.

    Hi.
    We also validate the ident. numbers but on check or save event.
    Create and Add the new z.fm to the event DCHCK (appl = 'BUP') in tcode BUS7.
    We use some trick to get this data from memory [SAPLBUD0].
    You can try to use it for the PAI (the same f.group = BUD0)
    function z_gzp_but0id_get.
    ""Local interface:
    *"  TABLES
    *"      OT_BUT0ID STRUCTURE  ZGZP_ST_BUT0ID OPTIONAL
    *"      OT_MEM_BUT0ID STRUCTURE  VBUT0ID OPTIONAL
      data: lv_fname1(50) type c value '(SAPLBUD0)GT_BUT0ID[]'.
      data: lv_fname2(50) type c value '(SAPLBUD0)MEM_BUT0ID[]'.
    ***------ ID-NUMMERN -
         BEGIN OF GT_BUT0ID OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA:   XMARK     LIKE BOOLE-BOOLE,
           TEXT      LIKE TB039B-TEXT,
           ENTRYDATESTR TYPE BU_ENTRYDATESTR,
           DATEFROMSTR  TYPE BU_DATEFROMSTR_ID,
           DATETOSTR    TYPE BU_DATETOSTR_ID,
         END   OF GT_BUT0ID,
    ***------ ID-NUMMERN: ZUORDNUNGEN (ALTER STAND) -
         BEGIN OF GT_BUT0ID_OLD OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA: END OF GT_BUT0ID_OLD,
    corresponds to declaration of gt_but0id in include LBUD0TOP
      types: tp_s_but0id type zgzp_st_but0id.
      types: tp_t_but0id type standard table of zgzp_st_but0id.
      types: tp_s_mem_but0id type vbut0id.
      types: tp_t_mem_but0id type standard table of vbut0id.
      field-symbols: <fs1> type tp_t_but0id.
      field-symbols: <fs2> type tp_t_mem_but0id.
      data: ls_but0id1 type tp_s_but0id.
      data: ls_but0id2 type vbut0id.
      if ot_but0id is requested.
        assign (lv_fname1) to <fs1>.
        clear ot_but0id[].
        loop at <fs1> into ls_but0id1.
          ot_but0id = ls_but0id1.
          append ot_but0id.
        endloop.
      endif.
      if ot_mem_but0id is requested.
        assign (lv_fname2) to <fs2>.
        clear ot_mem_but0id[].
        loop at <fs2> into ls_but0id2.
          ot_mem_but0id = ls_but0id2.
          append ot_mem_but0id.
        endloop.
      endif.
    endfunction.
    I hope it helps.
    Regards, Robert

  • Bypass authority check when creating Ibase from BAPI

    Hi,
    We have a requirement to create/update an Ibase when saving a Service Order.  We don't want to give users authorization to update the Ibase via PFCG.
    Is there a way to bypass the standard authority check that is executed when calling CRM_ICSS_CREATE_IBASE or CRM_ICSS_CREATE_COMPONENT so that the Ibase can be updated without the user having to have the necessary athorisation object?
    Is there an alternative method to create/update the Ibase that will not check authorizations?
    regards
    Tim

    Hi,
    FM CRM_IB_AUTHORITY_CHECK gets called during IBase create.
    You can create implicit enhancement in this FM to bypass the authority check.

  • Function modules for User check and Product search

    Hi,
    Please give me the names of function module which are used for user login check, and Product search.
    Thanks,
    Devender V

    Hi,
    For User login check belwo Function module,
    SUSR_LOGIN_CHECK_RFC for ECC/R3
    CRM_ISA_LOGIN_R3USER_CHECKS for CRM
    For product try below Function module.
    BAPI_MATERIAL_GET_DETAIL
    I hope this information will help you.
    Regards.
    eCommerce Developer

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

  • Function Module for syntax check on the repository objects

    Hi Experts,
       Can anyone help me in finding out the function module used to do syntax check on Repository objects(PRograms/Smartforms/FUnction Modules...etc.,)
    Dr. Arif Shaik

    Hi,
    Can you please check following function modules? But I am not sure that you can get it all in one.
    EDITOR_SYNTAX_CHECK  (For any report)
    SSF_PREPARE_SYNTAX_CHECK (For any smarrt form)
    RS_SYNTAX_CHECK ( ABAP Syntax Check with Dialog and Navigation)
    CHECK_FORM_ITF_SYNTAX
    RS_DISPLAY_SYNTAX_DIAGRAM
    RS_CUA_INTERNAL_SYNTAX_CHECK
    SEO_CLASS_CHECK_INCLUDE_SYNTAX
    SEO_CLIF_GET_SYNTAX_INFO
    C195_TEST_SYNTAX_CHECK
    C1F0_PHRID_SYNTAX_CHECK
    Pls let me know if anything is unclear.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 8, 2010 10:59 AM

  • Regarding obselete Function Module in ECC6.0...plz repl urgent

    Hi,
    I am copying a program from <b>4.7 to ECC 6.0 ,</b>and when i check <b>SLIN</b> errors i am getting the following error.
    <b>error:</b>
    <b>Function module STRING_CENTER is flagged as obsolete.
    If you have any queries, contact the author of the function module</b>
    The function Module is:
    <b>CALL FUNCTION 'STRING_CENTER'
      EXPORTING
        STRING          = TEXT_IN
    IMPORTING
       CSTRING         = TEXT_OUT
    EXCEPTIONS
       TOO_SMALL       = 1
       OTHERS          = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.</b>

    Hi,
    C147_STRING_SPLIT_AT_POSITION
    STRING_SPLIT
    STRING_SPLIT_AT_POSITION
    check this sample code
    DATA: text(10) TYPE c VALUE '0123456789',
    text1(6) TYPE c,
    text2(6) TYPE c.
    PARAMETERS position TYPE i.
    CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
    EXPORTING
    string = text
    pos = position
    IMPORTING
    string1 = text1
    string2 = text2
    EXCEPTIONS
    string1_too_small = 1
    string2_too_small = 2
    pos_not_valid = 3
    OTHERS = 4.
    Regards

  • Delivery split using function modules or BAPI

    Dear All,
    I have a requirement that i need to split deliveries with reference to sales order using any function modules or BAPIs. If there are any BAPIs or FMs, let me know the sample coding also. Kindly help me in this regard as soon as possible.
    Thks in advance,
    Nagarajan
    Edited by: abapnag on Jul 1, 2009 10:06 AM
    Edited by: abapnag on Jul 1, 2009 10:07 AM

    Check BAPI_OUTB_DELIVERY_SPLIT_DEC
    Check the Function Module DOC_INPUT_SHP_OBDLV_SPLIT_DEC
    and also chk
    Re: BAPI
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jul 1, 2009 10:32 AM

  • Functional module to get the File from a given Directory

    Hi all,
    I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
    give me good sugestion
    regards
    paul

    Hi Paul,
    Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
    In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
    Check this code.
    REPORT ZSHAIL_SPLITFILE.
    data: it_tab type filetable with header line,
          gd_subrc type i.
    tables: rlgrap.
    data: path type string,
          file_name type string.
    parameters file_nam type rlgrap-filename .
    data: user_act type i.
    at selection-screen on value-request for file_nam.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        WINDOW_TITLE            = 'select a file'
       DEFAULT_EXTENSION       = '*.txt
        DEFAULT_FILENAME        = ''
        FILE_FILTER             = '*.txt'
        INITIAL_DIRECTORY       = ''
        MULTISELECTION          = abap_false
       WITH_ENCODING           =
      CHANGING
        file_table              = it_tab[]
        rc                      = gd_subrc
        USER_ACTION             = user_act
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if user_act = '0'.
    loop at it_tab.
    file_nam = it_tab-filename.
    endloop.
    endif.
    path = file_nam.
    CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
      EXPORTING
        full_name           = path
    IMPORTING
       STRIPPED_NAME       = file_name
      FILE_PATH           =
    EXCEPTIONS
      X_ERROR             = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    at selection-screen.
    message i001(zmess) with file_name.
    Regards,
    SP.

Maybe you are looking for