cancel
Showing results for 
Search instead for 
Did you mean: 

Function module to delete means of transport created for a transport lane

Former Member
0 Kudos

Hi All,

I want to delete duplications in "Means of transport" created in transaction /SAPAPO/SCC_TL1. I use the BAPI "'BAPI_TRLSRVAPS_SAVEMULTI'" to create transportation lane and means of transport. Since the BAPI is being called for each product(which I cannot avoid to capture all error messages), means of transport are getting duplicated. Do anyone know about a BAPI or function module which can delete means of transport. If this is available my problem will be solved. There is a function module '/SAPAPO/TR_TLANE_TRPROD_DEL' which deletes only transportation lanes but not "means of transport".

Any helpfull answer will be rewarded.

Thanks,

Deepthi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Deepthi,

Use this '/SAPAPO/TR_TRPRODM_PUT' to delete only the Means of Transport. Pass 'D' to field UPDATEF.

Regards,

Siva.

Former Member
0 Kudos

Hi Siva,

Thaks for those function modules. I tried with '/SAPAPO/TR_TRPRODM_PUT'. This deletes from table /SAPAPO/TRPRODM but not from /SAPAPO/TRM and so the means of transport still appears in the transaction. Do you have any idea why it behaves this way.

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try using the report '/SAPAPO/TR_TRM_MASSMAINT' for deletion.

Regards,

Siva.

Former Member
0 Kudos

The Fm '/SAPAPO/TR_TRPRODM_PUT' does not delete means of transport form standard transaction. But another fm '/SAPAPO/TR_TRM_PUT' deletes it.

Thank you so much for your help Siva.

Thanks,

Deepthi

Former Member
0 Kudos

Hi Deepthi,

Can you try with this '/SAPAPO/TR_TLANE_DEL' function module.

Regards,

Siva.