How to create or generate sample / test data (mass data for tables) ?

Hello,
I'm playing around a little with some SQL-functions, but actually I have only a small number of rows in my sample table and I would like to have "big, filled tables". :-)
Is there an easy way to generate mass data for tables, e.g. for testing the performance of SQL-statements when a table is full of data.
For example:
How can I generate lets say 50.000 or 100.000 rows into a table with two columns? Is there a ready-to-use command to generate this mass of data?
How do you create random data for testing?
Thanks a lot in advance for your help!
Best regards
FireFighter

First, thanks for the quick and great answer! It looks exactly what I'm looking for. How could I forget to look at Tom's site for such a script. ;-)
But.....
...unfortunately, it doesn't seem to work. :-( And since I'm not so experienced in PL/SQL until now (looking forward to a course end of year...) I don't know what the error is. Is it not meant to use within 10g ??
So, here is what i do:
1. Log in to SQL*plus and generate the procedure with "@gen_data.sql"
2. Then I try to execute the procedure by using "exec gen_data('mytesttable',500);"
Then I get the following error output:
SQL*plus> exec gen_data( 'mytable', 50 );
BEGIN gen_data( 'mytable', 50 ); END;
ERROR at line 1:
ORA-00936: missing expression
ORA-06512: at "SYS.GEN_DATA", line 34
ORA-06512: at line 1
And here is the code that I have used:
01 create or replace procedure gen_data( p_tname in varchar2, p_records in number )
02 authid current_user
03 as
04 l_insert long;
05 l_rows number default 0;
06 begin
07
08 dbms_application_info.set_client_info( 'gen_data ' || p_tname );
09 l_insert := 'insert /*+ append */ into ' || p_tname ||
10 ' select ';
11
12 for x in ( select data_type, data_length,
13 nvl(rpad( '9',data_precision,'9')/power(10,data_scale),9999999999) maxval
14 from user_tab_columns
15 where table_name = upper(p_tname)
16 order by column_id )
17 loop
18 if ( x.data_type in ('NUMBER', 'FLOAT' ))
19 then
20 l_insert := l_insert || 'dbms_random.value(1,' || x.maxval || '),';
21 elsif ( x.data_type = 'DATE' )
22 then
23 l_insert := l_insert ||
24 'sysdate+dbms_random.value+dbms_random.value(1,1000),';
25 else
26 l_insert := l_insert || 'dbms_random.string(''A'',' ||
27 x.data_length || '),';
28 end if;
29 end loop;
30 l_insert := rtrim(l_insert,',') ||
31 ' from all_objects where rownum <= :n';
32
33 loop
34 execute immediate l_insert using p_records - l_rows;
35 l_rows := l_rows + sql%rowcount;
36 commit;
37 dbms_application_info.set_module
38 ( l_rows || ' rows of ' || p_records, '' );
39 exit when ( l_rows >= p_records );
40 end loop;
41 end;
42 /
Does anybody know what my error i have in here?
Thanks again for you help in advance!
Rgds
FF
Message was edited by:
FireFighter

Similar Messages

  • How to create a ABAP report off of SRM box for live data?

    How to create a ABAP report off of SRM box for live data?
    Thanks in advance.
    York.

    you can try infoset query:
    STEP - A:
    1. Go to T Code RSQ02 and give the InfoSet name & select CREATE.
    2. Provide the Name(Description) and Data Source i.e. for eg here i take "DIRECT READ OF TABLE" = /BIC/AODS100. Then CONTINUE.
    3. Select what to Include in the 3 options available with the POPUP, here "INCLUDE ALL TABLE FIELDS". Then Check the fields and click GENERATE(one RED and WHITE round icon).
    4. Now provide the PACKAGE for the INFOSET. Come Back(F3).
    STEP - B: optional(If u want to create a new user group)
    1. Select ENVIRONMENT -> USER GROUPS. Provide the User Group name and CREATE.
    2. Provide Description and SAVE.
    3. Provide PACKAGE and SAVE. Come Back (F3) to the Initial Screen.
    4. Click Role/User Group Assignment. Select Newly Created User Group or an existing one. Then SAVE (CTRL + S). F3.
    STEP - C:
    1. Select ENVIRONMENT -> Queries. Provide the query name and CREATE.
    2. Select the INFOSET u have created and assigned the user group.
    3. Provide the Title and Select BASIC LIST. There you have to select (check) the fields you want to display, SAVE and then TEST. It will ask for Variant, just CONTINUE.

  • How to create a WebServices by using a BI data?

    Hi All,
    Can anybody tell me that, How to create a WebServices by using a BI data?
    If possible need the steps also...
    Plz reply back me to [email protected]
    Your help will be appreciated
    Regards,
    KIran Telkar

    Kiran,
    did you go through...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7ffba2ec-0c01-0010-2e81-988e48e3ca43
    on how to expose a BW query as a web service...?
    Arun
    Hope it helps..

  • E-rec   How to create or generate the index category????? SOS!!!!!

    Hi guys,
    How to create or generate the index category?.
    From the posts of this forum I have read more things but anything works:
    reports:
    -RSRETT02
    -RCF_INITIALIZE_KPRO
    -RSTIRIDX_INDXCAT_RETRIEVE
    Can anyone show me the way?
    Thanks in advance.

    Hello,
    If you haveat least Version 7.10.18 then KPro configurations are no longer required. Did you activate Business Function HCM_ERC_SES_1 as this is required for SES? The scenario to choose will depened on whether you are making a new implementation, upgrading without use of SES before or upgrading after using SES with earlier versions. Scenario 1 is for when you have activated HCM_ERC_CI_3 after using earlier versions with HCM_ERC_SES_1 already activated. Scenario 2 is for those who have upgrade and activated HCM_ERC_CI_3 but where using search without SES in their earlier version. Last scenario is when you are making a new e-Recruiting implementation (not upgrading). Also check notes 1426757 and 817145.
    When you try to search are you getting an error? Can you check in SLG1 transaction after trying to search and post the error messages. Also can you execute report RCF_CHECK_SEARCH_SETTINGS as it will point you to the missing configurations points if any based on your version.
    Regards,

  • How to created a Report to calculate On-Hand inventory for pending sales

    hi,
        how to  created a Report to calculate On-Hand inventory for pending sales orders.for this report what are the tables and fields we have to use give me sample report.
    thank you
    radhakrishna.

    Hi!
    Tables:
    VBAK - sales order header data
    VBAP - sales order position data
    VBUK - sales order status header data
    VBUP - sales order status position data
    VBELN field is the key between the tables.
    Statuses in tables VBUK, VBUP: A-uncompleted, B-partially completed, C-fully completed
    Regards
    Tamá

  • How to create a sub head(code) in a catalog- for service notification

    Hi everyone,
    How to create a sub head(code) in a catalog- for service notification?
    Please guide with your valuable comments.
    Please guide its very urgent.
    Thanks and Regards
    Edited by: MPVash Vash on Oct 24, 2008 8:14 AM
    Edited by: MPVash Vash on Oct 30, 2008 7:38 AM

    Hi,
    Go to T-code QS41, give the catalog and code group and enter.
    U can click on the code after selecting the code group and create new  codes.
    In SPRO u should see which type of catalog is assigned to the notification type. This u can see in the overview of the notification type by selecting the notification type in SPRO.
    Regards
    Haricharan

  • How to create a page that tests and then creates a valid DB LINK connection

    The problem is that I'd like to create a page that has all the necessary fields (name, host, port, etc) to create a database link just like the one in the SQL workshop - I'd prefer to have it done this way so as to limit the users from using SQL workshop. But i'd also like the DB Link tested before created.
    I've tinkered around a bit and was able to create the database link using a page process that calls an execute immediate statement to add the database link using items in the form section, however I'm confused as to how I would test the connection before hand.

    but rather the concept of a page that reads from table (maybe a "report?") to provide a result set of data which the user can click on a result to direct to another page.You are on the right track with the idea of an initial page with a report region listing your reports as links. Not sure from the provided information if this out of the box capability will meet your actual requirement, but try the Create Page wizard > New page > Form > Form on a Table with Report as a first approximation.
    instead of creating unique individual pages for each of the 100 Oracle Reports, featuring the report's attributes (parameters, etc), what do I need to do just have one APEX page that dynamically reads from the table and builds the Region and its Items based on what's in the table?If this can't be handled using the built-in Form on a Table with Report design pattern, it sounds like it will be possible using a dynamic form generated using the [APEX_ITEM API|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#BGBHDGAI] either as another report region or a PL/SQL Dynamic Content region.
    Also, any reference books that you guys recommend on the ins/outs of APEX? [Pro Oracle Application Express|http://www.amazon.co.uk/gp/reader/159059827X/ref=sib_dp_pt#reader-link], the authors of which are active voices on this forum, is a good book. The forum itself is an unbelievable resource, as is the hosted service for learning and experiment at [apex.oracle.com|http://apex.oracle.com/i/index.html].

  • How to create generic text datasource to load text data?

    met issue in generic master data load
    Hi,
    please see above link for detail infomation regarding the attribute data load. now the language and description column of the infoobject s_saled is empty. i need to create a generic text datasource to load data from R3 to BW. the table which i use to extract attribute data is VBAK, but i don't find any filed relate to language and description.
    met issue in generic master data load
    can anyone tell me how to load the text data?
    thanks very much.
    Eileen

    hi eileen,
    go to transactio rso2  in your source system ie r/3.
    there u have three three fields for transaction data
                                                    attributes.
                                                     text.
    choose text and proceed as u did for trancsaction data load.
    thank u,
    reward if helpful.

  • How to create a loop to run total of records for before and after unconstant date

    Post Author: Ann2
    CA Forum: Formula
    Here is the data sample:
    ID period code date
    1  00  I    01/01/1999
    1 00   Z   01/02/1999
    1 00  G   12/05/1999
    1 00  M   01/01/2000
    There are many students with many periods and many codes. I need to save a date when code = 'G' and count separateley records per student/period 2 times - before and equal that date and after that date, so in the end for period 00 I will have 2 values: 3 (before) and 1(after).
    There are periods from 00 to 08. I am counting students abscencies before and after warning letter was sent (code G).
    The result data should look : 00 01 02 03 04 05 06  07  08              00 01 02 03 04 05 06  07  08     Total
                                                3  0   0   0   0   0   0   0   0                 1 0    0   0   0   0   0   0   0        4
    Please help me.
    Thank you.
    Ann2

    Post Author: Ann2
    CA Forum: Formula
    Thank you for your answer, but I do care about the date the 'G' happened, because I need to reset count.
    The logic behind is this:if a student absent for more than 8 times per period - the letter will be sent out to the parents , that will be code 'G' with period '-1' (it may happen that there will never be code 'G' , but I need to track all absencies). Once the letter is sent, the count starts over (the count starts over the next day after code 'G'). The absencies which happened before or the date the letter sent should count toward 'previous'  abscenices, all other - absenices after the letter.
    So basically I need total per period and total per period before or the day with code 'G'.  Running total with reset with formula code = 'G' does not work.
    I created a formula field which has global date (when code 'G' happenned) and it says if globaldate >= periodDate then date (1900,01,01) else (2100,01,01) and that formula is ok, but I can not use it in running total or can not create group on it and insert total.
    Please help me with this. Thank you.
    Ann2

  • How to create new field groups in AA master data screen layout?

    Hello,
    We are using ECC 6.0
    We have created bunch of new fields for asset master data, but we want to make them visible only for particular asset class. So we need to customize in SPRO Asset Master Data Screen Layout, but there no specific field groups that we can customize. So how to create and add new field groups to manage them by radiobuttons Required, Optional, No or Display?

    hi,
    think, it's not possible.
    look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/71e05a448011d189f00000e81ddfac/frameset.htm
    "The field groups and their respective fields are defined in system tables"
    kind regards
    Andreas

  • How to create A/R Invoice having Withholding Tax Data using DI-Server?

    <P>Hi Experts,</P>
    <P>I want to create an A/R Invoice having a Withholding Tax line
    through DI-Server (SAP Business One 2005B PL43) using the following
    SOAP Request (Method 1 and Method 2) but both generated an 'Invalid
    XML' error response. If I exclude the WithholdingTaxData tag (or the
    WithholdingTaxDataCollection tag) from the SOAP request, the invoice
    is successfully created but without the Withholding Tax entry in the
    table INV5.</P>
    <P>I've had success in the past using the &quot;&lt;SerialNumbers&gt;&quot;
    and &quot;&lt;DocumentsAdditionalExpenses&gt;&quot;.
    </P>
    <P>In the SOAP Requests below, what is wrong with the usage of
    &quot;&lt;WithholdingTaxData&gt;&quot; or
    &quot;&lt;WithholdingTaxDataCollection&gt;&quot;?</P>
    <P>Is it possible at all to create a document having Withholding Tax
    entries using the DI-Server SOAP Request?</P>
    <P>Thank you very much.</P>
    <P><BR><BR>
    </P>
    <P>Method 1:</P>
    <P>SOAP REQUEST (Using AddObject command):</P>
    <P>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>&quot;&gt;<BR>     &lt;env:Header&gt;<BR>          &lt;SessionID&gt;08C5BB21-34E3-468E-952F-EEC1CBE19272&lt;/SessionID&gt;<BR>     &lt;/env:Header&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;dis:AddObject
    xmlns:dis=&quot;<A HREF="http://www.sap.com/SBO/DIS">http://www.sap.com/SBO/DIS</A>&quot;&gt;<BR>               &lt;BOM&gt;&lt;BO&gt;<BR>                    &lt;AdmInfo&gt;<BR>                         &lt;Object&gt;oInvoices&lt;/Object&gt;<BR>                    &lt;/AdmInfo&gt;<BR>                    &lt;Documents&gt;<BR>                         &lt;row&gt;<BR>                              &lt;DocDate&gt;20090520&lt;/DocDate&gt;<BR>                              &lt;DocDueDate&gt;20090619&lt;/DocDueDate&gt;<BR>                              &lt;TaxDate&gt;20090520&lt;/TaxDate&gt;<BR>                              &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;<BR>                              &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;<BR>                              &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;<BR>                              &lt;Comments&gt;Withholding
    Tax
    Liable&lt;/Comments&gt;<BR>                              &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/Documents&gt;<BR>                    &lt;Document_Lines&gt;<BR>                         &lt;row&gt;<BR>                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;<BR>                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;<BR>                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;<BR>                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;<BR>                              &lt;Currency&gt;EUR&lt;/Currency&gt;<BR>                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;<BR>                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/Document_Lines&gt;<BR>                    &lt;WithholdingTaxData&gt;<BR>                         &lt;row&gt;<BR>                              &lt;WTCode&gt;S&lt;WTCode&gt;<BR>                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;<BR>                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;<BR>                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/WithholdingTaxData&gt;<BR>               &lt;/BO&gt;&lt;/BOM&gt;<BR>          &lt;/dis:AddObject&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>SOAP RESPONSE (Using AddObject command):</P>
    <P>&lt;?xml version=&quot;1.0&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;env:Fault&gt;<BR>               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;<BR>               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid
    XML&lt;/env:Text&gt;&lt;/env:Reason&gt;<BR>               &lt;env:Detail&gt;<BR>                    &lt;ErrorList&gt;<BR>                         &lt;Error&gt;System
    Id = 18023032, Line Number = 1, Column Number = 1064, Description =
    Expected end of tag
    'GLAccount'&lt;/Error&gt;<BR>                    &lt;/ErrorList&gt;<BR>               &lt;/env:Detail&gt;<BR>          &lt;/env:Fault&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>Method 2:</P>
    <P>SOAP REQUEST (Using Add Service command):</P>
    <P>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Header&gt;<BR>     
    &lt;SessionID&gt;1F6C7E11-CC5B-A5F3-0206-D1F4A8B9D84A&lt;/SessionID&gt;<BR>     &lt;/env:Header&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;dis:Add
    xmlns:dis=&quot;<A HREF="http://www.sap.com/SBO/DIS">http://www.sap.com/SBO/DIS</A>&quot;&gt;<BR>               &lt;Service&gt;InvoicesService&lt;/Service&gt;<BR>               &lt;Document&gt;<BR>                    &lt;DocDate&gt;2009-05-20&lt;/DocDate&gt;<BR>                    &lt;DocDueDate&gt;2009-06-19&lt;/DocDueDate&gt;<BR>                    &lt;TaxDate&gt;2009-05-20&lt;/TaxDate&gt;<BR>                    &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;<BR>                    &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;<BR>                    &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;<BR>                    &lt;Comments&gt;Withholding
    Tax
    Liable&lt;/Comments&gt;<BR>                    &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;<BR>                    &lt;DocumentLines&gt;<BR>                         &lt;DocumentLine&gt;<BR>                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;<BR>                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;<BR>                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;<BR>                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;<BR>                              &lt;Currency&gt;EUR&lt;/Currency&gt;<BR>                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;<BR>                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;<BR>                         &lt;/DocumentLine&gt;<BR>                    &lt;/DocumentLines&gt;<BR>                    &lt;WithholdingTaxDataCollection&gt;<BR>                         &lt;WithholdingTaxData&gt;<BR>                              &lt;WTCode&gt;S&lt;WTCode&gt;<BR>                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;<BR>                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;<BR>                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;<BR>                         &lt;/WithholdingTaxData&gt;<BR>                    &lt;/WithholdingTaxDataCollection&gt;<BR>               &lt;/Document&gt;<BR>          &lt;/dis:Add&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>SOAP RESPONSE (Using Add Service command):</P>
    <P>&lt;?xml version=&quot;1.0&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;env:Fault&gt;<BR>               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;<BR>               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid
    XML&lt;/env:Text&gt;&lt;/env:Reason&gt;<BR>               &lt;env:Detail&gt;<BR>                    &lt;ErrorList&gt;<BR>                         &lt;Error&gt;System
    Id = 134112056, Line Number = 1, Column Number = 1076, Description =
    Expected end of tag
    'GLAccount'&lt;/Error&gt;<BR>                    &lt;/ErrorList&gt;<BR>               &lt;/env:Detail&gt;<BR>          &lt;/env:Fault&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>

    <P STYLE="margin-bottom: 0in">Hi Experts,</P>
    <P STYLE="margin-bottom: 0in">My apologies for the truncated message.
    Here's the full one.</P>
    <P STYLE="margin-bottom: 0in">I want to create an A/R Invoice having
    a Withholding Tax line through DI-Server (SAP Business One 2005B
    PL43) using the following SOAP Request (Method 1 and Method 2) but
    both generated an 'Invalid XML' error response. If I exclude the
    WithholdingTaxData tag (or the WithholdingTaxDataCollection tag) from
    the SOAP request, the invoice is successfully created but without the
    Withholding Tax entry in the table INV5.</P>
    <P STYLE="margin-bottom: 0in">I've had success in the past using the
    &quot;&lt;SerialNumbers&gt;&quot; and
    &quot;&lt;DocumentsAdditionalExpenses&gt;&quot;.
    </P>
    <P STYLE="margin-bottom: 0in">In the SOAP Requests below, what is
    wrong with the usage of &quot;&lt;WithholdingTaxData&gt;&quot; or
    &quot;&lt;WithholdingTaxDataCollection&gt;&quot;?</P>
    <P STYLE="margin-bottom: 0in">Is it possible at all to create a
    document having Withholding Tax entries using the DI-Server SOAP
    Request?</P>
    <P STYLE="margin-bottom: 0in">Thank you very much.</P>
    <BR>
    <P STYLE="margin-bottom: 0in">Method 1:</P>
    <BR>
    <P STYLE="margin-bottom: 0in">SOAP REQUEST (Using AddObject command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-16&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;SessionID&gt;08C5BB21-34E3-468E-952F-EEC1CBE19272&lt;/SessionID&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;dis:AddObject
    xmlns:dis=&quot;http://www.sap.com/SBO/DIS"></P>
    <P STYLE="margin-bottom: 0in">               &lt;BOM&gt;&lt;BO&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;AdmInfo&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Object&gt;oInvoices&lt;/Object&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/AdmInfo&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Documents&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocDate&gt;20090520&lt;/DocDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocDueDate&gt;20090619&lt;/DocDueDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxDate&gt;20090520&lt;/TaxDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Comments&gt;Withholding Tax
    Liable&lt;/Comments&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/Documents&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Document_Lines&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Currency&gt;EUR&lt;/Currency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/Document_Lines&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTCode&gt;S&lt;WTCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/BO&gt;&lt;/BOM&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/dis:AddObject&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP RESPONSE (Using AddObject
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid XML&lt;/env:Text&gt;&lt;/env:Reason&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Error&gt;System Id = 18023032,
    Line Number = 1, Column Number = 1064, Description = Expected end of
    tag 'GLAccount'&lt;/Error&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">Method 2:</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP REQUEST (Using Add Service
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-16&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     
    &lt;SessionID&gt;1F6C7E11-CC5B-A5F3-0206-D1F4A8B9D84A&lt;/SessionID&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;dis:Add
    xmlns:dis=&quot;http://www.sap.com/SBO/DIS"></P>
    <P STYLE="margin-bottom: 0in">               &lt;Service&gt;InvoicesService&lt;/Service&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;Document&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocDate&gt;2009-05-20&lt;/DocDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocDueDate&gt;2009-06-19&lt;/DocDueDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;TaxDate&gt;2009-05-20&lt;/TaxDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Comments&gt;Withholding Tax
    Liable&lt;/Comments&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocumentLines&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;DocumentLine&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Currency&gt;EUR&lt;/Currency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/DocumentLine&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/DocumentLines&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;WithholdingTaxDataCollection&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTCode&gt;S&lt;WTCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/WithholdingTaxDataCollection&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/Document&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/dis:Add&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP RESPONSE (Using Add Service
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid XML&lt;/env:Text&gt;&lt;/env:Reason&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Error&gt;System Id =
    134112056, Line Number = 1, Column Number = 1076, Description =
    Expected end of tag 'GLAccount'&lt;/Error&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>

  • How to create an IDoc just with the updated data.

    Hello I have a question regarding IDocs.
    In case I updated an existing material.
    Is there a transaction where I can put a matnr in, that reads the change pointer table and creates an IDOC with just the updated fields for an existing material.
    Like the transaction BD21, for example. But there I just have the possibility to enter a message type and not a material number.
    If there is no standard transaction. What steps do I have to do to achieve this goal?
    Kind regards,
    Tobias

    thanks a lot for your fast answers. but I want to decide weather I want to create a idoc that includes all data for a material (using transaction bd10) or create an idoc that includes just the updated data.
    The program logic should be the following:
    Select all materials in the change pointer table (that have been changed or new created).
    Check what value has been changed.
    If it is value YSAPSYSTEMXX (extension of mara) then create a idoc with all data for the material.
    If not YSAPSYSTEMXX has been changed create an idoc that includes just the updated data.
    For Idocs that include all material data I would use sap standard transaction BD10 and batch-input.
    For Idoc that should only include the changed/updated data I am searching for a corresponding transaction….
    Kind regards,
    Tobias

  • How to create a subVI to Clear all charts data on a main VI

    Hi all,
    As I am writing a subVI to clear all the "charts" data on a main VI.
    The number of Charts is unknown, beasue this subVI need to run at
    difference main VIs. Therefore, I can only input a ref. of main VI into
    the subVI and find out all the control ref.,then check the classes of
    the control. If it is a chart, I need to use "To More Specific Class" to
    to select waveform chart. However, if the property node is not create
    from the chart directly, the "histroy data" will be missing.
    No matter my concept to build this subVI should be right, I donot succeed.
    Are there any other methods to do that?  
    regards,
    Ryan

    parthabe wrote:
    Did you file a bug report with NI, Coq?
    No i did not. I got it working with some diagram cluttering, and forgot all about it. As my motto is "If the damn thing works, ship it"
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to create a link on a biller direct screen for downloading a pdf file

    Hi,
    My requirement is to create link on biller direct screen, when I click on that link a pdf document will be downloaded in local system. I need help on that

    contd from previous post, excerpt from BD config guide:
    Web Application
    3. Displaying the bill document
    The Web application displays the bill document.
    If the bill document is displayed using a separate Web server (for example,
    the Web server of an optical archive), then the URL for displaying the bill details
    can be transferred at event 1235 when you create the bill list. The BAdI
    FIS_INVOICEDETAIL is not called, but the Web application sends an HTTP
    request to this URL. Since the Web application requests the bill data by request
    to the Web server for bill details, the Web server does not need to have an
    authentication mechanism. SAP delivers an example implementation for
    accessing a Web server for bill details.
    Connecting Other Billing Applications
    As described above, SAP Biller Direct only makes available the display of bills from Sales and
    Distribution (SD) in PDF format. If you want to use this function for bills with a different origin,
    you need to proceed as follows. See the BAdI documentation for further details.
    1. Create an implementation for event 1235. You have to set indicator XXML, XPDF, or
    XMULTARCH (or all three) in table T_INVOICES so that a customer is able to load
    XML or PDF data in the front end of SAP Biller Direct. Technically, this means you
    ensure that the appropriate icons are shown.
    2. Implement BAdI FIS_INVOICEDETAIL. This BAdI is called by the front end if the
    customer selects the corresponding link. You can determine the required format using
    I_INVOICE_FORMATS. Create the corresponding binary data, and fill table T_XML,
    T_PDF or T_MULTIPLE_ARCHIVED_DOCS (or all three).
    3. Then set indicator XXML, XPDF or XMULTARCH (or all three) in structure
    C_INVOICE_FORMATS.
    My Questions:
    1. My PDFs are stored on a web server as described in step 3, does that mean that I don't need to use the BADI? How are these URLs generated? Does BD automatically know how to retrieve them from archivelink?
    2. My documents are insurance bills, not S&D bills. Does that mean that I need to use the BADI as described in "connecting other billing applications"?
    To me there is a lot of ambiguity in the way this is described in the configuration guide. Could use some help with the interpretation.

  • How to create ship to party and sold to party for DC10 during sales order ?

    Hello all:
    When creating sales order for a material in VA01 with sales Org 1000,
    distribution channel 10, division 00
    The system does not give me any Ship to Party and Sold to Party with the above combination
    How to create ship to party and sold to party with the above combination (Plant 1000,
    sales org 1000, distribution channel 10, during creation of a sales order
    Ironically, when creating material master for a material with a material type KMAT, plant 1000
    sales org 1000, the only distribution channel is populating in the input help (F4) is 10
    For which no ship to party neither sold to party is maintained in sales order creation
    Thanks in Advance!!

    Dear Eshwer
    It is bcoz, the said account groups (Sold To Party and Ship To Party) are not created in the sales area 1000 / 10 / 00.
    To create a customer master, you have to go to XD01, select the Account Group, Company Code and the respective Sales Area and execute.  In the Customer Master, you have three tabs, viz.General Data where you have give address details of the customer, then in Control Data, you have to assign the respective Recon Account and in Sales Area Data, you have to maintain the customer's sales related details.  Once you give all these datas and save the data, a customer code will be displayed at the bottom.
    Now go to VA01, input the sale order type and the sales area and execute.
    thanks
    G. Lakshmipathi

Maybe you are looking for