Filling test data in Sflight, scarr , spfli tables
Hi,
Please someone tell me is their anyway to fill the SFLIGHT, SCARR, SPFLI tables
because in my system there is no data in that. i want to fill the data , to test the Objects.
Thanks,
GAL
The program you are looking for is called SAPBC_DATA_GENERATOR.
Cheers
Graham Robbo
Similar Messages
-
I want to fill the data source 0CO_OM_WBS_3 from COSP table.
Hi,
I am working on Plan and actual for cost controlling, I need to fill the data source with data from COSP table.
Please give me the steps for this. I checked in RSA3 for data source it don't have any data, but the corresponding table COSP having data.a
Thanks
DurgHi,
See the following DataSources for requirements,
0CO_OM_WBS_1 WBS elements: Costs
0CO_OM_WBS_2 WBS elements: Budget
0CO_OM_WBS_3 WBS elements: Overall plan
0CO_OM_WBS_4 WBS elements: Statistical key figures
0CO_OM_WBS_5 WBS Elements: Selections
0CO_OM_WBS_6 WBS Elements: Actual Costs Using Delta Extraction
0CO_OM_WBS_7 WBS Elements: Commitment Line Items
0CO_OM_WBS_8 WBS Elements: Budget Line Items
Use 0CO_OM_WBS_6 for Actual , bcoz it is having Delta Option for Plan you can go 0CO_OM_WBS_2 or 0CO_OM_WBS_3. See the SAP Help on that.
http://help.sap.com/saphelp_nw04/helpdata/EN/08/47c6f8bc1db04a84c9185954208ee7/frameset.htm
In this help you can find complete details of the Tables, you can see help for all above DataSources.
Thanks
Reddy -
Na Data available in SFLIGHT, SCARR etc tables by Default after installatio
Hi Everyone,
I have successfully managed to install the SAP NetWeaver 7.01 SR1 ABAP Trial Version. I can now login using user BCUSER. However when I checked SAP's standard training tables such as SCARR, SFLIGHT etc from package SAPBC_DATAMODEL. There are no database entries.
Are there any post processing steps that needs to be done in order to import data in these tables?
Thanks in advance for your help.
Warm Regards,
AmitHi,
I found note 123445 which resolved my query.
Warm Regards,
Amit -
How to fill LRAW data type from an internal table?
Hi experts,
I have a data type LRAW.
ZCLUSTR type INT2.
ZLOG type LRAW.
It is said that: LRAW: Uninterpreted byte string of any length, but has to be declared with a minimum length of 256. Fields of this type must be located at the end of transparent tables (in each table there can be only one such field) and must be preceded by a length field of type INT2. If there is an INSERT or UPDATE in ABAP programs, this length field must be filled with the length actually required. If the length field is not filled correctly, this may lead to a data loss in the LRAW field! A fields of this type cannot be used in the WHERE condition of a SELECT statement.
So my question is how can I store data in ZLOG? I want to store the content of an internal table into ZLOG, but I don't know how to use INSERT statement correctly. What should I do with ZCLUSTR?Hi Chaitanya,
Refer IMPORT EXPORT statement with addition TO DATABASE in abap help.
Refer below link from SAP help where it is described in detail.
http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3bf8358411d1829f0000e829fbfe/content.htm
Regards,
Vishal -
How to fill field with test data in alv grid display
hi all,
i m adding field TEXT to the structure for displaying grid.
i m modifying program like this
DATA: ALV_OUTPUT LIKE HRPDV_EXPIRED_Q OCCURS 0 WITH HEADER LINE.
TYPES : BEGIN OF FS_OUTPUT .
TEXT(20) TYPE C.
INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
TYPES TEXT(20) TYPE C.
TYPES END OF FS_OUTPUT.
DATA: fs_output like table of alv_output.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-FIELDNAME = 'TEXT'.
WA_FIELDCAT-seltext_l = 'Abteilungs Struktur'.
wa_fieldcat-tabname = 'ALV_OUTPUT'.
WA_FIELDCAT-COL_POS = '13'.
APPEND WA_FIELDCAT TO P_GT_FIELDCAT.
this is what i have write for diapalying field. but my question is how to fill test data with field TEXT.I m writing like this but not executed in the aboove grid dispaly statement.
loop at alv_output.
*alv_output-text(20) = 'abcdefgh'.
*modify alv_output.
*endloop.
plz tell me how to fill test datahI..,
Your table declaration has to be like this..
TYPES : BEGIN OF FS_OUTPUT .
INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
TYPES TEXT(20) TYPE C.
TYPES END OF FS_OUTPUT.
DATA: ALV_OUTPUT LIKE standard table of fs_output initial size 0.
loop at alv_output <b>into fs_output</b>.
<b>fs</b>_output-text(20) = 'abcdefgh'.
<b>modify alv_output index sy-tabix from fs_output transporting text.</b>
endloop.
Now give this table alv_output to the GRID_DISPLAY function module..
you will get the required output !!
Plz do remember to close the thread when ur problem is solved !!
reward all helpful answers !!
regards,
sai ramesh -
How to fill a cube with test-data ?
Hi,
first of all, I wanted to find a solution by my own by engaging TREX - but I think the search engine give it up. There was no result for "data" or "cube". So, I hope anyone of you can help me.
I created an input ready query. My cube is empty. By executing the input ready query, I got the message "No data found" - and no form to fill in any data.
Now I would like to fill test-data into the cube. How can I do this in an easy and fast way? Just 3-4 rows - any hints on that?
Bye and thanks in advance!If you have data in R3 and you're using a standard cube, you can activate Business contenda dataflow before selecting the cube.
Else, the only way is to create an infosource for a flat file, update rule and also the flat file and load it.
Hope it helps.
Regards -
Sample report for filling the database table with test data .
Hi ,
Can anyone provide me sample report for filling the database table with test data ?
Thanks ,
Abhi.hi
the code
data : itab type table of Z6731_DEPTDETAIL,
wa type Z6731_DEPTDETAIL.
wa-DEPT_ID = 'z897hkjh'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
wa-DEPT_ID = 'z897hkjhd'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
loop at itab into wa.
insert z6731_DEPTDETAIL from wa.
endloop.
rewards if helpful -
Filling bc travel data model with test data
Hey i read somewhere that there is a app to fill the bc travel data model with test data.I been searching but havent found one in the preview version.Please help me if anyone knows how to get it done.Filling it manually is taking a whole lot of time.
Go to the ABAP Editor (SE38) and execute the SAPBC_DATA_GENERATOR program. This program generates suitable sample data in the tables of the flight data application.
-
Populating the test data in table of IDES ECC 5.0 in Oracle
Hi Guys,
I have installed IDES ECC 5.0 successfully without any errors. But I don't see the data in tables like PA0001 etc. Can some body give me the steps for populating the tables with test data. I was able to sign on using DDIC in client 000.
Thanks,you are using wrong client, login into client 800. check tcode SCC4 to check which client you want to log into.
-
How to generate test data for all the tables in oracle
I am planning to use plsql to generate the test data in all the tables in schema, schema name is given as input parameters, min records in master table, min records in child table. data should be consistent in the columns which are used for constraints i.e. using same column value..
planning to implement something like
execute sp_schema_data_gen (schemaname, minrecinmstrtbl, minrecsforchildtable);
schemaname = owner,
minrecinmstrtbl= minimum records to insert into each parent table,
minrecsforchildtable = minimum records to enter into each child table of a each master table;
all_tables where owner= schemaname;
all_tab_columns and all_constrains - where owner =schemaname;
using dbms_random pkg.
is anyone have better idea to do this.. is this functionality already there in oracle db?Ah, damorgan, data, test data, metadata and table-driven processes. Love the stuff!
There are two approaches you can take with this. I'll mention both and then ask which
one you think you would find most useful for your requirements.
One approach I would call the generic bottom-up approach which is the one I think you
are referring to.
This system is a generic test data generator. It isn't designed to generate data for any
particular existing table or application but is the general case solution.
Building on damorgan's advice define the basic hierarchy: table collection, tables, data; so start at the data level.
1. Identify/document the data types that you need to support. Start small (NUMBER, VARCHAR2, DATE) and add as you go along
2. For each data type identify the functionality and attributes that you need. For instance for VARCHAR2
a. min length - the minimum length to generate
b. max length - the maximum length
c. prefix - a prefix for the generated data; e.g. for an address field you might want a 'add1' prefix
d. suffix - a suffix for the generated data; see prefix
e. whether to generate NULLs
3. For NUMBER you will probably want at least precision and scale but might want minimum and maximum values or even min/max precision,
min/max scale.
4. store the attribute combinations in Oracle tables
5. build functionality for each data type that can create the range and type of data that you need. These functions should take parameters that can be used to control the attributes and the amount of data generated.
6. At the table level you will need business rules that control how the different columns of the table relate to each other. For example, for ADDRESS information your business rule might be that ADDRESS1, CITY, STATE, ZIP are required and ADDRESS2 is optional.
7. Add table-level processes, driven by the saved metadata, that can generate data at the record level by leveraging the data type functionality you have built previously.
8. Then add the metadata, business rules and functionality to control the TABLE-TO-TABLE relationships; that is, the data model. You need the same DETPNO values in the SCOTT.EMP table that exist in the SCOTT.DEPT table.
The second approach I have used more often. I would it call the top-down approach and I use
it when test data is needed for an existing system. The main use case here is to avoid
having to copy production data to QA, TEST or DEV environments.
QA people want to test with data that they are familiar with: names, companies, code values.
I've found they aren't often fond of random character strings for names of things.
The second approach I use for mature systems where there is already plenty of data to choose from.
It involves selecting subsets of data from each of the existing tables and saving that data in a
set of test tables. This data can then be used for regression testing and for automated unit testing of
existing functionality and functionality that is being developed.
QA can use data they are already familiar with and can test the application (GUI?) interface on that
data to see if they get the expected changes.
For each table to be tested (e.g. DEPT) I create two test system tables. A BEFORE table and an EXPECTED table.
1. DEPT_TEST_BEFORE
This table has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look BEFORE the
test for that test case is performed.
CREATE TABLE DEPT_TEST_BEFORE
TESTCASE NUMBER,
DEPTNO NUMBER(2),
DNAME VARCHAR2(14 BYTE),
LOC VARCHAR2(13 BYTE)
2. DEPT_TEST_EXPECTED
This table also has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look AFTER the
test for that test case is performed.
Each of these tables are a mirror image of the actual application table with one new column
added that contains a value representing the TESTCASE_NUMBER.
To create test case #3 identify or create the DEPT records you want to use for test case #3.
Insert these records into DEPT_TEST_BEFORE:
INSERT INTO DEPT_TEST_BEFORE
SELECT 3, D.* FROM DEPT D where DEPNO = 20
Insert records for test case #3 into DEPT_TEST_EXPECTED that show the rows as they should
look after test #3 is run. For example, if test #3 creates one new record add all the
records fro the BEFORE data set and add a new one for the new record.
When you want to run TESTCASE_ONE the process is basically (ignore for this illustration that
there is a foreign key betwee DEPT and EMP):
1. delete the records from SCOTT.DEPT that correspond to test case #3 DEPT records.
DELETE FROM DEPT
WHERE DEPTNO IN (SELECT DEPTNO FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3);
2. insert the test data set records for SCOTT.DEPT for test case #3.
INSERT INTO DEPT
SELECT DEPTNO, DNAME, LOC FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3;
3 perform the test.
4. compare the actual results with the expected results.
This is done by a function that compares the records in DEPT with the records
in DEPT_TEST_EXPECTED for test #3.
I usually store these results in yet another table or just report them out.
5. Report out the differences.
This second approach uses data the users (QA) are already familiar with, is scaleable and
is easy to add new data that meets business requirements.
It is also easy to automatically generate the necessary tables and test setup/breakdown
using a table-driven metadata approach. Adding a new test table is as easy as calling
a stored procedure; the procedure can generate the DDL or create the actual tables needed
for the BEFORE and AFTER snapshots.
The main disadvantage is that existing data will almost never cover the corner cases.
But you can add data for these. By corner cases I mean data that defines the limits
for a data type: a VARCHAR2(30) name field should have at least one test record that
has a name that is 30 characters long.
Which of these approaches makes the most sense for you? -
Debug Mode - Source tables not showing up in Test Data tab
I'm new at OWB, so pardon me if this isn't a great question...
I built a mapping based on four views that are stored in Oracle. When I tried to run the mapping it gave me some errors, so I initiated debug mode. After the debug mode is initialized, only the target table shows up on the Test Data tab, the four source views are not there. How can I get the sources to show up in the Test Data tab so that I can define what test data to use?
Thank you!
Doug Faust
Long Island UniversityThankyou Vetsrini.
I will try out custom log table approach.
I see that there is a way to test pl/sql scripts via the DBMS output
and for that we need some invoking program like SQL PLUS to get the
log out into a file.
However, we wanted to see if there is a way to set Pl/SQL log files
and get PL/SQL logs when the calling program is BI Publisher.
regards
Girija -
How to insert test data of 10,000 records into emp table
Hi I'm new to oracle can anyone please help me in writing a program so that i can insert test data into emp table
Hi,
user11202607 wrote:
thanks sanjay , frank . But how can i insert only 4 deptno's randomly and how can i insert only 10 managers randomly ,
Sorry to pull Your legs and thanks for bearing my question. I want to insert into emp table where it has the empno, ename, sal, job, hiredate, mgr and deptnoThis should give you some ideas:
INSERT INTO emp (empno, ename, sal, job, hiredate, mgr, deptno)
SELECT LEVEL -- empno
, dbms_random.string ('U', 4) -- ename
, ROUND ( dbms_random.value (100, 5000)
, -2
) -- sal
, CASE
WHEN LEVEL = 1 THEN 'PRESIDENT'
WHEN LEVEL <= 4 THEN 'MANAGER' -- Change to 11 after testing
WHEN dbms_random.value < .5 THEN 'ANALYST'
WHEN dbms_random.value < .5 THEN 'CLERK'
ELSE 'SALESMAN'
END -- job
, TRUNC ( SYSDATE
- dbms_random.value (0, 3650)
) -- hiredate
, CASE
WHEN LEVEL > 1
THEN TRUNC (dbms_random.value (1, LEVEL))
END -- mgr
, TRUNC (dbms_random.value (1, 5)) -- deptno
FROM dual
CONNECT BY LEVEL <= 10 -- Change to 10000 after testing
;The interesting part (to me, at least) is mgr. What I've done above is guarantee that the mgr-empno relationship reflects a tree, with the 'PRESIDENT' at its sole root. The tree can be any number of levels deep.
Sample results:
EMPNO ENAME SAL JOB HIREDATE MGR DEPTNO
1 GDMT 2800 PRESIDENT 30-AUG-04 2
2 CVQX 400 MANAGER 24-MAY-06 1 2
3 QXJD 1300 MANAGER 17-JUN-05 1 4
4 LWCK 4800 MANAGER 15-JUN-06 2 2
5 VDKI 3700 CLERK 08-SEP-01 4 2
6 FKZS 2600 CLERK 18-DEC-06 4 1
7 SAKB 700 ANALYST 30-JUN-00 5 4
8 DVYY 300 ANALYST 22-SEP-01 2 1
9 CLEO 2700 ANALYST 27-MAY-08 5 4
10 RDVQ 3400 ANALYST 14-DEC-08 5 4For details on the built-in packages (such as dbms_random) see the [Parckages and Types manual|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_random.htm#i998925]. -
How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?
Hi Team,
Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
Please help.
Regards,
JohnSorry, wrong forum: created in ABAP forum instead.
-
Table for test data saved in SE37 (Test data directory)
Hello Experts,
When we save the test data in SE37 its going to be saved in test data directory, in which table of the data base its going to saved?
Thanks in advance,
SandhyaHi Sandhya,
The test data will be stored in a table called 'EUFUNC'
But it is a cluster table if you want to fetch the data from that table you can use macros to fetch the data.
Here is the macro syntax for your reference.
data : d102n_exportkey like functdir.
data : begin of te_datadir occurs 10,
dataid like eufunc-nummer, "Schlüsselnr. für Testdatenimp.
stepid(3), "PBO/PAI-Eintrag
seqid like eufunc-seqid,
datum like sy-datum,
uzeit like sy-uzeit,
title(40),
end of te_datadir.
te_datadir is a internal table
d102n_exportkey-area = p_file.
d102n_exportkey-progid = p_fname.
d102n_exportkey-dataid = dataid.
IMPORT te_datadir
FROM DATABASE eufunc(fl) ID d102n_exportkey.
Regards
Krishna -
Hi y'all..I'm using Numbers as my record for my expenses,income,etc.
I have a "date" coloumn eg "13 September 2011" and after I fill the date and move on to the next table, a "+" sign appear on my date table automatically, what's that?How do i delete that?That means your column is not wide enough to display all of the content. Widen the column & the + will go away.
Maybe you are looking for
-
HT201209 How do i use the Itunes credit to purchase a movie?
My daughter got a gift card for her birthday with 15.00 on it. I have entered it into the redemtion area and see the credit on the account. How do I purchase a movie for her with this credit? I go to purchase the movie and it keeps trying to bill my
-
How to get GUID for a transaction
How to get GUID of a transaction in solution manager support desk. pls help reg this.
-
Multiple Vulnerabilities in Cisco ASA Software - Adivisory ID
Hello, looking at this advisory: http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20141008-asa, in Software Versions and Fixes table all fixes releases are interim ones while mine is an ED release (9.1.5). Do you think I
-
Regardding Version check in diffrent SAP Systems
Hi All, I have one issue regarding version checking in diffrent systems! <b>I want to know has version been checked in the different systems, if an existing object is being changed / enhanced?</b> I need to know the above when i am using one program
-
If stolen iPhone deactivated, can thieves still access apps, data?
Phone stolen. Reported, deactivated. Question: if thieves crack password, can they access apps, email, Facebook, data, etc?