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: 

User exit for Saler order Idoc

Former Member
0 Kudos

We´re trying to create Sales Order through IDOC. I need to add several fixed values. I wrote a user exit in EXIT_SAPLVEDA_009 ( VEDA0001):

*----


segmentE1EDK17----

-


read table DEDIDD with key segnam = 'E1EDK17'.

if sy-subrc eq 0.

v_index = sy-tabix.

v_e1edk17 = DEDIDD-sdata.

*- Fixed values--

-


v_e1edk17-QUALF = '001'.

v_e1edk17-LKOND = 'CFT'.

*----

-


dedidd-sdata = v_e1edk17.

modify dedidd index v_index

transporting sdata.

endif.

I debugged the coding, the structure receives the values , but when I check the Sales order nothing appears .. Help !

Is there something to flags ??

3 REPLIES 3

Former Member
0 Kudos

I think you have the wrong EXIT.

Try this one EXIT_SAPLVEDA_001

Former Member
0 Kudos

But How Can I access the Structure from EXIT_SAPLVEDA_001 ??

any example..

I´ll appreciate it .

0 Kudos

Actually I think you can use the exit that you are currently using, but you need to change DXVBAK-INCO1 to 'CFT' or whatever value you want.