!--a11y-->
Modifications (Customer Functions) 
This chapter provides an overview on the customer functions and change options in processing that affect the interface.
Inbound Processing (Receipt of IDocs from Subsystem)
The following modifications are possible:
The following describes individual modification options.
Once an IDoc has been received and saved, a framework function module in the SAP application is triggered which takes over the processing of the IDoc. This provides the first option where you can generate your own processing function module. In order to call this up you will have to enter it in an ALE Customizing table (transaction WE42 : Process codes inbound
® Inbound with ALE service ® Processing by function module). You can then specify the defined process code in the inbound partner profile. Framework function modules on offer are assigned according to the following message categories:Inbound Framework Function Module
Message type |
Function module |
Significance |
SHIPPL |
IDOC_INPUT_SHIPPL |
Shipment document |
The framework function module filters out the user data per IDoc and calls up your own processing function module in the application for every IDoc in a loop. All the data are then saved together in the database.
Before and after processing each IDoc and after saving all shipment data a customer function is implemented.
You can use the customer function before processing the IDoc to manipulate data in the IDoc before it is transferred to the application functions. The customer function after IDoc processing allows you to process your own segments.
Customer functions for the transportation planning interface can be found in function group XV56 in the R/3 system with the description ‘EXIT_SAPLV56I_0xx’. You can use transaction SMOD to access enhancements. The names begin with ‘V56I’. The documentation for each function module describes how to use the available customer functions. Activating customer functions takes place in transaction CMOD. Please use the R/3 system online documentation for instructions on using SMOD and
Customer Functions Inbound Shipment
EXIT_SAPLV56I_010 |
Modification of IDoc segments |
EXIT_SAPLV56I_011 |
Modification of shipment tables |
EXIT_SAPLV56I_012 |
Save your own new shipment tables |
When creating your own function module, you must make sure that you do not set Commit Work, because the function module branches back the ALE service level after processing. This is where application errors are copied, IDoc status set and possibly rollbacks are listed. After Commit Work, a rollback can no longer be carried out if an error occurs. This could lead to partially posted IDocs and therefore to inconsistencies during error processing.
You have to take into account the fact that further I/Os, that occur in the customer functions can reduce performance.
You define your own IDoc segments in IDoc maintenance (WE30). Please see the corresponding documentation for the ALE group.
You define your own IDoc in the same way as for maintaining your own segments. This IDoc must be assigned to a new message type. You must find a partner profile for this message type. The tables for entry to transaction WE42 must be maintained.
You have the following modification options for the individual modification scenarios:
Outbound Processing (Transmitting IDocs to a Subsystem)
The following modification scenarios:
The following section describes the individual modification options.
The formatting for the transmission of IDocs is carried out in the application. The IDoc is constructed, the partner determined and the configurations are made for the ALE layer. The construction of the IDoc is carried out in the application function modules.
This is where you have your first opportunity to carry out modifications by creating your own function modules. To ensure that this is called by the application, you have to link it to the required application menu.
The following function modules from function group V561 are used in the transportation planning interface for constructing and transmitting standard IDocs:
Function modules outbound processing
IDOC_OUTPUT_TPSDLS |
Individual planning requests |
IDOC_OUTPUT_TPSDLS_MASS |
Mass transmission of planning requests |
IDOC_OUTPUT_SHIPPL |
Transfer status |
IDOC_OUTPUT_STATUS_TPS |
Error status |
IDOC_OUTPUT_TPSLOC |
Location master data |
For the outbound function modules for transmission of planning requests, the following customer functions are available, for adding your own IDoc segments and/or changing the standard IDoc construction. The following list displays all available customer functions for outbound processing of planning requests. The function groups and transactions displayed for inbound processing are also valid for customer functions in outbound processing.
Customer Functions for Outbound Planning Requests
EXIT_SAPLV56I_001 |
Modification of the delivery header segment in the IDoc |
EXIT_SAPLV56I_002 |
Modification of the delivery item segments in the IDoc |
EXIT_SAPLV56I_003 |
Modification of the packing data segments in the IDoc |
EXIT_SAPLV56I_004 |
Modification of the whole IDoc before transmission |
EXIT_SAPLV56I_005 |
Modification of material cumulation |
EXIT_SAPLV56I_006 |
User-specific location substitution |
EXIT_SAPLV56L_007 |
Deactivating the conversion block for deliveries |
As mentioned in inbound processing, you define your own IDoc segments in IDoc maintenance. A customer-specific IDoc can also be defined for outbound processing. Apart from IDoc definition, you only need to maintain the partner profile for outbound processing here.
You have the following modification options for the individual modification scenarios:
