on 2023 Jul 05 6:26 PM
Hello,
We have dangerous goods indicator in PO. we need to move it to Freight Unit. How to do it ?
rdgs
sachin
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.