cancel
Showing results for 
Search instead for 
Did you mean: 

Read B/ L status by BOPF

Former Member
0 Kudos

Hi All ,

I am new to SAP TM , and i wanted to read the B/L status and their sub status and how to read entire details of booking .

The code i have to use with BOPF , Please share your ideas!

Thanks,

Pradeep.

Accepted Solutions (0)

Answers (1)

Answers (1)

bharath_k6
Active Participant
0 Kudos

Hi Pradeep,

To read the specific TOR object data , call method - RETRIEVE.

Please find the sample code below.

DATA:

   lr_srv_mgr_tor     TYPE REF TO /bobf/if_tra_service_manager.

* get service manager

  lr_srv_mgr_tor = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( iv_bo_key = /scmtms/if_tor_c=>sc_bo_key ).

    lr_srv_mgr_tor

->retrieve(

    EXPORTING

      it_key                  = it_key

      it_requested_attributes = it_req_attr

      iv_node_key             = /scmtms/if_tor_c=>sc_node-root

      iv_fill_data            = abap_true

    IMPORTING

      et_data                 = et_root ).

ET_ROOT internal table should have all the ROOT level data of TOR object.

Correspondingly you can call transaction /BOBF/TEST_UI to check the data.

If you want any associated node data, then you can call method -

RETRIEVE_BY_ASSOCIATION

You can get more help from below thread.

BOPF | SCN

Thanks,

Bharath.

Former Member
0 Kudos

Hi Bharath ,

Thanks for your response ,

In the    lr_srv_mgr_tor ->retrieve() method what will be the value of the LT_KEY?

Former Member
0 Kudos


Hi Pardeep,

The value of it_key should be the instance key of the root node.

Best Regards,

Dawson

Former Member
0 Kudos

Hi ,

Thanks for your reply , i am handling business object  /SCMTMS/TRQ , now i have taken the details of the root node and their subnodes,

Now i have to collect those details and have to send an email , So i need a attachment for that, Is there any subnode available for attachment ?

Thanks,

Pradeep.

Former Member
0 Kudos

Hi Pradeep,

Didn't you see the node Attachment in TRQ BO? why do you want to send an email? what do you want in the email?

BR, Dawson

Former Member
0 Kudos

Dawson ,

Actually i have to read the Root node and subnodes , then with some conditions i will check the status of the B/L , then with the condition i have to collect the details of the Booking .

Then i have to send those BO details to the customer by PPF config .

So to send an email we will need some attachment .