Skip to Content
avatar image
Former Member

How to configure a custom approval in Fiori My inbox app which is having Activity type task.

Hi All,

I am trying to configure SRM central contract approval in Fiori My Inbox app.

I have configured scenario definition in gateway system and Decision step configuration in SRM system.

As the task is not a user decision step, we have implemented the BADI /IWWRK/BADI_WF_BEFORE_UPD_IB for updating status in backend.

Now task is coming to inbox and we are able to approve or reject.

But the workflow is not moving to next step.

Could anyone help us on this.

Thanks in Advance,

Unnikrishnan P K

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Hi All,

    Can anyone help me to implement the BADI /IWWRK/BADI_WF_BEFORE_UPD_IB.

    Thanks and Regards,

    Unnikrishnan P K

  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 12, 2017 at 06:48 AM

    Hi Unnikrishnan,,

    Please check the function module /SAPSRM/FU_WF_RFC_DECISION.

    CALL FUNCTION '/SAPSRM/FU_WF_RFC_DECISION'
    
        EXPORTING
    
          iv_header_guid   = lv_guid
    
          iv_mode          = lc_approval
    
          iv_wiid          = lv_workitem_id
    
          iv_decision      = lv_decision_cll
    
          iv_approver      = lv_approver
    
    *     iv_approval_note = lv_comment_base64dec
    
          iv_approval_note = iv_comment
    
          iv_approval_type = /sapsrm/if_wf_process_c=>gc_offline_approval_on
    
        IMPORTING
    
          return_code      = lv_return_code
    
        TABLES
    
          message_lines    = lt_workflow_message
    
        EXCEPTIONS
    
          error_in_pdo     = 1.

    Regards,

    Masa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Masa,

      We are using so_document_read_api1 to fetch comments by passing document_id,But it is throwing message as Document_id_doesnot_exist as the entry is not in sofm table.

      I am using Attach_objects element value for this.Please help me here.

      Thanks

      swetha

  • May 17, 2017 at 12:25 PM

    Hi Unnikrishnan,

    You need to look at the workflow log in the backend and find out the root cause.

    Regards,

    Masa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Masa,

      When we are approving contract from portal we are not facing any issue and in Message tab we are getting message text as follows in approval subworkflow step:

      Completing event '/SAPSRM/CL_WF_DSET_SBWF->EXECUTED' received

      but from fiori we are not getting this message and workflow is not moving to the next step. Do we need to call any class or FM to terminate the event, As our object category is abap class we don't have any clue which method to use in this case. Could you please check ws40000016 workflow and suggest us the need ful?

      In debugging we have not found any errors,So we are confused.

  • avatar image
    Former Member
    Jun 07, 2017 at 10:02 AM

    Hi Masa,

    When we are approving contract from portal we are not facing any issue and in Message tab we are getting message text as follows in approval subworkflow step:

    Completing event '/SAPSRM/CL_WF_DSET_SBWF->EXECUTED' received

    but from fiori we are not getting this message and workflow is not moving to the next step. Do we need to call any class or FM to terminate the event, As our object category is abap class we don't have any clue which method to use in this case. Could you please check ws40000016 workflow and suggest us the need ful?

    In debugging we have not found any errors,So we are confused.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2017 at 08:16 PM

    Refer SAP Note 2401098. We have the same problem. This OSS Note solution is upgrade system to higher level and we are working on it. Our issue is also similar with Shopping cart Fiori approval.

    Add comment
    10|10000 characters needed characters exceeded