on 06-12-2014 8:43 PM
Hi, We are creating a Shop Floor Production Order Packet Print which needs to contain the components of the BOM (Including Phantom Materials)
When Printing the BOM components on the report we want it to be sorted in such a way that it maintain the BOM level integrity.
If I display a Production order (CO03) and display the Component Overview I have a selection box where I can choose from different sort options.
Sort option ST_BOM will sort the component list in the order I wish to use. (See attachment) Is there a function module or some way in configuration to determine the sort logic being used for this sort? I have tried looking in RESB table to see if I can recreate the logic but it seems as though a number of different fields are involved. Since ST_BOM already does the work for me I was hoping to reproduce it's logic in my report.
Any ideas.
Check out the function module : CO_FS_SORT_COMPONENT_LIKE_BOM, from the note 142902.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You transfer your reports internal table data to the function module through SORT_TAB which will sort it and return the sorted output in the same table.
DATA: i_sort type table of RESBK with header line.
...
" transfer your own report's internal table contents to i_sort using statement such as
move-corresponding
...
CALL FUNCTION 'CO_FS_SORT_COMPONENT_LIKE_BOM' "
TABLES
sort_tab = i_sort.
...
" transfer i_sort contents back to your reports internal table.
... .
Hello Adam,
Did you check CS_BOM_EXPL_MAT_V2 and CSAP_MAT_BOM_READ either of one should have sorting logic.
Br
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.