cancel
Showing results for 
Search instead for 
Did you mean: 

F110 - Edit Payment Proposal when approval workflow is active

Mohamed_Mukhtar
Active Contributor

Hi ,

We are unable to edit payment proposal in F110 transaction because of SAP standard workflow configuration is active

The requirement is to edit payment proposal before AP manager acts on payment proposal.

Is there any way to edit payment proposal via SAP GUI.

SAP has provided a FIORI app 'Revise Payment Proposal' to edit the payment proposal. The below notes are implemented in our system which is preventing us to edit payment proposal via FIORI.

2712448 - Manage Automatic Payments, Revise Payment Proposals: Prevent processing if Payment Proposal Workflow is active

2758031 - Manage Automatic Payments: Payment Proposal Workflow - Delete Proposals and Schedule Payments Functionality Correction

The BADI FI_PAYMENT_PROPOSAL_WF is being triggered in backend via FIORI. We are thinking to implement BADI

FI_PAYMENT_PROPOSAL_WF and use method CHECK_WF_ACTIVE and bypass the active check to enable the editing of payment proposal from FIORI.

I am using system field syst-xprog to check if it is an external call to the system.

I am trying to find out the calling program name or odata name in debugging.

Please share your thoughts/let me know how to find out the odata name

Regards

Mukhtar

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi ,

I am reading 'CL_FAP_REVISE_PAYMENT_DPC_EXT=CP' from abap call stack to check if the calling Fiori app is 'Revise Payment Proposal(FAP_REVISE_PAYMENT_PROPOSAL).

    DATA: t_abap_stack TYPE  abap_callstack,
          t_sys_stack  TYPE  sys_callst.
    CALL FUNCTION 'SYSTEM_CALLSTACK'
     IMPORTING
       CALLSTACK          = t_abap_stack
       ET_CALLSTACK       = t_sys_stack.
    READ TABLE t_abap_stack TRANSPORTING NO FIELDS
    WITH KEY mainprogram = 'CL_FAP_REVISE_PAYMENT_DPC_EXT=CP'.
    IF sy-subrc = 0.
      clear e_wf_active.
    ENDIF.<br>

Please let me know if this can be handled in much simpler way.

Regards

Mukhtar

0 Kudos

hi,

you can enhance the method based on your requirement.

CL_PAYMENT_PROPOSAL_WF->GET_PACKAGE_ACTIONS().

Thanks

Accepted Solutions (0)

Answers (0)