Time Limit exceeded Error while updating huge number of records in MARC

Hi experts,
I have a interface requirement in which third party system will send a big file say.. 3 to 4MB file into SAP. in proxy we
used BAPI BAPI_MATERIAL_SAVEDATA to save the material/plant data. Now, because of huge amount of data the SAP Queues are
getting blocked and causing the time limit exceeded issues. As the BAPI can update single material at time, it will be called as many materials
as we want to update.
Below is the part of code in my proxy
Call the BAPI update the safety stock Value.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata                    = gs_headdata
        CLIENTDATA                  =
        CLIENTDATAX                 =
       plantdata                   = gs_plantdata
       plantdatax                  = gs_plantdatax
       IMPORTING
          return              = ls_return.
    IF ls_return-type <> 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      MOVE ls_return-message TO lv_message.
Populate the error table and process next record.
      CALL METHOD me->populate_error
        EXPORTING
          message = lv_message.
      CONTINUE.
    ENDIF.
Can any one please let me know what could be the best possible approach for this issue.
Thanks in Advance,
Jitender
Hi experts,
I have a interface requirement in which third party system will send a big file say.. 3 to 4MB file into SAP. in proxy we
used BAPI BAPI_MATERIAL_SAVEDATA to save the material/plant data. Now, because of huge amount of data the SAP Queues are
getting blocked and causing the time limit exceeded issues. As the BAPI can update single material at time, it will be called as many materials
as we want to update.
Below is the part of code in my proxy
Call the BAPI update the safety stock Value.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata                    = gs_headdata
        CLIENTDATA                  =
        CLIENTDATAX                 =
       plantdata                   = gs_plantdata
       plantdatax                  = gs_plantdatax
       IMPORTING
          return              = ls_return.
    IF ls_return-type <> 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      MOVE ls_return-message TO lv_message.
Populate the error table and process next record.
      CALL METHOD me->populate_error
        EXPORTING
          message = lv_message.
      CONTINUE.
    ENDIF.
Can any one please let me know what could be the best possible approach for this issue.
Thanks in Advance,
Jitender

Hi Raju,
Use the following routine to get fiscal year/period using calday.
*Data definition:
DATA: l_Arg1 TYPE RSFISCPER ,
      l_Arg2 TYPE RSFO_DATE ,
      l_Arg3 TYPE T009B-PERIV .
*Calculation:
l_Arg2  = TRAN_STRUCTURE-POST_DATE. (<b> This is the date that u have to give</b>)
l_Arg3  = 'V3'.
CALL METHOD CL_RSAR_FUNCTION=>DATE_FISCPER(
  EXPORTING I_DATE = l_Arg2
            I_PER = l_Arg3
  IMPORTING E_FISCPER = l_Arg1  ).
RESULT = l_Arg1 .
Hope it will sove ur problem....!
Please Assign points.......
Best Regards,
SG

Similar Messages

  • TIME LIMIT EXCEEDED ERROR WHILE EXECUTING DTP

    Hi gurus,
    I Have got an error while executing
    The errors are as follows.
    1.Time limit exceeded. No return of the split processes
    2.Background process BCTL_DK9MC0C2QM5GWRM68I1I99HZL terminated due to missing confirmation
    3.Resource error. No batch process available. Process terminated
    Note: Iam not  executing the DTP as a back ground job.
    As it is of  higher priority the answers Asap Is appreciated.
    Regards
    Amar.

    Hi,
    how is it possible to execute a DTP in dialog process. In my mind it is only possible for debugging...
    In "Display Data Transfer Process" -> "Goto" -> "Settings for Batch Manger" you can edit settings like Number of Processes or Job Class.
    Additional take a look at table RSBATCHPARALLEL and
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/f29aa933321a61e10000000a422035/frameset.htm
    Regards
    Andreas

  • Time Limit exceeded error in R & R queue

    Hi,
    We are getting Time limit exceeded error in the R & R queue when we try to extract the data for a site.
    The error is happening with the message SALESDOCGEN_O_W. It is observed that whenever, the timelimit error is encountered, the possible solution is to run the job in the background. But in this case, is there any possibility to run the particular subscription for sales document in the background.
    Any pointers on this would be of great help.
    Thanks in advance,
    Regards,
    Rasmi.

    Hi Rasmi
    I suppose that the usual answer would be to increase the timeout for the R&R queue.
    We have increased the timeout on ours to 60 mins and that takes care of just about everything.
    The other thing to check would be the volume of data that is going to each site for SALESDOCGEN_O_W. These are pretty big BDOCs and the sales force will not thank you for huge contranns time 
    If you have a subscription for sales documents by business patrner, then it is worth seeing if the business partner subscription could be made more intelligent to fit your needs
    Regards
    James

  • Time limit exceeded error

    Hello All,
    I am trying to execute a custom program with a variant, but I receive the Time limit exceeded error [TIME_OUT].
    I am now trying to analyse why this error has occurred as I am a beginner. Any help shall be greatly appreciated.
    Regards,
    Arpita.
    Moderator message: Welcome to SCN!
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Oct 20, 2011 2:01 PM

    Hi Ramya,
       Your prog running in the back ground, so the time limit of the prog is exceded.  Go to sm37 see the prog running time if exceded correct the time.
    Regards
    Srinu

  • Time Limit exceeded error in ALV report

    I am gettting error "Time Limit Exceeded" when i execute ALV report. Can i run the program in background and how to do that?. I had already optimized my query in the program but even then i am facing the same issue.

    You can process the alv in background by pressing F9...I guess that the output would be available as a spool in SP01.
    You may need to re-check your query...And also, review the alv catalog and any events you are using....
    Greetings,
    Blag.

  • IDoc on outbound side from XI - time limit exceeded error

    Hi,
    I have a FIle to IDoc scenario and I'm creating there a lot of idocs (20000) in a single push. I'm getting an error "time limit exceeded" on outbound side with red flag in SXMB_MONI. How to increase this limit parameter? Where to do it? - PI? or R/3?
    Thank you,
    Olian

    Hi,
    Check thios below thread..
    Re: XI timeout error
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    Srini

  • Time_out - Time limit exceed - Error

    Hi,
    The following code gives the Time_out run time error.
    LOOP AT i_outtab.
        IF p_cust = 'X'.
         Select single kunnr from vbak into sales_cust
                     where kunnr =  i_outtab-kunnr
                     and  ERDAT GE date.
        IF sy-subrc NE 0.
        DELETE i_outtab INDEX sy-tabix.
        CONTINUE.
        ENDIF.
        ENDIF.
        i_outtab1-kunnr = i_outtab-kunnr.
        i_outtab1-name1 = i_outtab-name1.
        i_outtab1-land1 = i_outtab-land1.
        i_outtab1-ernam  = i_outtab-ernam.
        i_outtab1-vkorg  = i_outtab-vkorg.
        i_outtab1-vtweg  = i_outtab-vtweg.
        i_outtab1-spart   =  i_outtab-spart.
        APPEND i_outtab1.
        CLEAR i_outtab1.
      ENDLOOP.
    However, if the select query is omitted when the condition fails, the performance of the program is fast. Only because of this select query, it goes to run time error.
    What is the issue?
    Thanks,
    Ezhil

    Hi Ezhilhrh,
    Please see the code below.  I have removed the select query from the loop. 
    IF p_cust = 'X'.
    DATA: TEMP_ITAB LIKE TABLE OF I_OUTTAB OCCURS 0
          WITH HEADERLINE.
    Select single kunnr from vbak into table temp_itab
    for all entries in i_outtab
    where kunnr = i_outtab-kunnr
      and ERDAT GE date.
    IF sy-subrc EQ 0.
    i_outtab[] = temp_itab[]
    SORT I_OUTTAB BY KUNNR.
    LOOP AT i_outtab.
    READ TABLE TEMP_ITAB WITH KEY KUNNR = I_OUTTAB-KUNNR BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    i_outtab1-kunnr = TEMP_ITAB -kunnr.
    i_outtab1-name1 = i_outtab-name1.
    i_outtab1-land1 = i_outtab-land1.
    i_outtab1-ernam = i_outtab-ernam.
    i_outtab1-vkorg = i_outtab-vkorg.
    i_outtab1-vtweg = i_outtab-vtweg.
    i_outtab1-spart = i_outtab-spart.
    APPEND i_outtab1.
    CLEAR i_outtab1.
    ELSE.
    DELETE i_outtab INDEX sy-tabix.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    ENDIF.
    This code will improve your performance as well.
    Regards,
    Md Ziauddin.

  • Error while updating or deleting a record

    Hi to all...
    i have created atable group_master with 2 fields Group_id and Group_name
    the user will specify a group_name in a text box and press save. Before commiting a seq number will be generated
    inside the form procedure and it will be inserted.
    The insert is working fine.
    But when i select a record i.e a group_name and change it contents and commit it, it is not commiting.
    when i checked the display error it showed Ora-01400 cannot insert null values into the table.
    Iam not inserting a value here iam updating the group name only.
    even when i delete a record it shows same error....
    can any one help to solve this....
    thanx in advance........

    I have when button pressed trigger whick helps to show the lov which contains the group_id and group_name;
    a := show_lov('lov27');
    if a then
    go_block('group_master');
    execute_query;
    end if;
    it is correctly fetching the delected data. but propmpts a message box asking Do u want to save the record?
    if i ignore it n modify the group_name and save it,still it shows unable to insert null value.
    i jus want a simple way to solve this....
    i want to fetch that particular record and modify or delete it.
    group_id n group_name cannot be null.
    i will be using Buttons for add,delete,update and save record. i will be using lov to fetch records for modification or deletion.
    how to avoid the message box which prompts when i call lov with execute_query.....
    * I tried Key-listval...but i didnt get any solution. i will try again....
    thanx for ur replies....

  • Error while executing huge no.of records in RSRT

    Hi Everyone,
    I have around 80000 records in our customized infocube, while executing the query for this in RSRT it throws up this runtime error.
    As before suggested I set the mode to application server as explained in oss note 656060 which was suggested earlier in this forum.
    Now this is the error message it throws up what can be done.
    <b>
    Unable to fulfil request for 67108864 bytes of memory space.
    Each transaction requires some main memory space to process                  
    application data. If the operating system cannot provide any more            
    space, the transaction is terminated.                                        
    The termination occurred in the ABAP program "SAPLRRK0 " in "SETXX_FUELLEN_02"
    The main program was "WRITEQUERY ".                                                                               
    The termination occurred in line 1125 of the source code of the (Include)    
    program "LRRK0F07 "                                                         
    of the source code of program "LRRK0F07 " (when calling the editor 11250).</b>   
    Any help will be of great use to me.
    Thanks,
    Prashant.

    No ideas as such but try to publish on web while running from RSRT instead of excel or screen...
    may be that could help and try to run when the system is free and less loaded..
    regards,
    Hari

  • Time limit exceeded.

    Hi XI Gurus,
    We are facing the Time limit exceeded error while processing the inbound Queue..
    Kindly provide some solution for the same.
    Regards,
    Anguraj.

    Hi,
    check out the message that caused that and the reason for the timeout will be shown inside - it's probably not the queue timeout (which can be changed in SMQR) but some other timeout - you will see it inside your XI message
    Regards,
    Michal Krawczyk

  • IDoc Tracking: TIME LIMIT EXCEEDED

    Hello!
    We have about 15 different R/3 platforms connected to XI using the IDoc adapter. If I use the IDoc Tracking functionality in IDX5 it usually is working fine and the IDoc number in the receiving system and IDoc status are returned within seconds.
    However, for one R/3 platform it was always taking about 30 minutes until the IDoc number and IDoc status were returned. The status bar displays that the IDOC_DATE_TIME_GET function module is executed.
    Now it runs for over one hour until it stops with a TIME LIMIT EXCEEDED error message and no IDoc numbers and status is returned any more. What needs to be corrected to speed up IDoc tracking for this particular system?
    Regards, Tanja

    Not sure if this would help, but this link speaks of how to bypass time limit exceeded
    http://www.erpgenie.com/abaptips/content/view/490/62/

  • Time limit exceeded when doing MIRO

    Hi Experts,
    time limit exceeded error occured when doing MIRO transaction.
    plz reply with suitable answer.
    Thanks,
    Jyosna

    >
    jyotsna shinde wrote:
    > plz reply with suitable answer.
    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
    Rob

  • CIF - Time Limit Exceeded

    Dear All,
    Working on SCM 4.1
    To CIF products from R/3 to APO.
    Earlier the CIF for Products , was working fine , but today we  it stuck by the Inbound Error in APO "Time Limit Exceeded".
    There are thousonds of products , so how can i check which product is having the issue?
    Plz help me throughout.
    Thanks in advance,
    Regards,
    Rajesh Patil

    Hi,
    Please check if OSS note 1254364 is applicable.
    Normally the reasons for this "Time Limit Exceeded" error can be categorized as below:
    1) Sysfails (Technical / Basis team should be checking  nature of sysfail and take corrective action)
    2) Livecache performance ((Technical / Basis team should be checking   livecache whether performance is low and then take corrective action)
    3) Master data errors if any. From the log we can know the details.
       A quick checking rule can be thought : 1. Are products from a particular plant having more errors 2. Can we run the products transfer job more frequently.
    Regards
    Datta

  • Error while updating the records through a DB link

    Hi ,
    I am getting the below error while updating around 15 thousands records, i suspect it to be timeout but not sure.Please can you let me know what solutions needs to be taken.
    Not Found
    The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
    Not Found
    The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at htmldb.oraclecorp.com Port 80
    Object Type TABLE Object GWB_GRN_GRP_COUNTRIES_LU
    Table Column Data Type Length Precision Scale Primary Key Nullable Default Comment
    GWB_GRN_GRP_COUNTRIES_LU NAME Varchar2 720 - - - - - -
    ALIAS Varchar2 720 - - - - - -
    ACTIVE Varchar2 3 - - - - - -
    REGION Varchar2 300 - - - - -
    1 - 4
    Thanks & Regards,
    Ramu

    Hi Sangu,
    See if the following notes help you:
    Error when calling API from SQL*Developer, eg. ORA-01403 in API OE_ORDER_PUB.PROCESS_ORDER (Doc ID 1054295.1)
    Cancellation Of Transfer Orders Is Not Possible - ORA-01403: no data found in Package OE_Order_PVT Procedure Process_Order (Doc ID 391307.1)
    Thanks &
    Best Regards,

  • Error while running query "time limit exceeding"

    while running a query getting error "time limit exceeding".plz help.

    hi devi,
    use the following links
    queries taking long time to run
    Query taking too long
    with hopes
    Raja Singh

Maybe you are looking for

  • Why won't game center accept my apple ID?

    Not sure what the deal is with it, but I can sign in normally for applications, etc. but the game center app won't accept my apple ID. Any hints?

  • MBP Display Parameters for Running Soloris in Parallels

    I just got Solaris installed through Parallels. Thing is, Soloris doesn't recognize any of the video parameters through Parallels. I have to go in there and put them in manually. Currently, the res is stuck at 1600x1200 which is too big for my displa

  • Database creation (via dbca) results in tns-04414 error

    All I am having a problem in that when I am trying to create a standalone database using dbca it results in an error of tns-04414: file error. I have checked the tnsnames and listener files for any oddities, and nothing standing out. Does anyone have

  • Issue: "No Authorization to send Idocs with message type Orders" - IDX5

    Hi All,    I am working on a File to IDoc(Orders.Orders05) scenario. The sender is PI Server and the receiver is the SAP ISR system. A technical system has been created in PI SLD for the ISR system and a Business system is added to that. The logical

  • Problem since ipod touch has been used

    Since I started using my ipod to view my mail (gmail) my mail on my macbook has stopped responding. I am just getting a spinning wheel on the main gmail account, and if I try to send something the sent mail box also spins. The mail activity box shows