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

Custom field in COOIS selection screen

Hi all,

how do I add a custom field (IOHEADER-ASTTX, User status) in the COOIS selection screen ?

Thank's

Edited by: Marco De Caro on Dec 6, 2011 2:15 PM

Edited by: Marco De Caro on Dec 6, 2011 2:16 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2011 at 03:30 PM

    Hi,

    Use the BADI : WORKORDER_INFOSYSTEM

    Method: TABLES_MODIFY_LAY

    In the method TABLES_MODIFY_LAY there are many table parameters for different data display of the production order.In this scenario only the header detail structure is being extended with append structure.

    Add the extra fields to be displayed to through append structure to IOHEADER_TAB.

    Example code :

    DATA : BEGIN OF st_matkl,

    matkl TYPE matkl,

    END OF st_matkl.

    DATA : st_header TYPE ioheader. LOOP AT ct_ioheader INTO st_header.

    IF NOT st_header IS INITIAL.

    SELECT SINGLE matkl

    FROM mara

    INTO st_matkl

    WHERE matnr = st_header-matnr.

    ENDIF.

    st_header-matkl = st_matkl-matkl.

    MODIFY ct_ioheader FROM st_header.

    ENDLOOP.

    When you run the report will be able to see the added field in the ALV.

    Thanks,

    Shailaja Ainala.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2011 at 05:56 PM

    Hi,

    I tried all the possible ways its not possible to add, i went thorugh many NOTES too.

    Thanks,

    Shailaja Ainala.

    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.