Skip to main content
Kofax

MarkView for SAP - ApprovalCheck fails with CM_NO_DATA_RECEIVED message

Summary 

5165

Applies To

  • ERP System: SAP
  • MarkView Version: All Versions

Behavior

  • Items appear to be remaining in the 'Verify AP Process Complete' queue, or any of the PO Resolutions queue. When running the Approval Check process manually (by executing the mvap_utility.ApprovalCheck procedure) the following error occurs:
    BAPI /S170/APPROVAL_CHECK:
    java.lang.IllegalStateException: JCo Exception executing /S170/APPROVAL_CHECK:connection closed without message (CM_NO_DATA_RECEIVED) at
    com.markview.integrations.sap.gateway.jco.BapiExecutor.execute(BapiExecutor.java:439)

Known Causes

  • This error can occur as a result of a timeout if the /S170/APPROVAL_CHECK BAPI needs to be recompiled. A recompilation may be needed as a result of applying SAP Patches in your environment or upgrading MarkView for SAP.

Resolution

  • In order to resolve the issue you will need to run the /S170/APPROVAL_CHECK BAPI directly within SAP.
    1. Log in to MarkView as an administrator and navigate to Process Monitor. Identify an existing workitem in the Verify AP Process Complete queue that can be moved to the Pending Payment queue. Make note of the INVOICE_ID workitem property.
    2. Log in to your SAP Production Client with privileges to run transaction code SE37.
    3. Navigate to the Function Builder screen (transaction code SE37>). The Function Builder window opens.
    4. In the Function Module field, enter /s170/APPROVAL_CHECK and click the Test/Execute icon 2018-08-03_1503.png
    5. Enter these items in the Import Parameters section:
      • MARKVIEW_BLOCK: 7
      • REQ_APPROVAL_VERIFICATION: N
    6. In the Tables section, click the INVOICE_LIST Value, marked 1 in this image which will open the Structure Editor: Change INVOICE_LIST
      2018-08-03_1504.png
    7. Enter these values:
      • For Non-PO Invoices:
        • INVOICE_ID : enter the <Invoice ID> you noted in step 1. (This is a concatenation of the Accounting Document ID, Company Code, and Fiscal Year for the invoice.)
        • ENTITY_TYPE: N
        • R: Y (REQ_2WAY_RECEIPT)
          2018-08-03_15041.png
      • For PO Invoices:
        • INVOICE_ID : enter the <Invoice ID> you noted in step 1. (This is a concatenation of the Accounting Document ID, Company Code, and Fiscal Year for the invoice.)
        • ENTITY_TYPE: P
        • R:
          • If the MVAP_PO_REQUIRE_RECEIPT_ON_2_WAY_MATCH preference is set to TRUE set this value to Y .
            2018-08-03_1506.png
          • If the MVAP_PO_REQUIRE_RECEIPT_ON_2_WAY_MATCH preference is set to FALSE set this value to N .
            2018-08-03_15061.png
    8. Click the check mark in the green circle 2018-08-03_150612.png to save your settings.
    9. Click the back arrow to return to the Test Function Module: Initial Screen.
    10. Click the execute icon 2018-08-03_15062.png.
      Note when you execute this BAPI for the first time, it terminates abruptly.
    11. Re-run steps 4-10 to avoid the 'abrupt termination' issue.
    12. Check the Posting message at the bottom of the Test Function Module window. If there is an error message, edit the invoice in SAP and repeat these steps.

Keywords: approval-check, approval check