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: 

IDOC DELVRY03 Problem

Former Member
0 Kudos
297

Hi Experts,

From legacy system we are taking data into SAP via IDOC and while IDOC Creation we are facing problem when PO have mulitple line item . I am giving an example

eg - Legacy system have a flat file which have 4 line item for Purchase Order each item having quantity 10 ,

similarly in SAP each of 4 line item have qauntity 10 each .

But Mapping of Line item 1 of Legacy Flat file with Line item 1 of SAP fails .

similarly for all line items comparision .

I think it is comparing quantity of line item 1 of flat file ( Quantity 10 ) with total Quantity ( here 40 ) of SAP .

and I am getting WARNING ME 161 Notified quantity exceeds quantity ordered in IDOC - DELVRY03 .

I am trying to debug IDOC in foreground via WE19 , but i am not able to get where this message is coming.

Message Type DESADV

E1EDL20

BTGEW 0000002112

GEWEI LBR

LIFEX TEST_ASN_10

TRAID

E1EDL55

QUALF ZMS

REFNR M

E1EDL55

QUALF ZFB

REFNR CC

E1ADRM1

PARTNER_Q ZSF

PARTNER_ID L2110U0

COUNTRY1 US

E1EDT13

Qualifier 001

Date 20091110

E1EDT13

Qualifier 007

Date 20091110

E1EDL24

POSNR 10

MATNR 5C8315

WERKS 1010

KDMAT 5C8315

LFIMG 00005

VRKME EA

AESKD 03

E1EDL41

QUALI 001

BSTNR 4500000248

POSEX 1

E1TXTH9

Text Object VBBP

Text ID 0003

Language EN

LANGUA_ISO EN

E1TXTP9

Tag column *

TDLINE 0080061033_8

Thanks in advance

Regards,

Gaurav

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos
48

Hello

Looking at the Where-Used-List (ERP 6.0) of this message I assume that the Warning message comes from the following piece of coding (include MM06EF0P_PRUEFEN 😞


... " lines 313ff
  IF retco EQ '6'.
    WRITE pot-menge TO chmng UNIT pot-meins.
    CALL FUNCTION 'ME_CHECK_T160M'
      EXPORTING
        i_arbgb = 'ME'
        i_msgnr = '161'
        i_msgvs = '00'
      EXCEPTIONS
        nothing = 00
        warning = 01
        error   = 02.
    CASE sy-subrc.
      WHEN 01.
        MESSAGE w161(me) WITH chmng pot-meins.
      WHEN 02.
        MESSAGE e161(me) WITH chmng pot-meins.
        exitflag = 'X'.
    ENDCASE.
  ENDIF.
...

This looks to me as if the type of message (W, S, I, E) can be customized.

Alternatively, this message is found in function module ME_CONFIRMATION_CHECK_QUANTITY.

Regards

Uwe

Former Member
0 Kudos
48

Thanks , its solved