Start of Content Area

Function documentation Generate and Delete Expected Goods Receipts  Locate the document in its SAP Library structure

Use

You can use report /SCWM/ERP_DLV_DELETE to request expected goods receipts for a purchase order or for a production order from SAP ERP.

You have the following options:

      Select possible expected goods receipts in Extended Warehouse Management (EWM)

      Delete expected goods receipts in EWM

      Create expected goods receipts in EWM

      Delete and create expected goods receipts in EWM

Integration

If you want to delete expected goods receipts from SAP ERP, you can use report /SPE/INB_EGR_CREATE in SAP ERP. This SAP ERP report calls RFC-enabled function modules in EWM, which then delete the expected goods receipts in SAP ERP.

If you want to view the deletion log of the RFC-enabled function modules, choose This graphic is explained in the accompanying text Logs in this report in EWM.

Prerequisites

If you want to use this report to request expected goods receipts from SAP ERP, the following prerequisites must be fulfilled:

      If you are using a corresponding SAP ERP. For more information, see the Implementation Guide (IMG) for Extended Warehouse Management under Interfaces  ERP Integration General Settings Set Control Parameters for ERP Version Control.

      You are using a logical system that represents the target system, enabling SAP ERP to send the found expected goods receipts to EWM. If EWM is to perform sending using a remote function call (RFC), you have defined an RFC destination for the target system. On the SAP Easy Access screen, choose Tools Administration Administration SM59 - RFC Destinations.

      You have defined parallel processing in the delivery, in Customizing for EWM. For more information, see the IMG for EWM under Cross-Process Settings  Delivery Processing  General Settings  Parallel Processing in the Delivery.

Features

If you want to select expected goods receipts, you have to specify the mandatory selection parameters. You can also restrict the selection further by specifying optional selection parameters. EWM processes the specified selection parameters as logical AND operations.

You can choose from the following selection parameters:

      General Selection Parameters

You must specify an ERP Warehouse Number and a Business System.

These selection parameters are mandatory. You can specify all the warehouse numbers that are defined in Customizing. For more information, see the IMG for EWM under Interfaces  ERP Integration General Settings Map Warehouse Numbers from ERP System to EWM.

Note

If the ERP warehouse number is defined for multiple business systems, the system copies the business system that occurs first in the alphabet. You can manually override this automatic assignment.

      Special Selection Parameters

You can choose either Purchase Order/Deliv. Schedule or Production Order for the selection. By making this selection, you define the type of expected goods receipts that the report is to process. This selection parameter is mandatory.

If you want to specify the selection parameter in more detail, you have the following options:

       You can also specify purchase orders or vendors for Purchase Order/Deliv. Schedule to restrict the selection. These entries are optional.

       You can also specify orders or vendors for Production Order to restrict the selection. These entries are optional.

Note

If you want to perform the selection across all existing expected goods receipts that are available in the system for a purchase order, delivery schedule or production order, you must leave the fields Purchase Order, Delivery Schedule or Production Order empty.

If you do not want to restrict the selection to certain vendors, you must leave the field Vendor empty.

      Selection Period

You must specify an interval start and interval end for the selection. This selection parameter is mandatory. You can choose between a fixed interval, such as running automatically in the background, or a free interval, such as manual execution.

       Time Zone

The system automatically determines the time zone using the warehouse number and business system specified under General Selection Parameters, and displays them to you. It uses the time zone for your time details.

       Fixed Interval

Choose this interval if you do not want to specify a fixed time point for the interval.  The system determines the interval dynamically and uses the schedule time for it.

Schedule Time (Hours)

When you specify the number of hours, the report determines the interval end. The report automatically copies the current system time as the time of execution of the interval start.

Time Period

The report uses this field to show you calculated interval start and interval end for the selection.

       Free Interval

Choose this interval if you want to specify the interval freely.

Time Period

You can enter any interval start and interval end for the selection.

Note

The interval start and end then give the time period for which the system is to request expected goods receipts from SAP ERP. If the system is to delete expected goods receipts, it only considers the interval end. It deletes all documents between the system start and the specified interval end.

      Technical Settings

       Program Mode

You can choose between the following program modes:

       Only Select

The report selects all expected goods receipts in EWM that match your selection parameters. Here, the expected goods receipts must lie within the determined time interval. This gives you an overview of the selection quantity.

       Only Create

The report does not select or delete expected goods receipts, it merely transmits the given selection parameters to SAP ERP. SAP ERP sends the expected goods receipts back to EWM.

       Only Delete

The report deletes the expected goods receipts in EWM that match the selection parameters. Here, the expected goods receipts must lie within the time interval that the report determines for the selection.

       Delete and Create

The report first deletes existing expected goods receipts in EWM. It then requests the new expected goods receipts from SAP ERP.

       Log Availability (Days)

You have the option of specifying how long EWM is to save the log to the database.

Logging

The report generates a log for all program modes, apart from Only Select. It saves the following in the log:

      All expected goods receipts that match your selection criteria and which it can process

      Selection parameters used

      Number of expected goods receipts found

Note

We recommend that you delete obsolete logs at regular intervals.

Activities

On the SAP Easy Access screen, choose Tools ABAP Workbench Development SE37 - Function Builder, and schedule the report as a background job.

 

 

End of Content Area