cancel
Showing results for 
Search instead for 
Did you mean: 

incorrect Outbound Delivery number

Former Member
0 Kudos

Hi,

Commonly I check "Inbound Delivery" via T-code: VL33N, and follow the menu "Goto --> header --> administration", then check its corresponding "Outbound Delivery" number in the field "External ID". but I found sometimes the content in the field "External ID" is Not "Outbond Delivery" number, then, what's it?

another question is, what's the correct way to find corresponding "outbound delivery" number in an "Inbound Delivery" via T-code: vl33n?

Best Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

ferry_lianto
Active Contributor
0 Kudos

Hi Ren,

External ID is an ID that the vendor uses to track a delivery.

In my company, we populate this field with an outbound delivery number during the creation of an inbound delivery for all inter-plant stock transfers, covering all deliveries from DC to the branch (stock orders, IB orders and emergency orders) and also returns/RMA from branch to DC.

We use message type DESADV and IDoc type DELVRY03 to create inbound delivery. Then in user exits EXIT_SAPLV55K_011, we populate the external ID field with outbound delivery number.

TABLES: EKKO,
        EKPO.
                                          
DATA: L_PARTNER LIKE EDIDC-RCVPRN,
      L_E1EDL41 LIKE E1EDL41,
      L_KOMDLGN LIKE KOMDLGN,
      L_TABIX   LIKE SY-TABIX.
 
CLEAR L_PARTNER.
CONCATENATE SY-SYSID 'CLNT' SY-MANDT INTO L_PARTNER.
                                                     
IF  IDOC_CONTROL-MESTYP = 'DESADV'
AND IDOC_CONTROL-RCVPRN = L_PARTNER
AND IDOC_CONTROL-SNDPRN = L_PARTNER
AND IDOC_CONTROL-MESCOD = 'ASN'.

  IF IDOC_SEGMENT-SEGNAM = 'E1EDL41'.
    CLEAR L_E1EDL41.
    MOVE IDOC_SEGMENT-SDATA TO L_E1EDL41.
     
    CLEAR L_KOMDLGN.
    READ TABLE DELIVERY_COM INTO L_KOMDLGN
                WITH KEY RFPOS = L_E1EDL41-POSEX.
     
    IF SY-SUBRC = 0.
      L_TABIX = SY-TABIX.
      
      CLEAR EKPO.
      SELECT SINGLE BEDNR
      INTO EKPO-BEDNR
      FROM EKPO
      WHERE EBELN = L_E1EDL41-BSTNR
        AND EBELP = L_E1EDL41-POSEX.

      IF SY-SUBRC = 0.
        L_KOMDLGN-VERUR = EKPO-BEDNR.
      ELSE.
        L_KOMDLGN-VERUR = SPACE.
      ENDIF.
         
      MODIFY DELIVERY_COM INDEX L_TABIX FROM L_KOMDLGN.
    ENDIF.
  
  ENDIF.
ENDIF.

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi, Ferry Lianto,

Thank you very much for your advice. My SAP situations: the purchase order was issued from one plant to another internal plant, the inbound delivery was triggered and created by outbound delivery via ALE, do you have any advice to check how the "external ID" is created?

Best Regards.

Former Member
0 Kudos

Ren,

External Id is the field where u can fill up anything u want. Normally in many companies they will fill up delivery number + some alphabets or a running number.

It purely depends on ur userexit logic.Kindly check.

Shiva.

Former Member
0 Kudos

Hi ren,

You should choose the tab "External delivery number of Vendor" .

If u find it ok. Reward and close.

Thanks,

Shiva

Former Member
0 Kudos

Hi,Shiva,

Thank you very much! But I can't find the tab "External delivery number of Vendor". I'm working under version 4.6C, would you please tell me the detail t-code and menu path?

Best Regards.