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: 

Custom field in COOIS selection screen

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

0 Kudos

I must add a field (IOHEADER-ASTTX) in the selection screen. I implemented the method in mind you WORKORDER_INFOSYSTEM-AT SELECTION SCREEN but I do not know how to use it.

Thank you,

Edited by: Marco De Caro on Dec 6, 2011 4:46 PM

0 Kudos

hi

Edited by: shailaja ainala on Dec 6, 2011 6:41 PM

Former Member
0 Kudos

Hi,

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

Thanks,

Shailaja Ainala.