Function module to identify users - fowarded work items

Hi
Pls can anyone suggest an appropriate function module to identify the users of the forwarded work items?
The onyl input i have is the user name.
the scenario is :  UserA had fwd'ed a workitem XYZ to UserB and I need to find programatically all the details and the user of the workitem XYZ like who had forwarded to UserB. Since i dont have the work item number or dont want to restrict with date range, i wish to get this info purely with the user id only. pls can anyone suggest some functions?

Hi Prabhu
First, get the Work item IDS:
Go to table SWWUSERWI, supply USER_ID as your User (User B) and FORWARDED flag = 'X'.
You will get all workitems forwarded to THAT user (USER_ID) - User B
Now Get "Who dared to forward them to me (the user which you have" :
Now use FM SWL_WI_GET_HISTORY , supply WI_ID as fetched above
You will get the History in table HISTORY. From this table, keep only records where WI_ID matches the above, METHOD = 'SWW_WI_FORWARD'
You will be left with step history for that WI ID where it was forwarded. The field METH_USER will contain the user name of the guy (culprit) who forwarded the WI
Regards,
Modak

Similar Messages

  • Function module to get user AND usergroup

    Hi Folks,
    I need a function module which returns the user and the usergroup.
    BAPI_USER_GETLIST won't work as it doesn't return the usergroup.
    There are some other function modules but none of them can be called remotely.
    I can't write a function module myself as we are working with validated systems.
    The whole approval process would take months...
    Does anybody know a function module which returns the user AND the usergroup AND can be called remotely?
    Hope somebody can help me.
    Bastian

    are you talking about usr02-CLASS values if yes
    BAPI_USER_GET_DETAIL returns this in
    export parameter LOGONDATA-class
    Regards
    Raja

  • Function Module to Change / Update BOM Line Items

    Hi,
    I need a Function Module to Change / Update BOM Line Items.
    Please help.
    Thanks.

    Try this FM - CSAP_MAT_BOM_MAINTAIN

  • Function module to identify first bill or invoice to the customer

    Dear all,
    Is there any function module to identify first bill/invoice or both to the customer?.
    with regards,
    Umar

    Try ISU_PREVIOUS_BILL_SELECT. If it returns a previous bill, then the current one is not the first one, if no previous bill returned, then this is the first one.

  • Function Module for data retrival for work order clearence (WCA)

    Hi All ,
      Function Module for data retrival for work order clearence (WCA) for a particular Planning plant and (WCD's).
    Thanks.

    Hi Anne,
    BAPI_PRODORD_GET_DETAIL
    BAPI_PRODORD_GET_LIST
    You can find further FM in Function Group COPRINT and CODR or take F4 on CO* in Function Group
    These will serve your purpose.
    Cheerz.
    Ram

  • Is there any function module or BAPI to create maintenance item.(Urgent)

    Hi Experts,
                       I want to create an RFC which creates the maintenance item in the sap. The RFC is going to receive data from XI. So is there any function module or BAPI to create maintenance item? so that i can call that FM in my RFC.
    Thanks,
    Prasanna
    Helpful answers will be rewarded.

    Check and implement your program accordingly:
    *& Report  ZMRS_BAPI_DEMO_ORDERS
    REPORT  ZMRS_BAPI_DEMO_ORDERS.
    DATA: gs_method     TYPE bapi_alm_order_method,
          gs_header   TYPE bapi_alm_order_headers_i,
          gs_header_up  TYPE bapi_alm_order_headers_up,
          gs_return     TYPE bapiret2,
          gs_numbers    TYPE bapi_alm_numbers,
          gs_return_commit TYPE bapiret2,
          gs_demo_order TYPE objidext,
          gt_demo_order LIKE TABLE OF gs_demo_order,
          gt_method     LIKE TABLE OF gs_method,
          gt_header     LIKE TABLE OF gs_header,
          gt_header_up  LIKE TABLE OF gs_header_up,
          gt_return     LIKE TABLE OF gs_return,
          gt_numbers    LIKE TABLE OF gs_numbers,
          gt_return_commit LIKE TABLE OF gs_return_commit.
    DATA lv_not_successful TYPE c.
    DATA lv_ref_cnt TYPE i.
    IMPORT gt_method FROM MEMORY ID 'MET'.
    IMPORT gt_header FROM MEMORY ID 'HED'.
    IMPORT gt_header_up FROM MEMORY ID 'HUP'.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods   = gt_method
        it_header    = gt_header
        it_header_up = gt_header_up
        return       = gt_return
        et_numbers   = gt_numbers.
    CLEAR lv_not_successful.
    LOOP AT gt_return INTO gs_return.
      IF gs_return-type = 'E'.
        lv_not_successful = 'X'.
      ELSEIF gs_return-type = 'W'.
       lv_not_successful = 'X'.
      ELSE.
      do nothing
      ENDIF.
    ENDLOOP.
    IF lv_not_successful <> 'X'.
    commit changes
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = gs_return_commit.
    ELSE.
    rollback changes
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
        IMPORTING
          return = gs_return_commit.
    ENDIF.
    EXPORT gt_return TO MEMORY ID 'RET'.
    EXPORT gs_return_commit TO MEMORY ID 'COM_RET'.

  • Log on into the function module with different user name.

    hi,
            i log on into the system with my user id suppose 'mukka' and i have to check the authorization of another user say 'you' using the function module "authority_check_tcode". but here i am getting the problem that when i assigned sy-uname to 'you' and execute the function module it is entering into the function module with 'mukka' user name only.
    sample code:-
                                sy-uname  = p_uname.
        CALL FUNCTION 'AUTHORITY_CHECK_TCODE'  "#EC"
          EXPORTING
            tcode  = v_tcode
          EXCEPTIONS
            ok     = 1
            not_ok = 2.
    when i am changing the sy-uname with p_uname the sy-uname is changed but when i entered into the function module authority_check_tcode in the debugging mode at the below the sy-uname variable is showing  as 'mukka' only. but i need to check the authorizations of user 'you' pls give me solution to my problem.

    Hi,
    Why would you want to check the authorisation of another user and not the one currently logged in?  The idea of authorisations is to check the current user is able to perform a certain activity.  The majority of fields on SYST are constantly updated to have the correct values (partly so you can't fiddel authorisation checks like this
    Maybe if you explain to us what you are trying to do we can offer some other help.
    Gareth.

  • Function module to track User timing on a particular transaction

    hello,
    Could anyone help me with the Function module or table which stores the timings of when "user accesses particular transaction"
    My requirement is to create a User Activity Report displaying the user using the transaction with the timing
    i have check fm " SAPWL_WORKLOAD_GET_STATISTIC"
    user id / transaction / server / date / time
    Thanks
    Renu Gusain

    You can see transaction usage log for a particular user through transaction ST03 / ST03N
    ST03 -> Click on "This Application server" button -> Click on "Single stat. records" button -> feed the user name field, start and end dates for analysis and press enter
    If your SAP system has audit log activated you can use a more convenient way by using transaction SM20
    See, how the logic of these transactions work as they log the user name along with transaction access times

  • Function Module to identify Where-Used list

    Hi All,
    Is any one aware of any Function Module(s) to identify where-used list of any given Info Object(s).
    I would like to use this in an ABAP Report.
    I do not want to use RSD1/metadata repository way.
    I was thinking of a way to write multiple selects on the various tables (RSZELTTXT, RSZELTDIR, RSZSELECT...) to get  ELTUID/TELTUID/SELTUID..., but that seems to get very lengthy.
    Have already checked a few posts but they only indicate the queries/Cubes in which a given IO is used, where as I am interested in all BW objects where a given IO is used.
    Thanks in advance,
    Sanny.

    hi Sanny2 ,
    try this method... this will surely help
    if you want to know how where used list works then follow the steps.
    1 ) open tcode se11
    2) enter table name (example...MARA)
    3)  go to command window (where you often use to enter tcode ... Enter Tcode /h - which is debug switch on)
    4) select any field (example .. MATNR)
    5) press where used list button.
    6) you can navigate to source code (debugger mode)
    7 ) follow steps and trace the code HOW WHERE USED WORK,
    hope this helps
    let me know if useful
    Avirat

  • ABAP Function Module to BW Users.

    Hello All.
    Someone know if exists a standard Function Module in BW to return a specific user with your Cubes and Queries difined in BW authorizations.
    I have a Java application using BI Java SDK ....when i connect in BW ...the BI Java SDK return all Cubes and Queries ...and the user has permission in only two cubes.
    Regards.
    Taylor.

    Hello,
    I have a suggestion, if it works, please let me know!
    You are able to pull the names of the cubes , because the user_id used to pull the names of the cubes have more authorization to see the meta data, but less authorization to see the trasaction ya master data.( block the meta data visible to the user_id used to pull cubes)  I prefer to less the authorization in the BW end to see the meta data. So you will pull only those cubes which are really authorized to the users.
    This logic looks ok to me...you can add to it.
    Happy Tony

  • WWI issue: function module with symbol doesn't work in conditional output

    Hi,
    I have created a function module to be used in combination with a symbol that represents the quantity of a composition item in a composition. In some cases a average quantity is not filled and the function module calculates the quantity based on the lower and upper limit of the composition item. This function works perfectly if managed in customising with a symbol or called with a symbol in WWI. When displaying the result of the symbol in a WWI word template it shows the expected value.
    However when I use the symbol with a function module (or the customised symbol with function module) in a conditional output expression, the value it represents in the expression is always equal to zero. It seems that a symbol value that is calculated using a functional module is not calculated properly when used in a conditional output expression. Setting a break in the functional module always shows the correct value, but the value as I already told, is not seen by the conditional output expression. Within the expression the value is always equal to zero.
    Does anyone know if this is a known issue in WWI? Is there any solution to handle this problem? I hope anyone can help.
    Thanks,
    Paul

    Dear Paul,
    only some add on high level ideas:
    if you look at:
    Example: Layout of an Abridged Material Safety Data Sheet - Basic Data and Tools (EHS-BD) - SAP Library
    you find the standard example of SAP for master and slave group:
    2  <11BRG003 (M,SAP_EHS_1012_004;*)> ¶
    3  <03EHS_L_TEXT(CED
      -SDB-01.002)> ¤
    <03EHS_L_TEXT(CED-
    SDB-02-07)> ¤
    <03EHS_L_TEXT(CED-
    SDB-02-05)> ¤
    4  <11BRG002 (S:POS;*)> ¿
    5 <01GESTRIDENT(I:NAM,
    6  IUPAC,;*)> <11ERG002>¤
    7
    8
    9
    <11BRG002 (S:POS; *)> ¿
    <01G1023001R2(C;*)
    ><11ERG002>¤
    <11BRG002 (S:POS;*)> ¿
    <01GESTVPRECL>
    <01GESTVCOMPL(N:" ZZ9,9")>
    <01GESTVCOMPE>
    <11ERG002> ¤
    10  <11ERG003>¶
    The "issue" is that you need to analyse by "line" of POS group; or precisely: it is easy to print lower, upper and average value if it exists.
    In conditional output this example is shown in SAP help:
    <15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL)[D:Value]>
    <15CIF001><03EHS_L_TEXT(CUST-100000000000031)[D:Density is less than 1]>
    <15EIF001>
    I believe you need a "clever" nesting together with your customer symbol
    E.g. you need first "test" the contents of the three values and decide about result
    The easiest way could be to use a "table" structure as above.
    Just use column header "lower"; "average"; "upper" value. Then you need to ask your self in which situation what need to printed.
    If you use the table structure and you print just what is there and leave simply lower / upper limit "field" empty if it does not exists (what is bad with this?) you need only this "conditional" output topic done for average value. You could check for: if value > 0.0001 then print the value (as then there is a value); if not use the report symbol in which you calculate something. In my opinion it is worth to try it.
    It is known that you can check "numeric values by using conditional output. I belive tis cintional one des work as well with the "composition" values (lwoer, upper, average),
    May be this approach might help.
    The "stack" examples which are discussed in SAP help and in the links shown are related to "characteristic" values of classes and not for composition ones.
    C.B.
    PS: If this really works you can clearly extend your solution. E.g. if lower value is empty may be print "0", If upper valus is empty may be print "100" etc. (or prepare a further costumer symbol calculating something).

  • Function Module to identify released transports

    Hi,
    We required one function module or table where we can find the released transports in target system.
    Suppose if we release one transport in developement, before importing to target system  i want to identify the released trasport details in test system.
    Thanks in advance
    Raju

    First Thanks for your replies
    Actually we required one way (function moudle or table) to find the released trasnports in target system.
    As i explained earlier, suppose if i releae one request in development system, we want to find the that released transport test system, before importing to test system.
    Thnaks,
    Raju

  • Function module for getting teh last working day of a month.

    Hi GURUS,
    this is criteria,please help me 
    if V_T001B- FRYE1 < month entered in selection screen
              Then throw the error message
                Else
    Find the previous period and its last working day from the function module
          (i..e Assume entered date as June 2 2009 then
                   Period 6 -1 = 5.
         Pass the month 05 to function module then
                   Find last working day.
                   Keep it in a variable (V_LAST_PRD_WRKDAY)
                           Proceed further.
    thanks in advance,
    Rajeev

    Hi Rajeev,
    You can use Function Module LAST_DAY_IN_PERIOD_GET.
    Ex:
          CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
            EXPORTING
              i_gjahr = p_gjahr
              i_periv = lwa_t009b-periv
              i_poper = lwa_t009b-poper
            IMPORTING
              e_date  = s_audat-high.
    Regards,
    Ravi K

  • Function Module used for user Authentication in B2B webshop

    Hi Gurus,
    Can someone please help me in finding a Function module which is getting called for the user authentication in B2B webshop and where can i find this class file which is getting called in the NWDS?
    Thanks
    Saurabh

    Depending upon if you are coming from Portal (SSO) or B2B logon screen, one of the following function modules is called to authenticate authorize the B2B application usage.
    CRM_ISA_IUSER_LOGIN
    CRM_ISA_LOGIN_CHECKS
    Easwar Ram
    http://www.parxlns.com

  • Function module to set user status during QA11 transaction

    Hi ,
    Anyone knows the function module to set the user status during QA11/QA12  transaction?
    I received the user status 'e.g CFA1' from an idoc data and would like to set the user set based on this idoc value during QA11/QA12 transaction.
    Any function module for this action? BDC seems impossible..
    Thanks.
    Regards,
    Clarice.

    oh i realised this function module can be used
    STATUS_CHANGE_EXTERN
    with a commit statement..

Maybe you are looking for

  • Can not upload image of larger size in jsf

    i had some issues in file uploading. File uploading is working fine in my local machine and when i am using the www.mywebsite.com:8080/fileUpload.jsf but i can not upload images by using the following www.mywebsite.com/fileUpload.jsf Ie: without the

  • How to upload from old mac computer to new mac computer

    I'm thinking of buying new mac computer and was wondering how would i upload all my files from old Mac computer to the new one? I assume there must be a quick ad easy way to do this for Mac... My current Mac OS is 10.5.8...

  • How do I cause a link to forward to a different one

    I believe I started a thread on this forum last year where someone told me that it is possible to enter html code that causes a web page to redirect to a new web page. For example, I can get www.mysite.com to forward to www.mysite.com/page1. Can anyo

  • How to manage the cursor

    hello       can any body help me to manage the cursor.i have to paste theimages from one place to another.and when i click on image iit should set as cursor of my mouse and paste on the desired position.for reference i m giving the link http://www.pa

  • Mail adapter and fault msg

    hai      in case of error messages while mapping , how it can be captured and how it can be send through mail adapter .     whether we can use fault msg for the above requirement. what is the use of fault messages?