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: 

Routines that fill the idoc data segments

Hi Guys,

I have a peculiar case.

We had created a standard PO with inbound delivery and the GR is done through inbound IDOC which gets triggered through a batch job. We had done this in both development and quality systems with the exact same data.

The case is in quality the idoc successfully posts the GR while in development its in status 51. I went through the data segments for development idoc and found that there are two extra segments getting filled with tax related data which is not there in quality and also they are in red color and hence the status 51 with tax error saying "Assigning a new tax key for XX and VAT XX not possible". I have checked OBCD settings in both the systems and they are exactly the same. This error is coming because of those extra segments getting filled which is not there in quality.

Now i know if the segment is red the data or the format might be wrong but how do i verify this. Are there any standard FMs or BAPIs that fill the idoc data segments if so please suggest so that i can get into those routines and see what we have been missing.

Also checked user-exits and none of them are related to this segments. Please suggest.

IDOC message type : INVOIC

IDOC baisc type : INVOIC01

1 ACCEPTED SOLUTION

0 Kudos

HI Guys,

Resolved it. It seems that we had to maintain segment filters in BD56 for those partner types and it worked.

And yes its for invoice document sorry for that

Thanks for your replies.

3 REPLIES 3

roberto_forti
Contributor
0 Kudos

Hi, SAP transaction WE31 (segment) and WE57 to check the function module that is assigned to the INVOIC message type. regards

Jelena
Active Contributor
0 Kudos

INVOIC is for invoice/billing document. GR is goods movement. I'm guessing you're not actually doing GR but an incoming invoice. Might want to clarify this.

For the inbound IDocs the data is filled in at the source (which could be the same SAP system or anything external), so you'll see not the FMs that fill in the segments but the FMs that process the segments, which were filled in someplace else. You can search in the FM assigned to the message, as already suggested. Or you could check "where used" in SE11 for the structure of the respective segment (it'd have the same name as the segment in question). It doesn't always work but you might get lucky.

0 Kudos

HI Guys,

Resolved it. It seems that we had to maintain segment filters in BD56 for those partner types and it worked.

And yes its for invoice document sorry for that

Thanks for your replies.