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: 

Outbound DELVRY03 User Exit *Include ZXTRKU02*

Former Member
0 Kudos

Hello gurus,

i have to create outbound delivery idoc for EXIT_SAPLV56K_002 (Enhancement V56K0001).

we want to add Z1STATUS01 Segment to E1EDL24.


*&---------------------------------------------------------------------*
*&  Include           ZXTRKU02
*&---------------------------------------------------------------------*


DATA:lv_vbup LIKE vbup.
DATA:ls_Z1STATUS01 TYPE Z1STATUS01.
DATA:  w_data_vbak  LIKE LINE OF data-tab_vbak,
            w_vbak       LIKE vbak.

SELECT * FROM vbup INTO lv_vbup
              WHERE vbeln = w_vbak-vbeln.
ENDSELECT.


CASE IDOC_DATA-segnam.

WHEN 'E1EDL24'.
    IDOC_DATA-segnam ='Z1STATUS01'.
   ls_Z1STATUS01-LFGSA = lv_vbup-LFGSA.
   move ls_Z1STATUS01 to IDOC_DATA-sdata.
  APPEND IDOC_DATA.
ENDCASE.

When i try to test the user exit and also tried " break points at statement " in debugging it is not going to the exit EXIT_SAPLV56K_002 and IDOC data is generated without Z1STATUS01.

Is there any other way how can i check that....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Before setting the break point, check whethere the user exit is active or not.

To activate the exit, get the enhancement of the corresponding exit and activate the same for tesing purpose in SMOD transaction and if it really works then create a project in CMOD transaction, include the enhancement and activate it.

Then test the IDoc by placing the break point.

Regards,

Prasana.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use Testtool Tcode WE19.

Place Break point in exit and try to post idoc,then u can check it.

Regards,

Ashok.

0 Kudos

WE19 testing is not going to the exit. Any other suggestions?

Former Member
0 Kudos

Hi,

Before setting the break point, check whethere the user exit is active or not.

To activate the exit, get the enhancement of the corresponding exit and activate the same for tesing purpose in SMOD transaction and if it really works then create a project in CMOD transaction, include the enhancement and activate it.

Then test the IDoc by placing the break point.

Regards,

Prasana.