Need function modul for role

Hi All!
Do you know whether there is "function modul" existing
wherby I can find out Persons role by giving his name or ID ?
Thanks
sas

Hi,
You can use the function module CKEXUTIL_USER_TO_ROLE. The function module takes the USER-ID as input and gives out all the roles assigned to the user-id.
Call Function CKEXUTIL_USER_TO_ROLE..
Regards,
Ravi.

Similar Messages

  • Need Function Module for convertion of  Foreign currency to Indian currency

    hi friends,
    i need function module for converting amount from
    Foreign currency to Indian currency
    thanks

    hi Venkat,
    Please use the function module CONVERT_TO_LOCAL_CURRENCY
    <b><u>Sample code:</u></b>
          call function 'CONVERT_TO_LOCAL_CURRENCY'
            exporting
              date             = p_alv_tab-begda
              foreign_amount   = p_alv_tab-kkost_p_person
              foreign_currency = p_alv_tab-kwaer                 " foreign currency
              local_currency   = l_ev_waer                           " Indian currency
            importing
              local_amount     = p_alv_tab-kkost_p_person
            exceptions
              no_rate_found    = 1
              overflow         = 2
              no_factors_found = 3
              no_spread_found  = 4
              others           = 5.
    Hope this helps,
    Sajan Joseph.

  • Need functional module for service order

    hello,
    while creating service notification i want to create service order automatically.for that i need a functional module which is the key funtion to process creation of transaction in the background. i want the name of that functional module to create iw31 service order automatically  and that of functional group so that i can assign in the action box.
    Regards,
    Rajesh Kumar Raju
    9900311069

    Hi,
    unfortunately there is no such "official" BAPI available - not even in ERP2005! There is a BAPI called BAPI_ALM_ORDER_MAINTAIN but this is for changing an already existing service order.
    But, you can use what the "SAP CRM group" developed for their integration to the backend R/3 system. This FM is called CRM_CS_API_ORDER_CREATE and is part of FUGR CRM_CS_API_ORDER. This FM is acting in the same way as a "normal" BAPI although you can not find this FM in transaction BAPI.
    Hope this can help!
    Best regards, Johan

  • Need Function Module for Printing Rates,Discounts and Taxes in Invoice.

    Hi All,
    For our Invoice printing I need to get a function module which will provide me the rates,discounts and taxes against each item line of the Invoice No.
    Finall it will be printed accordingly.
    Can anyone help me regarding this with input parameter example.
    Thx in Adv.

    Hi,
    As far as I know there is no fun module to print all this stuff.
    You have to get this data from KONV table by passing the VBRK table KNUMV field.
    Then check for all the Rates and amount KBETR and KWERT fields for the respective condition Types.
    You have to loop the KONV internal table and write all the condition rates and amounts in the script driver program.
    see any Std script for this.
    Regards,
    Anji

  • Need function module for Sales order overall status

    Dear Team,
    Our requriement is we need to capture sales orders overall status 'compleated' in header and item datat details.
    Could you please let me know what are function modules available for to get the over all status for sales orders, (header and item)
    Thanks & Regards,
    MK.

    Hi MK,
    Use any of this FMs.
    C1CE_VBUK_READ
    SD_VBUP_READ_WITH_VBELN
    WCB_VBUK_READ
    Note that the values are in table VBUK and you can do a select statement from that table to get what you need.
    Regards,
    Peter

  • Need function modules for the following...

    Hello experts,
    Is there an function module that I can use for:
    1. get the last date for a given year
    2. get the exchange rate for a given document number in a span of 5 years -
    for example, I need to get the exchange rate of doc. number 0000000123
    for the year 2000, 2001, 2002, 2003, 2004 and 2005(maximum of 5 years)   
    Help would be greatly appreciated.
    Again, thank you guys and take care!

    Hi,
    To use CALCULATE_EXCHANGE_RATE_N, you just have to pass the required parameters like foreign amount/currency and local amount/currency, instead you can query the table TCURR for the same data, remember to convert the 'DATE' to internal format before sending it in to the fm/table, you can refer the following code, this might help,
    WRITE  V_date TO  LV_DATUM USING EDIT MASK '__.__.____'.
         CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
           EXPORTING
             INPUT         = LV_DATUM
          IMPORTING
            OUTPUT        = LV_DATUM.
    Retrieve the Exchange rate from Custom table for the Exchange
            select ukurs from tcurr
            into tcurr-ukurs
            up to 1 rows
            where kurst = 'M'
            and   fcurr = komk-waerk
            and   tcurr = komk-HWAER
            and   gdatu >= LV_DATUM.
            endselect.
    Rgds,

  • Need Function Module for HR WorkSchedule Rule

    Hi,
    I need a function module to get the employee working times based on his work schedule rule. In infotype 7 we maintain the work schedule rule, so based on that how can i get the timings of employee ?
    Regards,
    Srinath

    CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'
         EXPORTING
              pernr         = pernr_infotypes_tab-pernr
              begda         = emp_per_begda
              endda         = emp_per_endda
         TABLES
              i0000         = i0000
              i0001         = i0001
              i0007         = i0007
              perws         = l_pws_days
         EXCEPTIONS
              error_occured = 1
              abort_occured = 2.
    CALL FUNCTION 'HR_WORK_SCHEDULE_TIMES'
         EXPORTING
              pernr         = pdp-pernr
              begda         = p_date
              endda         = p_date
         TABLES
              i0001         = p0001
              i0007         = p0007
              i2003         = p2003
              perws         = perws
              daygen        = i_day_gen_info
              dayint        = i_day_intervals
         EXCEPTIONS
              error_occured = 1
              perws_error   = 2
              OTHERS        = 3.
    Edited by: Aeda N on Nov 23, 2009 11:46 AM

  • Need function modules for date manupulation

    HI,
    Could you please suggest the function module the below reqiurments
    1) adding days to date.
    ex: 20 days to 25.03.2008 = 15.04.2008
    2) To find the given date is working date or not according to factory calender id.
    3) To find the previous or last working date to the given date(Holiday date) according to the factory calender id.
    It is very urgent requirment. please help me.
    Thanks in advance
    sathish kumar swamy

    hi use this...
    RE_ADD_MONTH_TO_DATE
    DATE_CONVERT_TO_FACTORYDATE
    CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
         EXPORTING
              I_DATE_OLD = date1
        IMPORTING
             E_DATE_NEW = date1
    data date2 like sy-datum.
    date2 = date1 + 1.
    write date2.
    If you put 27.12.2005 as the input date,   date2 you will get as 01.12.2005.
    Or else you can use the following code:
    v_startdate = sy-datum.
    v_startdate+6(2) = '01'.
    v_enddate = v_startdate.
    if v_enddate+4(2) >= '01' AND v_enddate >= '11'.
       v_endate4(2) = v_enddate4(2) + 1.
    elseif v_enddate = '12'.
      v_enddate+4(2) = '01'.
      v_enddate(4) = v_enddate(4) + 1.
    endif.
    v_enddate = v_enddate - 1.
    regards,
    venkat.

  • Function module for Mass uploadnotifications in Quality Management

    Hi  Experts,
    I need function module for quality management which MASS UPLOAD THE QM NOTIFICATIONS.
    Thanks

    Hi,
    For updation use BAPI_QUALNOT_ADD_DATA.
    Hope it helps.
    Regards
    Hiren K.Chitalia

  • Function Module for splitting(field) in CO02 t-code

    Function Module or enhancement for splitting(field) in CO02 t-code Need function module for inserting a value in field(Max No of splits) in Transaction CO02
    Message was edited by:
            Mohan Kumar

    You can use this SAP enhancement PPCO0012 to display your own additional
    information on a separate tab page in the production order header. You
    can also make user fields avaialble for input, change them, and return
    the changes to the order header.

  • Function module for customer debit note/credit note

    Hi
    Can you please tell us the function module for the following:
    1. Customer debit note
    2. Customer credit note
    Also, we would like to have function module for extracting GL balances at business area/profit center level.
    Regards
    S.Radhakrishnan

    Hi
    We are looking for function module for posting FI Invoice/credit memo using FB70/FB75.
    Also, we need function module for extracting GL balances at business area/profit center level.
    Regards
    S.Radhakrishnan

  • Regarding Function Module for Locking ( enque)

    Hi,
    I am facing a Problem that is when iam running Call transaction one popup is coming because some other user currently editing that Tcode at that time i need to lock tcode using enque specially for table . If suppose some other user editing at that time it will shoe that popup and it will exit from their with out doing any other process For that i need Function module for Lock and Delock.
    thanks in advance,
    murali krishna.

    So in this example, I am doing a loop and check for a lock, if I don't get one, I wait for 5 seconds, this loop continues untill 30 seconds, no lock then it quits and gives message.
    report zrich_0001.
    data: counter type i.
    parameters: p_equnr type equi-equnr.
    start-of-selection.
      clear counter.
      do.
    Exhausted,  no luch in getting a lock, get of of DO loop.
        if counter > 6.
          sy-subrc = 1.
          exit.
        endif.
    Try for lock
        call function 'ENQUEUE_EIEQUI'
          exporting
            mode_equi            = 'E'
            mandt                = sy-mandt
            equnr                = p_equnr
       _wait                = 'X'
          exceptions
            foreign_lock         = 1
            system_failure       = 2
            others               = 3.
    Got a lock, get out of DO loop.
       if sy-subrc  = 0.
          exit.
        endif.
    Still here?  Then wait another 5 seconds
        wait up to 5 seconds.
        counter = counter  + 1.
      enddo.
    Report status
      case sy-subrc.
        when  0.
          message s001(00) with 'Lock could not be established'.
        when  1.
          message i001(00) with 'Lock could not be established'.
      endcase.
    Regards,
    rewards point

  • Need functional module or table for user type

    Hi all,
    I need table or a functional module for getting the user type. plz help

    Hi,
    Can you explain your requirement in a bit more detail. You can also provide all the relevant information regarding this topic.
    Hope this will help.
    Thanks,
    Samantak.

  • Need SMD function module for business partner in SRM

    Hi Gurus,
    I am looking for standard Master Idoc create SMD function module for business partner in SRM.
    I need to send an Idoc from SRM to ECC based on change pointers i.e. whenever a business partner is changed in SRM. So there are standard function modules *smd* available for other data but i am not able to find any FM for busienss partner.
    Please suggest if anyone has came accross such scenario.
    Thanks,
    Ravindra

    Got it

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

Maybe you are looking for

  • Adobe Interactive Form send by mail?

    Hello all, did anyone try to use Adobe Interactive Form in following scenario: - form is automatically filled from the context, without any user interaction - user can preview document - user send document via e-mail, not using mail button in pdf vie

  • Canon 5D III tether to iPad 4 (either cable direct or wifi

    I'm using a Canon 5D III and I would like to RELIABLY transfer photos in real-time to my iPad 4 Retina for proofing/checking the photos.  Either cable-direct or wifi.  I have the latest version of Lightroom and PS CC 2014. Can I do it and how do I do

  • Possible to Import a Chart from Excel?

    I beleive you can import a chart to XCelsius from Excel but can you do so to Crystal Reports? This would solve my current chart problems.

  • Installing FLash player (and Creative cloud)

    I am having trouble with Flash player and creative cloud. Most recently I have tried umpteen times to install Flash player and it wont work. I have run through uninstalling it. re installing it. ensuring it is enabled. and nothing. i have established

  • OSX 10.2.8 and up Sharing....

    Hi everyone, How do you get OSX 10.2.8 to auto-connect to another computer's Public folder? Same goes for Panther and Tiger.