How to Redistribute QRFC Queues from EWM to ERP After Deletion in SMQ1/SMQ2?

Professionals collaborating during an SAP Business Process Flow demo workshop session

Business Scenario:

When a Warehouse Order is confirmed in SAP EWM, the corresponding Goods Receipt (GR) interface message is sent from the EWM system to SAP ERP.

If the related qRFC queues are deleted manually using transaction codes SMQ1/SMQ2, how can the same GR data be reprocessed and redistributed from EWM back to ERP?

  • In EWM we can redistribute the data from S/4 EWM to ERP by triggering the PPF actions using standard programs in EWM.
  • Program – Tcode SE38 , program – /SCWM/R_MESSAGELOG_RESET
  • Make a selection that mates the documents QRFC you want to resend back to ERP.
SAP EWM warehouse order management screen
Scm-Cloudbook

Before you execute the report, use /h in the title bar to run this in debug. Enter the program main area and navigate to line 1558, statement “CASE p_mode.”

  CASE p_mode.
    WHEN 0.
      p_lock = abap_true.
      p_edit = abap_false.
    WHEN 1.
      p_lock = abap_false.
      p_edit = abap_false.
    WHEN 2.
      p_lock = abap_false.
      p_edit = abap_true.
    WHEN OTHERS.
  ENDCASE.

There are 3 options for the processing mode mentioned above, these are as follows:

  • 0 – Display Mode
  • 1 – Change Mode
  • 2 – Master Mode

These influence how the report processes the logic.

In order send the PPF again, you need to remove the processing status in the /SCWM/MESSAGELOG table, see below:

There are 2 fields: Status & Flag as mentioned below.

SAP inventory movement process flow interface
scm-Cloudbook

Note: Processing mode must be 2 for this. When you have this in master mode, then you will get the fields opened up in the Message Log table entries.

After you have saved this, the next step is to Clear the LIME entries from table. Select the relevant radio button = Display / Clear LIME-Entries:

SAP stock transfer order processing workflow
scm-cloudbook

Note: When you get the screen showing you all of the LIME Entries, you need to press save. No need to make any changes.

After you have saved this, the next step is to Re-execute PPF Actions. Select the relevant radio button = Re-execute PPF Actions:

SAP logistics execution and shipment processing
scm-cloudbook

Once you have sent the PPF again, you need to reset the one field in the /SCWM/MESSAGELOG table, see below, the is the Flag field as the re-execution of the PPF does not set this:

SAP warehouse operational status overview dashboard
scm-cloudbook

NOTE: Once you change your processing mode is set to 2, you will see there are extra tabs for additional processing.

SAP warehouse stock placement and retrieval process

Initiating the redistribution of data from S/4 EWM to ERP can be easily done by triggering the PPF actions using a standard program in EWM. This process allows for seamless and efficient transfer of information, making data management much simpler and more effective. With this feature, businesses can streamline their operations and improve overall productivity.

Come to SCM-Cloudbook, the leading SAP institute in Pune, where you can embark on an exciting journey to learn all about SAP. Our team of expert instructors and our comprehensive curriculum will provide you with the necessary skills and knowledge to excel in this field. We firmly believe that with unwavering determination and dedicated effort, anyone can achieve great success in their SAP education. So why wait? Join us at SCM-Cloudbook and start your path to a successful career today!

Blog by Scm-Cloudbook

 

Become an SAP EWM Expert!
Master warehouse management with our hands-on SAP EWM training. Join SCM-Cloudbook’s expert-led sessions and elevate your career in the warehouse industry.

👉 Connect with us directly: Registration Link
📱 WhatsApp: (wa.link/04d8tw or ✆ +91-9289246569).
🖱️ SCM-CLOUDBOOK

Blogs

FAQs

1. Why do qRFC queues get stuck between SAP EWM and ERP?

qRFC in SAP EWM can become stuck because of communication failures, document inconsistencies, or system errors that interrupt data transfer between EWM and ERP.

2. How can failed queue entries be reprocessed safely?

Before restarting an SAP EWM qRFC queue, identify and fix the underlying error, then reprocess the queue to prevent the same issue from occurring again.

3. What are the benefits of redistributing queue entries instead of creating new transactions?

Redistributing the qRFC queue in SAP EWM preserves the original transaction, reduces manual effort, and helps maintain accurate data synchronization across connected systems.

4. Which transactions are commonly used to monitor queue processing?

Administrators usually rely on SAP qRFC monitoring tools such as SMQ1 and SMQ2 to review queue status, identify failures, and manage pending transactions.

5. How can businesses reduce recurring queue processing issues?

Regular health checks, prompt error resolution, and proper configuration of EWM to ERP qRFC integration help ensure stable queue processing and uninterrupted warehouse operations.

Leave a Reply

Your email address will not be published. Required fields are marked *