12-22-2014 8:00 AM
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.
12-22-2014 9: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
12-22-2014 9:28 AM
FM exit name will be EXIT_SAPLV55K_005
Enhancement project will be the CMOD project you create for V55K0005
12-22-2014 11:14 AM
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.
12-22-2014 9: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
12-22-2014 11:14 AM
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.
12-22-2014 11:21 AM
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
12-23-2014 1:58 PM
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.