cancel
Showing results for 
Search instead for 
Did you mean: 

Update table DGTMD (Dangerous Goods)

former_member662457
Discoverer
0 Kudos

Hello,

i want to update the following fields of DGTMD :

  • TKUI - DGNU - FLTMP - TPFUN - VISCO - UVISC - PGRO - DENFEE - UDENFE

i tried FM : DG95_DGMSD_UPDATE, BAPI_DANGEROUSGOOD_SAVREPMUL and BAPI_DANGEROUSGOOD_REPLICATE but i didn't succeed yet,

please write me you suggestions

Regards

Yassine

Sandra_Rossi
Active Contributor
0 Kudos

As for any other BAPI, the classic way is to:

  1. Ask someone to create manually an object (via the relevant transaction codes, etc.)
  2. Create a program which reads this object via the "GETDETAIL" BAPI (whatever is its name)
  3. and which transfers the read data to the parameters of the "CREATE" BAPI (and eventually clear the key/number of the object, or assign a new number, because creating an existing object is meanless). It's rather easy to transfer the data from the GETDETAIL BAPI to the CREATE BAPI because the parameters have usually the same names and same structures.

(and don't forget to BAPI_TRANSACTION_COMMIT of course, as said Frederic)

Accepted Solutions (1)

Accepted Solutions (1)

former_member662457
Discoverer
0 Kudos

this FM worked for me, it changes data in DGTMD : DG20_DGTMD_STORE_IN_DB

Thank you for your help

Answers (1)

Answers (1)

FredericGirod
Active Contributor
0 Kudos

The dangerous good could be updated through IDOC, the function used the BAPI BAPI_DANGEROUSGOOD_SAVREPMUL so it should work.

Did you try to put a BAPI_TRANSACTION_COMIT after your code ?

Did you check if there are error messages ?