This section describes how to assign a new process code to the new function module. This enables the function module to be identified from the partner profiles defined in the IDoc Interface when an IDoc of the new message type is received.
Prerequisites
You must have completed the required steps in Defining and Using a Basic Type.
Choose New Entries
.
Enter your process code and a description. Choose the Processing with ALE
and Processing by function module
options and save your entries.
The maintenance screen is displayed (either automatically or manually), in which you can assign the inbound function module to the process code.
Choose New Entries
. Enter the following in the details screen:
Your process code
Inbound module
frame:
your function module and the maximum number of attempts permitted for posting the application data before exception handling is triggered.
IDoc
frame:
your object type, the trigger event inputErrorOccurred and the completing event inputFinished.
Application object
frame: Your object type
Leave the other fields blank. Save your entries and return to the Inbound Process Codes
initial screen.
Go back using to maintain the inbound process codes and choose the Logical Message
navigation.
In change mode choose New Entries.
Enter the message type (logical message) and the process code and save your entries. The F4 input help in the partner profiles can then display the possible process codes from the logical message, that is, the business view.
Note
If you chose All types
in the last step, the value help displays the process code for all message types. This is also valid for both other options for message type and function.
This assignment has specified a new process code for the function module. You can now enter this process code in the partner profiles.
Example
Make the following entries for the example:
Process code |
TESTINB |
Basic type |
TESTER01 |
Function module |
IDOC_INPUT_TESTER |
Maximum number of attempts |
0 |
Message type (logical message) |
TESTER |
IDoc object type |
IDOCTEST |
Application object type |
BUS2032 (sales order) |