cancel
Showing results for 
Search instead for 
Did you mean: 

Error while changing transportation lane via BAPI_TRLSRVAPS_SAVEMULTI2

Former Member
0 Kudos

Hi,

   I am facing error 'Validity intervals for MOT 0001 in XXXX -> YYYY' while adding the products into the existing transportation lane using the BAPI.

  But I didn't face this issue while doing the same via this transaction /SAPAPO/SCC_TL1. Kindly help me on this.

Kind Regards

Rayudu

Accepted Solutions (1)

Accepted Solutions (1)

former_member187488
Active Contributor
0 Kudos

Hi, Please check whether note 1731951 and 1772471 help here.

Also, note 1792618 should be applied.

Best Regards,

Ada

Former Member
0 Kudos

Dear Ada,

   Thanks for your info. I have implemented the SAP note 0001772471 to solve the issue.

   Thanks a lot for your help !!

Regards

Rayudu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rayudu,

Try with this date format: 20120122000000 to 99990101235959.

Thanks, Marius

Former Member
0 Kudos

Dear Marius,

  Thanks for your reply. I have tries the same, but didn't work out. Let me explain my issue with example.

Step1: TR Lane XXXX -> YYYY created with below details

             Means of transport: 0001

             From date: 20120122000000 To date: 20120131235959

             Product: A00001 with the same dates

            Result: TR Lane Successfully created

Step2: TR Lane XXXX -> YYYY changed with below details

            This time I am not passing Means of transport details

             Product: B00001 with the same means transport (Adding the product)

             From date: 20120125000000 To date: 20120131235959 (or different dates)

             Result: MOT date overlap issue is coming

              Debug Analysis: It is reading the MOT details from database and comparing the dates.


  I hoe you understand my issue. Please share me, if you have any solution for this.

  Thanks for your time.

Regards

Rayudu

Former Member
0 Kudos

Hi Rayudu,

Try without dates!

Maybe with this program FUNCTION_LOADER_INLAY you will have more details. You have details information here http://scn.sap.com/thread/3202687.

Thanks, Marius 

Former Member
0 Kudos

Hi Rayudu,

Can you confirm if the 'Start Date' and 'End Date' specified in 'Product Specific Transportation Lane' and 'Means of Transport' are the same in /SAPAPO/SCC_TL1.

Regards,

SG

Former Member
0 Kudos

Dear Srinivas,

  Thanks for your reply.

 

  Issue: Adding the products into the existing transportation lane

  I have tried with the same dates in Means of transport and Product-spec means of transport via /SAPAPO/SCC_TL1. But no issues, transportation lane changed successfully.

  If I try the same via BAPI, getting issue.

  Thanks

   Rayudu

Former Member
0 Kudos

Hi Rayudu,

Can you pl. list the parameters you are passing to the BAPI. I tried replicating but the i was able to include a new product to an existing tlane.

Regards,

SG

Former Member
0 Kudos

Dear Srinivas,

    Could you please check the below?

Creation

CALL FUNCTION 'BAPI_TRLSRVAPS_SAVEMULTI2'

       EXPORTING

         logical_system                 = g_logsys

         commit_control                 = 'E'

       TABLES

         transportation_lane            = gt_trlane

         transportation_lane_x          = gt_trlanex

         product_procurement            = gt_prod_pr

         product_procurement_x          = gt_prod_prx

         means_of_transport             = gt_trmot

         means_of_transport_x           = gt_trmotx

         prod_proc_means_of_transport   = gt_prod_prmot

         prod_proc_means_of_transport_x = gt_prod_prmotx

         return                         = lt_return.

Change

CALL FUNCTION 'BAPI_TRLSRVAPS_SAVEMULTI2'

       EXPORTING

         logical_system                 = g_logsys

         commit_control                 = 'E'

       TABLES

         product_procurement            = gt_prod_pr

         product_procurement_x          = gt_prod_prx

         prod_proc_means_of_transport   = gt_prod_prmot

         prod_proc_means_of_transport_x = gt_prod_prmotx

         return                         = lt_return.

Thanks

Rayudu