2022 Mar 22 4:39 PM
Hi,
I have a list of production orders and need to add the document version of the drawing.
I can find the versions of the finished item in DRAD and DRAW.
However, in the list there may be older production orders that used a different drawing version.
How do I find this, is there a valid from/valid to date somewhere ?
Thanks
Anne
Hi,
I have a list of production orders and need to add the document version of the drawing.
I can find the versions of the finished item in DRAD and DRAW.
However, in the list there may be older production orders that used a different drawing version.
How do I find this, is there a valid from/valid to date somewhere ?
Thanks
Anne
2022 Mar 23 11:03 AM
Hi Anne,
can you please check if the table DRAD_PORDER includes the relevant information?
I just checked the where-used-list of this table and found the function module COIS_SELECT_ORDERS_READ which includes also the related documents based on the mentioned table.
I hope this helps you in your scenario.
Kind regards
Jens
2022 Mar 23 4:39 PM
Hi Jens,
I used the function module but the output is empty, maybe there's something wrong in the previous FM's ? Not sure what they are suppose to do (copied it from an example) :
l_repid = sy-repid.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = l_repid
TABLES
selection_table = lt_seltab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
RETURN.
ENDIF.
ls_tcoa-header_sel = 'X'.
ls_tcoa-item_sel = 'Y'.
ls_tcoa-layoutid_aa = p_vari2.
CALL FUNCTION 'COIS_SELECT_PARAMETERS_SET'
EXPORTING
it_parameter = lt_seltab
is_tcoa = ls_tcoa.
* read production orders
CLEAR: gt_out_vers
CALL FUNCTION 'COIS_SELECT_ORDERS_READ'
CHANGING
ct_iodocl = iodocl_tab[].
MOVE-CORRESPONDING iodocl_tab to gt_out_vers.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |