Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

Hi Guys,
                I got an issue , My flat file having multiple header lines
TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                        Employee/       Employee/
Employee Full Name/                                                       Company         Company                        Allocation
Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
some lines of data and again
TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                        Employee/       Employee/
Employee Full Name/                                                       Company         Company                        Allocation
Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
in this case how could I separate the header lines from the flat file and update the details to my internal table.
kindly help me on this issue.
Thanks and regards,
M.S.Amirtharajvijay.

Hi Amirthraj,
If the flat file is static (if the content within it is same for all) then use the offset concept. First get the contents of the flat file into an internal table and later find the field that has to be in final internal table within the line, calculate the offset for the line and get the value into an workarea. Finally modify/append the work area into an internal table. Also wait for other experts answers for any other hassle free way to achieve the requirement.
With Regards,
Giriesh M

Similar Messages

  • How to get the constraintlist and column name in a table?

    Hi,
    can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.
    Thanks,
    Deekay

    Deekay wrote:
    can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.To get constraint type:
    select constraint_type from user_constraints where constraint_name = 'YOUR CONSTRAINT NAME';To get constraint columns:
    SELECT column_name from user_cons_columns where constraint_name = 'YOUR CONSTRAINT NAME';SY.

  • How to compare the names and types columns of two tables?

    Assume I have two tables aaa and bbb
    How do I compare the columnnames and types of the two columns?
    It should not matter if one of them has e.g. an additional index.
    Furthermore it does not matter if the rows/row values differ.
    Peter

    SQL> desc emp
    Nome                   Nullo?   Tipo
    EMPNO                  NOT NULL NUMBER(4)
    ENAME                           VARCHAR2(10)
    JOB                             VARCHAR2(9)
    MGR                             NUMBER(4)
    HIREDATE                        DATE
    SAL                             NUMBER(7,2)
    COMM                            NUMBER(7,2)
    DEPTNO                          NUMBER(2)
    SQL> desc emp2
    Nome                   Nullo?   Tipo
    EMPNO                  NOT NULL NUMBER(4)
    ENAME                           VARCHAR2(10)
    MGR                             VARCHAR2(10)
    HIREDATE                        DATE
    SAL                             NUMBER(7,2)
    COMM                            NUMBER(7,2)
    DEPTNO                          NUMBER(2)
    NEWCOL                          NUMBER
    SQL> with t1 as
      2  (select column_name, data_type from user_tab_columns where table_name='EMP'),
      3  t2 as
      4  (select column_name, data_type from user_tab_columns where table_name='EMP2')
      5  Select a.column_name, a.data_type, b.column_name, b.data_type
      6  from t1 a full outer join t2 b on a.column_name=b.column_name;
    COLUMN_NAME                    DATA_TYPE                      COLUMN_NAME                    DATA_TYPE
    EMPNO                          NUMBER                         EMPNO                          NUMBER
    ENAME                          VARCHAR2                       ENAME                          VARCHAR2
                                                                  NEWCOL                         NUMBER
    MGR                            NUMBER                         MGR                            VARCHAR2
    HIREDATE                       DATE                           HIREDATE                       DATE
    SAL                            NUMBER                         SAL                            NUMBER
    COMM                           NUMBER                         COMM                           NUMBER
    DEPTNO                         NUMBER                         DEPTNO                         NUMBER
    JOB                            VARCHAR2
    Selezionate 9 righe.Max
    http://oracleitalia.wordpress.com
    Edited by: Massimo Ruocchio on Feb 21, 2010 1:27 AM
    Changed query.

  • How to separate the value and currency

    Hi Experts,
    We have data in report like this 12545EUR
                                                       24521DM
    Now our requirement is  separate the value and currency.
    Can anybody tell me what i do in Query designer.
    Thanks in Advance

    Hi
    NODIM is used in a scenario like u want find the amount of product then the formula for the amount is price * quantity
    AMOUNT = PRICE * QUANTITY
    IN this case the unit for PRICE ,let say EUR and for quantity the unit is EA and say we have price value = 10 EUR and quantity value   = 5 EA
    if u apply the above value in the above formula , then it leads to the value as shown below,
    AMOUNT = 10 EUR * 5 EA = 50 EUR EA
    In this case the units for the amount should be EUR not "EUR EA" in this case we have to eliminate the units for PRICE . so that can be done by using the
    amount = /BIC/NI_AMT * NODIM(/BIC/NI_QTY)
                 = 10 EUR       *   5         = 50 EUR
    Hope u got it,
    Revert back in case of any query ,
    Assign points ,
    Thanx & Regads,
    raviChandra

  • How to separate the PRno and PRitem

    hi experts,
                  i m working on stxh table,in this table a field name
    ''Text Name = 001000198700010" IS EXISTING ,here prno and pr item both are attached ,i want to separate both ,what logic sud i use............

    Hi
    First 10 characters are PR number =   0010001987
    next 5 digits are Item no  =  00100
    reward if useful
    regards,
    Anji

  • How to separate the source and the measured current

    Hi Everybody,
    I'd like to know if there is some way to separate the source and the measured current and just writte an mathematical expression to make a dependence between the source and the said parameter. Thanks in advance.

    Sure,
    Here is the deal:
    I'd like to build a circuit with dependent sources, but instead of connecting the sense of current/voltage, I'd like to know if there is a way to writte a sentence for the source which is dependent of a parameter.
    For example:
    In this circuit I just wrote an expression for the source and its respective parameter. (8*Io).
    Attachments:
    images.jpg ‏7 KB

  • How to clear the alertlog and trace file?

    since the database was created,the log and trace file have't been cleared.how to clear the alertlog and trace file?3tx!!

    Hi Friend.
    You can eliminate all the files ".TRC" (trace files) to purify the directory BDUMP. These are not necessary files in order that the Oracle Server works.
    The file Alert.log is a file that the Oracle Server can recreate if you eliminate it. When Oracle Server's process realizes certain action (for example ARCH), Oracle creates again the file (if it does not exist), or it adds text (if it exists) with the new income.
    It can happen, that appears some Bug if the file Alert.log does not exist. Though this is slightly possible.
    Anyhow I recommend to you in UNIX to use from the prompt: $> filename in order to take the size of the file to 0 bytes, without need to eliminate it. Is the same thing when you want to purify the listener.log, the sqlnet.log or the sbtio.log.
    I wait for my commentaries you be of great help.
    Bye Friend...

  • How to embed the UserID and Password in WSDL

    Hi
    is there any way to embed the UserID and Password in the WSDL file that is generated by XI.
    Thank You,
    Madhav

    Hi,
    It is not possible by using SOAP adapter. But you can use http adapter with user and password instead of SOAP adapter.
    Follow Stefan Grube's postings in thread how to add the username and password into the WSDL
    Regards,

  • Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same

    Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same and is there any pre stalled text editor on mac if yes then where and if no then which text editor to install and how to install gcc...please help me out thanks in advance !!!

    I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding.
    Why? If you are developing and writing code on a Mac why would you not use the tools Apple has given you? And Xcode, once you get use to it, is a very nice development environment that will make you life a whole lot easier.
    If you insist on using an editor and the terminal I would recommend  Emacs   but it has a long learning curve so  something like TextWrangler  will work too.
    As for the compiler if you have Xcode installed install the command line tools and you will be able to compile from the terminal.
    good luck

  • How to separate the Webi executing duration

    Dear experts,
    I'm running a webi report connected to backend BW via universe. Any idea on how to separate the webi executing duration into BO side part, BW side part?
    Thanks,

    Hi Hong ,
    *The overall runtime can be split into 5 different parts (Database, OLAP, MDX, RFC and
    WebIntelligence) .
    *We have to gather the statistics in the SAP BW system. Use transaction SE16 (Data Browser)
    and go to table RSDDSTAT_OLAP
    *Enter User name and UTIME and calendar date object name (Bex query)
    *Press the execute button and you will get the table with all the statistics in SAP BW. Now, you
    have to separate the backend runtimes into database, OLAP and MDX runtime.
    *Gathering the Database Runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 9000 to 9011.
    *Gathering the OLAP Runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 2500 to 4999.
    *Gathering MDX runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 40000 to 40036.
    *Gathering the Single Statistical Records STAD
    To get the memory consumption, Remote Function Calls (RFC) and the details about all the BAPIs
    called during report execution, we need to enter transaction STAD in SAP BW.
    When starting STAD, set a filter on the connection user for the Universe and select the appropriate
    start time and the length of the interval to be investigated (according to the total runtime of the report).
    This will return a set of RFC calls to the backend. Normally, the major runtime influencing part can be
    easily determined by the column “Response time (ms).
    Subtract all this times from Webi report refresh time , we get time taken at BO end.

  • Camileo S20 - How to display the date and time

    Hi, to all. I have got as Christmas present the Camileo S20 and I am not able to display the date and time at video. In manual is no mention about this, just how to set the correct date and time. But what is intention of setting the date and time into camera, if it is not possible to display them on video ?

    Hi,
    of course, I did it repeatly, it is written in my question above. I am not stupid.
    This question is aimed to owners of camera Camileo S20 and also Camileo S10 - Camileo S20 is derived of Camileo S10, may be any of them discovered the way how to get the date and time into video.

  • Multiple Header line in Receiver File adapter

    Hi,
    I have an issue in Receiver File adapter with multiple header lines. I am able to get only 1 header lines in the receiver file but not multiple header lines with 'nl' since it is static in file mode
    [CommunityTag:Header]
    empNo,EmpName,Age
    [CommunityTag]
    I tried with the below in content conversion one as below with no luck
    Root.addHeaderLine=1
    Root.headerLine=[CommunityTag:Header] 'nl' empNo,EmpName,Age 'nl' [CommunityTag]
    Root.fiedSeparator=,
    Root.endSeparator='nl'
    I am getting the Header line as same row as static text.
    Can you advise this.

    Hi Gabriel, I suggest to produce the header lines from additional nodes in the message payload. That means you need to modify the data type of the target message in order to generate an extra structure in the payload. Use constants in message mapping to generate the header column names, e.g.
    <Header>
      <H1>CommunityTag:Header</H1>
      <H2>empNo,EmpName,Age</H2>
      <H3>CommunityTag</H3>
    </Header>
    In content conversion you have to convert the Header row with
    Header.endSeparator='nl'
    You won't need parameter addHeaderLine anymore then.
    Regards, Martin

  • Check on multiple header line data.

    Hi All,
    I have one requirement where i need to check the multiple accounting document header line.
    Kindly suggest how to check the above requirement.
    Thanks in Advance!
    Regards,
    Chirag

    Hi All,
    Sorry for the short description.
    Currently i am validating only the one header line data of expense spread sheet file with vendor. but the now requirement has changed and there can be a multiple header line item also.
    So i need to check for each header line item whether vendor already exist or not.
    I am able to check it for 1 header line item, Kindly suggest how to check it for multiple header line item.
    Thankyou.
    Chirag

  • Multiple Header Line In HIERSEQ ALV

    Hi Experts,
    Please guide me how to get miltile Header lines in the HIERSEQ Alv , My requirment it develop a genledger for customers in which the Address of customer should be in 3 or four lines then followed by its balances. Please suggest me ...
    Regards,
    Prakash

    Hi,
    You need to pass the Row number to the filed catlog in order to display multiple header lines.
    For example,
       wl_fieldcat-row_pos = 1.  " This field will be displayed in first row
      wl_fieldcat-col_pos     = 1.
      wl_fieldcat-fieldname   = 'VBELN'.
      wl_fieldcat-tabname     = 'T_VBAK'.
      wl_fieldcat-outputlen   = 20.
      Append wl_fieldcat to t_fieldcat.
      wl_fieldcat-row_pos = 2.    " This field will be displayed in Second row
      wl_fieldcat-col_pos     = 1.
      wl_fieldcat-fieldname   = 'VBELN'.
      wl_fieldcat-tabname     = 'T_VBAK'.
      wl_fieldcat-outputlen   = 20.
      Append wl_fieldcat to t_fieldcat.
    Regards,
    Rajneesh

  • In LSMW using BAPI Scenario, how to assign the same file to HEADER and ITEM

    Hi,
    i got a problem when we are in ASSIGN FILES step how to assign the same file to both HEADER and ITEM Structures?

    Hi,
    When defining the file in specify files step check the option 'Data for Multiple Source Structures'.
    Hope it helps.
    Thanks,
    Mahesh

Maybe you are looking for

  • ITunes video crash with Windows Vista

    Does any one know an alternative to playing movies/tv shows purchased through iTunes on Quicktime? Quicktime crashes Vista right now, but is embedded with iTunes. Any was to play the media on something else? AMD Athlon 64 X2 Dual Core Processor 3800+

  • Media Encoder stops working and I get the goat.

    I have downloaded the latest update for Media Encoder CC 2014 8.0.1.48. All day I have had hit and miss success when encoding. Sometimes it works, and sometimes it will fail and I get the goat sound. I hate the goat sound. This has only happened sinc

  • Open project file in signalExpr​ess

    Hi, all, When I tried to open an existing SignalExpress project file copied from another laptop on my laptop, I got the following error message: Installed component versions are not compatible with the version of the LabVIEW SignalExpress. Please ins

  • Installing OracleVM on Linux 64 bit machine

    Dear Experts, Sorry for such seemingly dumb questions. I have a 64 Linux server. Redhat 5.5. When I downloaded the Redhat files, I also downloaded Oracle VM. /download/oraclevm64/V21104-01.zip /download/oraclevm64/V18419-01.zip /download/oraclevm64/V

  • Horrible Verizon FiOS service south NJ - slow internet, excuses, I have no where to turn.....

    My saga starts around 4pm yesterday, when out of the blue I noticed my download speeds are PAINFULLY slow. Now, mind you, my service has been lightening fast since I signed up in June. I'm on the 25/25 plan and have always recieved full speed. Sudden