BAPI_TRLSRVAPS_SAVEMULTI

Hi,
I am trying to create new product procurement lines in production lane;
using BAPI_TRLSRVAPS_SAVEMULTI (APO).
I fill:
Table parameters: PROD_PROCUREMENT and MEANS_OF_TRANSPORT
But I always get:
No entry found in transportation indicator table for following objects
Please help.
Message was edited by: Fuat Ulugay

Here is my code that works.
METHOD create_proc.
    DATA:
      prod_procurement     TYPE TABLE OF bapi11201sources,
      wa_prod_procurement  TYPE bapi11201sources,
      prod_procurementx    TYPE TABLE OF bapi11201sourcesx,
      wa_prod_procurementx TYPE bapi11201sourcesx,
      wa_comp_product      TYPE bapi10003compalto,
      return               TYPE TABLE OF bapiret2,
      valfr                TYPE char15,
      valto                TYPE char15 VALUE '99991231235959'.
    me->comp_product[] = products[].
    valfr(8)   = sy-datum.
    valfr+8(6) = '000000'.
    LOOP AT comp_product INTO wa_comp_product.
prod_procurement
      wa_prod_procurement-location_from    = me->locfrom.
      wa_prod_procurement-loctype_loc_from = me->locfromtype.
      wa_prod_procurement-location_to      = me->locto.
      wa_prod_procurement-loctype_loc_to   = me->loctotype.
      wa_prod_procurement-valfr            = valfr.
      wa_prod_procurement-valto            = valto.
      wa_prod_procurement-product         = wa_comp_product-product_alt.
prod_procurementx
      wa_prod_procurementx-location_from    = me->locfrom.
      wa_prod_procurementx-loctype_loc_from = me->locfromtype.
      wa_prod_procurementx-location_to      = me->locto.
      wa_prod_procurementx-loctype_loc_to   = me->loctotype.
      wa_prod_procurementx-valfr            = valfr.
      wa_prod_procurementx-valto            = valto.
      wa_prod_procurementx-product        = wa_comp_product-product_alt.
Append data to tables
      APPEND wa_prod_procurement  TO prod_procurement.
      APPEND wa_prod_procurementx TO prod_procurementx.
    ENDLOOP.
    IF me->test NE 'X'.
Call BAPI
      CALL FUNCTION 'BAPI_TRLSRVAPS_SAVEMULTI'
        EXPORTING
          logical_system    = me->logical_system
          model             = me->model
          commit_control    = 'A'
        TABLES
          prod_procurement  = prod_procurement
          prod_procurementx = prod_procurementx
          return            = return.
    ENDIF.
    IF NOT return[] IS INITIAL.
      RAISE EVENT send_messages
        EXPORTING return = return[].
    ENDIF.
  ENDMETHOD.                    "create_proc

Similar Messages

  • Problem in using BAPI_TRLSRVAPS_SAVEMULTI to create transportation lanes

    Hi,
      While using BAPI_TRLSRVAPS_SAVEMULTI to create transportation lanes,bapi returns errors
    1.Product transportation lane not found in database or in the tables and
    2.Product <matnr> ( coming from the flat file in the program ) cannot be both product-independent and product-specific.
    Please suggest solution to the problem.

    Try to user APO Loader Excel and fill the data you are filling for BAPI "BAPI_TRLSRVAPS_SAVEMULTI" and see whether it works or not ?
      Alternately you can fetch the data from APO to Excel using the get option of the "APO Loader Excel"
    Please reward points if this helps to you.

  • BAPI_TRLSRVAPS_SAVEMULTI updates in DEV but QAS

    Report for the bdc uploading file after execution it successfully updates data in development but not up in quality the bapi used for this updation is BAPI_TRLSRVAPS_SAVEMULTI?the it_tab contains all updated data but not  display in quality ,what to do as it run correctly in GND?
    Edited by: Julius Bussche on Jan 5, 2009 1:30 PM
    Meaningfull subject title added.

    Hi,
    Please check the file that you are using to upload data in quality server.
    Also check the authorizations required to upload data into the table, check the 'delivery and maintenance' of the table.
    Regards,
    Prosenjit.

  • How to set Blocking Indicator for product specific TransportationLanes?

    Hi All,
    I'm facing a problem while trying to set the blocking indicator for product specific Transportation Lanes-external procurement.
    How can i proceed on the same?
    I've figured out 2 methods for blocking the product specific TLanes.
    1. using /SAPAPO/TR_TL_TRANSFER_BAPI.
    2. using BAPI_TRLSRVAPS_SAVEMULTI.
    I tried using the BAPI - /SAPAPO/TR_TL_TRANSFER_BAPI, which comes inside the DELETE BAPI - BAPI_TRLSRVAPS_DELMULTI. Although I had passed the parameters reg. external procurement, nothing seemed to be happening in the system. There was no blocking indicator - D(locked and flagged for deletion) set against the subjected TLane. In fact, to my amazement, the BAPI didn't return even a single msg. BAPIRETURN internal table after execution was empty.
    Here, I'm passing:
    (IV_LOGQS) TYPE  /SAPAPO/LOGQS
    (IV_LOGSYS) TYPE  LOGSYS
    (IV_CALLER) TYPE  /SAPAPO/MD_CALLER
    (IT_TR) TYPE  /SAPAPO/TR_TTD_TR
    (IT_TR_X) TYPE  /SAPAPO/TR_TTX_TR
    (IT_TRPROD_SRC) TYPE  /SAPAPO/TR_TTD_TRPROD_SRC    and
    (IT_TRPROD_SRC_X) TYPE  /SAPAPO/TR_TTX_TRPROD_SRC
    I haven't tried on the second method yet. Is there any other programming alternative for setting the blocking indicator of a TLane / multiple Tlanes?
    Could anyone pls explain and guide me on a suitable method to be chosen and the process to be followed, parameters to be passed, etc.

    Hi Sanjay,
                    Use the standard BAPI:  BAPI_TRLSRVAPS_SAVEMULTI2 (according to SCM version you are using)
    to update the deletion flag for product specific T-lane, in this BAPI you have to pass the data to EXTERNAL_PROCUREMENT parameter table in which LOCKED_FLG field is there in which you can pass the "D" for deletion or block flag.
    Also you have to pass the same entries in EXTERNAL_PROCUREMENT_X parameter table of this BAPI.
    If any further help required, refer the documentation of BAPI or let me know.
    I hope this will help you to solve the issue.
    Regards,
    Saurabh

  • Changing TL using BAPI

    Hi,
    we are using this BAPI --- BAPI_TRLSRVAPS_SAVEMULTI to change the existing transportation lane. we want to change the procuement priority to an earlier date.
    Can you inform if its possible even when there are orders referencing it. what is the procedure, inputs etc.
    Regards,
    Sireesh

    Hi,
    Thanks for the info. I need some more help on this problem.
    We have program written which uses this BAPI to align the Transportation lanes with R/3. The source of supply for a product is extented backwards ( i.e from 1.09.2009 to  01.03.2009) so the program has to change the validity of the Transportation lane accordingly, which is not happening.
    There are two tables  prod_procurement  &  prod_procurementx which are responsible for this. I need info on what should be the input to this tables so that it will change the existing lane validity (  1.09.2009 to  01.03.2009). Currently we are getting an error that the valdity period overlaps.
    Regards,
    Sireesh

  • Mass upload of Transportation Lane

    Hi ,
    Can anyone tell what is the easy method of uploading transportation lane. I tried using LSMW but i can't using the recording method. If anyone have a standard template and BDC program. Please let me know.
    Thanks in advance
    Regards
    Shan

    Hi Shan,
    As rajesh said we are also using Z program to upload Tlanes and MOT's.
    I will give you a brief.
    We have 4 radio buttons ( All product lanes, product specific lanes, MOT and Product specific MOT) on selection screen and File name, BSG and Model name.
    Based on the selection it fills data to BAPI  BAPI_TRLSRVAPS_SAVEMULTI and save.
    Like for example for product specific lans
            export to BAPI
            pass logical_system        = w_logsys
            business_system_group = p_busgrp
            model                 = p_model
            commit_control        = c_e
            TABLES
            transport_lane        = it_lane2
            transport_lanex       = it_lane2_x
            prod_procurement      = it_prod2
            prod_procurementx     = it_prod2_x
            return                = it_return2.
    Else IF mot=x
    then
    export to BAPI
            pass logical_system        = w_logsys
            business_system_group = p_busgrp
            model                 = p_model
            commit_control        = c_e
            TABLES
    TABLES
            transport_lane        = it_lane3
            transport_lanex       = it_lane3_x
            means_of_transport    = it_means3
            means_of_transportx   = it_means3_x
            return                = it_return3
    Please ask your ABAPER to develop.
    Hope this helps.
    Regards,
    Kishore Reddy.

  • Updating Trsp. Duration

    Dear all,
    I want to update /SAPAPO/TRM-DURAT in transaction /SAPAPO/SCC_TL5 (in batch mode).
    I execute this tx with Source Transp Zone and Destination Trans. Zone, and must update the field /SAPAPO/TRM-DURAT for one of the Means of Transport there.
    I'm trying BAPI_TRLSRVAPS_SAVEMULTI but it ends with an error message : "Time-based validities overlap".
    Look at this:
    DATA: trdesc(30),
          gv_matid(22),
          gv_meins TYPE /sapapo/meins,
          pversion(22).
    CONSTANTS c_x VALUE 'X'.
      DATA: BEGIN OF record,
             location_from TYPE /sapapo/ext_locno,
             loctype_loc_from(4),
             loctype_loc_to(4),
             location_to TYPE /sapapo/ext_locno,
             valfr TYPE /sapapo/scc_valfromtstmp,
             valto TYPE /sapapo/scc_valfromtstmp,
             ttype TYPE /sapapo/tr_traty,
            END OF record.
    DATA:
          p_transport_lane TYPE TABLE OF bapi11201trlane WITH HEADER LINE,
          p_transport_lanex TYPE TABLE OF bapi11201trlanex WITH HEADER LINE,
          p_prod_procurement TYPE TABLE OF bapi11201sources WITH HEADER LINE,
          p_prod_procurementx TYPE TABLE OF bapi11201sourcesx WITH HEADER LINE,
          p_means_of_transport TYPE TABLE OF bapi11201meansoftransp WITH HEADER LINE,
          p_means_of_transportx TYPE TABLE OF bapi11201meansoftranspx WITH HEADER LINE,
          p_prod_means_of_transport TYPE TABLE OF bapi11201prdmeansoftransp WITH HEADER LINE,
          p_prod_means_of_transportx TYPE TABLE OF bapi11201prdmeansoftranspx WITH HEADER LINE,
          p_carrier TYPE TABLE OF bapi11201carrier WITH HEADER LINE,
          p_carrierx TYPE TABLE OF bapi11201carrierx WITH HEADER LINE,
          return TYPE TABLE OF bapiret2 WITH HEADER LINE.
    DATA: p_dur TYPE bapi11201trmdurat.
    record-location_from = 'TZ-PRPBB1'.
    record-loctype_loc_from = 1005.
    record-loctype_loc_to = 1005.
    record-location_to = 'TZ-PDJB05'.
    record-valfr = 20080921000000.
    record-valto = 20990922235959.
    record-ttype = 'SID-Q-BB'.
        CONCATENATE 'Tr Lane Between' record-location_from INTO trdesc SEPARATED BY space.
        CONCATENATE trdesc '-> ' record-location_to INTO trdesc.
        p_transport_lane-location_from = record-location_from.
        p_transport_lane-loctype_loc_from = record-loctype_loc_from.
        p_transport_lane-location_to = record-location_to.
        p_transport_lane-loctype_loc_to = record-loctype_loc_to.
        p_transport_lane-short_text_tl = trdesc.
       p_transport_lane-planner = record-planner.
        APPEND p_transport_lane .
        IF record-location_from NE ' '.
          p_transport_lanex-location_from = record-location_from.
        ENDIF.
        IF record-loctype_loc_from NE ' '.
          p_transport_lanex-loctype_loc_from = record-loctype_loc_from.
        ENDIF.
        IF record-location_to NE ' ' .
          p_transport_lanex-location_to = record-location_to.
        ENDIF.
        IF record-loctype_loc_to NE ' ' .
          p_transport_lanex-loctype_loc_to = record-loctype_loc_to .
        ENDIF.
       IF record-short_text_tl NE ' ' .
         p_transport_lanex-short_text_tl = c_x.
       ENDIF.
       IF record-planner NE ' ' .
         p_transport_lanex-planner = c_x.
       ENDIF.
        APPEND p_transport_lanex.
        CONCATENATE 'Tr Lane Between' record-location_from INTO trdesc SEPARATED BY space .
        CONCATENATE trdesc '-> ' record-location_to INTO trdesc.
        p_means_of_transport-location_from = record-location_from.
        p_means_of_transport-loctype_loc_from = record-loctype_loc_from.
        p_means_of_transport-location_to = record-location_to.
        p_means_of_transport-loctype_loc_to = record-loctype_loc_to.
        p_means_of_transport-valfr = record-valfr.
        p_means_of_transport-valto = record-valto.
        p_means_of_transport-ttype = record-ttype.
       p_means_of_transport-valid_all_prds_flg = record-valid_all_prds_flg.
       p_means_of_transport-aggt_tpl_flg = record-aggt_tpl_flg.
       p_means_of_transport-dtlt_tpl_flg = record-dtlt_tpl_flg.
       p_means_of_transport-short_text_tm = record-short_text_tm.
        p_means_of_transport-short_text_tm = trdesc.
       p_means_of_transport-trcal = record-trcal.
        p_dur = 350.
        p_means_of_transport-duration = p_dur.
       p_means_of_transport-durfx_flg = record-durfx_flg.
       p_means_of_transport-distfx_flg = record-distfx_flg.
       p_means_of_transport-trans_cost = record-trans_cost.
       p_means_of_transport-trans_cost_uom = record-trans_cost_uom .
       p_means_of_transport-dur_rnd_value = record-dur_rnd_value.
       p_means_of_transport-treq_cover_type = record-treq_cover_type.
       p_means_of_transport-tlb_profile = record-tlb_profile.
        APPEND p_means_of_transport.
        p_means_of_transportx-location_from = record-location_from.
        p_means_of_transportx-loctype_loc_from = record-loctype_loc_from.
        p_means_of_transportx-location_to = record-location_to.
        p_means_of_transportx-loctype_loc_to = record-loctype_loc_to.
        p_means_of_transportx-ttype = record-ttype.
        IF record-ttype NE ' ' .
          p_means_of_transportx-ttype = c_x.
        ENDIF.
       IF record-valid_all_prds_flg NE ' ' .
         p_means_of_transportx-valid_all_prds_flg = c_x.
       ENDIF.
       IF record-aggt_tpl_flg NE ' ' .
         p_means_of_transportx-aggt_tpl_flg = c_x.
       ENDIF.
       IF record-dtlt_tpl_flg NE ' ' .
         p_means_of_transportx-dtlt_tpl_flg = c_x.
       ENDIF.
       IF record-short_text_tm NE ' ' .
         p_means_of_transportx-short_text_tm = c_x.
       ENDIF.
        IF trdesc NE ' ' .
          p_means_of_transportx-short_text_tm = c_x.
        ENDIF.
       IF record-trcal NE ' ' .
         p_means_of_transportx-trcal = c_x.
       ENDIF.
        IF p_dur NE ' ' .
          p_means_of_transportx-duration = c_x.
        ENDIF.
       IF record-durfx_flg NE ' ' .
         p_means_of_transportx-durfx_flag = c_x.
       ENDIF.
       IF record-distfx_flg NE ' ' .
         p_means_of_transportx-distfx_flg = c_x.
       ENDIF.
       IF record-trans_cost NE ' ' .
         p_means_of_transportx-trans_cost = c_x.
       ENDIF.
       IF record-trans_cost_uom NE ' ' .
         p_means_of_transportx-trans_cost_uom = c_x .
       ENDIF.
       IF record-dur_rnd_value NE ' ' .
         p_means_of_transportx-dur_rnd_value = c_x.
       ENDIF.
       IF record-treq_cover_type NE ' ' .
         p_means_of_transportx-treq_cover_type = c_x.
       ENDIF.
       IF record-tlb_profile NE ' ' .
         p_means_of_transportx-tlb_profile = c_x.
       ENDIF.
        APPEND p_means_of_transportx.
    *CALL OF PERFORM TO CALL BAPI to create/update transportation lane with means of transport
        PERFORM bapi_call.
    *BAPI CALL
    FORM bapi_call.
      CALL FUNCTION 'BAPI_TRLSRVAPS_SAVEMULTI'
      EXPORTING
      logical_system = 'TSD_210'
    *     business_system_group =
      model = '000'
      commit_control = 'E'
    *     auto_delete = ' '
      TABLES
      transport_lane = p_transport_lane
      transport_lanex = p_transport_lanex
      prod_procurement = p_prod_procurement
      prod_procurementx = p_prod_procurementx
      means_of_transport = p_means_of_transport
      means_of_transportx = p_means_of_transportx
      prod_means_of_transport = p_prod_means_of_transport
      prod_means_of_transportx = p_prod_means_of_transportx
      carrier = p_carrier
      carrierx = p_carrierx
      return = return.
    *Confirm the document creation by calling database COMMIT
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDFORM.
    Actually the record contains :
    Means of Transport = SID-Q-BB
    Start Date: 21-9-08
    End Date: 23-9-08
    Duration: 315
    Etc
    If you have any idea, please help me.
    Thanks and Regards,
    Liliana

    Hi Liliana,
    Please check the Transportation lanes you are uploading/editing. It appears you had already uploaded a lane with some Validity. While the same is being uploaded again with a different validity.
    You have to check the Existing TLanes and the ones you are trying to upload or any duplication. Omit the duplicate ones and try again...
    Regards,
    Manjit

  • Transportation Lanes in APO

    hi,
      could anyone help me how "Transportation Lanes" in APO can be done using BAPI(BAPI_TRLSRVAPS_SAVEMULTI"

    Hi,
    Take a look at this..
    Re: BAPI_TRLSRVAPS_SAVEMULTI
    Cheers
    VJ

  • APO Bapi - ERROR - No entry found in transportation indicator table for fol

    Hi
    Experts .. need help on a APO bapi
    Iam being doing BAPI for transportation lane to add new material through the bapi BAPI_TRLSRVAPS_SAVEMULTI
    iam passing  the following to BAPI
        Logical system
        model
    and in tables .
        TRANSPORT_LANE
        TRANSPORT_LANEX
        PROD_PROCUREMENT
        PROD_PROCUREMENTX
        LOCATION_FROM    = '1010'.
        LOCTYPE_LOC_FROM = '1001'.   
        LOCATION_TO =   '1101'.
        LOCTYPE_LOC_TO =  '1001'.
    the above data is common for passing all the four bapi tables and in
    addition iam passing
    prod-valfr =  Converted value by passing to FM - IB_CONVERT_INTO_TIMESTAMP.
    prod-valto =  Converted value by passing to FM - IB_CONVERT_INTO_TIMESTAMP.
    prod-product = material number.
    AFter excuteing bapi iam getting an error
    No entry found in transportation indicator table for following objects
    the above error occured when passed the given data to bapi table -  PROD_PROCUREMENT  
    if we pass the data to   PROD_PROCUREMENT and   PROD_PROCUREMENTX
    then there is no error in  table return of bapi but the data is not uploaded in transportation lane.
    I will really appreciate if some guide me where iam wrong or some other solution for this .
    Regards .
    Thanks .

    Hi,
    I am writing bdc code for uploading changing inspection plan data using qp02 . I saw your post in sdn .I think you have solution .can you tell the solution .
    Regards
    Nandan.

Maybe you are looking for