Regarding Requirement Query

hi
this is my requirement
Read  a CSV file ( Header, Body, Trailor)
Reading File name is required along with Time Stamp.
Part of file name need to be extracted to make a query
Select Query to table 1 (Synchronous)
Select Query to table 2 (Synchronous)
Select Query to table 3 (Synchronous)
Insert into one table using all previous Select and CSV data.
Collect no of rows updated.
Give me good solution how to solve this

Hi,
1)Read a CSV file ( Header, Body, Trailor)
You need to use the File content conversion using Key field value refer the belwo weblog
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
2) Reading File name is required along with Time Stamp.
You need to use the dynamic configuration and addtitional parameter tab in File communication channel
Refer the below weblog
Problem in dynamic file name in File reciever adapater
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
3) Part of file name need to be extracted to make a query
Select Query to table 1 (Synchronous)
Select Query to table 2 (Synchronous)
Select Query to table 3 (Synchronous)
Insert into one table using all previous Select and CSV data.
I think in this case u need to use the lookup in DB.
DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
Collect no of rows updated.
What is ur output is it DB or File??
Thnx
Chirag
Reward points if it hepls.

Similar Messages

  • Regarding a query that gives a count of a certain combination of characters

    Hi all,
           I had a query to be created that gives a count of a certain combination of characteristics from a cube.
    Say a cube has 4 characteristics , Say A, B, C, D.
    Now amongst all the records that occured in the Cube I need a report of the following A, B and be able to see the count of the number of times a combination of A B occured i.e. variations of C and D for a certain A and B.
    For example say in the cube the A B C D has the following contents
    a1,b1,c1,d1
    a1,b1,c1,d2
    a1,b1,c1,d3
    a1,b1,c2,d1
    a1,b2,c1,d1
    a1,b2,c1,d2
    a1,b2,c2,d1
    a1,b2,c2,d2
    a2,b1,c1,d1.
    the report should show
    a1,b1,4 ,where 4 is the number of combination of a1 & b1.
    a1,b2,4 ,where 4 is the number of combination of a1 & b2.
    a2,b1,1 ,where 1 is the number of combination of a2 & b1.
    i want a help from all regarding this query.
    Thanking you in advance

    If you are in BW 3.5 or SEM I'd do this with a BPS-Exit that fills a key figure 'Combination Count' with 1 for each combination. If you need any details programming a BPS exit function feel free to ask.
    If you are in BW 3.0 or 3.1 without BPS-functions or you don't want to do BPS-setup just to create a user exit I'd suggest the following.
    1. Create an ODS CCOUNT that contains A,B,C,D and a key figure COUNT.
    2. Create an export data source for your cube.
    3. Create uodate rules from your cube to the ODS and set the key figure to constant 1 (with overwrite).
    4. Load your cube data into the ODS object.
    5. Load the ODS values back into the cube.
    This could lead to problems if you have other InfoObjects in your cube like time or version where you want to filter.
    Final method would be a virtual key figure but I'd try it this way first.
    B est regards
       Dirk

  • Regarding ABAP Query authorization group

    Hi Team,
    This is regarding ABAP Query!
    I have created one authorization group, for testing i have assigned my id in authorization group.
    After creation of ABAP query,standard program got generated. Now i have created one transaction code at the last for the ABAP Query.
    Now the isse is even though i have deleted my id from the authorization group. I am able to execute the query from SQ01 and with the Transaction code .
    It should not happen...i want who soever id is mapped to the transaction code ...that member should only be able to run that query, otherwise there is no use of authorization group.
    Please help me out in this case.
    Thanks & Regards,
    Anil Kumar Sahni

    Are you sure that you don't have access to that authorisation group? Execute report RSUSR002. In the 'Authorization Object 1' block inform  S_TABU_DIS in 'Auth.Object' and accept. Then inform Activity=03 and Auth.Gruop= your group.
    You will get a list of all the users which, theoretically, will be able to execute the query. If you press 'Roles' or 'Profiles' in the toolbar of the listing you will get to know why you have authorisation. May be you have the SAP_ALL profile.
    Also, one more thing to take into account: how have you created your transaction? Is it referring directly to the generated report? Then it is an error, you should execute program SAP_QUERY_CALL. Read this post: [Relate transaction to query;

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

  • Require query in Visual composer

    Hi,
        I want to call below query in Visual composer.
          1) SAP query from R/3 server 
          2) BEX query from BW server.
              I am able to see BAPI/RFC from R/3 server but not query. Do we require any additional thing with VC to call those queries?
                        I have heard about connecter, When we install VC it comes with that or we need to add connecter explicitly to call query. If yes then what I need to do. Let me know it’s urgent.

    Hi Sachin,
    I'm sorry for the delay. SDN had some problems the last minutes..
    Here the link to the weblog, helping you to set up both systems:
    <a href="/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer">/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer</a>
    Best Regards, Benni

  • Question regarding SAP query (SQ01& SQ02)

    Hello everyone,
    I have been assigned a task of creating a SAP query in SQ01. The report requires me to incorporate a drill down functionality.
    i.e. when I double click on a material I should be able to see the components of that material.
    My question is "Is it possible to incorporate a drill down functionality in a Query through SQ01".
    If yes then how.
    Please provide me with some documentations or example codes for this.
    Regards,
    Deepti Jain.

    Deepti,
    There are 2 ways to get the output  From SAP query.
    1.Under record processing :
          if you don't write any code in Start of selection event for output
         (WRITE statements)  we can not have any control on that.
    2. Under start of selection event :
         If you write any code in START OF SELECTION event like
         get the data in internal table and loop the internal table
         In loop WRITE statement to display with format and try to use
        Interactive report commands Here. I think it will work fine.

  • Help Regarding SQL QUERY

    I have a column with values
    Sample Data
    EMPNO
    =====
    1
    2
    3
    4
    5
    6
    7
    8
    .I would like to display all the values of the column in a single row with multiple columns
    I do not want to create any other objects. i require a single query.
    Sample Output
    col1     col2   col3   col4    col5     col6  col7 col8 ............
    =======================================
    1         2      3       4        5         6      7     8   ...............FYI i am using Oracle 9.2.0
    Thanks in Advance
    Edited by: user10733211 on Oct 7, 2009 5:38 AM

    Hmm...
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>with tab
      2  as
      3    (
      4       select 1 cola from dual
      5       union all
      6       select 2 from dual
      7       union all
      8       select 3 from dual
      9    )
    10  select *
    11  from tab;
          COLA
             1
             2
             3
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>with tab
      2  as
      3    (
      4       select 1 cola from dual
      5       union all
      6       select 2 from dual
      7       union all
      8       select 3 from dual
      9    )
    10  select sum(decode(cola,1,1,0)) col1,
    11         sum(decode(cola,2,2,0)) col2,
    12         sum(decode(cola,3,3,0)) col3
    13  from tab;
          COL1       COL2       COL3
             1          2          3
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>decode can be used in much more complex case - i guess. ;)
    Regards.
    Satyaki De.

  • Query regarding : af:query component

    In af:query my requirement is to add one search field which looks like :
    "*Label*" "*Drop down List*" "*Input Text field*"
    For the other fields which have only
    "Label" and one other Component type i am using QueryDefinition.addAttributeDefinition But how to add two components with Label.

    Not sure if you can change the af:query component to do this , but you can easily build your own search form and in this form build your own layout.
    http://www.youtube.com/watch?v=osdR6I2YVEQ&feature=player_embedded#! this video give you an example
    Timo

  • Need clarification regarding select query

    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    Abbasi

    Abbasi wrote:
    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    AbbasiAFAIK without log mining and auditing this is not possible.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm

  • Regarding select query Issue

    Hi ABAPERS,
          I had written one written one 'select single' query to retrieve the data from PRPS table.
    but what the data was selecting for OBJNR (Object number)field based on PSPNR(WBS element) .
    That OBJNR values in the report is totally different from the database table OBJNR  values.How its possible
    I am not getting.So can anyone please help me regarding this...
    Thanks and Regards
    Deepa

    Hi deepa,
    Pass the values to the select query where clause as you can see the values in SE16 display.(This is external format)
    If a table field as conversion routine, then SAP dosplay some thing on screen and store some thing else in data base.
    To check conversion exit go to domain of that field. Here you can see the routine used.
    For example you can check domain MATNR. Externally it display with leading zeros. But internally it stores with out zeros.
    Thanks,
    Vinod.

  • Regarding "select query" on performance basis..

    Hi Experts,
    I am creating an ALV report,so that i have to collect all data in 1 internal table.
    I have to collect data from 3 standard tables i.e.T157E,MSEG,MKPF.
    For all entries of T157E, i have to fetch data from MSEG.
    But in where condition i have to give POSTING DATE n this field is in MKPF.
    Also Database performance analysis is around 98%.
    How can i give better performance, please help..
    Below is my coding...
    (second select query is taking too much time,how can i rectify)
    SELECT BWART
                 GRUND
        FROM T157D
        INTO CORRESPONDING FIELDS OF TABLE IT_MOV_TYPE.
    SELECT MATNR
             MJAHR
             MBLNR
             BWART
             WERKS
             LGORT
             CHARG
             GRUND
             MENGE
             MEINS
        FROM MSEG
        INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
        FOR ALL ENTRIES IN IT_MOV_TYPE
       WHERE GRUND = IT_MOV_TYPE-GRUND
         AND BWART = IT_MOV_TYPE-BWART
         AND WERKS = PLANT
         AND LGORT IN ST_L.
      SORT IT_MSEG BY MBLNR.
      LOOP AT IT_MSEG.
        AT NEW MBLNR.
          SELECT SINGLE BUDAT
                   FROM MKPF
                   INTO V_BUDAT
                  WHERE MBLNR = IT_MSEG-MBLNR
                    AND MJAHR = IT_MSEG-MJAHR.
          SELECT SINGLE MAKTX
                   FROM MAKT
                   INTO V_MAKTX
                  WHERE MATNR = IT_MSEG-MATNR.
          SELECT SINGLE GRTXT
                   FROM T157E
                   INTO V_GRTXT
                  WHERE GRUND = IT_MSEG-GRUND.
        ENDAT.
        IT_MSEG-BUDAT = V_BUDAT.
        IT_MSEG-MAKTX = V_MAKTX.
        IT_MSEG-GRTXT = V_GRTXT.
        MODIFY IT_MSEG.
      ENDLOOP.
    Regards,
    Ankur

    Before you use
    FOR ALL ENTRIES IN
    Do the following :
    1. Sort the Internal table used in the 'FOR ALL ENTRIES IN' clause.
    2. Make sure they do not contain duplicates.
    3. Last and most importantly include a primary key field(Unique entry) in the select list. The reason, the system gets unique field records based on the where condition. It summarizes the data based on the Data type and field list in the target internal table.
    One should be sure the internal table, used in the FOR ALL ENTRIES clause is not empty. If the table is empty, ALL ENTRIES will be selected. (Actually, all WHERE clauses are neglected). Of course, you should also be sure you select on INDEX fields. Otherwise the use of FOR ALL ENTRIES increases the runtime instead of improving it.

  • Required query

    I have a column ID which is varchar2 datatype and have values as follows.
    123ABC9087
    123d-908
    234kjuh09879
    876yhju-6765
    89jhgt-987now my requirement is to retrieve the last integer part only like
    { code}
    ID Required
    123ABC9087 9087
    123d-908 908
    234kjuh09879 09879
    876yhju-6765 6765
    89jhgt-987 987
    Can any one please help me out to write a query for the above requirement.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    966949 wrote:
    I have a column ID which is varchar2 datatype and have values as follows.
    123ABC9087
    123d-908
    234kjuh09879
    876yhju-6765
    89jhgt-987now my requirement is to retrieve the last integer part only like
    { code}You can't put spaces inside the curly brackets.
    ID Required
    123ABC9087 9087
    123d-908 908
    234kjuh09879 09879
    876yhju-6765 6765
    89jhgt-987 987
    Can any one please help me out to write a query for the above requirement.So you want the digits that come at the end of the string?
    Here's one way to get them:
    SELECT  id
    ,       REGEXP_SUBSTR (id, '\d*$')   AS required
    FROM    table_x
    ;In the regular expression:
    <tt>\d</tt>       means a digit ('0' through '9')
    <tt>*</tt>       means any number (0 or more) of the preceding
    <tt>$</tt>       means the end of the string
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • Urgent: regarding insert query problem

    i have a one table say "item_master_old" its structure is like
    item_master_old (item_name, item_rate, item_qty, item_desc)
    second table say "item_master" its structure is like
    item_master(id, item_name, item_rate, item_qty, item_desc)
    i want to insert item_master_old values in item_master using the following insert query :
    insert into item_master ( (select nvl( max(id), 0) + 1 from item_master ),
    item_name,
    item_rate,
    item_qty,
    item_desc
    from
    item_master_old)
    but i update the id column with 1 in all column but i want the max(id) + 1
    how it can be possible ?
    Regards
    s

    try this!
    insert into item_master
    select (select nvl(max(id),0) from item_master)+rownum,
    item_name,  item_rate, item_qty, item_desc
    from item_master_old;
    "Not tested"Message was edited by:
    Jameel

  • Regarding ABAP query layout changes

    In 46C system, we have addon transaction ZXX created thru ABAP query displaying in ALV report
    layout fields in order A,B,C,D. But after upgrade to ECC5.0 we found the layout is changed to fields D,B,C,A.
    why its changed? Is it Patch problem or its SAP problem.
    However after upgrade we could manualy drag and drop the fields as per the 46C existing report layout
    it works fine.
    But we would like to know the reason why its happenning.?
    Could somebody give me suggestion.
    Regards
    Ambichan

    Hi Ambikumar,
    The ALV output layout is dependent on user settings.
    THe order of layout fields is changed bcz user has saved the new layout.
    In the output, check the ALV toolbar for CHANGE LAYOUT button. Click on it & check if anyone has saved any new layout. Delete the layout & you would alwyz get the fields in the same order as specified in the query.
    No need to modify the query using SQ01/SQ02.
    Simply execute the query & click button CHANGE LAYOUT.
    Best regards,
    Prashant

  • Regarding ABAP Query related

    Hi,
      Can any body tell me how to keep query related data in
    internal table?
    Regards,
    Suresh Kumar.

    Do you mean that you are running a SQ01 query and you want to get the data from it into your report program?
    If this is the case, the normal way that we pass internal tables and stuff from program to program, is thru IMPORT/EXPORT statements.  But since you are talking about a query this may be a problem in adding the EXPORT statement to it.
    Regards,
    RIch Heilman

Maybe you are looking for

  • Is there a way of parenting objects in Muse?

    Hi, I'm creating a page where there are some parallaxing elements. I want a tooltip widget to stick to one of these parallaxing objects, but they keep sliding apart. It seems it's a too clumsy method to make the widget have the exact same parallaxing

  • Margins in SAPScript  doesn't appear in some printers.

    Hi everyone, How come one of my client's printer doesn't have a margin from the SAPScript. But whenever I test the AP Voucher to another printer the margin comes out. I need a solution or at least explanation on this. Points will be given. Thank you!

  • Daily morning report mentioning the availability of the SAP systems ?

    Hello, We have been asked by the business team to send them every morning at 8h00, a report that would mention which SAP systems are available. For the moment,we are doing that manually. Of course CCMSPING has already been implemented on our Solution

  • Creating Jco destionations for planning

    Hello. when i'm trying to run tr. RSPLAN->start modeler i receive message in internet browser "Error while obtaining JCO connection". then i'm trying to create Jco destionaions (http:/<host name>:50100/webdynpro/dispatcher/sap.com/tcwdtools/Explorer)

  • ADFS Taleo Relying Party Configuration

    Hi,  I'm trying to configure Oracle Taleo as a relying party for AD FS and the AD FS as identity provider for Taleo.  AD FS Configuration I have uploaded XML Taleo federation metadata in relying party configuration wizard and everything seems correct