Skip to Content
author's profile photo
Former Member

Idoc Sales Order

We create sales orders via an ORDERS01 IDoc, and we ´d like add some manual texts in E1EDKT1 and E1EDKT2 segments, at header level.

I' m using EXIT_SAPLVEDA_011 with this coding:

*----


text:E1EDKT1----

-


read table dedidd with key segnam = 'E1EDKT1'.

if sy-subrc eq 0.

v_index = sy-tabix.

v_e1edkt1 = dedidd-sdata.

v_e1edkt1-tdid = '0012'.

v_e1edkt1-tsspras = 'E'.

v_e1edkt1-tsspras_iso = 'EN'.

v_e1edkt1-tdobject = 'VBBK'.

v_e1edkt1-TDOBNAME = 'FIXED TEXT...........'.

dedidd-sdata = v_e1edkt1.

modify dedidd index v_index.

endif.

But it´s not working .. !! The text never arrived to the Sales order...

I ' d appreciate any help

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Aug 28, 2007 at 10:52 PM

    You should add your additional lines to e1edkt2-tdline, not e1edkt1-tdobname.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Srinivas Adavi

      I took up again this problem. I moved the coding to EXIT_SAPLVEDA_009:, following the recommendation:

      data: v_e1edkt1 like e1edkt1,

      v_e1edkt2 like e1edkt2,

      v_index like sy-tabix.

      *--


      segment E1EDKT1--


      read table dedidd with key segnam = 'E1EDKT1'.

      if sy-subrc eq 0.

      v_index = sy-tabix.

      v_e1edkt1 = dedidd-sdata.

      v_e1edkt1-tdid = '001'.

      v_e1edkt1-tsspras = 'EN'.

      v_e1edkt1-tsspras_iso = 'E'.

      v_e1edkt1-tdobject = 'VBBK'.

      dedidd-sdata = v_e1edkt1.

      modify dedidd index v_index.

      *--


      segment:E1EDKT2--


      read table dedidd with key segnam = 'E1EDKT2'.

      if sy-subrc eq 0.

      v_index = sy-tabix.

      v_e1edkt2 = dedidd-sdata.

      v_e1edkt2-tdline = 'FIXED TEXT BLA BLA BLA '.

      v_e1edkt2-tdformat = '*'.

      dedidd-sdata = v_e1edkt2.

      modify dedidd index v_index.

      endif.

      endif.

      *----


      END -


      but Nothing .. I'm not able to modify the text ! any suggest ???

      Is there something to flaggear ??