Ansicht
Dokumentation

BAPI_WASTEROUTE_CREATEFROMDATA - BAPI: Create Routes

BAPI_WASTEROUTE_CREATEFROMDATA - BAPI: Create Routes

CPI1466 during Backup   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This Business Application Programming Interface (BAPI) creates a route, based on data transferred from the ROUTEDATA and EXTENSIONIN parameters.

In the structure EXTENSIONIN, transfer the customer fields that are then transferred to the internal route structure. These fields must already be components of the customer enhancement CI_ROUTE for the EWAROUTE table.

When dealing with data from the ROUTEDATA structure, note the following:

  • Key
If you submit a value in the ROUTE field, this is then interpreted as an external key, and a data record with this key is created. If you leave the field empty, a new data record with an internally assigned key is created.
  • Mandatory fields
KEYDATE indicates the date from which the route is valid.
PRODUCT_AREA is the service area for the route. The value must exist in Customizing for the service areas.
  • Dependency between fields
A dependency exists between the fields service area and confirmation category (PRODUCT_AREA and RESULTYP, PRODUCT_AREA2 and RESULTYP2, PRODUCT_AREA3, and RESULTYP3). This dependency is assigned via Customzing. Only confirmation categories that have been specified in Customizing can be assigned to service areas.
  • Other Fields
Refer to the respective documentation in the data dictionary for the meanings of other fields.

Example

This function is, for example, necessary if you have connected an external route planning system, in which new routes were generated for the first time during route planning. If you now want to upload a waste disposal order for a new route, you must first generate the new route in the SAP system.

Notes

Messages are returned in the RETURN parameter. Customer fields are transferred in the EXTENSION parameter.

You can also start this BAPI in test mode. This means that the new data record is not posted. To do this, you must set the TESTRUN parameter.

The module does not execute a COMMIT. The posting takes place in an update task.

Further information





Parameters

EXTENSIONIN
EXTENSIONOUT
NUMBER
RETURN
ROUTEDATA
ROUTEDATAOUT
TESTRUN

Exceptions

Function Group

BAPIWASTEROUTE

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.

Length: 3533 Date: 20240523 Time: 173902     sap01-206 ( 58 ms )