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

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

October 11Hits:4
Advertisement
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

Answers

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

Read other 4 answers

Tags:

Related Articles

  • Time Limit exceeded Error while updating huge number of records in MARCOctober 11

    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

  • Time Limit exceeded error in R & R queueOctober 11

    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 soluti

  • Administrative limit exceeded errorNovember 30

    On attempting an ldap search command as follows ./ldapsearch -z1000 -b "ou=People,o=abcd.com" "organizationalstatus=manager", I am getting "Administrative limit exceeded" error. The limit is set to 2000 in the console. any he

  • Time limit exceeded errorOctober 11

    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, Arpi

  • License.Limit.Exceeded error with unlimited licenceNovember 30

    I am getting Licence.Limit.Exceeded errors when FMS had several hundred connections although I have unlimited connections licence. Because of this error, FMS rejected all further connections. Here is log: 2009-01-30 20:50:41 11220 (i)2651182 (_defaul

  • Query using system parameter LEVEL returns incorrect huge number of recordsNovember 30

    We migrate our database from Oracle *9.2.0.6* to *11.2.0.1* The query below throws "ORA-01788: CONNECT BY clause required in this query block". select * from ( +select a.BOARD_ID, code, description, is_displayable, order_seq,  board_parent_id, s

  • TIME LIMIT EXCEEDED ERROR WHILE EXECUTING DTPOctober 11

    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 pro

  • Time Limit exceeded error in ALV reportOctober 11

    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 bac

  • Message limit exceeded error thrown by Adobe and field becomes blankOctober 11

    Hi, I'm facing a strange problem with Adobe Forms. We've created custom MSS scenario to suit customer requirements. In that we are required to display drop down values. All drop down values and form is displayed <b>correctly the first time</b>

  • IDoc on outbound side from XI - time limit exceeded errorOctober 11

    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

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.562 s.