My Problem to split a table

Hi
I have a problem
I have a main table want a query in sql server or solution in SSIS to automatically create tables with the name of one of my columns values and devide&copy the records to the new tables
for explicit the problem i attach a picture to show you how
my problem

Did you mean SSIS? SSAS is not the tool for the above requirement. You can design a SSIS package to get above requirement done. The package would be like this
1. Execute SQL task with query to retrieve distinct Name values from the database ie like below
SELECT DISTINCT Name FROM MainTable
Set Resultset property as full resultset and use an object variable (@[User::NameList]) to map to result in resultset tab with index 0
2. Use a ForEachLoop using ADO.NET recorset enumerator and map the object variable to loop thorugh each class value. use a string variable to get each iteration class value (@[User::Class])
3. Create a variable of string type to store SQL query and set EvaluateAsExpression true and set expression as below
"IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '" + @[User::Class] + "') SELECT * INTO " + @[User::Class] + " FROM MainTable WHERE Name = '" + @[User::Class] + "' ELSE INSERT INTO " + @[User::Class] + " SELECT * FROM MainTable WHERE Name = '" + @[User::Class] + "'"
4. Inside loop add an execute sql task with command type as variable and map above variable to it. 
Once you execute this package it will automatically create the tables and divide data to them
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • How do I split a table over two pages in Pages?

    Hi
    I'm trying to split a table in Pages so that the text in the two adjacent rows will fall on two separate pages but I cannot find a way to do this. This was something that is easy to do if using MS Word so I can't believe it would be a feature missing from Pages?
    The document I'm working with is my resume and I had my jobs nicely formatted in a long table so it was easy to work with (job title, dates, achievements etc. in different cells). Since updating to Yosemite and Pages 5.5 I've noticed that I now have my career summary and 'Professional Experience' title on the first page but the table with all my job information is now starting on the second page - leaving just a lot of blank space on the first page. One of the jobs on the second page now also splits across pages 2 and 3. I can see that it is trying to keep everything in the table together and that what I need to do is just split the table at a certain point so that I can put the first part of the table back onto page 1 and the second part of it on page 2 - but it won't give me any option to do this.
    Any ideas?

    Although this thread is several months old, I felt compelled to reply as I have just encountered this gaping hole in Pages functionality.  Jerrold Green 1 is incorrect in asserting that the OP's problem is that Pages won't split a cell across pages.  The OP clearly indicates that Pages is not moving rows that won't fit on the first page of the table, but rather it moves the whole table to the next page.
    So for example, if I have a paragraph of text at the top of page 1, and then insert a table under this paragraph that contains more rows than will fit on the remainder of the page, rather than the rows that won't fit being moved to page 2, Pages moves the entire table to page 2 leaving a big blank space on page 1.  But bizarrely if the table contains more rows than will fit on one whole page, then it will move the overflow rows onto the third page, making you wonder why it didn't just do this on page 1.
    This is with the table arrangement set to Move with Text.  If I set it to Stay on Page, the end of the table just flows over the footer and off the page into oblivion.  If I set Text Wrap to None, it just plonks the table right on top of the other text.  So it gives you the option to do something silly, but not the most sensible option.
    If I am missing something, then can someone please correct me.  Without this basic functionality Pages cannot be considered a professional Word Processor.  I'll unfortunately have to go back to MS Word.

  • How to split a table in messages

    Hi,
    I've made a BPM which consumes 2 BAPIs. The first BAPI returns a table like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:MT_Search xmlns:ns1="http://www.prueba">
    - <E_COMP_TAB>
      <IBASE>1</IBASE>
      <INSTANCE>1</INSTANCE>
      </E_COMP_TAB>
    - <E_COMP_TAB>
      <IBASE>2</IBASE>
      <INSTANCE>2</INSTANCE>
      </E_COMP_TAB>
    -</ns1:MT_Search>
    My problem is when I try to split this table in 2 messages to send them to next BAPI, like this:
    Message 1:
    <E_COMP_TAB>
      <IBASE>1</IBASE>
      <INSTANCE>1</INSTANCE>
      </E_COMP_TAB>
    Message 2:
    <E_COMP_TAB>
      <IBASE>2</IBASE>
      <INSTANCE>2</INSTANCE>
      </E_COMP_TAB>
    The table size is variable. I have a transformation step within a loop to try to split the table in 'n' messages, but I get this error when the workflow arrives to this step:
    com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:146)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:832)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    How can I split a table with 'n' rows in 'n' messages to send them the next BAPI?
    Thanks in advance,
    Samantha.

    Hi,
    Use a maping in your BPM,
    This will be a 1: N mapping where the source is your RFC response and the target is the seconds BAPI's Request message.
    The steps for 1:N mapping are,
    1. In your message mapping make the target message type as 1 to unbounded.
    2. In your Interface mapping make the target interface as 1 to unbounded.
    In your BPM after the transformation step, use a Block with For Each and use the mapping output Multiline variable as the Block's For Each variable.
    Inside the block do the needful.
    Regards
    Bhavesh

  • Oracle rownum usage for splitting a Table into two equal parts.

    Hi All,
    I have a table which has like 1.2 billion records and i would have to split the table in two parts for my Archiving needs.Unfortunately that table does not have any unique key or primary key or data stamp which i can rely for.
    I would have to use the rownum concept to divide the table.
    I am using the below
    SELECT * FROM (SELECT ENAME, SAL FROM EMP ORDER BY SAL DESC) WHERE ROWNUM < 5000000;
    But the problem is that the table is taking forever to retrieve as it has to do a order by and then retrieve the data as per the where clause.
    The question i have is that instead of using a orderby clause to get the same rownum for the row every time, can i directly rely on the fact that the database is read only and the Rownum would remain same even without oder by clause....
    Thanks....

    WARNING! There is a bug in the code, see EDIT: at bottom of post for details
    Justin,
    It makes sense that Oracle could order over rowid without sorting, but I see a sort in the explain plan:
    SQL> create table t as select 1 as data
      2  from all_objects
      3  where rownum <= 100000;
    Table created.
    SQL> explain plan for select *
      2  from (select t.*, row_number() over (order by rowid) rn from t)
      3  where rn < 50000;
    Explained.
    SQL> select * from table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 327232321
    | Id  | Operation                | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT         |      | 99651 |  2530K|       |   489   (3)| 00:00:07 |
    |*  1 |  VIEW                    |      | 99651 |  2530K|       |   489   (3)| 00:00:07 |
    |*  2 |   WINDOW SORT PUSHED RANK|      | 99651 |  2432K|  7056K|   489   (3)| 00:00:07 |
    |   3 |    TABLE ACCESS FULL     | T    | 99651 |  2432K|       |    31   (7)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("RN"<50000)
       2 - filter(ROW_NUMBER() OVER ( ORDER BY ROWID)<50000)875820,
    What are you doing with the results of the select to archive the table in two pieces? If the archive is in the DB in two seperate tables, multi table insert would be an option:
    SQL> create table archive_1 (data number);
    Table created.
    SQL> create table archive_2 (data number);
    Table created.
    SQL> explain plan for insert when mod(rn, 2) = 0 then into archive_2 (data) values (data)
      2  else into archive_1 (data) values(data)
      3  select rownum as rn, data
      4  from t;
    Explained.
    SQL> select * from table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 828723766
    | Id  | Operation             | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | INSERT STATEMENT      |           | 99651 |  2530K|    31   (7)| 00:00:01 |
    |   1 |  MULTI-TABLE INSERT   |           |       |       |            |          |
    |   2 |   INTO                | ARCHIVE_2 |       |       |            |          |
    |   3 |   INTO                | ARCHIVE_1 |       |       |            |          |
    |   4 |    VIEW               |           | 99651 |  2530K|    31   (7)| 00:00:01 |
    |   5 |     COUNT             |           |       |       |            |          |
    |   6 |      TABLE ACCESS FULL| T         | 99651 |  1265K|    31   (7)| 00:00:01 |
    SQL> insert when mod(rn, 2) = 0 then into archive_2 (data) values (data)
      2  else into archive_1 (data) values(data)
      3  select rownum as rn, data
      4  from t;
    100000 rows created.Another option would be to use the last digit of rowid to split the table into two groups, but they will not be equal sized.
    SQL> explain plan for select *
      2  from t
      3  where substr(rowid, length(rowid), 1) = upper(substr(rowid, length(rowid), 1))
      4  or substr(rowid, length(rowid), 1) in ('0', '1', '2', '3', '4');
    Explained.
    SQL> select * from table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2153619298
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      | 59025 |  1441K|    98  (71)| 00:00:02 |
    |*  1 |  TABLE ACCESS FULL| T    | 59025 |  1441K|    98  (71)| 00:00:02 |
    Predicate Information (identified by operation id):
       1 - filter(SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)='0
                  ' OR SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)='1' OR
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)='2' OR
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)='3' OR
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)='4' OR
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)=UPPER(SUBSTR(ROW
                  IDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)))
    Note
       - dynamic sampling used for this statement
    23 rows selected.
    SQL> explain plan for select *
      2  from t
      3  where substr(rowid, length(rowid), 1) <> upper(substr(rowid, length(rowid), 1))
      4  and substr(rowid, length(rowid), 1) not in ('0', '1', '2', '3', '4');
    Explained.
    SQL> select * from table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2153619298
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      | 40627 |   991K|    41  (30)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL| T    | 40627 |   991K|    41  (30)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>'
                  0' AND SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>'1' AND
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>'2' AND
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>'3' AND
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>'4' AND
                  SUBSTR(ROWIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)<>UPPER(SUBSTR(RO
                  WIDTOCHAR(ROWID),LENGTH(ROWIDTOCHAR(ROWID)),1)))
    Note
       - dynamic sampling used for this statement
    23 rows selected.
    SQL> select count(*)
      2  from t
      3  where substr(rowid, length(rowid), 1) = upper(substr(rowid, length(rowid), 1))
      4  or substr(rowid, length(rowid), 1) in ('0', '1', '2', '3', '4');
      COUNT(*)
         59242
    SQL> select count(*)
      2  from t
      3  where substr(rowid, length(rowid), 1) <> upper(substr(rowid, length(rowid), 1))
      4  and substr(rowid, length(rowid), 1) not in ('0', '1', '2', '3', '4');
      COUNT(*)
         40758
    EDIT:
    I realized that I screwed up above. In hind sight I don't know what I was thinking. I was attempting to use X = upper(X) to find the upper case characters A-Z. So the two queries to split rows based on the last character of rowid are not right. I don't have time to fix now, but wanted to leave a note of warning.
    Edited by: Shannon Severance on Jul 29, 2011 1:34 AM

  • Problem while dropping a table

    Dear All,
    I am facing a problem while dropping a table in Oracle 10g.
    I am able to find the number of records in the table but unble to delete it.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    30028278
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    I have to drop this table from the database. Please help.
    regards,
    Santhosh

    Hi,
    IS it a table ? Is it your table ?
    Read this example :
    sqlplus scott/*****
    SQL> create table merchant_audit(col1 number);
    Table created.
    SQL> create public synonym merchant_audit for merchant_audit;
    Synonym created.
    SQL> grant select on merchant_audit to merchant;
    Grant succeeded.
    SQL> conn merchant/merchant
    Connected.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    0
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    See owner into the dba_tables, and if synonym into dba_synonyms.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • Problem with checkbox on table component

    Hello i am having a problem with checkbox in table component
    i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection object

    Hi,
    Please go through the tutorial "Understanding scope and managed beans". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    The details of the selected items need to be stored in an object that is in session scope.
    Hope this helps
    Cheers
    Girish

  • Trying to split a table (so I can format across pages)

    Hi, I'm fairly new to a Mac and to using Pages 09 (I picked a great time to change systems when writing up something important!)
    How do I get a Table to split (as you can easily with MS Word) so that I can easily format my tables and text across multiple pages? At the moment I either have the title of a cell and then the text linked to it split across two pages - which looks silly - or I have to insert returns into the cell above it so the heading of a cell and it's contents both appear on the next page - but which then also makes the previous cell look silly with so much empty space.
    I can find all the options for splitting cells into more rows or columns but not an option to just split a table. Am I missing something or have Apple missed something?

    HavanaNights wrote:
    . Am I missing something or have Apple missed something?
    You missed nothing and Apple missed nothing too.
    The engineers are free to make the choices which they think beeing the best ones.
    It's really easy to achieve your goal.
    Activate the mode "Preview"
    The slider which is at the bottom of the window allow us to adjust the table width so that it fits in the page.
    In the Table inspector, we may adjust the rows height so that the wanted number of them appear in a single page without the holes generated by empty rows insertion.
    Oops, I wrote my response for Numbers, not Pages.
    but what I wrote may be done in Pages too.
    For the width, we have no slider but we may adjust it thru the Inspector of Measures.
    For the number of rows same scheme in Pages and Numbers.
    Jean-Marie … was inserted in the table to illustrate a script which may easily remove unwanted rows and, from my point of view, this one was unwanted
    Yvan KOENIG (VALLAURIS, France) jeudi 25 mars 2010 19:38:48

  • ORA-00600 problem when create XMLType table with registerd schema

    Hi,
    I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
    I found a problem when I create table with registered schema with follow content:
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="body.content">
              <xs:complexType>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="p"/>
                        <xs:element ref="hl2"/>
                        <xs:element ref="nitf-table"/>
                        <xs:element ref="ol"/>
                   </xs:choice>
                   <xs:attribute name="id" type="xs:ID"/>
              </xs:complexType>
         </xs:element>
    Does Oracle not support element reference to other element with dot?
    For instance, body -> body.content
    Thanks for your attention.

    Sorry, amendment on the schema
         <xs:element name="body">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="body.head" minOccurs="0"/>
                        <xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="body.end" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:ID"/>
                   <xs:attribute name="class" type="xs:NMTOKENS"/>
                   <xs:attribute name="style" type="xs:string"/>
              </xs:complexType>
         </xs:element>

  • How is it possible to split the table cells in Pages, Version 5.1

    How is it possible to split the table cells in Pages, Version 5.1?

    This is a feature removed in the change from Pages 09 to Pages 5.0.1.
    If you need this facility, revert to Pages 09.  If you upgraded to 5.0.1, then the earlier version is still in your Applications folder in a folder called iWork.

  • Splitting a table

    Please can you help? How can I split a table into two, as opposed to splitting rows within a table?

    This thread thought me something.
    I just discovered that in Pages, when a table is selected (handles displayed) the duplicate menu item (cmd + D ) is disabled.
    Itsn't in Numbers.
    An other example of inconsistent behavior between Pages and Numbers
    Yvan KOENIG (VALLAURIS, France) jeudi 27 mai 2010 17:17:08

  • Problem in accessing mseg table using MSEG~M Index.

    Hi Experts,
    I am facing problem in accessing mseg table using MSEG~M Index. I used same sequence of fields and i tried with mandt field also. but it is not taking the Index and it is going for TImeout ABAP dump.
    This are my codes used in different ways
    1.  SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg CLIENT SPECIFIED INTO TABLE t_mseg2
                      WHERE mandt EQ sy-mandt      AND
                            matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    2.   SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg  INTO TABLE t_mseg2
                      WHERE matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    3.   SELECT  mjahr
             bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             bukrs
             FROM mseg INTO TABLE t_mseg2
                      WHERE matnr NE SPACE         AND
                            werks EQ p_werks       AND
                            lgort NE '0000'        AND
                            bwart IN (122,201,262) AND
                            sobkz NE '0'.                   
    The above all code is not at all taking the index in Quality server .but in Development it is taking .In Quality server it is reading all datas without using the index and going Timeout ABAP dmup
    Please, Suggest me some solutions.
    Thanks in Advance.
    Regards,
    Nandha

    Hi,
    Without NE also not working out. i am facing same problem still.
    SELECT  bwart
             matnr
             lifnr
             dmbtr
             kostl
             aufnr
             FROM mseg CLIENT SPECIFIED INTO TABLE t_mseg
                      WHERE mandt EQ sy-mandt      AND
                            werks EQ p_werks       AND
                            bwart IN (122,201,262) AND
                            mjahr EQ p_year        AND
                            bukrs EQ p_cc
                            %_HINTS ORACLE 'INDEX("MSEG" "MSEG~M")'.
    Please,check and help me out from this issue.
    Regards,
    Nandha

  • Problem with saving duplicated tables in interactive form

    Hi,
    I have an interactive form that contain a table with a row that contain "insert remove move " object .
    when i press the add button, it duplicate the table, but if i save the PDF and then open it again, the extra table does not appear,
    it seems like it never been save.
    do you knoe what is the problem? why the tables are not saved properly?
    thanks, Noa

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

  • Problem in Issues/message table problem in RMMAIN

    Hello ,
    I have a problem in Issues/messages table in tx RMMAIN
    Problem:When i click on create "Issue" tab in RMMAIN,issue tab is disabled.
    Please let me know what i have to do?
    Regards,
    Neni

    Hi,
    Is this problem with a roadmap assigned with a project or a roadmap not yet assigned with a project?
    If this roadmap is assigned with a project, then:
    1. Go to tcode: SOLAR_PROJECT_ADMIN->select the project to which this roadmap is assigned.
    2. Go to tab->Project Standards->Select the tab "TABS".
    3. Check the visibility of the tab "Issues/Messages". It should be "Visible".
    If still the problem persists, then check whether you have this SAP_RMMAIN_EXE authorization.
    Check also that you have activated BC sets for service desk.
    SOLMAN40_SDESK_BASICFUNC_000
    SOLMAN40_SDESK_TPI_ACT_AST_001
    SOLMAN40_SDESK_ACTIONLOG_001
    SOLMAN40_SDESK_ACT_ADVCLOSE_001
    SOLMAN40_SDESK_TEXTTYPES_001
    Let me know if this not solved your issue.
    Regards,
    Sanjai

  • Problem in processing internal table

    Hi All,
    Im facing some problem with an internal table with header.
    This is Xvbkd with heaer line.
    Header     100     0000000049     000010                         EXW     China
    1     100     0000000049     000000                         CIF     HK
    2     100     0000000049     000010                         CIF     HK
    3     100     0000000049     000020                         CIF     HK
    Now I want modify the internal table of 2nd record. The data above has modified in the header.but not reflected in the body.
    Here is my code:
    SELECT SINGLE inco1 inco2
                            INTO (knvv-inco1, knvv-inco2)
                            FROM knvv
                            WHERE kunnr EQ w_shipto
                              AND vkorg EQ vbak-vkorg
                              AND vtweg EQ vbak-vtweg
                              AND spart EQ vbak-spart.
                        IF sy-subrc EQ 0 AND
                            knvv-inco1 NE space or
                            knvv-inco2 NE space.
                          MOVE: knvv-inco1 TO wa_xvbkd-inco1,
                                knvv-inco2 TO wa_xvbkd-inco2.
                         READ table xvbkd with key vbeln = xvbap-vbeln
                                                    posnr = xvbap-posnr.
                          IF sy-subrc = 0.
                          xvbkd-inco1 = wa_xvbkd-inco1.
                          xvbkd-inco2 = wa_xvbkd-inco2.
                          modify table xvbkd from wa_xvbkd transporting  inco1 inco2.
                         endif.
                        ENDIF.
    Requirement: is the 2nd record(item 10) in above internal table has to reflect the change with EXW and China.
    Pls help me with ur valuable suggestions.
    Regards,
    Priya

    try,
    SELECT SINGLE inco1 inco2
                            INTO (knvv-inco1, knvv-inco2)
                            FROM knvv
                            WHERE kunnr EQ w_shipto
                              AND vkorg EQ vbak-vkorg
                              AND vtweg EQ vbak-vtweg
                              AND spart EQ vbak-spart.
                        IF sy-subrc EQ 0 AND
                            knvv-inco1 NE space or
                            knvv-inco2 NE space.
                          MOVE: knvv-inco1 TO xvbkd-inco1,
                                knvv-inco2 TO xvbkd-inco2.
                         READ table xvbkd with key vbeln = xvbap-vbeln
                                                    posnr = xvbap-posnr.
                          IF sy-subrc = 0.
                          modify xvbkd index sy-tabix.
                         endif.
                        ENDIF.
    Regards,
    John
    Edited by: jvanpelt on Jul 16, 2010 9:36 AM

  • Problem in creating Queue Table of 'VARCHAR2'  Payload.

    Hello guys!!
    I am having a problem creating a Queue Table of payload type 'VARCHAR2'. I want to create a queue for simple varchar2
    type of messages. I am using following command:
    dbms_aqadm.create_queue_table(queue_table => 'sh_varchar_queue_table',
    queue_payload_type => 'VARCHAR2');
    I am getting the following error:
    ORA-24000: invalid value VARCHAR2, QUEUE_PAYLOAD_TYPE should be of the form
    [SCHEMA.]NAME
    Please help!!!
    Thanks!!!
    Shalu

    Thanks Brajesh!!
    Actually I have tried with Object Type n that is working fine. But i didn't know that 'VARCHAR2' can't be a payload type. It
    is mentioned in Rel 8.1.5 that it can be a 'VARCHAR2' n I started trying that. didn't know that it's not possible in 9i.
    Anyways, thanx so much!!!
    N Brajesh, few days back on the discussion forum itself, I mentioned my e-mailed to you. I wanted to get in touch with u
    bcoz i need ur help for so many other problems. I have tight deadlines n i am new to all this stuff.
    Once again, can u pls e-mail me at [email protected] Shall look forward to ur e-mail.
    Thanks so much!!
    Shalu

Maybe you are looking for

  • How can I print via the AirPort Time Capsule on a Windows 7?

    Hey, First of all, I am really inexperienced about all these things. I have a MacBook from 2009 with OSX Lion and a PC Windows 7 x64. I have got a time capsule (https://www.mikepalmer.net/wp-content/uploads/2011/12/apple-time-capsule.jpg) connected t

  • Creation of PM or CM WO by external source

    I believe my request is pretty much standard, however I didn't find any info in existing threads. If I need to initiate a WO execution based on an external source (for example, a message from Plant automation system) - what is the way to do it? In my

  • How to make a line with arrow curve around a circle?

    I've got CS6 and Windows 7. Trying to make a line with an arrow on one end curve around a circle. Actually want it to have a 3D look like it was curving around the back side of a globe. How do you do this? Thanks.

  • Outlook sort by name - quicktype / searching by name using keyboard doesn't work right

    I'm not sure how to best explain this. In Outlook first you sort by name, and then you quickly type the first few letters of the person's name.  In Outlook 2010, this would cause it to go to the right person. For example if I type M-A-R it would go t

  • How to use not equal to in read

    Hi experts , I have a read statement in which i am reading status internal table. read table it_jest into wa_jest where inact ne 'X' this inact ne 'X' is giving me an syntax error i tried inact eq '' inact eq ' ' inact eq space' but nthng worked plea