How to design a table for Billing purpose
hi all
I want to develop a software for Billing purpose
A company wants to record all sales in computer and at the month end wants to print out billing for all clients I have design this in foxpro and in Foxpro we did that when new month will start then new table generate like Crd_0707 (Credit month year).
now I want to develop in oracle how I should start this project I mean who can I design tables.
thanks
If you understand relational theory and design shik Date's books. What you need to understand before porting an application from another database to Oracle is how Oracle works.
If you do not know relational design then you need to learn it long before you start any porting project.
If you know relational design then read the Application Developers Guide - Fundamentals, plus the first few chapters of the SQL manual up until the syntax diagrams start. These chapters identify the single row and aggregate functions that Oracle provides and introduce optimizer hints for tuning while the later chapters provide the syntax for DDL: create table, create view, etc .... You will also want to read the PL/SQL Users Guide and Reference then look at the supplied PL/SQL Packages and Types manual.
After reading all this you meet the minimum requirements to work with Oracle, and I really do mean minimum.
HTH -- Mark D Powell --
Similar Messages
-
How to desighn a table for below logic
Hi all,
Could any body help me , how to design a table for below requirements
Ticketing Status
Departure Date/Time
Domestic Point of Sale
International Point of Sale
Yes
Outside of 24 hours
Immediate
Immediate
Yes
Inside of 24 hours
Immediate
Immediate
No
Outside of 24 hours
24 hours after Project review or 20 hours prior to departure, whichever is earlier
72 hours after Projectreview or 20 hours prior to departure, whichever is earlier
No
Inside of 24 hours
4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours
4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hoursCREATE TABLE [dbo].[POS_Table](
[POSID] [int] IDENTITY(1,1) NOT NULL,
[Ticketing Status] [varchar](3) NULL,
[Departure Type] [varchar](7) NULL,
[Departure DateTime Hr] [int] NULL,
[POSType] [varchar](15) NULL,
[POSAfterProject Review Hr] [int] NULL,
[PriorToDeparture Hr] [int] NULL,
[Immediate Hr] [int] NULL,
CONSTRAINT [PK_POS_Table] PRIMARY KEY CLUSTERED
[POSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
The rows will look like as below,
POSID
Ticketing Status
Departure Type
Departure DateTime Hr
POSType
POSAfterProject Review Hr
PriorToDeparture Hr
Immediate Hr
1
Yes
Outside
24
Domestic
0
0
0
2
Yes
Inside
24
Domestic
0
0
0
3
Yes
Outside
24
International
0
0
0
4
Yes
Inside
24
International
0
0
0
5
No
Outside
24
Domestic
24
20
0
6
No
Outside
24
International
72
20
0
7
No
Inside
24
Domestic
4
4
4
8
No
Inside
24
International
4
4
4
Regards, RSingh -
How to determine number range for billing document based on company code ..
Hi Friends!!
can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
Amit...plz help me!!Hi Amit,
1. Define different Billing Document number ranges in SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
e.g.
NO. From number To Number Current number Ext
A1 0930000000 0930999999
A2 0940000000 0940999999
A3 0950000000 0950999999
2. Define a Ztable ZNUMB_RANGE as follows
Comp. Code | Tax departure country | Billing Doc Type | Number Range
100 IN F2 A1
200 IN F2 A2
200 US F2 A3
3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
If found pass this number range value to us_range_intern.
us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
Let me know if you are clear.
Thanks,
Mandar -
PIN code and FAC for billing purpose
hi all,
We are configuring call manager (CUCM) version 8.6 so, at this point we are facing some issues on the functionalities:
A user has to be having a pin code associated to his phone then an authorization code that allow him to call OFFNET calls,
Now the user must have one code for private phone calls and one code for official calls for billing purpose
This user has to be able to change his pin code himself, but so long as it is associated to his phone they will still know that
His the one who made the call. In fact event the admin is not supposed to know these.
Can anyone please give me any idea on how to go on this. because CMC and FAC do not meet these requirement
Thank youHere's my guide: How to: Unlock System Lock PIN Code
-
Maintain output condition table for billing documents
Hi
I need to create new output condition table for billing document with the key combination of "Billing type and Export Indicator". In Field catalog: Messages for billing documents I am able to find field Export Indicator but the same field i am not able to find creation of new condition table (V/63).. Kindly let me know is there any settings required to show the same in V/63.
Thnaks
SrinivasHi Ram
The filed already is there in in structure" KOMKBV3" ....
Thanks
RAO -
How to create internal table for a structure in BSP
hi ,
I have created a Structure in BSP.I want to create an internal table for that Structure. But in my coding ie.
<% data: begin of itab_1 .
include type zuvendstr.
data:end of itab_1.
data wa_str like line of itab_1.
loop at itab_1 into wa_str. %>
<tr>
<td><%=wa_str-name%> </td>
<%endloop.%>
In this zuvendstr is Structure ,wa_str is workarea and itab_1 is an Internal table.But it is showinng an error that itab_1 is unknown.But we cannot define internal tables for an Structure in Page Attributes.So,please resolve how to create internal table for Structure in BSPSHi,
You can define itab_1 like this (assuming zuvendstr is a structure type):
DATA: itab_1 TYPE TABLE OF zuvendstr.
Regards,
Tanguy -
How to check with table for cursor..?
How to check with table for cursor..?
Here I have Table temp_final_plan
Here i want to update if already exit...below is the procedure....
CREATE OR REPLACE PROCEDURE spu_final_profit_plan
AS
-- Constant declarations
ln_errnum number := 0;
-- Variable declarations
ls_errmsg app_errors.err_msg%TYPE;
ls_appmsg app_errors.app_msg%TYPE;
ls_appid app_errors.app_id%TYPE;
-- Cursor declaration for final_update_el
CURSOR cur_final_update_el IS
select '910' ent,
'9127316' center,
post_acct,
sum(avg_mtd_01) sum_avg_mtd_01,
sum(avg_mtd_02) sum_avg_mtd_02,
sum(avg_ytd_01) sum_avg_ytd_01,
sum(avg_ytd_02) sum_avg_ytd_02
from mon_act_cypy
where rec_type = 'A'
and sum_flag = 'D'
and yr = '2008'
and substr(ctr_or_hier, 1, 2) = 'el'
and ent || sub_ent in
(select ent || sub_ent
from ent_ref
where roll_ent || roll_sub_ent = '999100')
group by post_acct
having sum(avg_mtd_01) <> 0
or sum(avg_mtd_02) <> 0
or sum(avg_ytd_01) <> 0
or sum(avg_ytd_02) <> 0;
-- Cursor declaration for final_update
CURSOR cur_final_update IS
select b.plan_ent b_plan_ent,
b.plan_ctr b_plan_ctr,
a.post_acct a_post_acct,
sum(a.avg_mtd_01) sum_avg_mtd_01,
sum(a.avg_mtd_02) sum_avg_mtd_02,
sum(a.avg_ytd_01) sum_ytd_mtd_01,
sum(a.avg_ytd_02) sum_ytd_mtd_02
from mon_act_cypy a,
plan_unit_tbl b
where a.ent || a.ctr_or_hier = b.ent || b.ctr_or_hier
and a.rec_type = 'A'
and a.sum_flag = 'D'
and a.yr = '2008'
and b.hier_tbl_num = '001'
and a.ent || a.sub_ent in
(select ent || sub_ent
from ent_ref
where roll_ent || roll_sub_ent = '999100')
group by b.plan_ent, b.plan_ctr, a.post_acct
having sum(a.avg_mtd_01) <> 0
or sum(a.avg_mtd_02) <> 0
or sum(a.avg_ytd_01) <> 0
or sum(a.avg_ytd_02) <> 0;
-- Begin the procedure body
BEGIN
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update_el IN cur_final_update_el
LOOP
EXIT WHEN rec_final_update_el%NOTFOUND;
IF rec_final_update_el. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,
WHERE ent = rec_final_update_el.ent
AND center = rec_final_update_el.center
AND post_acct = rec_final_update_el.post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
rec_final_update_el.center,
rec_final_update_el.post_acct,
rec_final_update_el.sum_avg_mtd_01,
rec_final_update_el.sum_avg_mtd_02,
rec_final_update_el.sum_avg_ytd_01,
rec_final_update_el.sum_avg_ytd_02);
END IF;
END LOOP;
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update IN cur_final_update
LOOP
EXIT WHEN rec_final_update%NOTFOUND;
IF rec_final_update. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update.sum_avg_ytd_02,
WHERE ent = rec_final_update.b_plan_ent
AND center = rec_final_update.b_plan_ctr
AND post_acct = rec_final_update.a_post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update.b_plan_ent,
rec_final_update.b_plan_ctr,
rec_final_update.a_post_acct,
rec_final_update.sum_avg_mtd_01,
rec_final_update.sum_avg_mtd_02,
rec_final_update.sum_avg_ytd_01,
rec_final_update.sum_avg_ytd_02);
END IF;
END LOOP;
-- EXCEPTION handling section
EXCEPTION
-- Fire OTHERS Exception case by default
WHEN OTHERS THEN
-- ROLL BACK Transaction, if any failure
ROLLBACK;
ln_errnum := SQLCODE;
ls_errmsg := SUBSTR(SQLERRM, 1, 100);
-- Log the ERRORS into APP_ERRORS table using SPU_LOG_ERRORS procedure
spu_log_errors(ln_errnum, ls_errmsg, ls_appid, ls_appmsg);
-- End of the stored procedure
END spu_final_profit_plan;
[\pre]I'm not sure what you mean by, 'How to check with table for cursor..?' but I'll offer a comment on your Code Snippet. I think you want to know how to check if a record exists so you know if you need to perform an INSERT or an UPDATE.
Here is a snippet of your code. I'll put my comments in "Comment" style in your code.
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update_el IN cur_final_update_el
LOOP
/* There is no need to test for %NOTFOUND since you are using Cursor FOR Loop!
** This construct automatically exits when the last record is processed. */
EXIT WHEN rec_final_update_el%NOTFOUND;
/* Is this where you would like to know how to Check if the record already exist??
** I asked this because, 'rec_final_update_el.' is not valid syntax. Are you looking for
** an Cursor Attribute or Method you can check here?
** I would suggest a Primary Key or Unique Index on ENT, CENTER, and POST_ACCT
** on the TEMP_FINAL_PLAN table. Then simply perform an INSERT and code an
** Exception to UPDATE when you get a DUP_VAL_ON_INDEX exception. Otherwise,
** you will need to simply run an Implicit or Explicit Cursor to test if the row exists and
** use this return value to determine if you should INSERT or UPDATE. */
IF rec_final_update_el. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,
WHERE ent = rec_final_update_el.ent
AND center = rec_final_update_el.center
AND post_acct = rec_final_update_el.post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
rec_final_update_el.center,
rec_final_update_el.post_acct,
rec_final_update_el.sum_avg_mtd_01,
rec_final_update_el.sum_avg_mtd_02,
rec_final_update_el.sum_avg_ytd_01,
rec_final_update_el.sum_avg_ytd_02);
END IF;
END LOOP;I hope I've answered your question, but if I haven't please provide more details so we can better understand your request.
Craig... -
How to know the tables for a datasource like 2lis_17_order
Hi,
How to know the tables for a data source like 2lis_17_order, i have checked in Extract structure of that data source, only fields are visible but how will i know that these fields are getting extracted from so and so tables?
pls respond. thanks in advanceHi,
Go to RSO2 at source system, Enter data source and click on display.
if its table based then you can see table name there it self.
if its view based then notedown the view name and go to SE11, provide view and click on display. see joined table names there.
Thanks -
How's this partition table for my server?
How's this partition table for my server? Web/DNS/DHCP/Mail Server.
hdd1: ~8gb total
/boot - 100mb
swap - 1gb
/ - rest of drive
hdd2: ~155gb total
/var - whole drive
This is a Compaq ProLiant 5500 server with 10 drives. Will most things be installed inside /var or what?Zetsumei wrote:Web/DNS/DHCP/Mail Server.
Web = /srv
DNS = /var
DHCP = /var
Mail = Depends which package you use. I use postfix and told it to use /srv
I would half your swap, reduce /var and put the extra space into /srv
Also create a separate /tmp and /home to prevent accidental or deliberate DoS attacks by filling your / partition
Here's what I use on my Web / DNS / FTP server:
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 493M 176M 317M 36% /
/dev/xvdc 31M 674K 29M 3% /boot
/dev/lvmData-home 62M 26M 34M 44% /home
/dev/lvmData-usr 2.0G 848M 1.1G 45% /usr
/dev/lvmData-tmp 496M 20M 451M 5% /tmp
/dev/lvmData-srv 1.5G 769M 667M 54% /srv
/dev/lvmData-var 496M 231M 241M 49% /var
/dev/lvmData-pacman 384M 303M 82M 79% /var/cache/pacman
/dev/lvmData-backup 5.5G 4.6G 565M 90% /mnt/backup -
Tables for Bill to party in CRM
Hello Friends,
Can any body tell me tables that are associated with Bill To party in CRM?
Thanks in AdvanceI think there are no seperate tables for "bill to party". All business partners are stored in common tables - BUT000 & related tables. Bill-to-party is one of the roles (or partner function) which a business partner can take.
Hope this helps.
Regards,
Kaushal -
How to find an table for storing the employee salary
hi,
how to find an table for storing employee salary .. In which table those details are stored .. Please reply me.
regards,
kumarHi,
You can see the basic salary details from table -pa0008.If you can see the payroll data,then its not stored in transparent table.its in cluster.For viewing that,you can see through transaction code - pc_payresult.
Regards,
Manoj. -
How to find Related Tables for the Tcode given.
How to find Related Tables for the Tcode given. (master data)
Thanks in advance.Hi Sridhar,
Welcome to SDN.
The tables for a given transaction can be seen in the transaction SE80.
First goto SE93.
Give ur Tcode and find the program name.
Now goto SE80. select program in the first dropdown and give the program name in the second box. U can find the list of tables used.
One more way is : use ST05.
and One more is using FM 'get_tables'
Thanks,
Shailaja
Edited by: Shailaja on Jul 11, 2008 12:33 PM -
How design transaction table for accounting system
Hi master;
Sir,
I making accounting system for garment factory chart of account table I design but
I confused in transaction table how I design make only one table
Such as
Trans
Ac_code
Date
V_no
Description
DR_amount
CR_amoun
Chequ_no
Or make transaction master detail style
Tran_master
V_no
Date
Description
Ac_code
Chequ_no
Tran_detail
S_no
V_no
Ac_code
Description
DR_amount
CR_amoun
But how I get ledger from both style please give me idea how I set transaction table
Or give I any sample application or sample code
Thanking You
AamirHi master;
Sir,
I making accounting system for garment factory chart
of account table I design but
I confused in transaction table how I design make
only one table
Such as
Trans
Ac_code
Date
V_no
Description
DR_amount
CR_amoun
Chequ_no
Or make transaction master detail style
Tran_master
V_no
Date
Description
Ac_code
Chequ_no
Tran_detail
S_no
V_no
Ac_code
Description
DR_amount
CR_amoun
ut how I get ledger from both style please give me
idea how I set transaction table
Or give I any sample application or sample code
Thanking You
Aamir
only one table voucher may have more then one invoice then i would go with master detail .
If you maintain one table how will you maintain more then one invoice's voucher.
Khurram -
How to Design a Page for Both Insertion and Updation
Hi,
I have Page where I need to populate a table from Standard PO/AP table and once the save is clicked on the table,
the data shoudl be inserted in custoim table.
Ex: Ui table wil have 3 columns and say 5 rows
- PO#
- Line#
- Amount for 'X' purpose
where PO# and Invoice# is populated and Amount is empty
User will enter value in Amount column in all 5 rows and click on Save button.
Now these 5 rows with 3 columns should be inserted into the custom table (PO#, Line# and Amount)
How Can I design Model Objects for such a requirement?
Thanks,
KamathYou should create an EO on your custom table and a VO on your EO. As you insert records in the VO, corresponding rows are created as EO rows and when you commit (getOADBTransaction().commit()) in the AM everything would get committed to the DB.
As far as subject goes of having a common page, everytime you can execute the VO with the bind parameters and check whether a row exists. If it does exist then update the VO Row (I expect the master record to be unique row). Otherwise create a new Row for the master and then correspondingly for the details row.
Do let me know in case you need additional information.
Regards
Sumit -
Hello everybody, I am a SQL server DBA and I am planning to implement table partitioning on some of our large tables in our data warehouse. I
am thinking to design it using the sliding window scenario. I do have one concern though; I think the staging tables we use for new data loading and for switching out the old partition are going to be non-partitioned, right?? Well, I don't have an issue with
the second staging table that is used for switching out the old partition. My concern is on the first staging table that we use it for switch in purpose, since this table is non-partitioned and holding the new data, HOW ARE WE GOING TO USE/access THIS DATA
FOR REPORTING PURPOSE before we switch in to our target partitioned table????? say, this staging table is holding a one month worth of data and we will be switching it at the end of the month. Correct me if I am wrong okay, one way I can think of accessing
this non-portioned staging table is by creating views, which we don’t want to change our codes.
Do you guys share us your thoughts, experiences???
We really appreciate your help.Hi BG516,
According to your description, you need to implement table partitioning on some of our large tables in our data warehouse, the problem is that you need the partition table only hold a month data, please correct me if I have anything misunderstanding.
In this case, you can create non-partitioned table, import the records which age is more than one month into the new created table. Leave the records which age is less than one month on the table in your data warehouse Then you need to create job to
copy the data from partition table into non-partitioned table at the last day of each month. In this case, the partition table only contain the data for current month. Please refer to the link below to see the details.
http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/
https://msdn.microsoft.com/en-us/library/ms190268.aspx?f=255&MSPPError=-2147217396
If this is not what you want, please provide us more information, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
Creating flexible fields in forms 6i
HI,I am using forms 6i and patch 6.I have to display the results of my query in the flexible grid cells like we have in VB or Access which can be increased or decreased in width at runtime.Please help me how to create these flex fileds in forms 6i. T
-
ARD 2.2 Admin Crashes When Scanning Local Network
Out of the blue, my ARD Admin application began to crash when scanning the Local Network. I deleted the application's preferences file (com.apple.RemoteDesktop.plist) and retried with the same results. Installed ARD admin application on a different m
-
WVC210 and Motion Detection/NAS Device
I was using the CSWVM Software (latest) with my WVC210 and leaving my PC on all the time. I had the camera recording 24x7 to a folder on my PC but only when it deteced motion. Thsi was working great. I invested in a NAS device (QNAP TS-239 Pro II)
-
One more: cannot connect to itunes store...
Hi, The last 2 months I have issue with connecting to the App store, once in a while it works and I don't know why. I used the diagnostic tools, which says that everything is great, but in when i try, I get: check your network ... I don't have norton
-
Can two VTP Servers exist in a the same VTP domain?