Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User_exit of function module 'IDOC_INPUT_DELVRY'

Former Member
0 Likes
1,650

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'' ?

3 REPLIES 3
Read only

Former Member
0 Likes
1,165

Try using some parameters of your idoc control data or calling program system variables to identify your scenario.

Read only

0 Likes
1,165

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.

Read only

Former Member
0 Likes
1,165

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