Quantcast
Channel: SCN : All Content - SAP Transportation Management (SAP TM)
Viewing all 533 articles
Browse latest View live

SAP TM Package update with EWM "PACK" event

$
0
0

Hello Friends,

 

As per standard SAP TM-EWM integration, as soon as EWM performs "TU departure", Packages information flow to TM (in our example, through XML call)

 

 

 

Can we flow Packages information to TM as soon as EWM packs the material (HU confirmed i.e. Packed) and completes the "PACK" activity.

 

 

 

Please inform if this is possible in Standard, else how this can be achieved.

 

Thanks and Best Regards,

Vikas Chhabra


Create new charge line on freight order in Z-prog - amount ignored

$
0
0

Hi all,

 

I need to create new charge lines in a freight order by means of a Z-program. I have tried to use method DO_ACTION of service manager for  /SCMTMS/IF_TOR_C=>SC_BO_KEY using  /SCMTMS/IF_TCC_TRNSP_CHRG_C=>SC_ACTION-CHARGEITEM-ADD_NEW_CHRG_EL_LINE, but failed so far. Actually the line is created but the amount is just ignored and remains blank.


I have then tried to modify the created line to kind of "add" the amount with method MODIFY but again it would not work. I debugged method /BOBF/IF_FRW_DETERMINATION~EXECUTE of class /SCMTMS/CL_TCC_CHRG_EL_D_AM and the strange thing is that method MODIFY_AMOUNT is called only for creation. I tried using both change modes but it does help. Also, these methods are private and called for determinations so I'm not sure I could manage to call them directly.


I have found an old thread (How do I create new Item charge element under c... | SCN) where people manage to do exaclty the contrary but still not working (and lacking some explanations about how to get all the keys). Here's the coding I used in case someone's done that already:



"----------------------------------"

"  Data

"----------------------------------"

data:

   lo_srv_mgr_tor type ref to /bobf/if_tra_service_manager,

   lo_tra_mgr     type ref to /bobf/if_tra_transaction_mgr.

 

data:

   lt_fo_root_key   type /bobf/t_frw_key,

   ls_fo_root_key   type /bobf/s_frw_key,

   lt_tcc_root_key  type /bobf/t_frw_key,

   lt_crg_itm_key   type /bobf/t_frw_key,

   ls_crg_itm_key   type /bobf/s_frw_key,

   lt_crg_itm_data  type /scmtms/t_tcc_chrgitem_k,

   ls_crg_itm_data  type /scmtms/s_tcc_chrgitem_k,

   lt_itm_elem_data type /scmtms/t_tcc_trchrg_element_k,

   ls_itm_elem_data type /scmtms/s_tcc_trchrg_element_k.

 

data:

   lv_chrg_it_node_key  type /bobf/obm_node_key,

   lv_chrg_it_assoc_key type /bobf/obm_assoc_key,

   lv_it_elem_node_key  type /bobf/obm_node_key,

   lv_it_elem_assoc_key type /bobf/obm_assoc_key.

 

data:

   lv_action     type /bobf/act_key,

   lt_action_key type /bobf/t_frw_key,

   ls_action_key type /bobf/s_frw_key,

   lr_params     type ref to /scmtms/s_tcc_a_add_chg_el_lin,

   lo_change     type ref to /bobf/if_tra_change,

   lo_message    type ref to /bobf/if_frw_message,

   lt_failed_key type /bobf/t_frw_key,

   lx_error      type ref to /bobf/cx_frw,

   lt_return     type bapiret2_tab,

   lv_rejected   type boole_d.

 

data:

   lr_amount  type ref to /scmtms/s_tcc_amt_with_role_k,

   lr_element type ref to /scmtms/s_tcc_trchrg_element_k,

   lt_fields  type /bobf/t_frw_name,

   lt_modify  type /bobf/t_frw_modification,

   ls_modify  type /bobf/s_frw_modification.

 

"----------------------------------"

"  Sel. screen

"----------------------------------"

parameters: p_tor_id type /scmtms/tor_id default '00000000000400003498'.

 

"----------------------------------"

"  Service Managers

"----------------------------------"

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

 

"----------------------------------"

"  Get FO key

"----------------------------------"

select single db_key

   from /scmtms/d_torrot

   into ls_fo_root_key-key

   where tor_id eq p_tor_id.

 

append ls_fo_root_key to lt_fo_root_key.

 

"----------------------------------"

"  Transportation Charges

"----------------------------------"

lo_srv_mgr_tor->retrieve_by_association(

   exporting

     iv_node_key     = /scmtms/if_tor_c=>sc_node-root

     it_key          = lt_fo_root_key

     iv_association  = /scmtms/if_tor_c=>sc_association-root-transportcharges

     iv_edit_mode    = /bobf/if_conf_c=>sc_edit_read_only

   importing

     et_target_key   = lt_tcc_root_key ).

 

"----------------------------------"

"  Charge Items

"----------------------------------"

/scmtms/cl_common_helper=>get_do_keys_4_rba(

     exporting

       iv_host_bo_key      = /scmtms/if_tor_c=>sc_bo_key

       iv_host_do_node_key = /scmtms/if_tor_c=>sc_node-transportcharges

       iv_do_node_key      = /scmtms/if_tcc_trnsp_chrg_c=>sc_node-chargeitem

       iv_do_assoc_key     = /scmtms/if_tcc_trnsp_chrg_c=>sc_association-root-chargeitem

     importing

       ev_node_key         = lv_chrg_it_node_key

       ev_assoc_key        = lv_chrg_it_assoc_key ).

 

lo_srv_mgr_tor->retrieve_by_association(

   exporting

     iv_node_key    = /scmtms/if_tor_c=>sc_node-transportcharges

     it_key         = lt_tcc_root_key

     iv_association = lv_chrg_it_assoc_key

     iv_fill_data   = abap_true

     iv_edit_mode   = /bobf/if_conf_c=>sc_edit_read_only

   importing

     et_data        = lt_crg_itm_data

     et_target_key  = lt_crg_itm_key ).


"----------------------------------"

"  Item Charge Elements

"----------------------------------"

/scmtms/cl_common_helper=>get_do_keys_4_rba(

     exporting

       iv_host_bo_key      = /scmtms/if_tor_c=>sc_bo_key

       iv_host_do_node_key = /scmtms/if_tor_c=>sc_node-transportcharges

       iv_do_node_key      = /scmtms/if_tcc_trnsp_chrg_c=>sc_node-itemchargeelement

       iv_do_assoc_key     = /scmtms/if_tcc_trnsp_chrg_c=>sc_association-chargeitem-itemchargeelement

     importing

       ev_node_key         = lv_it_elem_node_key

       ev_assoc_key        = lv_it_elem_assoc_key ).

 

lo_srv_mgr_tor->retrieve_by_association(

   exporting

     iv_node_key    = lv_chrg_it_node_key

     it_key         = lt_crg_itm_key

     iv_association = lv_it_elem_assoc_key

     iv_fill_data   = abap_true

     iv_edit_mode   = /bobf/if_conf_c=>sc_edit_read_only

   importing

     et_data        = lt_itm_elem_data ).



Then either this to create:


"----------------------------------"

"  Create new line

"----------------------------------"

/scmtms/cl_common_helper=>get_do_keys_4_action(

   exporting

     iv_host_bo_key      = /scmtms/if_tor_c=>sc_bo_key

     iv_host_do_node_key = /scmtms/if_tor_c=>sc_node-transportcharges

     iv_do_action_key    = /scmtms/if_tcc_trnsp_chrg_c=>sc_action-chargeitem-add_new_chrg_el_line

   importing

     ev_action_key       = lv_action ).

 

create data lr_params.

lr_params->tcet084     = 'Z-RD-SALE'.

lr_params->amount      = '0.03'.

lr_params->currcode016 = 'NOK'.

 

try.

     lo_srv_mgr_tor->do_action(

           exporting

             iv_act_key    = lv_action

             it_key        = lt_crg_itm_key

             is_parameters = lr_params

           importing

             eo_change     = lo_change

             eo_message    = lo_message

             et_failed_key = lt_failed_key

         ).

 

   catch /bobf/cx_frw into lx_error.

endtry.



Or


"----------------------------------"

"  Update Amount

"----------------------------------"

append 'TCET084' to lt_fields.

append 'AMOUNT' to lt_fields.

append 'CURRCODE016' to lt_fields.

 

ls_modify-node = lv_it_elem_node_key.

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

ls_modify-key = ls_itm_elem_data-key.

ls_modify-changed_fields = lt_fields.

ls_modify-association = lv_it_elem_assoc_key.

ls_modify-source_node = lv_chrg_it_node_key.

ls_modify-source_key = ls_itm_elem_data-parent_key.

ls_modify-root_key = ls_itm_elem_data-root_key.

 

create data lr_element.

lr_element->key = ls_itm_elem_data-key.

lr_element->tcet084 = 'Z-RD-SALE'.

lr_element->rate_amount = '0.03'.

lr_element->currcode016 = 'NOK'.

ls_modify-data = lr_element.

 

append ls_modify to lt_modify.

 

lo_srv_mgr_tor->modify(

   exporting

     it_modification = lt_modify

   importing

     eo_change       = lo_change

     eo_message      = lo_message

   ).


And then save changes with the transaction manager (not posting coding).


Thanks to anyone who's got an idea


Sincerely,

Stephane

SAP Transportation Management collaboration portal - Overview

$
0
0

The SAP TM collaboration portal is a web portal supporting collaboration with your carriers. It covers freight procurement, tendering, freight order execution and freight settlement. The PDF gives an overview about the look&feel and functional scope of the collaboration portal.

View this Presentation

Shipper scenario

$
0
0

Hi,

I was wondering if we can discuss about certain best practise in a shipper industry implementing TM where the source country is in non SAP and destination country is in SAP.How such coexistence scenarios be implemented ?

New version available of the SAP TM collaboration portal enhancement guide

$
0
0

There is a new version of the SAP TM collaboration portal enhancement guide available here: SAP TM Collaboration Portal - Customer Extensions.

 

What's new?

  • Fiori like logon screen
  • Two additional lines of code in init() function of custom component to avoid initial screen when starting extended collaboration portal

 

I am looking forward to your suggestions & feedback!

Cheers,

Jan

SAP Transportation Management collaboration portal screenshots available for TM9.3

FO data at BO level in /BOBF/TEST_UI

$
0
0

Hi everyone,

 

can someone please tell me how to check a freight order data at BO level.

 

for example to be more specific,

 

on the charges tab of freight order, i can see different charge types that are calculated and the final amount calculated based on each charge type depending on the rate amount and calculation base etc.

 

So, can i see the same information at the BO level in transaction /BOBF/TEST_UI in BO - TRANSPORTCHARGES? If so i would like to know the sub objects and how these can be viewed.

 

The reason is, we use virtual private network to connect to nwbc and it is very slow and takes lot of time in navigation through orders. hence, the analysis gets delayed most times.

 

looking for answers.

 

Thanks

Raju

Freight term field in FO

$
0
0

Hi Experts ,

 

Freight term is being picked up in term and condition tab in one freight order for a specific carrier and missing in another FO for another carrier .

From where the system is picking up . I checked BP and freight agreement and did not find .

 

Thanks in advance ..


Rate table is displayed wrongly for the Charge type in Freight order

$
0
0

Hello everyone,

 

i have recently encountered an cosmetic issue in charges tab of Freight order.

 

The issue is, When we click on this particular charge type say CT12 Then look on the Basic data tab in the down, we see in the Rate table field a wrong value(RT21) is being displayed. Although when we click on the Rate table value it is opening the correct rate table RT12 that is linked to the calculation sheet(Cs12) pf the charge type CT12.

 

 

In this above image you can see a pictorial form of the above description.

 

can anyone help me in finding out the root cause please.

 

Many thanks,

Raju.

System triggers one Time Location

$
0
0

Dear,

 

I'm facing an issue when the OTR is created in TM. The system creates always a one time location for the Ship-to. I de-activated the one-time location number ranges which was defined but it change nothing. For the same ship-to number, the system generates each time a new Destination location number in TM?

 

Can you advice me on this issue?

 

Thanks!

 

Kr,

JP

SAP TM - EWM - Warehouse Billing

$
0
0

Dear All,

 

We are planning to move to TM 9.3 and EWM 9.3 from our legacy (warehousing and freight) application. Currently the warehouse invoices are generated from the legacy warehousing application. We read that with EWM 9.3 warehouse billing feature is added. So going forward will we be able to use this feature for generating the invoicing using EWM 9.3 and TM 9.3. So the question is whether we will be able to consume the standard TM customer invoicing interface xml file or is there any separate xml file for warehouse billing.

 

Thanks & Regards

Jayant

Integration of SAP TM with SAP SNC

$
0
0

Dear Experts,

 

I have a question can SAP TM can be integrated with SAP SNC. As i read somewhere that it can't be integrated with SAP SCM.

 

 

Thanks

Gaurav Gupta

Fetching of Freight Unit data based on locations

$
0
0

Hi All,

 

I am trying to fetch the Freight Units which are not planned based on locations , but I am getting only Freight units which are already to some FO/FB.

 

 

   IF s_fu_loc IS NOT INITIAL.
REFRESH lt_selpar.

ls_selpar-attribute_name = /scmtms/if_tor_c=>sc_query_attribute-stop-query_by_attributes-log_locid.
ls_selpar-option = s_fu_loc-option.
ls_selpar-sign = s_fu_loc-sign.
ls_selpar-low = s_fu_loc-low.
ls_selpar-high = s_fu_loc-high.
APPEND ls_selpar TO lt_selpar.
CLEAR : ls_selpar.

* Use method QUERY of the service manager to start the query
lo_srv_mgr->query( EXPORTING iv_query_key = /scmtms/if_tor_c=>sc_query-stop-query_by_attributes
  it_selection_parameters = lt_selpar
IMPORTING eo_message = lo_msg
  es_query_info = ls_query_inf
et_key = lt_key_root ).

lo_srv_mgr->retrieve(
EXPORTING
iv_node_key   = /scmtms/if_tor_c=>sc_node-stop
it_key        = lt_key_root
iv_edit_mode  = /bobf/if_conf_c=>sc_edit_read_only
iv_fill_data  = abap_true
IMPORTING
eo_message    = lo_msg
et_data       = lt_stop_fu ).


DELETE lt_stop_fu WHERE stop_seq_pos NE 'F'.
lt_key_stop[] = lt_stop_fu[].

REFRESH lt_key_root.

CALL METHOD lo_srv_mgr->retrieve_by_association
EXPORTING
iv_node_key    = /scmtms/if_tor_c=>sc_node-stop
it_key         = lt_key_stop
iv_association = /scmtms/if_tor_c=>sc_association-stop-assigned_capa_tor_root
iv_fill_data   = abap_true
iv_edit_mode   = /bobf/if_conf_c=>sc_edit_read_only
IMPORTING
et_data        = lt_root
et_target_key  = lt_key_root.

CALL METHOD lo_srv_mgr->retrieve_by_association
EXPORTING
iv_node_key    = /scmtms/if_tor_c=>sc_node-root
it_key         = lt_key_root
iv_association = /scmtms/if_tor_c=>sc_association-root-assigned_fus
iv_fill_data   = abap_true
IMPORTING
eo_message     = lo_msg
et_data        = lt_root_fu.
*      et_target_key  = lt_key_root.
REFRESH lt_key_root.
lt_key_root[] = lt_root_fu[].
IF lt_key_root IS NOT INITIAL.
APPEND LINES OF lt_key_root TO lt_key_root_fu.
ENDIF.

ENDIF.



please help me out how to fetch the FU's which are not in planned state

 

Thanks,

Arun

TM BOPF Intro Videos for Beginners

Default Intermediate Location in a 2 Stage Transport

$
0
0

Hi,

 

I have created a 2 stage FWO type, which will have 2 legs of transportation.

Location A -> Location B & Location B -> Location C.

 

Location A & C can be anything, whereas Location B will always be the Warehouse.

How can we default Location B alone  to a particular location.

 

SAP TM 9

 

Thanks in advance,

Deepan Mahendran.


SAP TM Collaboration portal Enhancment

$
0
0

Hi ,

 

I am working on a requirement where I need to add a new tile and display a table data (from SAP TM) when click on new tile in Freight settlement .

Referring to CP portal guide I manage to create a tile also I understand that we need to create a service to get the data and display but as I am new to UI5 and java script I am not finding way out how should I capture the click event of my new extended tile  and call the service/display the required data.

I created new BSP aaplication and files like

1)  Componenet.Js

2)  Controller.Js

3)  View.Js

4)  Fragment.Js

 

Also created ADDNAV, etc .

 

As now I had a new tile just I want to know steps to get the required data on click on this  tile.

 

 

Thanks & Regards.

ECC-TM Order Integration for Incomplete Sales Orders, that are Completed later

$
0
0

Hello,

 

I came across a strange issue which I raised through SAP Incident. I am also summarizing quickly, believing you may have some fix available, that we can use immediately.

 

 

Case 1: This is OK

Create a Sales Order, Complete and Save:

1. Get a successful TRS0 - OK

2. Outbound Sender ECC Service Interface successful - OK

3. Inbound Receiver TM Service Interface successful - OK

 

In the Outgoing and Incoming XML, TransportationRequest actionCode="01"

"01" is triggered when Order Creation passes to TM system

 

 

Case 2: This is NOT OK

When an incomplete sales order in ECC is saved, output TRS0 fails (Incorrectly processed) - This is OK

Later, when this incomplete Sales Order is completed and saved, the expectations are:

1. Get a successful TRS0 - OK

2. Outbound Sender ECC Service Interface successful - OK

3. Inbound Receiver TM Service Interface successful - FAILING

 

Error: Data not saved; check BO /SCMTMS/TRQ implementation


Analysis of XML:

TransportationRequest actionCode="02" instead of "01"; * Where 02 is triggered when Order Changes move to TM system. But since this is first XML, it should have triggered TransportationRequest actionCode="01"

 

Please inform if someone faced same issue and if any quick fix/note available to fix this.

 

Thanks and Best Regards,

Vikas Chhabra

Change Shipping Type field in /SCMTMS/TOR ROOT before transport order creation

$
0
0

Hello,

 

How can i change a field(shipping_type) in /SCMTMS/TOR ROOT node BEFORE the order gets created?

 

I´ve searched for BADIs but did not find anything that runs before the orders creation...

 

I´me able to change the field later using /bobf/cl_tra_serv_mgr_factory but i was wondering how can it be done BEFORE it´s commited to the DB...

 

Thanks a lot!

 

Joe

EWM and TM integration

$
0
0

Dear Experts,

 

We know that in the SCE platform, TM 9.1 and EWM 9.2 will run in the same Instance. Does this mean that we do not need a Middleware to connect EWM with TM. If I create a Delivery in EWM, would the Delivery be passed on to TM (to create a DTR) without passing through Middleware.

 

Thanks a lot for your insights

 

Regards

 

Get client on which transport order is imputed

$
0
0

Hi Experts,

 

On IW32 we can impute an order on a particular client.

 

Can you please advise on which table we can find this client or any FM or BAPI to find the client?

 

Thanks,

Vitish.

Viewing all 533 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>