Flatfile-XI-Flatfile

Hi All,
i am going to create File2File scenario using File content conversion(Flat file). Please let me know how to set the content conversion parameters. Any body have the documentation for this, please send me ASAP.
Thanks & Regards,
Nagarjuna.

hi
FCC in sender side:
Document name: your message type name
Document namespace: name space of message type
Recordset name:Parent node name
Recordset namespace: namespace
Recordset sctructure: child node name1,*(if your childnode occurence is unbounded)/1,child node name2,occurrence of childnode eg :1
recorde set sequence: ascending
Name                                                 Value
Childnode.fieldSeparator                       ,
Childnode.fieldNames                    name of the fieldsof thecoreesponding
                                                    childnode      
insetead of     fieldSeparator  you can use field fixed length depending on your test file. 
FCC in receiver side:
Recordset sctructure : parent node, childnode
Name                                                 Value
Childnode.fieldSeparator                        ,
Childnode.endSeparator                       'nl'
Parentnode.fieldSeparator                      'nl'
Links
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
rewards point if helpful
Regards
Kasturika

Similar Messages

  • Creation of DataSource for FlatFile Interface in BI 7

    Hi Y'all!
    Can anyone please give me urgent assistance in creating/defining a DataSource for the FlatFile Scenario in BI 7.0.  I've been trying to no avail.  I certain I am doing this incorrectly, as such I seek your assistance.  Can anyone please be so kind as to give me a step-by-step walkthrough of the specific individual steps (in sequence) in creating/defining DataSources...  Also can this be accepted as a character (08-MAY-07)?
    Much thanks!
    Philips

    Hi,
    The following step can help you..
    1. create a info source and assign the data source -
    2. select data source as PC File ( give any name tech & desc)
    3. create a info source structure by include all individual info objects / har. keyfig
        those are available in your file
    4. you can always take the reference of the info objects from the cube/ODS as to
        make info source staructure easy
    5. map the corresponding info objects in the trasfer structure
    6. save and activate the info source
    7. go to your info provider cube/ODS and right click - select - create update rules
        select the name of the file data source name as given above
    8. map them as defult one-to-one mapping until other wise you have some require
        ment in data manipulation through update rules.
    9. save and activate.
    10. come to the info source - create a info package - select source as .CSV file
         and preview it before you actually load.
    11. as far as date is concern in your falt file..select the entire column of the date
         then goto-format column-select 'customize' then put format as 000000 (six
         zeros ) for 0calmonth.
    12. when you lookat the date at infoprovider it shows like 20070508 but
          when you execute in a query it displays its text as 08-May-2007
    I hope it would help you to understand and get your purpose solve.
    Thanks=points.
    Cheers.

  • Data extraction from sap r/3 to flatfile

    hello Guru's
    i am new to this feild. i got a requirement in such a way i have to extract data from feilds of different tables to flatfile.
    ( actual Scenario is we want to send data to sybase server through flatfile)
    plz send me some documents how to proceed with the specification
    usefull code in this regard is lot helpfull.
    thanks and regards
    aj

    Hello Raja,
    Here are some simple steps ...
    When you want to load data from a flat file, there is no process of datasource replication. The datasource has to be created manually on the BW system itself. When creating this datasource you start from the InfoSource and assign the source system for flat file load. This is usually something like PC_FILE or FLATFILE.
    Then you can start creating the datasource. You need to mention the field names in this datasource. Note that in your flat file, the sequence of fields must exactly match the sequence of fields in the datasource, else the data will be wrongly mapped.
    On the same screen and tab you can also do a preview of the data that will be loaded. Click the preview button and put in the path of the file. Mention other details like header row, and number of rows to be displayed and then you will be able to judge if the data is being loaded correctly or not.
    When loading the data, then file cannot be open else you will get an error message. Also to be able to schedule the flat file loads in process chains, the file cannot be on your PC. It has to be on the application server.
    This is some basic info. Please post back if you need details on any aspect.
    Hope this helps...
    Assigning points is the way to thanks in sdn.

  • Uploading HierarchyData from a flatfile in 2.0B

    Hi All,
    Can Anyone help me on "How to Upload HierarchyData from a flatfile in 2.0B".
    I want to upload three levels data .
    Orgunit>Position>Person . I am confused, how should
    i maintained columns order in flatfile and in BW side.
    Pls clarify this.
    Is it possible from r/3 to BW, i.e 0ORGUNIT_HR01_HIER data source Having only one level(0orgunit). I need other levels also.
    Please help me ..
    Regards,
    Srilaxmi.

    Hi Laxmi,
    The file will have a column for InfoObject. I'll mail you the document that I have but the best way to proceed is to first draw the entire hierarchy including all the levels for e.g.
    0ORGUNIT                 10010001 (1)
    00RGUNIT         10010002 (2)              10010003 (7)
                       /         \               |
    0HRPOSITION   40010001 (3)  40010002(5)    40010003 (8)
    0PERSON       80010001 (4) 80010002(6)     80010004 (9)
    Then you can read it from top to bottom and then left to right for e.g.
    Then you can read it from top to bottom and then left to right for e.g.
    Node    InfoObject   Level        Parent      Next      Child
    1        0ORGUNIT      1                         2       
    2        0ORGUNIT      2         1         7     3
    3        0HRPOSITION   3         2         5     4
    4        0PERSON       4         3                     
    5        0HRPOSITION   3         2               6
    6        0PERSON       4         5                       
    7        0ORGUNIT      2         1               8
    8        0HRPOSITION   3         7               9
    9        0PERSON       4         8          
    The column that I've left out is the value column. For e.g. the actual org unit value 10010001. Parent, next and child all refer to node id's.
    With regards to having more than one level on the org unit hierarchy on R/3. This is definately possible - you can many, many levels on R/3. Normally a BW person won't change the main version of the hierarchy for his needs, the structure of the hierachy is determined by the business structure.
    I've also mailed through the documentation for the help.
    Hope this is helping you.
    Kind regard,
    Dorothy

  • Error while creating more than 100 users using Flatfile Recon

    Hi,
    I am trying to create users in OIM 9.1 using flat file recon. The recon works when I have less than 100 users in the flatfile. But if I add more than 100 users to the file, the recon does not create all users. Less than 50 users get created in OIM if the number of users in the flat file is more than 100. I get the below error in this scenario.
    2012-11-28 23:08:27,599 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: tcDefaultSignatureImpl/verifySignature encounter some problems: object not initialized for verification
    2012-11-28 23:08:27,599 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: Authenticate/connectSignature encounter some problems: object not initialized for verification
    2012-11-28 23:08:27,600 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: Authenticate/connect encounter some problems:
    com.thortech.xl.security.tcLoginException:
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.Authenticate.connectSignature(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.jboss.UsernamePasswordLoginModule.login(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    Is there any maximum limit to the number of users created in Flatfile recon? I also get lot many errors following the above error. Please suggest
    Edited by: User_OIM on Nov 26, 2012 9:37 PM

    Hi Rajiv,
    I am using GTC for the recon. Below is the complete log
    com.thortech.xl.ejb.databeansimpl.tcDataBaseBean.ejbCreate() throws javax.ejb.CreateException
    2012-11-28 23:08:22,052 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting invoker proxy binding for stateful session:
    2012-11-28 23:08:27,599 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: tcDefaultSignatureImpl/verifySignature encounter some problems: object not initialized for verification
    2012-11-28 23:08:27,599 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: Authenticate/connectSignature encounter some problems: object not initialized for verification
    2012-11-28 23:08:27,600 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: Authenticate/connect encounter some problems:
    com.thortech.xl.security.tcLoginException:
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.Authenticate.connectSignature(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.jboss.UsernamePasswordLoginModule.login(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
         at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
         at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
         at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
         at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
         at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
         at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
         at org.jboss.ejb.Container.invoke(Container.java:981)
         at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
         at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
         at $Proxy278.create(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.tcBaseUtilityClient.getLocalInterface(Unknown Source)
         at Thor.API.Operations.tcReconciliationOperationsClient.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beans.GCOperationsSession.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
         at $Proxy368.getDefaultDateFormat(Unknown Source)
         at Thor.API.Operations.GCOperationsClient.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy798.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    2012-11-28 23:08:27,602 ERROR [XELLERATE.APIS] Class/Method: tcBaseUtilityClient/getLocalInterface encounter some problems: {1}
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.tcBaseUtilityClient.getLocalInterface(Unknown Source)
         at Thor.API.Operations.tcReconciliationOperationsClient.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beans.GCOperationsSession.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
         at $Proxy368.getDefaultDateFormat(Unknown Source)
         at Thor.API.Operations.GCOperationsClient.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy798.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: javax.ejb.AccessLocalException: SecurityException
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:384)
         at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
         at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)
         at org.jboss.ejb.Container.invoke(Container.java:981)
         at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
         at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
         at $Proxy278.create(Unknown Source)
         ... 55 more
    Caused by: com.thortech.xl.security.tcLoginException:
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown Source)
         at com.thortech.xl.security.Authenticate.connectSignature(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.Authenticate.connect(Unknown Source)
         at com.thortech.xl.security.jboss.UsernamePasswordLoginModule.login(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
         at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
         at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
         at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)
         at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)
         at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
         ... 61 more
    2012-11-28 23:08:27,605 ERROR [XELLERATE.GC.FRAMEWORKRECONCILIATION] Reconciliation Encountered error:
    Thor.API.Exceptions.tcAPIException: Unable to retrieve default date format
         at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beans.GCOperationsSession.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         ceptor.invoke(SecurityInterceptor.java:70)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
         at $Proxy368.getDefaultDateFormat(Unknown Source)
         at Thor.API.Operations.GCOperationsClient.getDefaultDateFormat(Unknown Source)
         Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by [Nested Exception]:
    Thor.API.Exceptions.tcAPIException
         at Thor.API.Base.tcBaseUtilityClient.getLocalInterface(Unknown Source)
         at Thor.API.Operations.tcReconciliationOperationsClient.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.GCOperationsBean.getDefaultDateFormat(Unknown Source)
         at com.thortech.xl.ejb.beans.GCOperationsSession.getDefaultDateFormat(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    2012-11-28 23:08:27,607 WARN [XELLERATE.GC.FRAMEWORKRECONCILIATION] Though Reconciliation Scheduled task has encountered an error, Reconciliation Transport providers have been "ended" smoothly. Any provider operation that occurs during that "end" or "clean-up" phase would have been executed e.g. Data archival. In case you want that data to be a part of next Reconciliation execution, restore it from Staging. Provider logs must be containing details about storage entities that would have been archived
    2012-11-28 23:08:27,704 ERROR [XELLERATE.SERVER] Class/Method: QuartzWrapper/execute encounter some problems: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    org.quartz.JobExecutionException: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    [See nested exception: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    * Nested Exception (Underlying Cause) ---------------
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.updateStatusToError(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.access$600(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    2012-11-28 23:08:27,704 INFO [org.quartz.core.JobRunShell] Job DEFAULT.FLAT RECON_GTC threw a JobExecutionException:
    org.quartz.JobExecutionException: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    [See nested exception: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    * Nested Exception (Underlying Cause) ---------------
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.updateStatusToError(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.access$600(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

  • Loading data from flatfile to relational table,i am getting SQLLDR error

    Hi,
    While loading data from flatfile to relational table,i am getting SQLLDR error and i am unable to proceed further.
    Source is a flatfile and target is a Oracle database,i used "LKM file to oracle(SQLLDR)" and "IKM sql control append"
    and ran the interface.When i checked the seesion in operator window" after generating "CTL file" successfully
    the session got failed at "Call sqlldr" and was not able to proceed further.
    Environment details:
    ODI 11g
    database:Oracle 11g
    Operating system:Windows server 2008
    The error message it displayed in call sqlldr session file was
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 31, in ?
    File "C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\javaos.py", line 198, in system
    File "C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\javaos.py", line 224, in execute
    OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'sqlldr DEVELOPER/pass_123@CPRDEV control="F:\\\\flatfile/CROSS_CURR.ctl" log="F:\\\\flatfile/CROSS_CURR.log" > "F:\\\\flatfile/CROSS_CURR.out" \']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)
    could u give me a solution to sort out this error ASAP.
    thanks,
    keshav.

    This was the following code generated .
    import java.lang.String
    import java.lang.Runtime as Runtime
    from jarray import array
    import java.io.File
    import os
    import re
    import javaos
    def reportnbrows():          
         f = open(r"F:\flatfile/TEST.log", 'r')
         try:
              for line in f.readlines():
                   if line.find("MAXIMUM ERROR COUNT EXCEEDED")>=0 :
                        raise line
         finally:
              f.close()
    ctlfile = r"""F:\flatfile/TEST.ctl"""
    logfile = r"""F:\flatfile/TEST.log"""
    outfile = r"""F:\flatfile/TEST.out"""
    oracle_sid=''
    if len('CPRDEV')>0: oracle_sid = '@'+'CPRDEV'
    loadcmd = r"""sqlldr DEVELOPER/<@=snpRef.getInfo("DEST_PASS") @>%s control="%s" log="%s" > "%s" """ % (oracle_sid,ctlfile, logfile, outfile)
    rc = os.system(loadcmd)
    if rc <> 0 and rc <> 2:
    raise "Load Error", "See %s for details" % logfile
    if rc==2:
    reportnbrows()

  • Unable to configure Flatfile Reconciliation in OIM 9.1.0.1

    Hello,
    I am facing this weird issue with OIM in my new project. I have followed the below steps to configure the flatfile reconciliation using as a trusted source.
    1. Transport Provider- Shared Drive
    2. Format Provider- CSV
    I have filled the location for the Staging Directory(Parent) and Archiving directory. I am using Cp1251 for File Encoding.
    The problem which I am facing is that as soon as I move forward from the above step for Mapping, I do not see any fields under the Source and Reconciliation Staging
    in Step 3: Modify Connector Configuration. What could possibly be the reason for this? The flat file is already there in the parent directory location before starting the configuration of Flatfile GTC. There are no logs generated for this for obvious reasons. It would be great if someone can reply soon as I have been facing this issue since yesterday morning.

    I created a new flat file and a new connector. Now I am facing a different issue. The data is getting reconciled as per the reconciliation events and the Status is "Event Received".
    Basic Mapping is;
    login->User_login
    firstname->First name
    lastname->Last name
    organization->Organization Name
    User Type->Xellerate Type
    Employee Type->Role
    Password-> hardcoded as "abcd@12345"
    The error which I am getting is;
    2012-10-27 09:03:29,370 DEBUG [XELLERATE.DATABASE] select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcADJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_post_update_sequence>0 order by dvt.dvt_post_update_sequence
    2012-10-27 09:03:29,371 INFO [XELLERATE.PERFORMANCE] Query: DB: 1, LOAD: 0, TOTAL: 1
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ/eventPreInsert left.
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getAllowedOperation entered.
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getAllowedOperation - Data: mstableName - Value: adj
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getAllowedOperation:else entered.
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getAllowedOperation:if moData.isNull entered.
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:preWrite entered.
    2012-10-27 09:03:29,372 DEBUG [XELLERATE.DATABASE] select usr_key from usr where USR_LOGIN=? and USR_STATUS!='Deleted'
    2012-10-27 09:03:29,373 INFO [XELLERATE.PERFORMANCE] Query: DB: 1, LOAD: 0, TOTAL: 1
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:preWrite left.
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getPreparedStatementForUpdate entered.
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getWhere entered.
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getWhere - Data: psKeyName - Value: adj_key
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getWhere - Data: msKeyValue - Value: 14
    2012-10-27 09:03:29,373 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getWhere left.
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.SERVER] Class/Method: tcTableDataObj:getPreparedStatementForUpdate left.
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.DATABASE] update adj set ADJ_PERSIST=?, ADJ_INST_NAME=?, ADJ_UPDATE=?, adj_rowver=? where adj_key=14 and adj_rowver=HEXTORAW('0000000000000000')
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.PREPAREDSTATEMENT] Class/Method: tcDataBase/writeStatement - Data: psSql - Value: update adj set ADJ_PERSIST=?, ADJ_INST_NAME=?, ADJ_UPDATE=?, adj_rowver=? where adj_key=14 and adj_rowver=HEXTORAW('0000000000000000')
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.PREPAREDSTATEMENT] Class/Method: tcDataBase/writeStatement: Param: 1 is set to null
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.PREPAREDSTATEMENT] Class/Method: tcDataBase/writeStatement: Param: 2 is set to null
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.PREPAREDSTATEMENT] Class/Method: tcDataBase/writeStatement: Param (Timestamp): 3 is set to 2012-10-27 09:03:29.372
    2012-10-27 09:03:29,374 DEBUG [XELLERATE.PREPAREDSTATEMENT] Class/Method: tcDataBase/writeStatement: Param (ByteArray): 4 is set to java.io.ByteArrayInputStream@126ec30c
    2012-10-27 09:03:29,376 INFO [XELLERATE.PERFORMANCE] Query: DB: 2
    2012-10-27 09:03:29,377 DEBUG [XELLERATE.AUDITOR] Class/Method: AuditEngine/getAuditEngine entered.
    2012-10-27 09:03:29,377 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ/eventPostUpdat entered.
    2012-10-27 09:03:29,377 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ/updateAdpStatus entered.
    2012-10-27 09:03:29,377 DEBUG [XELLERATE.SERVER] Class/Method: tcDataBase/readPartialStatement entered.
    2012-10-27 09:03:29,377 INFO [XELLERATE.DATABASE] DB read: select adp.adp_key, adp_status, adp_rowver from adp adp, adt adt where adt.adp_key = adp.adp_key and adt.adt_key = 16
    2012-10-27 09:03:29,377 DEBUG [XELLERATE.DATABASE] select adp.adp_key, adp_status, adp_rowver from adp adp, adt adt where adt.adp_key = adp.adp_key and adt.adt_key = 16
    2012-10-27 09:03:29,378 INFO [XELLERATE.PERFORMANCE] Query: DB: 1, LOAD: 0, TOTAL: 1
    2012-10-27 09:03:29,378 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ:updateAdpStatus - Data: sAdpStatus - Value: Recompile
    2012-10-27 09:03:29,378 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ/updateAdpStatus left.
    2012-10-27 09:03:29,378 DEBUG [XELLERATE.SERVER] Class/Method: tcDataBase/readPartialStatement entered.
    2012-10-27 09:03:29,378 INFO [XELLERATE.DATABASE] DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcADJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_post_update_sequence>0 order by dvt.dvt_post_update_sequence
    2012-10-27 09:03:29,379 DEBUG [XELLERATE.DATABASE] select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcADJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_post_update_sequence>0 order by dvt.dvt_post_update_sequence
    2012-10-27 09:03:29,380 INFO [XELLERATE.PERFORMANCE] Query: DB: 1, LOAD: 0, TOTAL: 1
    2012-10-27 09:03:29,380 DEBUG [XELLERATE.SERVER] Class/Method: tcADJ/eventPostUpdat left.
    2012-10-27 09:03:29,380 DEBUG [XELLERATE.SERVER] Class/Method: tcDataObj/save left.
    2012-10-27 09:03:29,393 DEBUG [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: UsernamePasswordLoginModule/initialize - Data: dburl - Value: {2}
    2012-10-27 09:03:29,393 DEBUG [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: UsernamePasswordLoginModule/initialize - Data: dbuser - Value: {2}
    Please suggest what i should do now.
    Edited by: user13355494 on Oct 26, 2012 2:46 AM

  • Error in loading the data from flatfile

    Hello All,
           when am loading the data from flat file iam getting error  "ERROR4 WHEN LOADING THE EXTERNAL DATA"  is it because of mapping  in the transferrules or error in the flat file.
    Points will be assigned to all  helpful answer.
    Thanks & Regards
    Priya

    Hii Priya,
    The reasons may be the file is open, the format/flatfile structure is not correct, the mapping/transfer structure may not be correct, presence of invalid characters/data inconsistency in the file, etc.
    Check if the flatfile in .CSV format.
    You have to save it in .CSV format for the flatfile loading to work.
    Also check the connection issues between source system and BW or sometimes may be due to inactive update rules.
    Refer
    error 1
    Find out the actual reason and let us know.
    Hope this helps.
    Regards,
    Raghu.

  • Error while collecting Custom FlatFile related InfoCubes in CTS

    Hi,
    I am getting the error while collecting the FlatFile related custom InfoCube that the cube is not in the version A.  I did checked that the cube is in the Active version i.e. Revised Version = Active Version; Object Status = Active, executable.
    Any idea how to resovle this issue ?
    Here is the information on the error message.....
    Object 'PPY_C101' (CUBE) of type 'InfoCube' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name 'PPY_C101' (in transport request CUBE) of type 'InfoCube' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    Thanks,

    Hi,
    I am getting the error while collecting the FlatFile related custom InfoCube that the cube is not in the version A.  I did checked that the cube is in the Active version i.e. Revised Version = Active Version; Object Status = Active, executable.
    Any idea how to resovle this issue ?
    Here is the information on the error message.....
    Object 'PPY_C101' (CUBE) of type 'InfoCube' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name 'PPY_C101' (in transport request CUBE) of type 'InfoCube' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    Thanks,

  • Error while loading data to ods object from flatfile

    hello all
    Iam loading data from flatfile to ods object and the processing type is PSA and then to data target(package by package),data arrived in PSA(its green) but in monitor the request is in red and in details tab of <b>subsequent processing</b> <b>its showing as ODS activation</b><b>?(change-log):not yet activated</b> and overall the error is <b>Missing Messages</b>.
    and its also saying like "Activation of data records from ODS object ODS_SALES terminated.
    and in help node its saying like data arrived in BW and try to change the request from red to green?
    can anyone tell me what will be the problem?
    In settings of ODS object everthing is set to automatically.
    many thanks
    balaji

    Hi praveen
    problem is <b>generic</b> here.
    In monitor tab the <b>request</b> and <b>overall</b> the statuts is "<b>RED</b>",but when I went into the <b>mange</b> tab of ODS object here the request is "<b>GREEN</b>",but the data is not available here.but data is still available in "<b>New data</b>",how come data is not yet activated.
    bcoz in settings all are set to "automatically",so there is no question of manual activation?
    One more question is in Settings Iam finding one column like "<b>Unique Data Records</b>",whats's this,if v check this what happens ifnot what happens?
    regrads
    balaji

  • Creation of IDoc XML very slow compared to IDoc Flatfile

    Hi everyone,
    I did a test in our ERP6 system and created IDoc files for a few invoices. The result is that the creation of a XML Idoc is 22x slower than the creation of a flatfile Idoc. The creation of one large IDoc file with 1000 invoices took ~15 seconds as flatfile and ~5:30 minutes as XML. So the choice between flatfile or XML is really a performance question for me. Is that normal? I expected a difference but not that much.
    Can I speed up the XML creation anyhow? XML is better to process and I really want to use it, but I can not with this bad performance...
    Thank you!
    Regards
    Andreas

    So the choice between flatfile or XML is really a performance question for me. Is that normal?
    Yes, it is normal. For every byte of data in xml file, it needs to create multiple bytes of structures according to XML format.
    But, i am wondering, why u need to go for xml, when there is no PI installed.
    Because, end output file is always in flatfile format.

  • Flatfile datasource in BI 7

    Hi
    This is the first time i am creating the datasource in the BI 7.0.
    I want to pull the data from the flatfile.
    In create datasource, Fields tab--> i have entered few filed names and their descriptions, data type and lenghts.
    But when i activate the datasource, i am getting the msg:
    Field Amount: Missing currency field/unit field
    Field tax: Missing currency field/unit field
    What should i do with this
    Regards
    Annie

    Hi
    Thanks for the replies
    In my first filed in flat file is docket number and second is amount
    Docket number Amount
    123000----
    547896523
    123001----
    875496584
    123002----
    789652145
    When i click 0n the load sample data
    For the field1 the data type its selecting is "TIMS"
    and for the field2 the data type its "CHAR"
    I could able to change the first field from "tims" to "Char"
    but for the second field its not allowing me to change to number or integer.
    So if i map that char field to my object which is of type amount or number....what wuill be the result?
    Can u also plz xplain with example regarding how internal, external and check are used in proposal tab.
    Regards
    Annie

  • Need help in transferring data from flatfiles to SAP R/3 tables

    Hi,
    I need to *transfer data in the flatfiles (NON SAP SYSTEM) to SAP R/3 tables*. Can we do it with a help of program ?
    Please help me out
    Thanks and regards,
    Shiva shekar k

    Hi Shiva,
        This code will be helpful to you.
    *Code used to create BDC
    *& Report  ZBDC                                               *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS

  • Extraction from sap r/3 tables to flatfile

    hello Guru's
    i am new to this feild. we have a requirement that we need to extract data from hr feilds of different hr tables in sap to flat file. we have a flatfile structure. we don't have some of feilds in sap R/3 compared to flatfile. we need to fill those feilds also with logic.
    plz show me rigth direction with example code so that i can slove the problem.
    thanks
    rad

    Hi, 
    Check this sample program.
    REPORT  zdownempdata                                         .
    INFOTYPES: 0000, 0001, 0007, 0008, 0121, 0615.
    NODES: pernr.
    TABLES: t001p.
    TYPES: BEGIN OF t_employee,
           INCLUDE STRUCTURE hrms_biw_io_occupancy.
      begda     TYPE begda,
      endda     TYPE endda,
      pernr     TYPE pernr_d,
      rfpnr     TYPE rfpnr,
      bukrs     TYPE bukrs,
      werks     TYPE persa,
      btrtl     TYPE btrtl,
      persg     TYPE persg,
      persk     TYPE persk,
      orgeh     TYPE orgeh,
      stell     TYPE stell,
      plans     TYPE plans,
      kokrs     TYPE mast_coar,
      kostl     TYPE mast_cctr,
      abkrs     TYPE abkrs,
      molga     TYPE molga,
      trfar     TYPE trfar,
      trfgb     TYPE trfgb,
      trfkz     TYPE trfkz,
      trfgr     TYPE trfgr,
      trfst     TYPE trfst,
      bsgrd     TYPE bsgrd,
      ansal     TYPE ansal_15,
      ancur     TYPE ancur,
      empct     TYPE empct,
      stat2     TYPE stat2,
      ncsdate     TYPE hiredate,
      sltyp     TYPE p_sltyp,
      slreg     TYPE p_slreg,
      slgrp     TYPE p_slgrp,
      sllev     TYPE p_sllvl,
      ansvh     TYPE ansvh,
      vdsk1     TYPE vdsk1,
      sname     TYPE smnam,
    END OF t_employee.
    DATA: it_employee TYPE STANDARD TABLE OF t_employee INITIAL SIZE 0,
          wa_employee TYPE t_employee.
    TYPES: BEGIN OF t_emptexts,
           INCLUDE STRUCTURE hrms_bw_txt_employee.
      DATEFROM     TYPE RSDATEFROM,
      DATETO     TYPE RSDATETO,
      PERNR     TYPE PERSNO,
      TXTMD     TYPE EMNAM,
    END OF t_emptexts.
    DATA: it_emptexts TYPE STANDARD TABLE OF t_emptexts INITIAL SIZE 0,
          wa_emptexts TYPE t_emptexts.
    TYPES: BEGIN OF t_contract,
           INCLUDE STRUCTURE pa0615.
      pernr TYPE p0615-pernr,
      begda TYPE p0615-begda,
      endda TYPE p0615-endda,
      aedtm TYPE p0615-aedtm,
      ctype TYPE p0615-ctype,
      cbeg  TYPE p0615-cbeg,
      cend  TYPE p0615-cend,
    END OF t_contract.
    DATA: it_contract TYPE STANDARD TABLE OF t_contract INITIAL SIZE 0,
          wa_contract TYPE t_contract.
    DATA: it_tabemp TYPE filetable,
          gd_subrcemp TYPE i,
          it_tabempt TYPE filetable,
          gd_subrcempt TYPE i,
          it_tabcont TYPE filetable,
          gd_subrccont TYPE i.
    DATA: gd_downfile TYPE string.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
    PARAMETERS: p_emp   LIKE rlgrap-filename,
                p_empt  LIKE rlgrap-filename,
                p_cont LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK block1.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_emp.
      REFRESH: it_tabemp.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabemp
          rc                = gd_subrcemp.
      LOOP AT it_tabemp INTO p_emp.
      ENDLOOP.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_empt.
      REFRESH: it_tabemp.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabempt
          rc                = gd_subrcempt.
      LOOP AT it_tabempt INTO p_empt.
      ENDLOOP.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cont.
      REFRESH: it_tabcont.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabcont
          rc                = gd_subrccont.
      LOOP AT it_tabcont INTO p_cont.
      ENDLOOP.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    GET pernr.
    Selecting the latest infotype record
      rp_provide_from_last p0000 space pn-begda pn-endda.
      rp_provide_from_last p0001 space pn-begda pn-endda.
      rp_provide_from_last p0007 space pn-begda pn-endda.
      rp_provide_from_last p0008 space pn-begda pn-endda.
      rp_provide_from_last p0121 space pn-begda pn-endda.
      rp_provide_from_last p0615 space pn-begda pn-endda.
      MOVE-CORRESPONDING p0001 TO wa_employee.
      wa_employee-rfpnr = p0121-rfp01. "?????
      MOVE-CORRESPONDING p0007 TO wa_employee.
      MOVE-CORRESPONDING p0008 TO wa_employee.
      MOVE-CORRESPONDING p0000 TO wa_employee.
      SELECT SINGLE molga
        FROM t001p
        INTO wa_employee-molga
       WHERE werks EQ p0001-werks AND
             btrtl EQ p0001-btrtl.
      SELECT SINGLE trfkz
        FROM t503
        INTO wa_employee-trfkz
       WHERE persg EQ p0001-persg AND
             persk EQ p0001-persk.
      CALL FUNCTION 'HR_ENTRY_DATE'
        EXPORTING
          persnr                     = pernr-pernr
      RCLAS                      =
      BEGDA                      = '18000101'
      ENDDA                      = '99991231'
      VARKY                      =
       IMPORTING
          entrydate                  = wa_employee-ncsdate
    TABLES
      ENTRY_DATES                =
    EXCEPTIONS
       ENTRY_DATE_NOT_FOUND       = 1
       PERNR_NOT_ASSIGNED         = 2
       OTHERS                     = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    append employee data
      APPEND wa_employee TO it_employee.
      CLEAR: wa_employee.
      wa_emptexts-datefrom = p0001-begda.
      wa_emptexts-dateto   = p0001-endda.
      wa_emptexts-pernr    = p0001-pernr.
      wa_emptexts-txtmd    = p0001-ename.
    append employee texts data
      APPEND wa_emptexts TO it_emptexts.
      CLEAR: wa_emptexts.
      MOVE-CORRESPONDING p0615 TO wa_contract.
    append employee contract data
      APPEND wa_contract TO it_contract.
      CLEAR: wa_contract.
    *END-OF-SELECTION.
    END-OF-SELECTION.
    download employee data
      IF NOT p_emp IS INITIAL.
        gd_downfile = p_emp.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_employee.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    download employee texts data
      IF NOT p_empt IS INITIAL.
        gd_downfile = p_empt.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_emptexts.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee text file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee text file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    download contract data
      IF NOT p_cont IS INITIAL.
        gd_downfile = p_cont.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_contract.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee contract file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee contract file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    - Selvapandian Arunachalam

  • Variable substitution from flatfiles

    Hello all,
    I have a scenario where I just route a flatfile through XI. No mapping nothing. In the target directory I want to use the first three digits of the flatfile as a variable. Unfortunately the file is a *.txt and not an xml. Is tehre another way to extract the information from the file?
    Thanks in advance!
    Regards
    Cornelius

    hiHi,
    If you are using your XI as a file transfer service that picks up a flat file and then dumps it into another location without mapping etc, then you can use the adapter specific parameters and pass the source file name and useit as your target filename.
    but, you will not get only the first 3 characters in this case. You will get the entire filename,
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Also, take a loot at michals FAQ , Adapters .. Question 5.
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Regards,
    Bhavesh

  • Data Conversion for Flatfiles in Sender-Adapter or Mapping

    Hi folks,
    I get a flatfile - let's say - with three fields with names f1, f2 and f3, with the corresponding values. The adapter creates the following xml
    <node1>
      <f1>v1</f1>
      <f2>v2</f2>
      <f3>v3</f3>
    </node1>
    Has anybody an idea how to convert these structure into
    <nodeA>
      <name>f1</name>
      <value>v1</value>
    </nodeA>
    <nodeA>
      <name>f2</name>
      <value>v2</value>
    </nodeA>
    <nodeA>
      <name>f3</name>
      <value>v3</value>
    </nodeA>
    without using Java? And if it is not possible how would a Java mapping look like? Or is it possible to create another structure with the file-adapter?

    You can make it with a graphical mapping, sending the normal XML to the integration server:
    <node1>
    <f1>v1</f1>
    <f2>v2</f2>
    <f3>v3</f3>
    </node1>
    and then changing the structure with a graphical mapping to:
    <nodeA>
    <name>f1</name>
    <value>v1</value>
    </nodeA>
    <nodeA>
    <name>f2</name>
    <value>v2</value>
    </nodeA>
    <nodeA>
    <name>f3</name>
    <value>v3</value>
    </nodeA>
    Regards,
    Sandro

Maybe you are looking for