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

Add ernam to 2lis_02_itm

Hi all!

I would like to add the field ernam (created by) to 2lis_02_itm.

I checked in tcode LBWE but the field is not available in the communication structure MCEKKO. How can I add this field to the communication structure so that it will be available in tcode LBWE?

Thanks!

Regards,

Linda

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 01:18 PM

    Hi Linda,

    here some code to implement, but no warrenty about the correctness, as I wrote it down from memory:

    DATA: l_2lis_02_itm type mc02m_0itm,

    l_index type sy-tabix,

    lt_ekko type standard table of ekko,

    wa_ekko type ekko.

    IF i_datasource = '2LIS_02_ITM'.

    select * into table lt_ekko from ekko for all entries in c_t_data

    where ebeln = c_t_data-ebeln.

    LOOP AT c_t_data into l_2lis_02_itm.

    l_index = sy-tabix.

    READ TABLE lt_ekko into wa_ekko

    WITH KEY ebeln = l_2lis_02_itm-ebeln.

    IF sy-subrc = 0.

    l_2lis_02_itm-ernam = wa_ekko-ernam.

    ENDIF.

    modify c_t_data from l_2lis_02_itm index l_index.

    ENDLOOP.

    ENDIF.

    Add these lines to the include ZXRSAU01.

    kind regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:40 AM

    Hi Linda,

    therefore you need to enhance MCEKKO with an customer append to which will add the field. After activating that, you will be able to select the field from mcekko to 2lis_02_itm. After doing this, check out the datasource via rsa3. With some luck the field will already be populated. If not, you need to use the user exit to get the field from the database.

    kind regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Siggi!

      Thanks again for your help!

      None of our abap'ers have time to help me with this, and I'm not experienced with abap at all.

      I now have function exit no1 available in RSPA0001. But I do not know what code to write to populate the field.

      Do you by any chance have some sample code which I can use?

      Thanks!

      BR,

      Linda

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.