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: 

No Incompletion Log for Sales Order with net value as zero

Former Member
0 Kudos

Hi all,

There is an Inbound IDOC which creates a Sales Order.

When we check the IDOC, we find that it has got 4 line items (E1EDP01). However, for all the items except the third one (for example), the segment E1EDP05 is filled. In the segment E1EDP05 the field KRATE contains the corresponding net value for the respective line items.

Then when we check Sales Order which is created, we find that the third line item (for example) has the net value as zero. In this case, ideally there should have been an entry in the Incompletion Log. However, it does not happen so.

I suppose the issue is with the third line item in the IDOC for which the segment E1EDP05 is not present. I have debugged the corresponding FM is IDOC_INPUT_ORDERS, but was unable to find any clue.

Please let me know the reason for this.

Thanks and regards,

Anishur

2 REPLIES 2

former_member589029
Active Contributor
0 Kudos

In routine interpret_idoc_orders the item conditions are filled by calling


WHEN 'E1EDP05'.
       MOVE IDOC_DATA-SDATA TO E1EDP05.
       PERFORM ZUORDNEN_ORDERS_E1EDP05.

In case KRATE is empty no values are transferred to the order


    IF NOT E1EDP05-KRATE IS INITIAL.
      PERFORM IDOC_CUR_MOVE USING E1EDP05-KRATE XKOMV-CURRDEC
                                  XKOMV-KOEIN
                                  XKOMV-KBETR D_FLAG_P-PKON.
    ENDIF.

If that is a valid scenario, you need to adjust your incompletion procedure in customizing to include the net value on item level so any missing value is reported.

If this is not supposed to happen you might want to hook into one of the user exits in the idoc and in case KRATE is missing let the idoc fail.

Hope that helps,

Michael

0 Kudos

CLosed.