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: 

SM58: "Out of range: size 5 exceeded max size limit 5.""

wernervm
Participant
0 Kudos

Hi

I’m trying to send idoc for purchase orders using Basic type ORDERS05.

Initially we received error in BD87 “EDI: Syntax error in IDoc (too many repetitions of a segment)

The error was caused due to limit that segment E1EDP19 can be repeated (SAP standard = 5)

We then found “how to” note 1860347 which referred us to note 370021.

After implementing note 370021, we changed the default from 5 to 20.

We are now stuck with new error in SM58 for function module IDOC_INBOUND_ASYNCHRONOUS:

"Out of range: size 5 exceeded max size limit 5.""

Are there additional changes/settings that must be performed? Why would FM still pick up the setting for 5?

We are using standard SAP when generating PO iDOCs. Most PO iDOCs are processed successfully to external system. Only a few are failing.

Any help would be highly appreciated.

Best regards

6 REPLIES 6

thanga_prakash
Active Contributor
0 Kudos

Hello Werner,

Did you release the IDOC type after enhancing the maximum number from 5 to 20.

If not go to transaction WE30 --> give IDOC type --> edit --> set release.

Regards,

Tp

0 Kudos

Hi Thanga

Thanks for your reply.

I did check release status on Segment (WE31: E1EDP19) & Basic type (WE30: ORDERS05).

Both were "Released" during our tests.

Kind regards

Werner

0 Kudos

Hello Werner

What is the message type? Is it inbound idoc?

Regards,

Tp

0 Kudos

Regenerate the inbound function module assigned and check.

Regards,

Tp

0 Kudos

Hi;

Message type: ORDRSP

|It's for Outbound (PO iDOC sent from SAP to external system).

Do you mean "Activate IDOC_INBOUND_ASYNCHRONOUS" (i.e. SE37 and Ctrl +F3)?

Regards

0 Kudos

Hello Werner,

IDOC_OUTPUT_ORDRSP is the function module which creates outbound idocs of message type ORDRSP.

Inside the function module we have below user exits. check in the user exits whether there is any logic restricting to the number of segments.

EXIT_SAPLVEDC_004

EXIT_SAPLVEDC_001

EXIT_SAPLVEDC_003

Regards,

TP