Skip to Content
avatar image
Former Member

How to delete Product Specific Transportation Lanes?

I'm trying to delete a product specific transportation lane (like you would do in /SAPAPO/SCC_TL1)

but can't find an appropriate BAPI to help me do this. I see BAPI_TRLSRVAPS_DELMULTI but that seems to delete the entire Transportation Lane instead of a specific product's lane.

I've tried using BDC with /SAPAPO/SCC_TL1 but don't think it'll work since it's an ALV and I'll be running in background.

Anyone encountered this before?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    May 02, 2008 at 05:19 PM

    I gather you would have also attempted with BAPI_TRLSRVAPS_SAVEMULTI. While testing this FM, it does give the option to modify product specific means of transport.

    if this does not work, it might make sense to do a little recording in SHDB transaction to exactly be able to do the deletion of prod specific MOT again and again.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The other option is that you can directly try to record a deletion from the table /SAPAPO/TRPRODM if it works out. The IDs would have to be worked out from tables such as /sapapo/trprod and /sapapo/ttype

  • avatar image
    Former Member
    May 05, 2008 at 03:37 PM

    Hi Paul - I would try using FM /SAPAPO/TR_TL_TRANSFER_BAPI which is called from within the delete BAPI. You can pass the product specific transportation lane with a delete method. Also there are parameters to delete dependent objects and auto del all objects for the lane. Also the caller must be passed which will drive the messaging that will occur. There is some limited documentation for this FM and the other FM's that are called within. I would even research the other FM's as well to even further reduce any redundant checking. I am thinking that I may need to do this for my current project as well and this is where I will start. I would not try to interact with the TL tables directly but instead use some of the SAP supplied FM's (instead of BAPI).



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      I need to do the same - to delete a product specific transportation lane. I tried to call BAPI_TRLSRVAPS_GETLIST2 to select all data, I omitted the product specific line, which I wanted to delete, turned on the AUTO_DELETE flag, and then called BAPI_TRLSRVAPS_SAVEMULTI2. No error occured, but the production specific lane was not deleted. I wonder what is wrong?

  • avatar image
    Former Member
    Jul 14, 2009 at 08:10 AM


    Do following steps:

    Go to SE38


    Step 1

    u2022 Go to the Design tab page. IN the Name of Put Function Module field, we enter the function module name BAPI_PIRSRVAPS_SAVEMULTI.

    u2022 Press Enter and the Available Parameters table on the left side of the screen is filled automatically.

    u2022 Select the lines Logical System, Commit_Conrol, Planning Version, Requirements and Return.

    u2022 Choose Column Right to transfer the parameters to the Selected Parameters table on the right side of the screen.

    u2022 Choose Format Worksheet.

    u2022 Confirm the dialog box that informs you about manual formatting the cells. The system directly opens the Data tab page.

    u2022 Now select the entire worksheet, right-click in the selected area and choose Format Cells.

    u2022 In the Number tab page we select the category Text and choose OK.

    Step 2

    In the first available empty line the make the following entries (for every cell you can find additional information about data you have to enter by selecting Input Help):

    u2022 Logical System: APO Logical sys name

    u2022 Commit_Control: E

    u2022 Planning version: 000 (whether data is being transferred to the active planning version or to a simulation version)

    u2022 Product:

    u2022 Location:

    u2022 Location Type:

    u2022 Atpcat: FA

    u2022 Date from: e.g. 01.05.2006 (Valid from)

    u2022 Date to: e.g. 01.21.2006 (Valid to)

    u2022 Quantity: 419

    u2022 UOM: KG (unit of measure)

    u2022 UOM_ISO: KG

    We choose Save.

    Confirm the information prompt.

    (It is very important that we select row with data we need to load)

    Then We now choose button u201CSAP SYSTEMu201D

    After sometime you see the message u201CData Transfer ended successfully appearsu201D

    Now go to Product view /n/SAPAPO/RRP3 and check Fcst loaded.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2009 at 08:19 AM

    Sorry folks....this reply is for another question.

    My Apology



    Add comment
    10|10000 characters needed characters exceeded