Skip to Content
avatar image
Former Member

Repeated QM Notifications at Regular Interval : Proxy : Inbound & Outbound

Dear ABAP / PI experts ,

Greetings for the day ahead .

I am a ABAP developer . The Requirement is to create a QM notification in SAP ECC using data coming from Inbound Proxy from ( through PI ) External Database and sending and Updating it back to External Database ( through PI ) . The code is written in method of Inbound Proxy and it is Perfectly Creating the QM notification using BAPI as Required for a Line Item .

However , the Issue is that it is creating Repeatedly Notifications through BAPI for same Line Item Data in Regular Intervals of 6 minutes and are Visible in Table QMEL ( Notification Table ) .

PI Developer Informed that it is a Asynchronous Proxy .

What are the Options from ABAP and PI end to Solve the Issue . For One Lineitem Data Only one Notification has to be Created not Multiple at Regular Intervals .

Error messages of SMQ2 { qRFC Monitor (Inbound Queue) } are as follows :

As Informed by Basis , Queue is Registered .

Would be grateful for the Replies from PI and ABAP Developers .

Thanks and Rgds ,

Devendra Singh

q1.png (9.4 kB)
q1.png (9.4 kB)
q2.jpg (41.3 kB)
q3.jpg (18.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 30, 2017 at 11:08 AM

    My assumption is that the PI scenario is configured to poll the sending database every n minutes for records that were not sent, yet and that what you're expecting to be written back to the database would exclude previously sent records from the next polling cycle - does that sound about correct?

    Is the write-back working at all? When you're using an asynchronous proxy, PI would not get the BAPI response and consequently cannot write it to the database, unless there is some extra coding in your asynchronous proxy that invokes another asynchronous proxy sending the BAPI result back to PI.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Patrick ,

      Greetings for the day ahead .

      Any Hint on How to solve the Issue ?

      Kindly go through the whole thread . i tried to comment on your earlier answer . To proceed further , your Hints might Help .

      Would be grateful for your Replies .

      Thanks and Rgds ,

      Devendra Singh

  • avatar image
    Former Member
    Aug 30, 2017 at 12:35 PM

    Thanks Patrick For the Reply .

    Extra coding in asynchronous proxy Inbound Method that invokes another asynchronous proxy Outbound that sends the BAPI result back to PI is there in Code which is working fine From ABAP end . Code Snippet as Follows :

    * Create Object
    
      CREATE OBJECT lo_zcl_obj_prxy.
    
    * Create Object
    
      CREATE OBJECT lo_sys_exception.
    
      TRY .
    
    * Calling Class Method
    
          CALL METHOD lo_zcl_obj_prxy->customer_data_update_proxy_ob
    
            EXPORTING
    
              output = lt_proxy_out_1.
          COMMIT WORK .
    
    * Exception Handling
    
        CATCH cx_ai_system_fault INTO lo_sys_exception .
    
          WRITE :/ lo_sys_exception->errortext.
    
      ENDTRY .
    

    In Inbound Proxy Method Same record as Input is Received again and again whose Notification has already been created and in the repeat Run Creates another Notification Number but at Regular Intervals . Polling Time from PI end is 1 hour . However , Notifications are being created approx. every 6 min .

    Thanks and Rgds ,

    Devendra Singh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I'm not exactly an expert on this particular subject. What strikes me is that your notification gets created. With this kind of status, I would rather expect that the message cannot be posted because of a data issue. Have you tried debugging the proxy with the particular payload that fails here already?

  • avatar image
    Former Member
    Aug 31, 2017 at 07:02 AM

    Can Inbound Proxy repeatedly trigger the stuck queue(from SMQ2) message for same data again . How can SMQ2 be cleaned after the message processing ?

    Looking forward for Replies .

    Thanks and Rgds ,

    Devendra Singh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2017 at 05:31 AM

    Hi PI Experts / ABAP / Basis Experts ,

    Awaiting Replies on this which may Help to solve the issue .

    Would be grateful for your Replies .

    Thanks and Rgds ,

    Devendra Singh

    Add comment
    10|10000 characters needed characters exceeded