cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve TOR_ITEM details with TRQ_ITEM keys

joseph_manjiyil
Participant
0 Kudos

Hi All,

I am trying to retrieve TOR_ITEM (Freight unit) details using TRQ_ITEM keys. I am not able to retrieve the information by using retrieve by Association. I am working on TM 8.0 release. Below is the code which I have written to achieve this functionality, code does not dump. But it does not return any value.

 
              lo_srvmgr_trq->retrieve_by_association(

              EXPORTING

               iv_node_key         = /scmtms/if_trq_c=>sc_node-item

               it_key                    = lt_trq_item_shl_key

               iv_association     = /scmtms/if_trq_c=>sc_association-item-tor_item

               iv_fill_data           = abap_true

               iv_before_image  = abap_true  

              IMPORTING

               et_data                 = lt_tor_item_fu

               et_key_link           = lt_tor_item_fu_link

               et_target_key        = lt_tor_item_fu_key ).

Please help me in arriving at the solution.

Update: The above association works perfectly when written in a report program. But I am using this association inside scheduling. As per my understanding the relationship between TRQ and FU is broken when coming to TM system for simulate scheduling.

Regards,

Joseph M

View Entire Topic
joseph_manjiyil
Participant
0 Kudos

Hi Selva,

That option does not work in this case.

Regards,

Joseph M