Skip to Content
avatar image
Former Member

Reading elements from SAP Business workplace

Hi,

I wish to read the elements from the Businsess Workplace, which is from the inbox. Is there any FM or Db tables to do so?

Regards

Partha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 08, 2010 at 06:08 AM

    Hi Partha ,

    Please Refer the thread [Reading SAP Business workplace email inbox;

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI prasath,

      Your answers have been of great help to me, however now i also would like to know if i can retrieve the inbox documents and workflow items from inbox by giving the user id? Which FM can fetch me the workflow items and documents from the business workplace using the userid or something else?

      Regards

      Partha

  • Apr 08, 2010 at 08:52 PM

    I had done it a few weeks ago in a SAP 7.0.

    1) copy program RSWL_INBOX_VIEW_CREATE and class CL_WF_INBOX_01

    2) add P_UNAME to selection-screen

    3) in the class, at call of SIN_GRID_READ_WF_I (in method FEED_DATA), replace parameter SY-UNAME with P_UNAME (transmit it as you can)

    4) Add the following lines right after call to SIN_GRID_READ_WF_I:

    data ls_inbox_view type HRWFUSER_V.
    data lt_inbox_view type table of HRWFUSER_V.
    data ls_wi_head type SWWWLHEAD.
    data lt_wi_head type TABLE OF SWWWLHEAD.
    data ls_alv type SWLWP1.
    ls_inbox_view-otype = 'US'.
    ls_inbox_view-objid = p_uname.
    append ls_inbox_view to lt_inbox_view.
    CALL FUNCTION 'RH_INBOX_VIEW_CREATE'
     TABLES
       INBOX_VIEW                = lt_INBOX_VIEW
       WI_HEAD                   = LT_wi_head
     EXCEPTIONS
       OTHERS                    = 5.
    refresh alv_outtab.
    loop at lt_wi_head into ls_wi_head.
      move-CORRESPONDING ls_wi_head to ls_alv.
      append ls_alv to ALV_OUTTAB.
    endloop.
    

    Edited by: Sandra Rossi on Apr 8, 2010 10:53 PM

    Add comment
    10|10000 characters needed characters exceeded