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

IDOC: message type ORDERS: sending empty segments

Former Member
0 Likes
937

Hi

I want to send a idoc to the 3rd party system to inform them that the purchase orders has been cancelled.

When i delete all line items and save the order, no idoc are created.

How do send empty segments?

3 REPLIES 3
Read only

sridhar_k1
Active Contributor
0 Likes
619

IDOC_OUTPUT_ORDERS fm raises error e757 'No Items Exist' if there are no items. I think you have to copy the idoc fm and comment that error in form LESEN_BELEG of the function module and other changes to generate idoc.

Or

Define another message output type to send idocs using a custom idoc processing module to generate idoc.

Or

You might be using process code ME10 in the partner profiles. Create a new process code, ZME10, assign a Z function module with same interface as IDOC_OUTPUT_ORDERS. In that module, read EKPO table, if there are no items, call idoc generating Z function module else, call IDOC_OUTPUT_ORDERS.

Regards

Sridhar

Message was edited by: Sridhar K

Read only

0 Likes
619

Hi

I did copy the function IDOC_OUTPUT_ORDERS but when i compile the function i get errors of procedures not found and fields not known. I used se37 to copy the function.

It seems to me not all includes are copied. How can i make sure that all are copied?

Read only

0 Likes
619

Hi,

In se37, when you copy the function module, check all the checkboxes and then click on copy button, it gives you a dialog box listing all the included and the right side you get to enter the 'Z' program new(to which the include should be copied) and click on copy, it works fine, after copying dont forget to activate all the includes.

Regards:-

<b>Santosh.D</b>