Application Development 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: 

idoc failing with error IDOC (idoc#) cannot be opened

Former Member
0 Kudos

Hi ,

I have created a function module with in which i a calling the standatd IDOC_INPUT_ORDERS function module.

I have created the process code for the same and added it to the partner profile.

Now when i am processing the IDOC through TCODE WE19.

The IDOCS are failing with the error IDOC (idoc#) cannot be opened.

Do i need to plug in some code or call some other function module too before calling the standard function module.

Can anyone please help me with this as it is very urgent

Thanks a lot for all the help

Nikhil

2 REPLIES 2

Former Member
0 Kudos

Check if u filled teh Process Code in the EDIDC.

When testign in we19.

Rgds,

Manohar

Former Member
0 Kudos

Hi, Nikhil!

Proceed as follows:

1. Check your FM interface to conform to IDoc inbound functions interface rules(must be equal to interface of IDOC_INPUT_ORDERS)

2. Define attributes of your FM using transaction BD51

3. Assign IDoc type and message type to your FM using transaction WE57

4. Maintain process code for your FM using transaction WE42

5. Check your settings for inbound processing using transaction BDM6

6. Maintain partner profile for corresponding message type

For steps 1-4 you can use as a template settings done for standard process code and FM IDOC_INPUT_ORDERS.

To test your partner profile settings you can use "Standard inbound" function of transaction WE19.

Regards,

Maxim.