Skip to Content
avatar image
Former Member

Function Module for Approval deatils

Hi All,

We are working on SRM 4.0 and our requirement is to get Approval details in Smartform attachment of the email notification message :

Approval Status Status Approver In Process Since Processed on

First Approval Approved by Manager 16.02.2007 14:05:31 6.02.2007

Second Approval Approved by Director 16.02.2007 14:06:04 16.02.2007

Please let us know which function modules and tables hold these above details.

We are giving an attachment as smartform in the email messages which the requestor will get for the SC item details. Now the requirement is to add the approval details check status -> item details -> approval preview also.

Our technical guys need FM, tables to pick this from.

Where from I can found this?

We dont find the same in the BBP_PD_SC_GETDETAIL or BBP_PDH_WFL_APPROVER_GET also.

Any other FM's to work with??

Regards,

Ravi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 20, 2007 at 02:44 PM

    Hi,

    Is the FM BBP_PDH_WFL_APPROVAL_SIMULATE called too late ?

    Kind regards,

    Yann

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 20, 2007 at 02:46 PM

    Hi,

    Check also this thread :

    https://forums.sdn.sap.com/click.jspa?searchID=4636124&messageID=2847761

    Kind regards,

    Yann

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 08:30 AM

    Hi

    Which SRM workflow (custom or standard) are you using ? What's the detailed requirement ?

    Ask the Developers to do some more debugging in this case, to find exact Function modules, which will help for this business requirment.

    <u>Anyways, please go throgh the list of some useful Function modules related to Approval Workflow.</u>

    FUNCTION SAP_WAPI_WORKITEMS_TO_OBJECT

    FUNCTION swp_customizing_activate

    CALL FUNCTION 'SWP_ADMIN_DATA_READ

    CALL FUNCTION 'SXPG_PROFILE_PARAMETER_GET'

    call function 'SWW_WI_HEADER_READ'

    SWP_TOP_LEVEL_WORKFLOW_GET

    call function 'SWW_WI_HEADER_READ'

    CALL FUNCTION 'SWL_AGENTS_NAME_DETERMIN'

    call function 'RH_CHECK_ORG_OBJECT_EXISTS'

    CALL FUNCTION 'SWP_WORKFLOW_HEADER_READ'

    CALL FUNCTION 'SWD_GET_VERSIONS_OF_WORKFLOW'

    CALL FUNCTION 'SWD_GET_WFD_ID' * get active version first

    CALL FUNCTION 'SWD_GET_WF_HEADER_VERSION' * get the header to add the original version

    CALL FUNCTION 'SWD_WF_DEFINITION_READ'

    CALL FUNCTION 'SWD_WF_DEFINITION_LOAD_IMPORT'

    CALL FUNCTION 'SWD_GET_WF_ACTIVATION_DATE'

    CALL FUNCTION 'SWD_GET_WF_CONFIGURATION_DATE'

    CALL FUNCTION 'RH_CHECK_HRS_OBJECT_EXISTS' **** Check standard tasks.

    CALL FUNCTION 'SWD_GET_TASK_OUT_OF_WF_VERSION' * --- get task ---

    CALL FUNCTION 'SWD_GET_WF_CONTAINER_TABLE' * --- read old tables ---

    CALL FUNCTION 'SWP_WORKFLOW_HEADER_READ'

    CALL FUNCTION 'SWP_WORKFLOW_STEP_LOG_READ'

    CALL FUNCTION 'SWW_WIS_HEADER_READ' * read wi headers

    CALL FUNCTION 'RH_TASK_ATTRIBUTES_RUNTIME'

    CALL FUNCTION 'RH_WF_TIMESTAMP_COMPARE'

    CALL FUNCTION 'RH_GET_CONTAINER_TEXT' * --- load all texts ---

    CALL FUNCTION 'RH_TEXT_LANGU_ORDER' * get the order of the languages

    CALL FUNCTION 'RH_READ_HRS1211' * read first with given language

    CALL FUNCTION 'SWD_GET_TASK_OUT_OF_WF_VERSION'

    CALL FUNCTION 'SWU_DATABASE_TO_STRUCTURE' *- get structures from old structure persistence

    CALL FUNCTION 'SWD_WF_DEFINITION_NODE_GET'

    CALL FUNCTION 'SWD_GET_WF_MNODES_TABLE' *-- workflow definition: read nodes

    CALL FUNCTION 'SWD_GET_WF_MLINES_TABLE' *-- read lines

    CALL FUNCTION 'SWD_GET_WF_TEXT_TABLE'

    CALL FUNCTION 'SWP_GET_AGENT_TEXT' * get the name of the agent

    CALL FUNCTION 'SWL_AGENTS_NAME_DETERMIN' * no, show the name of the user

    CALL FUNCTION 'SWP_WORKFLOW_LOG_READ' * recursive call

    *-- get Approval preview - on the Shopping cart applet information

    CALL FUNCTION 'BBP_PDH_WFL_PARAM_APPLET_FILL2'

    *-- get applet information

    CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET'

    *-- get reviewer workitems

    CALL FUNCTION 'SWD_API_REVIEW_WFS_GET'

    • Get WI-Liste for the parent workflow

    CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND'

    • Reviewer-Workflow (fragment WF)

    CALL FUNCTION 'SWD_API_REVIEW_WF_OF_WI_ID_GET'

    CALL FUNCTION 'BBP_WFL_DIN_VIRTPAR_GRAPH_GET'

    CALL FUNCTION bbp_pdh_wfl_wi_from_object_get.

    CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_FILL

    CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_FILL2

    CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_SPEC

    CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_TEXT

    Hope this will help.

    Do let me know.

    Regards

    - Atul

    Add comment
    10|10000 characters needed characters exceeded