cancel
Showing results for 
Search instead for 
Did you mean: 

Need to update House Bill of lading in FWO

Former Member
0 Kudos

Hi All,

We need to update house bill of lading in FWO. In system we have found that this field is not part of TRQ structure(FWO). It's available in TOR root node(FU).

Is there any way to update in FWO?

We have found that it's availabe in FWO UI screen but on updation it's directly saved at FU root level.

Please share your views how we can link it at FWO level only.

Thanks,

Maharshi

8600250561

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bharath,

Thanks for your information.

We tried to call action BUILD_HBL but no luck

Can you please provide me sample code for BUILD_HBL. Also when we need to call this action in program i.e. Before SAVE method OR After SAVE method of transaction manager.

Let us know if you have any question for same.

Thanks,

Maharshi

Former Member
0 Kudos

Hi Maharshi,

You cant save HBL number in the TRQ root.

you can use below code update HBL number in the FWO.

//

     IF NOT i_habl_no IS INITIAL.

       lo_srvmgr->retrieve_by_association(

         EXPORTING

           iv_node_key      = /scmtms/if_trq_c=>sc_node-root

           it_key           = lt_key_root

           iv_association   /scmtms/if_trq_c=>sc_association-root-tor_root

           iv_fill_data     = abap_true

         IMPORTING

           et_data          = lt_habl

           et_target_key    = lt1

       ).

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

       APPEND /scmtms/if_tor_c=>sc_node_attribute-root-bl_number TO ls_mod1-changed_fields.

       APPEND /scmtms/if_tor_c=>sc_node_attribute-root-bl_number_status TO ls_mod1-changed_fields.

       LOOP AT lt_habl REFERENCE INTO lo_habl.

         lo_habl->bl_number = i_habl_no.

         CLEAR ls_mod1.

         ls_mod1-key         = lo_habl->key.

         ls_mod1-node        = /scmtms/if_tor_c=>sc_node-root.

         ls_mod1-data        = lo_habl.

         ls_mod1-change_mode = /bobf/if_frw_c=>sc_modify_update.

         APPEND ls_mod1 TO lt_mod1.

       ENDLOOP.

       lo_tor_serv_mager->modify(

         EXPORTING

           it_modification = lt_mod1    " Changes

         IMPORTING

           eo_change       = lo_change  " Interface of Change Object

           eo_message      = lo_message " Interface of Message Object

       ).

     ENDIF.


//

Former Member
0 Kudos

Hi Michael,

Thanks a lot for your reply but we have couple of things to understand from your view.

-What will be the structure for lt_habl?

- What key we are passing to lt_key_root, is it TRQ root key OR TOR Root key?

As per your code above,I believe first we are picking HABL from TOR root and then we are modifying the HABL with different value.

But as per our requirement we have to update HBL number(coming from shipment data) at the time FWO creation only,

As soon as the FWO is created, Freight Unit is automatically created against FWO via config. Hence we need HBL at the time of FWO creation only.

So let us know if there is any way to update HBL at the time of FWO creation.

Thanks,

Maharshi

bharath_k6
Active Participant
0 Kudos

Dear Maharshi,

I just checked again, HABL is displayed in Air FWO and we have separate tab for HBL in Ocean FWO.

Which version you are working on and whether it is sea/Air?

Paste the screenshot to help you better.

Thanks,

Bharath.

Former Member
0 Kudos

Hi Bharath,

Thank you for your information. Currently we are dealing with 2 types of modes. Land and Air.

We are working SAP TM 9.0 version.

Let us know if you have any information on how we can update HABL via program. We need to update HABL when we are creating FWO via program.

Thanks,

Maharshi

bharath_k6
Active Participant
0 Kudos

Dear Maharshi,

I think you are creating the FWO via program and at the time of FWO creation only you also want to create HAWL. hope am correct.

Then you have to call the Action - BUILD_HBL of ROOT node of TRQ Business Object.

This will inturn call the method - /BOBF/IF_FRW_ACTION~EXECUTE of action class - /SCMTMS/CL_TRQ_A_HBL_HANDLING.

The same set of action and objects are executed if you click on Draw HAWL button from Forwarding order UI. Similar functionality can be achieved if you trigger the above action from your custom program.

Thanks,

Bharath.