2007 Mar 14 9:49 AM
I am using a user-exit 'EXIT_SAPLV55K_005' for FM ''IDOC_INPUT_DELVRY'' but this user-exit also comes for other FMs like 'IDOC_INPUT_STPPOD' and 'IDOC_INPUT_SPE_DELVRY' then how could we restrict my code to run only for FM ''IDOC_INPUT_DELVRY'' ?
I am using a user-exit 'EXIT_SAPLV55K_005' for FM ''IDOC_INPUT_DELVRY'' but this user-exit also comes for other FMs like 'IDOC_INPUT_STPPOD' and 'IDOC_INPUT_SPE_DELVRY' then how could we restrict my code to run only for FM ''IDOC_INPUT_DELVRY'' ?
2007 Mar 14 1:12 PM
Try using some parameters of your idoc control data or calling program system variables to identify your scenario.
2007 Mar 14 2:15 PM
In the Control record structure IDOC_CONTRL which is a tables parameter, there are fields for IDOCTP (IDoc Type) and MESTYP (Message Type), depending on these fields you can restrict the processing of this exit for your specific scenario.
For example, if your Message type is SHPCON and Idoc type is DELVRY01, then you can check for these values within the function exit.
2007 Mar 14 8:21 PM
Hi,
You determine whether to execute your code or not based on the Message type is IDOC control record. In your code check <b>IDOC_CONTROL-MESTYP</b> to determine whether to execute your code or not.
Let me know if you have any question.
Regards,
RS
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |