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

EDI: Syntax error in IDoc (mandatory group missing)

sachin_soni
Active Participant
0 Likes
2,033

Hi Idoc Experts !

The error pasted in subject is what i'm getting when i'm calling function module MASTER_IDOC_DISTRIBUTE.

THE IDOC IS GETTING GENERATED BUT HAS SYNTAX ERRORS WITH STATUS/ERROR CODE :26.

I'm tryin to generate an IDOC with following details:

Direction 1 Outbox

Current status 26

Basic type WMMBID02

Extension

Message type WMMBXY

Partner no. XEROX

Partn.Type LS

Port 170_INVRPT

Can anyone be of some help?

Points guaranteed for authentic answers !

Thanks,

Sachin Soni

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,208

Hi,

MOstly the error 26 raises, when there is mismatching of the fields in segment level.

Check out ones, in passing the data to the segments.

Regards,

Naveen

7 REPLIES 7
Read only

Former Member
0 Likes
1,209

Hi,

MOstly the error 26 raises, when there is mismatching of the fields in segment level.

Check out ones, in passing the data to the segments.

Regards,

Naveen

Read only

0 Likes
1,208

hi naveen ,

thanks for replyin,

can u be clear about 'mismatching of fields' ?

Read only

0 Likes
1,208

Hi,

In ur logic u may be trying to populate the IDOC type with data, by validating with segment names followed by Fields.

Check the statements where u will be assigning the values to the fields in Segmenst.

Regards

Naveen

Read only

0 Likes
1,208

thanks naveen , i'm workin on VPN so will have to get disconnected from the internet.i'll get back to you in 15 minutes if you wud be still here,

thanks,

sachin soni

Read only

0 Likes
1,208

Hi,

While passing the idoc data, you are not passing the mandatory segment and passing the child segment. Try to add the data for the mandatory segment.

Check and find the mandatory segments on the IDoc through WE30 .And check if all this segments are populated in the IDoc which failed ( WE02).

Regards,

Soumya.

Read only

0 Likes
1,208

Thanks soumya,

i'll follow your answer and check in my system for the mandatory segments.

Read only

sachin_soni
Active Participant
0 Likes
1,208

Most the ans led me to the soln