Skip to Content

Enhancement and Function Module Exit for Inbound Delivery

Hi,

I'm adding Custom segments and Fields for Inbound Delivery Idoc.

Further Details:

Message Type: DESADV

Basic Type: DELVRY03

Inbound Process Code: DELV

FM: IDOC_INPUT_DELVRY

Output Type: OPOD


Doubt 1: What will be the exact Enhancement and Function Module Exit Name?

Doubt 2: Kindly conform the below Enhancement and FM Exit for the above requirement regarding Idoc ZSegments.

                (a) SMOD: Enhancement: V55K0005.

               (b). CALL CUSTOMER-FUNCTION '005'
       IMPORTING
           PROCESSING_PROTOCOL = T_PROX[]
       TABLES
           IDOC_DATA           = IDOC_DATA
       CHANGING
           IDOC_CONTROL        = IDOC_CONTRL
       EXCEPTIONS
           IDOC_ERROR          = 1
           DO_NOT_PROCESS_IDOC = 2
           OTHERS              = 3.

(c).    FUNCTION EXIT_SAPLV55K_005.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       EXPORTING
*"             VALUE(PROCESSING_PROTOCOL) TYPE  DELIF_T_PROTT
*"       TABLES
*"              IDOC_DATA STRUCTURE  EDIDD
*"       CHANGING
*"             VALUE(IDOC_CONTROL) LIKE  EDIDC STRUCTURE  EDIDC
*"       EXCEPTIONS
*"              IDOC_ERROR
*"              DO_NOT_PROCESS_IDOC
*"----------------------------------------------------------------------
-
INCLUDE ZXTRKU13 .

ENDFUNCTION.

With Regards,

Sudhir.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 22, 2014 at 09:38 AM

    Hi,

    Please try customer-function '003' wherein the entire IDOC data with all segments would be available in table idoc_data[]. Data in this table can be manipulated/added for the Z segments.

    Function Module - IDOC_INPUT_DELVRY

    Customer Exit - customer-function '003'

    FM Exit name - EXIT_SAPLV55K_003

    Include -  zxtrku05


    Regards,

    Aashika Agarwal    

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Thank you so much.

      I'm using the following FM Exit, respective Associative Type/Type Group and Select Query.

      SELECT SINGLE VBELN LIFNR ZZASNNO ZZINVOIVE_NO ZZREASON FROM LIKP INTO LS_LIKP WHERE VBELN = likp-VBELN.


      But whenever i'm getting the data from the Tcode, i'm not getting the delivery document number in my WHERE condition.

      Kindly suggest me what will be the WHERE condition.



      With Regards,

      Sudhir.

      Idoc2 doubt.JPG (56.7 kB)
      Idoc2 doubt1.JPG (78.3 kB)
  • avatar image
    Former Member
    Dec 22, 2014 at 09:28 AM

    FM exit name will be EXIT_SAPLV55K_005

    Enhancement project will be the CMOD project you create for V55K0005

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Thank you for your reply.

      Its not Inbound, its outbound in my case.

      So, the Outbound Process Code: DELV and

                                FM               : IDOC_OUTPUT_DELVRY

                                Tcodes         : VL31n/VL32N/VL33N

                                Package       : VL.

      Now tel me what will be the exact Enhancement and Function Module Exit Name.

      Kindly let me know ASAP.

      With Regards,

      Sudhir.