RFC FUNCTION/BAPI for derived Roles (PFCG)

Hi all,
I have found many RFC functions for Users and Roles management but nothing for create derived roles.
Any idea for creating derived roles from external applications ?
Thanks
Andrea

Hi Andrea,
check the link below.
automate update profiles by abap (without PFCG)
Re: automate update profiles by abap (without PFCG)  ?
Also check if this is helpful
BAPI_JOBROLE_CLONE 
Regards,
SuryaD.

Similar Messages

  • DB table for Derived Roles and Parent Roles

    Hi Expart,
    In which DB table the Derived Roles and Parent Roles are store .that is i need to find out the derived role and parent Role .i have completed the Complex and single role by table AGR_AGRS
    But i have to find out the table for Derived Role
    Plz help me to get those table
    Thanks in advance
    Tarak

    It's the same table as for the master role: AGR_DEFINE (field PARENT_AGR is filled for derived roles).
    ~As from Forum

  • Changing Organization level for derived roles

    Dear All,
    Below is my query:
    When there is any requirement to change the organization level of a derived role, we go to the role and change the organization level manually.
    We have derived our roles, based on the units(company codes).
    Now we have a scenario, where we need to add one unit in a particular derivation of all roles.
    Please suggest if there is any way of updating the organization level in mass for a specific derivation.
    Regards,
    Reshma Vijayan.

    Colleen Lee wrote:
    At least with this option you are using the PFCG functionality and not hitting the tables directly
    Hi Reshma, Colleen,
    Some additional warnings about manipulating the downloads:
    The downloadfile is a fixed record length text file, do not mess up the data positions.
    Be aware of case (upper/lower) when manipulating the file.
    Make sure you do a unicode download to preserve special characters in the menu texts.
    There are very, very few checks done on the file contents when uploading again. It will allow you to pollute your AGR* tables in such a way you'll need an ABAP-er or SQL-savvy colleague to clean up the mess. It is very close to manipulating the tables directly.
    I once managed to get entries into AGR_1251 which didn't show up in PFCG and wouldn't even disappear from the tables after I had deleted the roles in question.
    And yes, I still use this method, but I won't advise it to anyone I cannot personally train to be aware of the pitfalls ;-)
    Jurjen

  • Check status for Derived role generation

    Hello,
    We are trying to place a check to validate and ensure that the child roles are generated using "generate derived role" (CtrlShiftF4) from the parent role. However, i'm not able to find an appropriate function module or table field via which this can be checked.
    Are there any options to check this?
    Thanks in advance
    Vijaya

    Hi,
    You can find the status of the roles whether the profile is generated or not .. with PFCG only.
    PFCG
    -> Utilities (M)
    -> Overview Status (CtrlShiftF11)
    Give the role names (for which you need to know whether they are generated or not)
    Tick/select - Only Display Roles with Errors and Warnings
    -> Execute
    It will display all the role names and profile name and their status green generated, yellow not generated. If you copy all data and paste it in the excel it would be like below...
    ZS_ECC_NPR_AFM_TESTING_GL     @IC\QSingle Role@     11/20/2011     12:47:32     VKUMAR     @5C\QNo menu exists@          @5D\QCurrent version not generated@     ZNPRAFMTES     @5D\QUser master record not completely updated@
    ZS_ECC_NPR_DATABASE_ADMIN_GL     @IC\QSingle Role@     08/02/11     18:02:26     MMAKUCH     @5C\QNo menu exists@          @5B\QAuthorization profile is generated@     ZNPRDTBADM     @5C\QNo users are assigned@
    Hope this helps you.
    Thanks,
    Vinod

  • Regarding the RFC FM/BAPI for validating IBAN

    hi all,
               Is there any RFC function module or BAPI for validation the IBAN number when creating vendor master data.

    Hi
    Check This BAPI
    BAPI_CREATE_IBAN
    Ranga

  • BAPI for changing roles

    Hi guyz,
    I want to deactivate few roles for some time & for that I want to set the "Valid To" date as 'sy-datum - 1' for few roles through SU01.
    One option to do this is through BDC & other is using BAPI.
    Can somebody please tell me if there is any BAPI to do task.
    Thanks
    Ankit

    > Check this function module.
    > SUSR_USER_SURFACE_MAINT_ATTRIB & check the table agr.
    Hi Bipin,
    Is there any BAPI to Display roles for a given tcode?please reply fast.

  • Get the return value of an RFC function / BAPI

    Hello,
    I'm a Web Dynpro Java beginner and I try to get the return value (domain: NUMC6) of an RFC function without success.
    Here is what I do, could you please tell me what is wrong?
    First, here is my context:
    Context
    |
    |---- ZMy_Bapi
         |
         |---- MyOutputResult
         |     |
         |     |---- MyReturnValue
         |
         |---- MyInput
    My model:
    MyModel
    |
    |---- ZMy_Bapi_Input
         |
         |---- Output
         |     |
         |     |---- ZMy_Bapi_Output
         |          |
         |          |---- Return_Value
         |
         |---- Input_Value
    The mapping between them:
    - MyInput is mapped to Input_Value
    - MyReturnValue is mapped to Return_Value
    And my code:
    ZMy_Bapi_Input bapiInput = new ZMy_Bapi_Input();
    wdContext.nodeZMy_Bapi().bind(bapiInput);
    bapiInput.setInput_Value("A value");
    executeZMy_Bapi();
    ZMy_Bapi_Output bapiOutput = new ZMy_Bapi_Output();
    wdContext.nodeMyOutputResult().bind(bapiOutput);
    IMyOutputResultElement outputElement = wdContext.nodeMyOutputResult().currentMyOutputResultElement();
    String result = outputElement.getMyReturnValue();
    Finally, here is the code of the executeZMy_Bapi() function:
    try {
         wdContext.currentZMy_BapiElement().modelObject().execute();
         wdContext.nodeMyOutputResult().invalidate();
    } catch (Exception ex) {
         ex.printStackTrace();
    My problem is that "result" keeps being empty
    Thanks in advance for your help!

    It still doesn't work, I'm gonna turn crazy!
    But there is one good point: I get the method you mentioned: getZMy_Bapi_OutputElementAt and getMyReturnValue without casting, just as you said first.
    Here are the updated context, model, mapping and code.
    Context:
    MyContext
    |
    |---- ZMy_Bapi
         |
         |---- MyOutputResult
         |     |
         |     |---- ZMy_Bapi_Output
         |          |
         |          |---- MyReturnValue
         |
         |---- MyInput
    Model:
    MyModel
    |
    |---- ZMy_Bapi_Input
    |     |
    |     |---- Output
    |     |     |
    |     |     |---- ZMy_Bapi_Output
    |     |          |
    |     |          |---- Return_Value
    |     |
    |     |---- Input_Value
    |
    |
    |---- ZMy_Bapi_Output
         |
         |---- Return_Value
    Mapping
    ZMy_Bapi     --> ZMy_Bapi_Input
    MyOutputResult     --> Output
    ZMy_Bapi_Output     --> ZMy_Bapi_Output
    MyReturnValue     --> Return_Value
    MyInput          --> Input_Value
    Code
    ZMy_Bapi_Input bapiInput = new ZMy_Bapi_Input();
    wdContext.nodeZMy_Bapi().bind(bapiInput);
    bapiInput.setInput_Value("A value");
    executeZMy_Bapi();
    ZMy_Bapi_Output bapiOutput = new ZMy_Bapi_Output();
    wdContext.nodeMyOutputResult().bind(bapiOutput);
    String result = "";
    for (int i = 0; i < wdContext.nodeZMy_Bapi_Output().size(); i++) {
         IZMy_Bapi_OutputElement resultElem = wdContext.nodeZMy_Bapi_Output().getZMy_Bapi_OutputElementAt(i);
         if (resultElem.getMyReturnValue() != "" && resultElem.getMyReturnValue() != null) {
              result = resultElem.getMyReturnValue();
    Edited by: Franis Pignon on Oct 17, 2008 11:16 PM

  • RFC or BAPI  for fb03 transaction call

    When you execute the fb03 transaction call in SAP GUI, you got a screen asking you to enter Document number, company code, Fiscal year.
    I'm trying to create a web dynpro application that does the same as fb03.
    Is there an RFC or BAPI that takes the same set of parameters and return same results.

    Hi Adel,
    Welcome to SDN.
    Please try this FM/BAPI.
    <b>FI_DOCUMENT_DISPLAY_RFC</b>
    <b>BAPI_ACC_DOCUMENT_DISPLAY</b>.
    Hope this will help.
    Regards,
    Ferry Lianto

  • I want know the RFC or BAPI for Vendor details which gives customise lfa1

    Hello Experts,
    I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields..
    1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1.
    2) How Can I code In the PDM server??I mean How can I call In the PDM script??
    Please send me how to write a script and code of the script??
    Thanks In Advance
    Preethi

    hi,
    use BAPI_VENDOR_GETDETAIL
    A.

  • Bapi for maintaining roles

    Hi all,
    I have to modify role ( adding or deleting Transaction to role) through program. Do anyone knows BAPI or BADI for that which can do changes in in role.
    Can we write BDC for role maintenance?
    Regards,
    Sandip

    Hello Sandip
    The following sample reports add a transaction to the role menu. However, by adding a transaction to a role usually additional "objects" are inserted into a role which require maintenance of the authorization values.
    *& Report  ZUS_SDN_PFCG_ADD_TCODE
    REPORT  zus_sdn_pfcg_add_tcode.
    DATA:
      gs_tcodes    TYPE agr_tcodes,
      gt_tcodes    TYPE STANDARD TABLE OF agr_tcodes.
    PARAMETERS:
      p_role      TYPE agr_name  DEFAULT 'Z_SDN_ROLE1',
      p_tcode     type tcode     default 'SU01'.
    START-OF-SELECTION.
      CALL FUNCTION 'PRGN_1221_READ_TRANSACTIONS'
        EXPORTING
          activity_group              = p_role
    *     ONLY_TRANSACTIONS           = ' '
        TABLES
          i_agr_tcodes                = gt_tcodes
    *     I_AGR_SELECT                =
        EXCEPTIONS
          no_transactions_found       = 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.
      READ TABLE gt_tcodes INTO gs_tcodes INDEX 1.
      gs_tcodes-tcode = p_tcode.
      APPEND gs_tcodes TO gt_tcodes.
      CALL FUNCTION 'PRGN_1221_SAVE_TRANSACTIONS'
        EXPORTING
          activity_group       = p_role
    *     DISPLAY_STATUS       = 'X'
        TABLES
          i_agr_tcodes         = gt_tcodes
    *     I_AGR_SELECT         =
      CALL FUNCTION 'SUPRN_PROFILE_BATCH'
        EXPORTING
          act_objid                   = p_role
    *       LTEXT                       =
    *       ENQUEUE                     = ' '
        EXCEPTIONS
          objid_not_found             = 1
          no_authorization            = 2
          generation_not_active       = 3
          empty_authorizations        = 4
          enqueue_failed              = 5
          not_generated               = 6
          OTHERS                      = 7.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
    Regards
      Uwe

  • Regarding: calling a rfc function module for web dynpro for JAVA

    Hello all,
    I want to call an rfc enabled function module from webdynrpo application.
    *and there is one condition that function module should be called not threw bapi.*
    Thanks
    Edited by: Punit Pawar on Jul 21, 2008 10:38 AM

    Hi 
    You can call RFC(remote enabled) from R/3 through Models in Webdynpro Java.You need to have JCO destinations.You connection properties of backend System
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0310cf8-8cdb-2910-4a82-df1f11619f4e
    Thanks,
    Tulasi Palnati

  • Telephony integration (CAD function profile for business role)

    Hi,
    1. What's the purpose of defining Contact Attached Data (CAD) profile, then assigning it to the business role?
    2. Have you got the step-by-step guidance in configuring that?
    Thank you.

    Lots of stuff posted in this forum over the last year you should be able to find to answer your question.
    What is Computer Telephony Integration (and Why Do I Need It?)
    IMG
    1. SM59 setup pointing to the vendor ICI product
    2. IMG Path: u2192 Customer Relationship Management > IC Web Client> Basic Functions > Communication Channels > Define Communication Management Software Profiles
    3. Assign to IC web profile as Contact Center (item created in 2nd step)
    non IMG (done manually in each client, dev, test, prd)
    4. CRMM_BCB_ADM, define name and point to step 1.
    5. CRMM_IC_MCM_CCADM add item from step 4, choose channles phones, and ques are phone 3. Set CAD handling to 4 (leave blank for SAP CCS).
    6. CRMM_IC_MCM_CCLNK step 2 to step 4.

  • RFC/Function base for iViews

    For iViews in the EP Content Library:
    Is there a single point information source that provides the BAPI/RFC/Query names and profiles underlying the individual iViews listed in the iView Content Library?

    Hi,
    If you are Looking for the standard Iviews that come with the Business then you should download the concerned docu from Iviewstudio.com or sap serviceplace.
    If this is a general question, then you should search for say Bapi via trans BAPI in SAP and for RFCs via SE37.
    SAP Does not publish any standard list i think.
    Regards,
    Anuj

  • RFC Function Module for e-rec

    I need to call a function module with ECC as the destination from my E-Rec system.
    The input parameters being: 
        PLVAR -- Plan Version               
        OTYPE   -- Object type             
        OBJID   -- Object Id
    and Output Parameter:
        PERSA –Personnel area
    Can you please suggest any Function Module which is RFC enabled and has the above parameters?

    Hi,
    to connect, if u hve the FM in R/3, just check if it is RFC enabled. If it is not, create ur own ZFM copying this FM(wat u need) and make it RFC enabled by clicking RFC radio button in the attributes tab of your ZFM.
    Now goto SM59 and take the logical system id of the system where your ZFM is there and give this logical system id after calling the FM in your system where you are calling this FM.eg:
    CALL FM destination 'logical system id'. and this FM will be executed.
    think RH_GET_CONTROLLING_INFO might be helpful but as this is not RFC enabled u can try with the above approach.
    Hope this helps.
    Reward points if helpful.
    Thanks.

  • A function/BAPI for co09

    hi guys:
    A report need to show all of the matieral ATP qty  by using  storage location and plant as key. the resoult needs same as the result of CO09
    is there a fuction or BAPI can be uesd. 
    many thanks
    Chris

    Hi,
    Use the Bapi 'BAPI_MATERIAL_AVAILABILITY'.
    Check the sample code
    DATA: iwmdvsx TYPE TABLE OF bapiwmdvs WITH HEADER LINE,
    iwmdvex TYPE TABLE OF bapiwmdve WITH HEADER LINE.
    DATA: r TYPE bapireturn, " Check it once.
    FQty TYPE MENGV13.
    LOOP AT it_out.
    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
    EXPORTING
    plant = 'HIP' "p_werks
    material = it_out-matnr "p_matnr
    unit = 'EA' "p_meins
    stge_loc = 'BSR'
    IMPORTING
    return = r
    TABLES
    wmdvsx = iwmdvsx
    wmdvex = iwmdvex.
    IF r-type is initial OR r-type = 'S'.
    LOOP AT iwmdvex.
    FQty = FQty + iwmdvex-com_qty.
    ENDLOOP.
    it_out-free_qty = FQty.
    MODIFY it_out TRANSPORTING free_qty WHERE matnr = it_out-matnr.
    modify it_out.
    FQty = 0.
    ENDIF.
    REFRESH iwmdvex.
    CLEAR: it_out.
    REFRESH iwmdvsx.
    ENDLOOP.
    Regards,
    Raj.

Maybe you are looking for

  • Need Help With Basics of SQL

    Hey I'm trying to get a working understanding of some of the basics behind SQL, I've composed a few questions that I think may help me with this. Anyone that can help me with any of them will greatly help me thanks. 1. How to create synonym for table

  • Converting byte to viewable video

    currently i am sending video from client to server and server to client in the form of a byte[], and once it gets to the client i need to write it to a file to then do a runtime.exec to view it in windows media player. the file is a wmv file, is it p

  • UCCX Historical Reporting Automated Install

    Does anyone have any pointers on how to automate the install for UCCX Historical Reports?  7.01(504)

  • How to get icon of file

    Hi i have the following code // get selected file file = fileChooser.getSelectedFile(); //get Icon for the selected file Icon icon = fileChooser.getIcon(file); //set Icon L_Icon.setIcon(icon);but the prob is i am getting the same icon for all the fil

  • Servlet using NES 3.5.1 and WLS 5.1

              Hello All!           When I send the attached servlet directly to WLS 5.1 as Web-server it works fine.           But when I use NES 3.5.1 as a Web-Server I receive the message:           "Your client is not allowed to access the requested o