SAP Functional Module for authorization tables

I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
Thank you

Hi Prabhu,
Other than function modules with role, I had also tried to look for function modules with AuthObject*.
Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
Kindly advice.
Thank you.

Similar Messages

  • How to create ENQUEUE function module for s567 table

    Hi Experts,
    Anyone Plz tell the steps how to create a ENQUEUE function module for the table s567.
    Its somewht urgent, plz help me.
    <REMOVED BY MODERATOR>
    Mohana
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:21 PM

    Hi,
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    Hope this will give a basic idea.
    Regards
    Sudheer

  • 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
    Sowmya

    Hi sowmya,
    To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
    and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
    Hope this information would help you
    Regards
    Narin Nandivada

  • Crystal Reports Based on SAP Function Module and Transperant Tables

    Hi,
    I need to develop reports based on SAP trasperant tables and to filter the records I require to use one of the function module in SAP.
    I have created parameters in Crystal reports that are required for the function to execute and are included in the where clause of the query. This helped the fuction to get those parameters and execute it.
    The thing is that the fuction works fine with one set of parameters and gives accurate results both in SAP and Crystal Reports.
    But fails for other set of parameters.
    It works fine when we directly execute function in SAP produces a record set. But, when we pass those parameters from Crystal Reports it fetches no data.
    Can anybody tell me the exact procedure to use function module and transperent tables together in Crystal Reports ?
    Thanks in Advance.
    Niwas Joshi

    Hi,
    This is going to be hard to explain, however you need to recognize that the function has input and possibly output (export) parameters.  Crystal Reports is able to work with these parameters.  However it is up to you to figure out how these parameters are used effectively to give you the correct results when joining the function with other data sources such as transparent tables.
    If you're using transparent tables and functions in a Crystal Report, then you need to link these objects in such a way so that a left outer join for example is using the function's output parameters to join to the transparent table equivalent fields.  However if the table is the starting point then the joins from the table should join the Input parameters of your function.
    you can set these joins in the Database menu | Database Expert | Links of Crystal Reports.

  • Urgent: creation function module for chvw table

    hi,
    I want to make Function Module for the fields in which i have to display the production order and batch numbers.plzz tell me how to create for it.

    Hi Everybody,
    About how to use this function Does anyone have an idea?
    I've found it.
    call function 'FI_DOCUMENT_READ'
    exporting
       i_awtyp = 'VBRK'
       i_awref = vbfa_tab-vbeln
       i_awsys = vbrk-logsys
       i_bukrs = vbrk-bukrs
       i_gjahr = vbrk-gjahr
    tables
       t_bkpf = xbkpf
       t_bseg = xbseg
    exceptions
    wrong_input = 1
    not_found = 2.
    But this is not enough.
    Best Regards Rasim.

  • Function module for BSEG table

    Hi Guru's,
      SELECT bukrs
             belnr
             gjahr
             budat
             monat
             waers
             awkey
        FROM bkpf
        INTO TABLE i_bkpf_data
        WHERE  bukrs EQ pa_bukrs AND
               budat IN so_budat.
    SORT i_bkpf_data BY bukrs belnr gjahr.
        IF i_bkpf_data[] IS NOT INITIAL.
          SELECT bukrs belnr gjahr koart dmbtr wrbtr pswsl
                 kokrs kostl hkont aufnr lifnr ebeln buzei shkzg
            FROM bseg
            INTO TABLE i_bseg_data
            FOR ALL ENTRIES IN i_bkpf_data
            WHERE 
                    bukrs  EQ pa_bukrs AND
                   belnr    EQ i_bkpf_data-belnr AND
                   gjahr    EQ i_bkpf_data-gjahr AND
                   kostl    IN so_kostl AND
                   lifnr      IN so_lifnr AND
                   hkont   IN so_hkont.
       ENDIF.
    I got performance issue on this Query..while accessing the data from BSEG table,its makes performance issue in my program so i want to improve performance of the program.i was analysed that BSEG table makes performance issue..
    Hi..Anybody give the solution imporving this Query or give some function module for accessing BSEG table..
    Note..I want to pass my selection inputs also into function module..i was seen some function module for BSEG,those are not satisfying the my inputs so those also making performance issue..
    Regards
    P.Senthil Kumar

    Hi Everybody,
    About how to use this function Does anyone have an idea?
    I've found it.
    call function 'FI_DOCUMENT_READ'
    exporting
       i_awtyp = 'VBRK'
       i_awref = vbfa_tab-vbeln
       i_awsys = vbrk-logsys
       i_bukrs = vbrk-bukrs
       i_gjahr = vbrk-gjahr
    tables
       t_bkpf = xbkpf
       t_bseg = xbseg
    exceptions
    wrong_input = 1
    not_found = 2.
    But this is not enough.
    Best Regards Rasim.

  • Function Module for authorization for ztable

    Hi All,
    I created one ZTABLE .I am adding,changing and delete data into that ZTABLE through program from upload one excel file.But before adding ,changing and delete data to that ZTABLE, first check whether that USER have authorization (Addition, Deletion or Modification) of a particular Ztable,  If the user is NOT authorized, an appropriate message will be displayed and the program will return to the selection Screen.I heard about FM 'AUTHORITY_CHECK_TABL' But i dnt know how to pass parameters.If iam right then give me how to use that Function module.then i can proceed.If there are any other function modules ,please provide with examples then i can understand clearly.Please help me regards ASAP.
    ABHI..

    Hi Abdul,
    Please follow the steps:
    Go to transaction SE54.
    1. Create an authorization group.
    2.  After creating authorization group
        You should assign authorization group for the table in question in the same   transaction.
    Now this has been done, you should use authorization object 'S_TABU_DIS' in the program
    The usage is:
      AUTHORITY-CHECK OBJECT 'S_TABU_DIS'
               ID 'DICBERCLS' FIELD <authorizationgroup>
               ID 'ACTVT' FIELD <activity>. 1 - creation, 2-modification, 3-display
      IF sy-subrc NE 0.
        MESSAGE e000(zxxx).
        EXIT.
      ENDIF.
    You can speak with your basis admin for authorization to the users.
    Just give the authorization group name, they will do it for you.
    Thanks and regards,
    S. Chandra Mouli.

  • Function module for VBFA table

    Hi Gurus,
    Please Help me on this Issue..
    I want to retrieve data from vbfa table..while making query to retrieve data from vbfa tabl,its making performance issue on production server.
        SELECT vbelv
               vbeln
                    INTO TABLE i_ref_data
        FROM vbfa FOR ALL ENTRIES IN i_billing_main
        WHERE
             vbelv   EQ i_billing_main-vbeln AND
             vbtyp_n EQ c_vbtyp_n.
    so i have tried to retrieve data using functiom module "RV_ORDER_FLOW_INFORMATION" .in this function i was not able to pass multiple document no to this function module so put this function module inside the loop but this option also making performance issue..
    LOOP AT i_billing_main_temp INTO wa_billing_main.
        CLEAR : wa_comwa,wa_vbfa.
        REFRESH i_vbfa.
        wa_comwa-vbeln = wa_billing_main-vbeln.
    This function module used for retrieving document flow data from VBFA
        CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
          EXPORTING
            comwa    = wa_comwa
          TABLES
            vbfa_tab = i_vbfa.
        SORT i_vbfa BY vbelv vbeln vbtyp_n.
        DELETE ADJACENT DUPLICATES FROM i_vbfa COMPARING vbelv vbeln vbtyp_n.
        SORT i_vbfa BY vbtyp_n.
        READ TABLE i_vbfa
                 INTO wa_vbfa
                 WITH KEY vbtyp_n  =  c_vbtyp_n
        BINARY SEARCH.
        IF sy-subrc EQ 0.
          wa_ref_data-vbeln = wa_vbfa-vbeln.
          wa_ref_data-vbelv = wa_billing_main-vbeln.
          APPEND wa_ref_data TO i_ref_data.
        ENDIF.
      ENDLOOP.
    so kindly give me the solution for improving performance of this issue.
    Is it having any function module to pass multiple inputs to the function module.?
    Regards
    P.Senthil Kumar
    Edited by: senthil kumar on Mar 23, 2009 12:23 PM

    Please add  check condition to check  internal table is blank.
    if not i_billing_main[] is initial.
    SELECT vbelv
    vbeln
    INTO TABLE i_ref_data
    FROM vbfa FOR ALL ENTRIES IN i_billing_main
    WHERE
    vbelv EQ i_billing_main-vbeln AND
    vbtyp_n EQ c_vbtyp_n.
    endif.
    This is the best possible way to retrive data from VBFA table.
    Other method you adopted will take more time since you are calling the FM in loop.
    Please check ST05 trace for your above query to see if primary index is being used. Else contact Basis to help you out.

  • Function Modules for indirect values

    What are the  function modules for indirect values?

    Hi,
    The SAP function module for indirect valuation of wages is RP_FILL_WAGE_TYPE_TABLE_EXT.
    Also, if indirect valuation is being used, the annual salary field ANSAL also may not be populated. Again, there are some SAP function modules to help us out:
    RP_ANSAL_FROM_PERNR - Use this one if all you have is PERNR
    RP_ANSAL_FROM_INFOTYPE - Good if you have already data for infotypes 0001 & 0008
    RP_ANSAL_FROM_WAGETYPES - It requires a list of wage types used in 8 .
    by
    Prasad gvk.

  • Function module for custom report for cost center group

    Hello all,
    I wonder, if there is any SAP function module for following query:
    We have got a custom program, which evaluates cost centers. We would like to evaluate a cost center group, like it is available within the report painter - the output screen is splitted into two parts, on the left part there is the cost centre group hierarchy and on the right side, there are the values for the node, which is selected within the hierarchy.
    Is there any standard function module od do we have to program it ourself?
    Thanks in advance

    Hi Peter,
    You have a BAPI which gives you the details of cost centre group, if this is what you are looking for:
    BAPI_COSTCENTERGROUP_GETLIST
    Regards,
    Eli

  • Is their any function module for deleting condition record i am trying

    Hi Experts,
    Is their any function module for deleting condition record i am trying  this way.......
    DATA: TABLE (4) TYPE C.
    DATA: KNUM LIKE KONH-KNUMH
    DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
    DATA: T681_STR LIKE T681.
    DATA: LV_NUM TYPE I.
    GET PARAMETERS
    PARAMETERS: TABNO LIKE T681-KOTABNR.
    PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
    REFRESH INT_KNUMH.
    Select single * from T681 into T681_STR
    where kvewe = K_VEWE AND
    KOTABNR = TABNO.
    IF SY-SUBRC NE 0.
    WRITE: / 'No entry in T681 for number ', TABNO.
    WRITE: / 'Check whether corresponding condition table exists.'.
    EXIT.
    ENDIF.
    TABLE = T681_STR-KOTAB.
    SELECT KNUMH FROM (TABLE) INTO KNUM.
    SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
    IF SY-SUBRC NE 0.
    INT_KNUMH-KNUMH = KNUM.
    COLLECT INT_KNUMH.
    ENDIF.
    ENDSELECT.
    DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
    IF LV_NUM EQ 0.
    WRITE: / 'No inconsistent entries found.'.
    WRITE: / 'Each record in the condition table has a corresponding.'.
    WRITE: / 'entry in the KONH table.'.
    EXIT.
    ENDIF.
    LOOP AT INT_KNUMH.
    IF TESTMODE IS INITIAL.
    DELETE FROM (TABLE) WHERE
    KNUMH = INT_KNUMH-KNUMH.
    IF SY-SUBRC = 0.
    WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
    ELSE.
    WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
    WRITE: INT_KNUMH-KNUMH(10).
    ENDIF.
    ELSE.
    WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
    ENDIF.
    ENDLOOP.
    is their any Standerd Function module  for comparing  tables if the condition record not exist in it has to exit if it is their then compare  those two tables if not exist in one table also that has  to be delete  the condition record
    Please let me know .....

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • Exception handling for a standard SAP Function Module - the OO way

    Hello,
    I was wondering what is the correct way to call a standard SAP function module inside a method of global class.
    I want to display the error via the:
    get_text( ) and get_longtext( ) methods.
    I don't want to use the sy-subrc check. Is this possible?
    My example doesn't seem to work...
    See example bellow:
    DATA: ex_object_cx_root TYPE REF TO cx_root,
          ex_text TYPE string,
          ex_text_long TYPE string.
    TRY.
          CALL FUNCTION 'L_TO_CONFIRM'
            EXPORTING
              i_lgnum                        = i_lgnum      " Warehouse number
              i_tanum                        = i_tanum      " Transfer order number
              i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
              i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
            TABLES
              t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
            EXCEPTIONS
              to_confirmed                   = 1    " Transfer order already confirmed
              to_doesnt_exist                = 2
              item_confirmed                 = 3
              item_subsystem                 = 4
              to_item_split_not_allowed      = 51
              input_wrong                    = 52
              OTHERS                         = 53.
        CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
          " Error:
          RAISE EXCEPTION TYPE zcx_transfer_order
            EXPORTING textid = zcx_transfer_order=>zcx_transfer_order
                 err_class = 'ZCL_WM_TRANSFER_ORDER'
                 err_method = 'CONFIRM_TO_2STEP_PICKING'
                 err_message_text = ex_text
                 err_message_text_long = ex_text_long.
      ENDTRY.
    Thank you very much in advance

    Hello Marko,
    If i understand correctly you've enclosed the call to the FM 'L_TO_CONFIRM' inside the TRY ... CATCH ... ENDTRY block.
    CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
    You can't do this because the FM 'L_TO_CONFIRM' doesn't propagate OO exceptions!
    Your approach is almost correct, what you've to do is goes like this:
    CALL FUNCTION 'L_TO_CONFIRM'
      EXPORTING
        i_lgnum                        = i_lgnum      " Warehouse number
        i_tanum                        = i_tanum      " Transfer order number
        i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
        i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
      TABLES
        t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
      EXCEPTIONS
        to_confirmed                   = 1    " Transfer order already confirmed
        to_doesnt_exist                = 2
        item_confirmed                 = 3
        item_subsystem                 = 4
        to_item_split_not_allowed      = 51
        input_wrong                    = 52
        OTHERS                         = 53.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
              INTO ex_text. "Get the ex_text by this technique & not by CX_ROOT->GET_TEXT()
    ENDIF.
    I'll have to check how to fetch the long text of the message
    BR,
    Suhas

  • Function modules for Transaction SE16  for any table whole data

    Hi Experts,
    i need to pass report or function module input as table name:LFA1.
    I Need to get all the data with fileds for those table.
    say : i/p
    paramters: s_tabname  like (tabname).
    here s_tabname ='lfa1'.
    output :all the fileds details with  whole data like se16 or se11 transaction for table.
    is there any function module.
    Thanks
    nag

    Hi,
    you can create this easily using runtime creation of objects and SALV for display.
    Although I would never do something like this...
    REPORT  zzzz.
    DATA:
      gr_itab  TYPE REF TO data,
      gr_salv  TYPE REF TO cl_salv_table.
      PARAMETERS:
        p_table TYPE tabname.
      FIELD-SYMBOLS:
        <tab> TYPE table.
    START-OF-SELECTION.
      create data gr_itab type table of (p_table).
      ASSIGN gr_itab->* TO <tab>.
      select *
        from (p_table)
        into table <tab>.
      TRY.
          cl_salv_table=>factory(
            IMPORTING
              r_salv_table = gr_salv
            CHANGING
              t_table      = <tab> ).
        CATCH cx_salv_msg.                                  "#EC NO_HANDLER
      ENDTRY.
      DATA:
        lr_functions TYPE REF TO cl_salv_functions_list.
      lr_functions = gr_salv->get_functions( ).
      lr_functions->set_all( abap_true ).
      gr_salv->display( ).
    You won't find anything simpler.
    Regards,
    Clemens

  • Documentation for SAP function modules??

    Hello,
    is there any documentation for the SAP function modules available?
    I need documentation for SJ01 (SAP Objects). If I try to view the documentation in SE80, I get the error message: "Document OJ_XXX(whatever I selected) is not available in language DE"
    Where can I get this documentation?
    Is there an overview+documentation available somewhere of all SAP functions which may be used for own programs? Or how do I know what's already available and how to use it?
    Thanks
    Steffi

    Hi,
    Go thru this links
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=449&h2=322&h1=303&h3=449
    http://www.erpgenie.com/abap/functions.htm
    Thanks
    Sunil

  • Function module for converting sap script to smartforms?

    hi ,
       wat is the name of  function module for converting sap script to smartforms?
    regard's
    Deepak sharma

    Hi,
    No function module is there..
    But go to T-code..Smartforms and in the menubar..
    Utilities-->Migration->Import SApScript Form.
    U can thus migrate SAPScipt to smartforms...
    How ever a lot of changes have to be done in the migrated one,,
    Regards

Maybe you are looking for

  • Does iMT 1.1 support ND3 projects

    Hi , We have got a couple of projects in ND3. The requirement is to migrate them to iPlanet environment, using JATO/iMT tool. - Does the latest "iMT 1.1" support ND3 projects in its migration process. I mean, I will open ND3 project in ND5, and make

  • After importing an image from cs5 back into lightroom, lightroom is making the image darker

    Lightroom is making my images darker after i edit them in photoshop cs5 and I dont know why. When i open the image back into photoshop it looks fine. Even when i save it as a jpeg lightroom is making the image darker. When i imported the raw image in

  • Premiere Elements 9 - can't uninstall from Mac

    I have adobe premiere elements 9.  I have 2 copies on mac and one on pc.  I have had issues with one mac and have tried to deactivate or uninstall.  I have opened a project to access deactivate and get an error.  I have tried to uninstall with adobe

  • Photo albums iphone 6

    Anyone having trouble restoring photo albums on iphone 6 ? I just set up iphone 6 with a backup I had from an older iphone. Everything syncs , except for photo albums, most of my photo albums didn't transfer over. Anyone else have this issue ?

  • Unable to open xl reporter

    hi all,       i have installed the xl reporter successfully and from the tools menu(SBO) i opened the xl reporter.when i clicked the xl reporter,  "Run-time error '0'  " was displayed. Moreover in the SBO window it displayed the error message as " un