cancel
Showing results for 
Search instead for 
Did you mean: 

Dangerous goods indicator from PO to Freight Unit

S_Arora
Participant
0 Kudos
614

Hello,

We have dangerous goods indicator in PO. we need to move it to Freight Unit. How to do it ?

rdgs

sachin

Accepted Solutions (0)

Answers (2)

Answers (2)

DominikTylczyn
Active Contributor
0 Kudos

Hello sachin.d.arora

Dangerous goods indicator is mapped from a purchase order to TM transient TRQ in the MAP_ITEM method of the /SCMTMS/CL_MM_TM_MAP_TTRQ class, lines 146-156:

      IF ( lsr_mara->profl IS NOT INITIAL ).
*       Dangerous Goods Indicator
        READ TABLE mt_dg_matnr WITH TABLE KEY table_line = lsr_mara->matnr TRANSPORTING NO FIELDS.
        IF sy-subrc = 0.
          ls_ttrq_item-dgo_indicator = abap_true.
        ELSE.
          ls_ttrq_item-dgo_indicator = abap_false.
        ENDIF.
      ELSE.
        ls_ttrq_item-dgo_indicator = abap_false.
      ENDIF.

If you prefer a different logic, you can implement it with the /SCMTMS/BADI_LOGINT_CHG_TTRQ BAdI enhancement, the CHANGE_TTRQ_MM method.

Best regards

Dominik Tylczynski

S_Arora
Participant
0 Kudos

Hello Dominik.

Iam a begineer in SAP TM and iam not technical. What do you mean by Method. Can you explain in layman terms what method does ?. I mean how the value of dangerous goods will get copied from PO to FU ?

How to see /SCMTMS/CL_MM_TM_MAP_TTRQ class and the method ?

rgds

sachin

DominikTylczyn
Active Contributor
0 Kudos

Hi sachin.d.arora

"Method" is a term of object oriented programming - read https://en.wikipedia.org/wiki/Method_(computer_programming) if you are really interested.

You can view a class with the SE24 transaction.

TM derives dangerous goods indicator from material master data, not from a purchase order.

former_member809312
Contributor
0 Kudos

Hi Sachin.

Check link below for confirm if BF is active.

Configuration of Dangerous Goods Processing | SAP Help Portal

Also check blog below, maybe your material master is missing it.

Dangerous goods with ADR points calculation in embedded TM of S/4HANA | SAP Blogs

Integration of SAP TM with Dangerous Goods

Regards

Rogerio