Skip to Content
author's profile photo Former Member
Former Member

User Exit for delvry03

Hello gurus,

we would like to automatically send delivery IDoc after creating Delivery in VL01N transaktion. we want also to add Z1STATUS01 Segment into E1EDL24. Therefore i use following User Exit :

EXIT_SAPLV56K_002 (Enhancement V56K0001).

&----


*& 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.

Am I wrong with User Exit EXIT_SAPLV56K_002???

Thanks for all reply,

FK

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 21, 2008 at 06:44 PM

    Maybe you have to create your own project with Transaction CMOD??

    If yes, you have to activate this enhancement 'Enhancement' and User-Exit in CMOD.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:45 AM

    Hello,

    Sometimes, it so happens that, even if you Hard Code the Statement "BREAK-POINT", it doesn't go into the Code that you've written for populating Custom Segments. So, what I would suggest is, afer saving the Delivery, Run the Standard SAP Program RSNAST00. Input all the Entries required such as your Output Type, the Delivery Number and check the Checkbox Send Again. It should take you into the Debugging Mode.

    Thanks and Regards,

    Venkat Phani Prasad Konduri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.