12-06-2011 12:02 PM
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
12-06-2011 3: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.
12-06-2011 3:45 PM
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
12-06-2011 5:18 PM
12-06-2011 5:56 PM
Hi,
I tried all the possible ways its not possible to add, i went thorugh many NOTES too.
Thanks,
Shailaja Ainala.