Error in infopackage level routine

hi guys
I am trying to write a infopackage level routine for dynamic flatfile selection.Im getiing error:Error 1 while loading external data.
I did like this:
I am accessing one external harddisk having BW-R3 software installed in it through VM Ware from my laptop.here I saved one flatfile with name DFF_10.10.2009.csv  in D drive.so path becomes  -- D:\DFF_10.10.2009.csv
then in my infopackage...i wrote code ..here it is
DATA: XFILE LIKE P_FILENAME .
  CONCATENATE 'D:\DFF_' SY-DATUM '.csv' INTO XFILE .
P_FILENAME = XFILE .
now tried to schedule infopackage....to see if it worksand loads data from flatfile.....but it throws error....Error1 while loading external data....
how can I fix this?
Thanks in adv,
Rgds,
S

DATA:
  ch1(32) TYPE x VALUE
  '00200120022003200420052006200720082009200A200B200C200D200E200F20',
  ch2(32) TYPE x VALUE
  '10201120122013201420152016201720182019201A201B201C201D201E201F20',
  ch3(60) TYPE c VALUE
  '¿ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¡ ¯ ® ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ '.
DATA:
  ch4(90) TYPE c VALUE
  'ø ÷ æ ß  ? ? ? ? ? ? ? ? ? ? ? ! ~ `  #'.
FIELD-SYMBOLS:  TYPE c.
DATA: l_ZPWRKCTY TYPE /BIC/OIZPWRKCTY,
      l_ZPSTNAMe TYPE /BIC/OIZPSTNAME.
l_ZPWRKCTY = SOURCE_FIELDS-FIPS_NAME.
  translate l_ZPWRKCTY to upper case.
     RESULT = l_ZPWRKCTY.
  CONDENSE RESULT.
Exclamation mark is not permitted as a first symbol of the field
content
  IF RESULT(1) = '!'.
    RESULT(1) = ' '.
  ENDIF.
  CONDENSE RESULT.
The only # sign is not permitted
  IF STRLEN( RESULT ) = 1.
    IF RESULT(1) = '#'.
      RESULT(1) = ' '.
    ENDIF.
  ENDIF.
Replace Invalid Characters by SPACE
  ASSIGN ch1 TO .
  TRANSLATE RESULT using ch3.
  TRANSLATE RESULT using ch4.
  CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
    EXPORTING
      INTEXT                  = RESULT
   IMPORTING
     OUTTEXT                = RESULT.
Remove leading and trailing blanks if any
  CONDENSE RESULT.

Similar Messages

  • Data Source Error in infopackage level

    HI experts,
    Please guide me to resolving this issues.
    When I am trying to load CSV dta through infopackage and when i clicked preview button , it is throwing an error.
    Error : Data source DS_PROFIT not available in source system of Avtive Version A.
    This data source created by me.
    Please help me.
    Regards,
    subhendu

    pls activate your data source first then try to preview the data...........
    Edited by: JAIGUPTA on Jan 12, 2012 10:16 PM

  • Error in object level routine used in transformation to remove special char

    Hi,
    I have written a code to remove special characters (#,!) at the object level. However i am getting this error
    "You cannot use the current statement between "CLASS ... DEFINITION" and "ENDCLASS" ".How do i remove this error? Please help.
    Thanks.

    DATA:
      ch1(32) TYPE x VALUE
      '00200120022003200420052006200720082009200A200B200C200D200E200F20',
      ch2(32) TYPE x VALUE
      '10201120122013201420152016201720182019201A201B201C201D201E201F20',
      ch3(60) TYPE c VALUE
      '¿ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¡ ¯ ® ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ '.
    DATA:
      ch4(90) TYPE c VALUE
      'ø ÷ æ ß  ? ? ? ? ? ? ? ? ? ? ? ! ~ `  #'.
    FIELD-SYMBOLS:  TYPE c.
    DATA: l_ZPWRKCTY TYPE /BIC/OIZPWRKCTY,
          l_ZPSTNAMe TYPE /BIC/OIZPSTNAME.
    l_ZPWRKCTY = SOURCE_FIELDS-FIPS_NAME.
      translate l_ZPWRKCTY to upper case.
         RESULT = l_ZPWRKCTY.
      CONDENSE RESULT.
    Exclamation mark is not permitted as a first symbol of the field
    content
      IF RESULT(1) = '!'.
        RESULT(1) = ' '.
      ENDIF.
      CONDENSE RESULT.
    The only # sign is not permitted
      IF STRLEN( RESULT ) = 1.
        IF RESULT(1) = '#'.
          RESULT(1) = ' '.
        ENDIF.
      ENDIF.
    Replace Invalid Characters by SPACE
      ASSIGN ch1 TO .
      TRANSLATE RESULT using ch3.
      TRANSLATE RESULT using ch4.
      CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
        EXPORTING
          INTEXT                  = RESULT
       IMPORTING
         OUTTEXT                = RESULT.
    Remove leading and trailing blanks if any
      CONDENSE RESULT.

  • How to populate the Error stack during error records in field level routine

    hi,
    I am capturing the error records in Field level routine in transformation. now i want these records to reflect in error stack.
    i am using 'Append monitor-rec to MONITOR' at the moment but i cant see any records in error stack.
    but when i am using the same statement in start routine i am getting records in error stack.
    can anyone please help as to how can i populate error stack through field level routine?

    Hi,
    Try to do it in the end routine instead of the field routine.
    It should work.
    Regards,
    Joe

  • Routine at the Infopackage level-Urgent

    Hi,
    My requirement is I need to write an routine at the infopackage level for the fiscal period which should have the low value as the current period and the high value as current period +12 months.
    For example.
    As per the system date the
    low value should be 2007.09
    and the high value shoudl be 2008.09.
    Could anyone help me with the ABAP code.Points would be assigned.
    Regards,
    vamsi

    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'FISCPER'.
              l_idx = sy-tabix.
    data: l_year                like T009B-BDATJ,
          l_period              like T009B-POPER,
          today                 like SY-DATUM.
    data: l_fiscperlow like l_t_range-low.
    data: l_fiscperhigh like l_t_range-high.
          today = SY-DATUM.
            CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
              EXPORTING
                I_DATE               = today
              I_MONMIT             = 00
                I_PERIV              = 'Z1'
              IMPORTING
                E_BUPER              = l_period
                E_GJAHR              = l_year
            EXCEPTIONS
              INPUT_FALSE          = 1
              T009_NOTFOUND        = 2
              T009B_NOTFOUND       = 3
              OTHERS               = 4
            IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
            concatenate l_year l_period+1(2) into l_fiscperlow.
          l_t_range-low = l_fiscperlow.
          l_t_range-high = l_fiscperlow+12.
          l_t_range-option = 'BT'.
          l_t_range-sign = 'I'.
          modify l_t_range index l_idx.
          p_subrc = 0.
              modify l_t_range index l_idx.
              p_subrc = 0.
    This is the code which i had written but when i execute the infopackage i am aboe to see only the low value 200709 in the infopackage selections and unable to see the high value,Could any one suggest me if i missed something in the code.
    regards,
    Vamsi

  • Infopackage Abap Routine (Selection based on other fields?)

    Dear Friends,
    I know that Abap routine is used in infopackage to select or restrict using complex data selection.
    My requirement is to restrict Material no field based on 4 other fields. Is that possible?
    Actual condition is  to load Material no only if other 4 fields combination is new.
    Pls help.
    Guru

    Hi,
    Yes you can do this at infoPackage level using the ABAP routine.
    First read the Active Table of the DSO into internal table and do a lookup for the required four fields combination.
    If these four field are new allow the material number.
    Refer the below link for more help.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c
    Regards
    Manjula.B

  • Error in mru internal routine: ORA-20001: while updating tabular report

    Hi,
    I am new to APEX..
    I am getting the following error when updating a tabular updateable report when I change the query that was created using the wizard.
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
    I need to get some extra data other than the those returned from the detail table.Hence I have changed the query.
    If i delete the row and add a row,no error is displayed.
    My primary key has been hidden.
    Kindly help.
    Thanks .

    I had the same problem. When I changed the query then I forgot to add primary key column in the query. That's why I couldn't update the table value. But I could insert a new record bacause I have a trigger at database level to add new id value for primary key column.

  • Field level Routine

    Hi,
    I have field level routine in Update rules.
    IF /BIC/ZDOCINDREF <> 'G'
    ZPCONTRAT = 0CONTRACT.
    ELSEIF /BIC/ZDOCINDREF ='K'
    ZSALSCNT = 0CONTRACT.
    ENDIF.
    It giving syntax error;E:Field "/BIC/ZDOCINDREF" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
    Please suggest.
    Thanks,
    Karuna

    Hi,
    Try writting it like this
    IF /BIC/ZDOCINDREF = 'G'.
    ZPCONTRAT = 0CONTRACT.
    ELSEIF /BIC/ZDOCINDREF = 'K'.
    ZSALSCNT = 0CONTRACT.
    ENDIF.
    Or
    If this code is in some loop check the work area. if say work area is WA, put 'WA-' before /BIC/ZDOCINDREF.

  • Restrcitions at Infopackage level

    Dear All,
    There is an Info package where we have an Infoobject Posting level. We need to restrict some of the postings levels data when coming from the Source cube to the target cube.
    For eg: we have posting level 00,01,02,10,12,20,22. We need to restrict 02,12 and 22 from coming to the Target cube. Can I restrict these at the infopackage level?
    Please suggest.
    Thanks Rama.

    If u use infoapck selections, then enter values other that restriction 02, 12, 22...
    U have to write a routine to restrict at infopackage level....  Check following sample code
    data L_S_MC11VA0ITM like MC11VA0ITM,
    L_tabix like sy-tabix.
    case i_datasource.
    when '2LIS_11_VAITM'.
    loop at c_t_data into L_S_MC11VA0ITM.
    l_tabix = sy-tabix.
    if L_S_MC11VA0ITM-SPART ne '10'.
    Else.
    delete c_t_data index l_tabix.
    continue.
    endif.
    modify c_t_data from L_S_MC11VA0ITM index l_tabix.
    endloop.
    Endcase.

  • Selection at infopackage level

    HI Everybody,
    Is it possible to have selection at infopackage level.
    Regards,
    BPNR.

    Hi ,
    yes .it is possible to have selection at infopackage level.
    at infopackage level you can have three options for selection criteria.
    type-5--- free temporal selection (for as many fields as you like)
    type-6 ---ABAP routine
    type-7---OLAP Variables.
    Regards
    upen

  • Selected period data extraction at infopackage level

    Hi All,
    I am trying  to Extract data from APO Demand Planning Cube to BW.
    In BW how to extract data for Specified Date.
    To extract specified current month plus -4 months and +4 months of data per extraction.
    Do I have to write routine at infopackage level for calculating specified period.
    Please help to solve this.
    Thanks in advance

    hi Brinda,
    take a look sample code if you use routine
    routine as selection in infopackage
    Dynamic selection
    abap routine
    hope this helps.

  • Process chain error at infopackage

    Hai
    Im trying to load the data from flat file into DataStoreObject by uisng process chian in BW-2004s.
    I build the process chain like below
    start -> InfoPackage -> DTP -> Activation Of ODS data.
    Im gettin error at the Infopackage level and it becomes red. I already loaded data into the datasource/psa in BW-2004s.
    So how can i look for the error details at infopackage process level.
    pls let me know
    kumar

    Hi,
    just right click on the process which got fail means red in color, and details ... >details ....there must be given you some errors find out ...you can find the solution ...or else you can just let me know that error i may solve that .. all the best.
    Regards,
    vishali.

  • Error while activating a routine  "no object list"

    hi
    I am getting a error while activating a routine Rv50c601
    "There is no object list for INCLUDEs"  Please suggest on the error and resoulution
    regards
    Nishant

    Try running program RV80HGEN.
    Regards,
    Naiimesh Patel

  • Error in mru internal routine: ORA-20001: no data found in tabular form

    Hi All,
    I am trying to do the Multi Row Update. Please go through the below process which i followes:
    > I have a table B which is of child table of A, the columns belongs to table B are B_ID, B_Name, B_Description and A_ID.
    > I have prepared a report with B_NAME, B_DESCRIPTION and B_ID and in this B_NAME is of LOV.
    > Now I want to update the values through interface by clicking on SUBMIT [Apply Change] button.
    > To do this I used the Process of "Multiple Rows Update" by choosing table B and a primary key value of table B which is B_ID.
    While clicking on the SUBMIT [Apply Change] button I am getting this error:
    Error in mru internal routine: ORA-20001: no data found in tabular formPlease tell me is i am following the correct process. If not please correct me.
    Thanks in advance
    Vishwanath

    Hi All,
    I am trying to do the Multi Row Update. Please go through the below process which i followes:
    > I have a table B which is of child table of A, the columns belongs to table B are B_ID, B_Name, B_Description and A_ID.
    > I have prepared a report with B_NAME, B_DESCRIPTION and B_ID and in this B_NAME is of LOV.
    > Now I want to update the values through interface by clicking on SUBMIT [Apply Change] button.
    > To do this I used the Process of "Multiple Rows Update" by choosing table B and a primary key value of table B which is B_ID.
    While clicking on the SUBMIT [Apply Change] button I am getting this error:
    Error in mru internal routine: ORA-20001: no data found in tabular formPlease tell me is i am following the correct process. If not please correct me.
    Thanks in advance
    Vishwanath

  • Error in executing ODCIIndexStart() routine

    In my application We have sometimes the follow error:
    Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    ORA-00942: table or view does not exist
    Internal Exception: java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    ORA-00942: table or view does not exist
    Error Code: 29902
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:226)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:695)
    at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:130)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:111)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:193)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:563)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:421)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
    at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
    at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
    at oracle.toplink.publicinterface.Session.readAllObjects(Session.java:2416)
    at it.csi.cultura.om.supporto.ObjectManagerFrontoffice.getElencoEventiFiltrati(ObjectManagerFrontoffice.java:1431)
    at it.csi.cultura.backoffice.eventinotizie.ElencoEventi.execute(ElencoEventi.java:125)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:251)
    at oracle.portal.provider.v2.render.http.AbstractResourceRenderer.renderBody(Unknown Source)
    at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
    at it.csi.cultura.portal.CustomPortletInstance.render(CustomPortletInstance.java:46)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at it.csi.cultura.portal.UploadFilter.doFilter(UploadFilter.java:61)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Have you any idea???
    Thanks

    Hi,
    A couple of thoughts:
    1. Have you asked in the Oracle Text forum?
    Text
    2. On which text index does this command fail? Have you checked to make sure this text index really does exist?
    Cheers,
    Colin
    PS The singular of 'Indices' is 'Index'.

Maybe you are looking for