PO Base Tables and Validation
Hello All,
I need to develop conversion interface of open purchase orders.
Need help to know what are the base tables which are used for the same.
Also Need to know what all validations needs to be done.
I have identified a few.
1 PO Number already Exists in Oracle EBS.
2 Vendor not defined in Oracle EBS.
3 Currency Code not defined in Oracle EBS.
4 Bill to Location Not defined.
5 Ship to Location not defined.
6 Payment Terms not defined in Oracle EBS.
7 Vendor Site not defined
8 Buyer Not defined in EBS
9 EBS Ship to Org does not exist
9 UOM Code not defined in EBS
10 Account Code not valid
Can someone pls help with the experiences.
Thanks
Hi,
3 important tables when you are converting the PO's in Oracle interface are
PO_HEADERS_INTERFACE
PO_LINES_INTERFACE
PO_DISTRIBUTIONS_INTERFACE
Normally when you are converting the data through the stanadard interface, all validations are taken care by the above interface tables, Import Standard Purchase Orders is the standard concurrent program provided by oracle to load the data from standard interface to the base tables. PO_HEADERS_ALL, PO_LINES_ALL, PO_LINE_LOCATIONS_ALL, PO_DISTRIBUTIONS_ALL.
And also you need to take care of the partially received PO's, Partially Billed PO's.
Hope this Helps,
Raghav
Similar Messages
-
Aggregation table - Diffrent agg levels for base table and agg table
Is it possible to have Different aggregation level for base table and Aggregation. Say sum on a column in AGG table and Count for the same column in Fact table.
Example
Region,Day_product,sales person, customer are dimensions and Call is a fact measure
FACT_TABLE has columns Region, Day, Product, Sales person,Customer, Call
AGG_TABLE has columns Region, Month,Product, call
We already have a Logical Table definition for the fact table say FACT_CALL
We have a Logical column called No of customers.
For the Data source as FACT_TABLE Formula for the column is "Customer" and Aggregation level is count distinct.
But agg table we already have a calculated column call TOT_CUSTOMERS. which is been calculated and aggregated in the ETL.
IF we map this to the logical column we have to set the formula as TOT_CUSTOMERS and we need to define aggregation type as SUM as this is at REGION, MONTH AND Product level. But OBI does not allow to do so.
Is there a work around for this? Can you please let us know.
Regard
Arun DThe way BI server picks up the table that would satisfy the query is through column mappings and contents levels. You have set the column mappings to TOT_CUSTOMER, which is right. When it comes to aggregation, since its already precalculated through ETL, you want to set the aggregation to SUM. Which I would say - is not correct, you can set the aggregation to COUNT DISTIMCT which is same as that of the detailed fact. But set the content levels to month in date table, and appropriate levels in region etc., So now BI Server will be aware of how to aggregate the rows when it chooses the agg table.
-
Need to know base table and base column name for Oracle view columns
I am trying to load metadata for some views and that requires me to know what the final table and column name would be corresponding to the view column.
For example, if I have a view x_v that is select a,b from x_v2; and x_v2 is a view that is select a,b,c from x;
I need to get the following information.
View View Col Base Table Base Col
X_V A X A
X_V B X B
and so on.
Is it possible to get this programmatically using any SYS schema tables or Dependency tables?
I tried an indirect approach wherein I lock tables using LOCK TABLE or FOR UPDATE OF. But I'm not too sure if I can go down to the level of individual view columns.
Can you help me with this?Thanks. I was looking at some indirect approaches.
I came up with this script that does it faster than dependencies but thats just for tables and not column mapping.
declare
cursor bt(cp_sid number) is
select u.name uname, o.name oname
from sys.obj$ o, sys.user$ u
where o.obj# in (select id1
from v$lock
where sid=cp_sid)
and u.user# =o.owner#;
cursor c_sid is
select sid
from v$session
where audsid =userenv('sessionid');
l_sid number;
l_view varchar2(100):= 'PER_PEOPLE_V';
l_schema varchar2(10):= 'APPS';
begin
open c_sid;
fetch c_sid into l_sid;
close c_sid;
dbms_output.put_line('SID: '||l_sid);
execute immediate 'lock table '||l_schema||'.'||l_view||' in row share mode nowait';
for i in bt(l_sid) loop
dbms_output.put_line(i.uname||'.'||i.oname);
execute immediate 'alter table '||i.uname||'.'||i.oname||' disable table lock';
execute immediate 'alter table '||i.uname||'.'||i.oname||' enable table lock';
end loop;
end;
It basically uses locks on views to verify locks on the base tables.
Just wondering, can we use FOR UPDATE OF statements to get to the columns? -
DATA BASE TABLE AND INTERNAL TABLE
Dear Friends,
please help me out in getting complete information about database table and internal table.
you can email me at < Removed by moderator - please maintain e-mail iDs in Business Card>
Message was edited by:
Arun VaradarajanHi Hazi,
<b>DATABASE Tables :</b>
This are the tables which are stored in the database (eg Oracle , informix , DB2 etc..) Physically. u can view it from T-codes SE11 or SE16. here in SE11 u can create ur own Transparent table.
for more information...
http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/dictionary_tutorial.html
<b>Internal Tables.</b>
While generating reports or other objects we are not modifying the database tables directly first we are selecting the data of the database table into the internal tables... so that we can reduce the database access time and network traffic .. which is highly needed in R/3 system..
internal tables are not exist phyiscally in the system. its like a array. the existance of the internal tables is upto the program execution in which u r declaring nd using it...
for more information..
http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/internaltables_tutorial.html
Hope it will solve ur problem..
<b>Reward points if useful..</b>
Thanks & Regards
ilesh 24x7 -
Issue in Store XML into Schema generated tables and Validation XML against registered schema.
Hello friends,
I am facing some problem when store xml into generated tables from registered schema.
This is my Schema
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.abc.inf.in/test" targetNamespace="http://www.abc.inf.in/test" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="abc.xsd"/>
<xs:element name="project" type="student">
<xs:annotation>
<xs:documentation> This is a Documentation</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
-- This is my xml document
<project versao="2.00" xmlns="http://www.abc.inf.in/test">
<test xmlns="http://www.abc.inf.in/test">
<intest version="2.00" Id="testabc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<ide>
<cUF>35</cUF>
<cNF>59386422</cNF>
<natOp>this is post</natOp>
<indPag>1</indPag>
<mod>55</mod>
<serie>1</serie>
</ide>............
Not giving full because it's too long.
1. I Successfully registered Schema into database
2. Then i generate table from registered Schema
2. In my java code i validated XML document against Schema and it's successfully validate.
3. But when i stored this XML into this generated table it's give me error
Like :
INSERT INTO XMLTABLE
VALUES
(XMLTYPE(bfilename('MYDIR','testabc.xml'),NLS_CHARSET_ID('AL32UTF8')))
Error report:
SQL Error: ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
LSX-00333: literal "94032000" is not valid with respect to the pattern
And i have to store this xml into this tables so what i have to do ?Thanks for your reply odie_63.
I got this my error solution. My XML document is not well structured based on my registered XML Schema.
Means In My XML Document there are some invalid value and that not match my schema pattern so it's gives this error
SQL Error: ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
LSX-00333: literal "94032000" is not valid with respect to the pattern
For Solution we have two ways
1. I have changed this literal "94032000" value in my xml file then save it.
2.
- We have to delete this schema then
- we have to change Schema pattern for particular element
like :--
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{3}"/>
</xs:restriction>
- then store xml into database it works..
Thanks. -
Automatic creation of data base table and RFC through Programming
Hi All ,
I have an urgent requirement in which i will be given a Table design(Having parameter names and its type length etc) in xml format or in excel sheet , then by using that as an input i have to create it in Backend automatically through my coding. Can anyone tell me that how this can be done.
Another requirement like upper one is that if i have to automatically generate code for a Function Module on the basis of its signature given . then how this can be done.
Thanks & Regards,
Abhishek Bajpai
mailid --> [email protected]
Edited by: ABHISHEK BAJPAI on Dec 21, 2007 8:10 AMHello Abhishek
Have a look at thread: [DYNAMIC DDIC TABLE|DYNAMIC DDIC TABLE;
The function module you are looking for is FUNCTION_STUB_GENERATE.
Regards,
Uwe -
Why mandatory columns of Base tables and interface are differant?
Hi guys , i have load supplier into AP(ap_suppliers) through Interface table(ap_suppliers_int) but my confusion is that ap_suppliers have 8 mandatory columns but it's interface ap_suppliers_int have only 2 mandatory column.why?and also with these 2 columns records are also loading.
Regards,
Shakeel khanHi Shakeel,
If you are using 12.0, data in AP_SUPPLIERS is not imported from AP_SUPPLIERS_INT table, data in AP_SUPPLIERS_INT corresponds to data in PO_VENDORS(Vendors data Maintained in 11i).
If its 11i, If Segment1 is NULL, its generated from below sql,
SELECT user_defined_vendor_num_code
INTO l_ven_num_code
FROM financials_system_parameters;
And if summary flag is NULL its inserted 'N' and if Enabled Flag is NUll its inserted as 'Y'.
The rest are WHO columns.
Refer to AP_PO_VENDORS_APIS_PKG for additional info on this.
Hope this helps.
Thanks,
Kiran -
IRecruitment and self service applications base tables&interfaces
Hi,
Please provide the following information,i am new to this modules.
a) iRecruitment base tables.how many interfaces available in iRecruitment?
b) Self service applications of HRMS base tables and interfaces?
thanks.check irep.oracle.com
-
Hi
I am trying to create a view.
Chosing a sap table fo ex: likp
and a customized table activated which is having a customized field with curr reference field as waerk of vbak (reference table).
Now while i am activating the view i have an error : the customized table is not a base table
please le tme know what is a base table and how can i successfully create my view .
thanks in advance
points will be awarded
vgmnmHi,
Try to create a view on normal application tables , and dont include any customizable table as base table in view creation. because those customizatable table can be maintained through SPRO only. So it wont allow you to include that in the view creation.
Regards,
Naveen -
The type of the database table and work area are not Unicode convertible
***Data declaration
TYPES : BEGIN OF t_zle_lagerplanung,
SEl, "stores which row user has selected
kdauf TYPE zle_lagerplanung-kdauf,
kdpos TYPE zle_lagerplanung-kdpos,
etenr TYPE zle_lagerplanung-etenr,
papiermaschine TYPE zle_lagerplanung-papiermaschine,
runnr TYPE zle_lagerplanung-runnr,
prio TYPE zle_lagerplanung-prio,
werk TYPE zle_lagerplanung-werk,
durchmesser TYPE zle_lagerplanung-durchmesser,
breite TYPE zle_lagerplanung-breite,
anzle TYPE zle_lagerplanung-anzle,
lgpla TYPE zle_lagerplanung-lgpla,
lgtyp TYPE zle_lagerplanung-lgtyp,
art TYPE zle_lagerplanung-art,
anzhoehe TYPE zle_lagerplanung-anzle,
fa TYPE zle_lagerplanung-fa,
END OF t_zle_lagerplanung.
DATA : it_zle_lagerplanung TYPE STANDARD TABLE OF t_zle_lagerplanung INITIAL SIZE 0,
wa_zle_lagerplanung TYPE t_zle_lagerplanung.
Here I am getting the data in internal table by using thiis select statement.
SELECT kdauf kdpos etenr papiermaschine runnr prio werk durchmesser breite
anzle lgpla lgtyp art anzhoehe fa
FROM zle_lagerplanung INTO CORRESPONDING FIELDS OF TABLE it_zle_lagerplanung
WHERE kdauf IN s_kdauf
AND KDPOS IN s_kdpos
AND werk = p_werks.
But while updating the particular field in zle_lagerplanung using this statement
UPDATE zle_lagerplanung from table it_zle_lagerplanung.
it is giving syntax error
"The type of the database table and work area (or internal table)
"IT_ZLE_LAGERPLANUNG" are not Unicode convertible. "
Could any one help me out how to resolve this problem....
Thanks in advanceDear Shayamal,
XXX....are not Unicode convertible
This error comes while inserting or updating database and the fields are not matching between data base table and structure .
Check you fields of data base table and "zle_lagerplanung" and struture "it_zle_lagerplanung" . There fields must match.
thanks and regrds,
Anup Banerjee -
Can we create a view involving a standard table and a ZTable ?
Hi,
I created a view based on 2 tables : EKKO and a Ztable having EBELN field in common.
Now, when i try to create a PO in ME21N , this view should get updated.But,It doesn't happen so.
So i want to confirm that is it not possible to create a view on a Ztable...
Also can anyone suggest any other option to do so...Hi,
Yes you can create a view using a standard view using a standard Data base table and a custom data base table. But this getting updated would not be done by the standard program of Tcode ME21N, I reckon you need to write the logic of updation in an enhancement.
Regards,
Murthy. -
List the base tables of a view
Hi All,
I have a view but I do not have any information about the base tables and the query that was used to set up this view. Is there a way to atleast list the base tables on which the view was created!
Thanks in advance!
~SQL> desc user_source
Name Null?
Type
NAME
ARCHAR2(30) - > Name of the View.
TYPE
ARCHAR2(12)
LINE
NUMBER
VARCHAR2(4000) -> will give you the text to
create the View.-----------------------------------------------------------------------------------------------------------------------
For some reason the view I have is not listed in the NAME .. -
VA03 - Base tables & Logic for structures
Hi,
In a data archiving project, I have to identify the tables & fields which are to be archived based on customers reports. When we try to find out tables & fields for the reports, there are lot of fields with structures. How to find out the base tables for these structures? In VA03 report, I need to find out the base tables & logic for the below structure-fields
CCDATA-CCINS
CCDATA-CCNUM
RV45A-DWERK
RV45A-BTGEW
RV45A-GEWEI
RV45A-VOLUM
RV45A-VOLEH
CCDATA-DATBI
VBAPD-EPMEH
RV45A-PRGBZ
KOMV-KSCHL
KOMV-KBETR
RV45A-KOEIN
RV45A-KFREL
RV45A-ABGESP
RV45A-DWERK
VBAPD-EPMEH
RV45A-PRGBZ
RV45A-KFREL
RV45A-KWMENG
RV45A-PRGBZ
RV45A-ETDAT
RV45A-EPMEH
RV45A-KFREL
RV45A-PSTYP
RV45A-KNTTP
VBEPD-RSETD
VBAPD-EPMEH
RV45A-GRETD
Could you please tell me the base tables & the logic for these fields.
Thanks,
VenkatHi
Venkat Rao
Just check the field in the tables given by Jhon and also check the some of the tables below
VEPVG - Open Sals Order QTY.
VBUK - Open Sales Order
Use the transaction SE16 / SE11 and try to serach the field and find out base tables and logic.
RV45A-DWERK --- Plant u will find this in VBAP
RV45A-PSTYP --- Document type and so on.....
Thx. -
Alternative of base tables.
Hi,
Is there any alternative for base tables, By that performance will be improved still more? Not Internal times.
Thanks
Avi
Points will be rewardedHi
Use of Views instead of base tables
Many times ABAP programmers deal with base tables and nested selects. Instead it is always advisable to see whether there is any view provided by SAP on those base tables, so that the data can be filtered out directly, rather than specially coding for it.
Not recommended
Select * from zcntry where cntry like IN%.
Select single * from zflight where cntry = zcntry-cntry and airln = LF.
Endselect.
Recommended
Select * from zcnfl where cntry like IN% and airln = LF.
Endselect.
Thanks
MAx -
Sorting by non-base table fields - Is it possible?
I have a form with a block that associated with a table.
There are several base table fields and several non-base table fields displaying information in this block.
I need to sort the data in this block by non-base table fields.
Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?This may help you.
Example
I have a customer_id in my base table, but I want the data ordered by customer_name which is from another table.
Answer
You need to create a function in the database with an associated
pragma to specify the level of purity of the function
WNDS (write no database state)
WNPS (write no package state)
PRAGMA RESTRICT_REFERENCES(fn_get_dname, WNDS, WNPS);
Function fn_get_dname (p_empno in number) return varchar2 is
v_dept_name varchar2(40);
begin
select dname into v_dept_name
from dept, emp
where dept.deptno = emp.deptno
and emp.emp_no = p_emp_no;
return v_dept_name;
end;
order by in a block based on the emp table (assuming you want a list of employees by department name)
order by fn_get_dname(empno), empno
Maybe you are looking for
-
Error message on Madonna - Confessions from a dance floor
when i tried to open the link for the Madonna album Confessions On a Dance Floor (deluxe version) I received a message saying it wasn't going to be available until the year 2038. is there a way around this or is this simply a bug in the itunes system
-
I need to get this off my chest, as I see 2 similar posts regarding this same problem. If bestbuy.com proceeds to take in an order and cancel it, you should also be able to reissue a promotion code. Particularly because bestbuy.com customer service
-
Hi, I want to use layers within a static background, instead of changing pages to navigate through my site. My dreamweaver MX help function is not working. Can anyone please tell me how to insert layers & navigate between them? Thankyou! Laini
-
I Don't know why my iPhone 4 keeps turning off even if the battery more than 50 percent and it won't also turn on unless I starts charging again. It also turns off while on call or try to use any apps. Please guide
-
Aironet 1300 dropping every 36-48 hours, help please
Within the past month our 1300's have begun going down around every 36 hours. They are setup with a root bridge and 4 non-root bridges and are set to use the least congested frequency. I am interested in solving this problem as well as setting up the