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: 

Enhancement and Function Module Exit for Inbound Delivery

yarnagula_sudhir
Active Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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    

6 REPLIES 6

Former Member
0 Kudos

FM exit name will be EXIT_SAPLV55K_005

Enhancement project will be the CMOD project you create for V55K0005

0 Kudos

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.

Former Member
0 Kudos

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    

0 Kudos

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.

0 Kudos

Hi,

For outbound delivery please look for below exit. The data will be available in table  int_edidd.

Function Module - IDOC_OUTPUT_DELVRY

Customer Exit - customer-function '002'

FM Exit name - EXIT_SAPLV56K_002

Include -   zxtrku02


Regards,

Aashika Agarwal

0 Kudos

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.