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: 

inbound idoc missing in SAP

0 Kudos
1,551

Hi ,

           I am currently working for a integration project where the end system is the sap system , we are facing a strange behavior where some idocs are reaching in sap system but are not getting created . There are no logs in we02/we05 nor any entry in the control tables .

The issue is with the material creation or MATMAS message type  .

The SAP system is of 4.6 c. and the basic type is MATMAS04 .

The inbound FM used is a custom FM in which we are doing some validations which are needed for our project .

While debugging i have seen , document no of the idoc remains intact within the entire FM.

The idoc misses out when we try to push a idoc with invalid data for a mandatory field for material creation .

As we are in a critical phase of the project . Responses will be greatly appreciated.

Thanks,

Laxmikant

1 ACCEPTED SOLUTION

Jelena_Perfiljeva
Active Contributor
0 Kudos
913

If you have missing or invalid data then I'm quite confused what solution do you expect from SCN on this?

8 REPLIES 8

JL23
Active Contributor
0 Kudos
913

If it works well with the SAP standard FM then the error is certainly in your custom FM, but how shall we are able to tell you what is wrong if we do not see the coding?

0 Kudos
913

Thanks Juergen,

We had already tried to replace the custom FM with the standard one. Still it seems the same issue persists.

Jelena_Perfiljeva
Active Contributor
0 Kudos
914

If you have missing or invalid data then I'm quite confused what solution do you expect from SCN on this?

0 Kudos
913

The issue is , idocs don't get created in sap even if reached SAP....the settings are fine. Is there any way to figure out the issue or anybody else have ever faced such type of issue.

0 Kudos
913

It is a bit confusing, you are saying on one side that the idoc is missing, on the other side you debugged something. How can you debug something that is missing?

In which transaction are you when you start your debugging? What do you see in BD87. And why do you want to push an IDOC with invalid data? to where do you want to push it?

0 Kudos
913

i can debug by putting a infinite loop in the beginning of the inbound FM . in debugging i can see the data in the idoc structure . but at the end of the inbound idoc function module when i press f8 and check in we02 , cant see the idoc created . Nor in edidc table also.

I dont want to push incorrect, but this is a bug raised by my client .

0 Kudos
913

The problem is clearly in the ABAP code in the inbound function module. We can't know on SCN what that code is but an ABAPer should be able to help you with this. 

Since you've already marked this as answered I guess it's all good now... If you found a solution yourself then kindly share with the community, so that others could learn from it too.

Jelena_Perfiljeva
Active Contributor
0 Kudos
913

I'm also still confused what exactly is the issue and what you are trying to achieve... It's the data that reaches SAP and then an IDoc gets created, so saying "IDoc reached SAP but not created" simply makes no sense. If it's not created then there is no IDoc.

Kindly provide more details and clarify the question if you expect assistance on SCN. Maybe the issue is with your custom FM that you chose not to share with us. How would anyone know?