Trying to link thru 3 tables to get a value
I am able to read a starting value {X12HEAD.GS_ID} from my input file. This is equal to a unique value {EDTRDPTNRS.GS_ID} in the EDTRDPTNRS table.
Once that record is found, I can take the value {EDTRDPTNRS.TPID} and concatenate "_I_VENDOR" to it and find that value in the EDSUBTBL in the field LIST_NAME.
Once that record is found, I can use the value {EDSUBTBL.LAWSON_VALUE} to find {APVENMAST.VENDOR}. I can then read the value of {APVENMAST.VENDOR_VNAME} which is what I was looking for all along.
if ({X12HEAD.GS_ID} = {EDTRDPTNRS.GS_ID}) then
if (({EDTRDPTNRS.TPID}+ "_I_VENDOR") = {EDSUBTBL.LIST_NAME}) then
if ({EDSUBTBL.LAWSON_VALUE} = {APVENMAST.VENDOR}) then
{APVENMAST.VENDOR_VNAME};
The problem is that this does not return anything. I also don't get any errors. Can somebody help me?
I understand that I need to use SQL queries to get to the three levels. I tried to get the first level to work using,
SELECT "EDTRDPTNRS.TPID"
FROM "LOGAN9.EDTRDPTNRS", "JCARROTT.X12HEAD"
WHERE (EDTRDPTNRS.EXT_GS_ID = X12HEAD.GS_ID)
The error message was:
Error in compiling SQL expression: Database ConnectionError:'SQL Exception: [SQL State:] 42000 [Error Mesage]: ORA-00936:missing expression [Database Vendor Code: 936]'.
I am trying to get the first answer so I can then use that answer for the next SQL Expression.
Similar Messages
-
Ipad won't start; trying to restore thru itunes, but get the message - can't restore because ipad is not set up. It was set up and has been in use for about a year. What do I do now?
I Have seen people report this issue when they try to sync their devices but in never seen it when trying to restore an unresponsive iPad. I would sguggest trying recovery mode now.
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
This procedure will totally erase the iPad so I hope that you have a backup that you can restore from....assuming that it works, that is. -
trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error occurred." message appears. how do I fix this?
Try this Technote
http://kb2.adobe.com/cps/405/kb405604.html
Try step 4 here
http://kb2.adobe.com/cps/405/kb405604.html#main_dat -
OWHS table not getting any value in PLD
I am trying to make a pld in which i want to pull the database table owhs and place the warehouse address i am not getting any value in the PLD however there is adress in the ware house field still its not getting me any result
Please help
Regards,
manishHi Manish....
Even if you get the OWHS table you wont get the address format as you desire. That is complete concatenated address. It will be like city, street, country like that.....
Regards,
Rahul -
Table to get Characteristics Value
Hello Everyone,
I need to fetch State Of Matter(SAP_EHS_1013_001_VALUE) for several Real Substances. Could anyone tell me the table in which i can get the values for all the Specifications in single shot.
Thanks in advance,
VigneshDear Vignesh
in addition to what has been explained yet:
EH&S does have a number of standard output variants, which can be used to get all data without additional programming. To get data you can use (based on hit list) e.g. output variant:
- Valuation
- EXCEl
- SUB_OUTPUT
Keep in mind that you need to populate correct the interface of BAPI_BUS1077_GETDETAIL; keep in mind that you can have nnumber of sort sequences/data records/value assignments per substance/specification.
The enumarted output variants provide you the necessary data by default.
As you did not describe the need of your request: it is clear that you can get the "same" result by using WWI techniques to retrieve the data from the characteristic.
Hope that this helps
With best regards
C.B.
Edited by: Christoph Bergemann on Nov 8, 2011 6:35 PM
Edited by: Christoph Bergemann on Nov 9, 2011 8:59 PM -
Trying to add a Table and getting Error
I have another table that I need to add to my report that houses a field description in a user defined field. The table is :
Select * from User_defined_valdt_codes
where VALIDATED_TABLE_NAME = 'auth_master'
and VALIDATED_COLUMN_NAME = 'service_user_defined_1'
I am trying to add that field to my query but it is not working. What am I doing wrong. I updated my query and it doesn't Error Out but it doesn't return any data either. If the new table information is not there I get data back and I can pull the the data in the user_defined_valdt_codes table as well what am I doing wrong? Any help is truly appreciated!
Thanks!
SELECT
A1.auth_number,
A1.AUTH_TYPE,
A1.seq_memb_id,
A1.AUTH_TYPE,
a1.review_type,
A1.plan_code,
A1.OVERALL_STATUS,
A1.CLOSED_REASON,
UVD.validated_column_name,
A1.DENIED_REASON,
Case
when A1.DENIED_REASON in ('HS001','HS002','HS003') then 'MED NECESS'
when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
else 'Unknown'
end DENIED,
To_Char(a1.admit_primary_date,'mm/dd/yy') As "Prim_Admit_Date",
A1.service_admit_type AS "IP ADMIT TYPE",
A1.service_user_defined_1 AS "OP Serv Type",
To_Char (AP.contact_date,'mm/dd/yy') As "Contact_Date",
To_Char (AP.decision_date,'mm/dd/yy') As "Decision_Date",
ap.recommendation_code,
A1.PLACE_OF_SERVICE,
AP.ADVISOR_DECISION,
PM.LAST_NAME,
TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
MV.LINE_OF_BUSINESS
FROM Windsoradm.auth_master a1
INNER JOIN Windsoradm.auth_phys_advisor ap
ON a1.auth_number=ap.auth_number
INNER JOIN windsoradm.prov_master pm
ON ap.seq_prov_id=pm.seq_prov_id
LEFT JOIN windsoradm.note_master nm
ON nm.seq_memb_id=a1.seq_memb_id
AND NM.NOTE_TYPE='PHA'
INNER JOIN windsoradm.member_mv mv
ON mv.seq_memb_id=a1.seq_memb_id
INNER JOIN windsoradm.user_defined_valdt_codes UVD
ON A1.service_user_defined_1=UVD.VALIDATED_COLUMN_NAME
Where mv.Line_of_Business <>'SFS'
AND UVD.VALIDATED_TABLE_NAME = 'auth_master'
and UVD.VALIDATED_COLUMN_NAME = 'service_user_defined_1'
/*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
/*AND a1.active_physician_advisor = 'Y'*/
/*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
/*AND A1.AUTH_NUMBER='415712'*/
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
ORDER BY 1
Edited by: 925518 on Jun 4, 2012 9:25 AMI got it to work this way I was putting in a wrong field that was not returning data now it works. Yay!!!!!
SELECT
A1.auth_number,
A1.AUTH_TYPE,
A1.seq_memb_id,
A1.AUTH_TYPE,
a1.review_type,
A1.plan_code,
A1.OVERALL_STATUS,
A1.CLOSED_REASON,
A1.DENIED_REASON,
Case
when A1.DENIED_REASON in ('HS001','HS002','HS003') then 'MED NECESS'
when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
else 'Unknown'
end DENIED,
To_Char(a1.admit_primary_date,'mm/dd/yy') As "Prim_Admit_Date",
A1.service_admit_type AS "IP ADMIT TYPE",
A1.service_user_defined_1 AS "OP Serv Type",
UVD.user_valid_code_long_desc as "OP_Type_Desc",
To_Char (AP.contact_date,'mm/dd/yy') As "Contact_Date",
To_Char (AP.decision_date,'mm/dd/yy') As "Decision_Date",
ap.recommendation_code,
A1.PLACE_OF_SERVICE,
AP.ADVISOR_DECISION,
PM.LAST_NAME,
TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
MV.LINE_OF_BUSINESS
FROM Windsoradm.auth_master a1
INNER JOIN Windsoradm.auth_phys_advisor ap
ON a1.auth_number=ap.auth_number
INNER JOIN windsoradm.prov_master pm
ON ap.seq_prov_id=pm.seq_prov_id
LEFT JOIN windsoradm.note_master nm
ON nm.seq_memb_id=a1.seq_memb_id
AND NM.NOTE_TYPE='PHA'
INNER JOIN windsoradm.member_mv mv
ON mv.seq_memb_id=a1.seq_memb_id
INNER JOIN windsoradm.user_defined_valdt_codes UVD
ON A1.service_user_defined_1=UVD.user_valid_code
AND UVD.VALIDATED_TABLE_NAME = 'auth_master'
AND UVD.VALIDATED_COLUMN_NAME = 'service_user_defined_1'
Where mv.Line_of_Business <>'SFS'
/*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
/*AND a1.active_physician_advisor = 'Y'*/
/*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
/*AND A1.AUTH_NUMBER='415712'*/
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
ORDER BY 1 -
I live in the United States and my PayPal account is in the United States. I had them linked previously but unlinked for a bit and now i'm getting this error which is really strange.
Thanks!And what if i have money on my paypal account, like $100, and i want to buy a .99 app?
The paypal acc dont have linked any bank account or debit/credit card.
Is that a valid source?
I dont live in the US, of course. -
Trying to import a table but getting this:
SAP DBTech JDBC: [258]: insufficient privilege: Not authorized
i have selected Tables/ImportHello,
this is security related problem.
Please see my blog for required privileges (chapter 2.1 Required security authorizations):
SAP HANA - Modeling Content Migration - part 1: Preparations, Security Requirements, Export
I think you are missing IMPORT privilege (but can be other privilege as well).
2.1.3 Target: Import of data content
For table import you need to have IMPORT system privilege and write access to target schema:
for table creation (and optionally data load): CREATE ANY
for table dropping and re-creation (and optionally data load): CREATE ANY, DROP
Note: It might look like error but you do not need any other privileges (no need to grant SELECT, INSERT or DELETE privilege).
In case that target schema does not exist and you wish to create is as part of import process you need to grant the user system privileges IMPORT and CREATE SCHEMA (no other privileges are required).
Note: From owner perspective it does not matter who started the import. Object owner is always user SYSTEM.
Tomas -
Please help - Joining three tables and get row values into Column. Please help!
Hi,
There is a SourceTable1 (Employee) with Columns like EmployeeID,Name,DOB.
There is a sourcetable2 (EmployeeCode) with columns like EmployeeID,Code,Order.
There is a source table 3 #EmployeeRegioncode and its columns are (EmployeeID , RegionCode , [Order]
The target table 'EmployeeDetails' has the following details. EmployeeID,Name,DOB,Code1,Code2,Code3,Code4,regioncode1
regioncode2 ,regioncode3 ,regioncode4
The requirement is , the value of the target table columns the Code1,code2,code3 ,code4,code5 values should
be column 'Code' from Sourcetable2 where its 'Order' column is accordingly. ie) Code1 value should be the 'Code' value where [Order] column =1, and Code2 value should be the 'Code' value where [Order] =2, and so on.
Same is the case for Source table 3- 'Region code' column also for the columns regioncode1
regioncode2 ,regioncode3 ,regioncode4
Here is the DDL and Sample date for your ref.
IF OBJECT_ID('TEMPDB..#Employee') IS NOT NULL DROP TABLE #Employee;
IF OBJECT_ID('TEMPDB..#EmployeeCode') IS NOT NULL DROP TABLE #EmployeeCode;
IF OBJECT_ID('TEMPDB..#EmployeeDetails') IS NOT NULL DROP TABLE #EmployeeDetails;
---Source1
CREATE table #Employee
(EmployeeID int, Empname varchar(20), DOB date )
insert into #Employee VALUES (1000,'Sachin','1975-12-12')
insert into #Employee VALUES (1001,'Sara','1996-12-10')
insert into #Employee VALUES (1002,'Arjun','2000-12-12')
---Source2
CREATE table #EmployeeCode
(EmployeeID int, Code varchar(10), [Order] int)
insert into #EmployeeCode VALUES (1000,'AA',1)
insert into #EmployeeCode VALUES (1000,'BB',2)
insert into #EmployeeCode VALUES (1000,'CC',3)
insert into #EmployeeCode VALUES (1001,'AAA',1)
insert into #EmployeeCode VALUES (1001,'BBB',2)
insert into #EmployeeCode VALUES (1001,'CCC',3)
insert into #EmployeeCode VALUES (1001,'DDD',4)
insert into #EmployeeCode VALUES (1002,'AAAA',1)
insert into #EmployeeCode VALUES (1002,'BBBB',2)
insert into #EmployeeCode VALUES (1002,'CCCC',3)
insert into #EmployeeCode VALUES (1002,'DDDD',4)
insert into #EmployeeCode VALUES (1002,'EEEE',5)
---Source tbl 3
CREATE table #EmployeeRegioncode
(EmployeeID int, RegionCode varchar(10), [Order] int)
insert into #EmployeeRegioncode VALUES (1000,'xx',1)
insert into #EmployeeRegioncode VALUES (1000,'yy',2)
insert into #EmployeeRegioncode VALUES (1000,'zz',3)
insert into #EmployeeRegioncode VALUES (1001,'xx',1)
insert into #EmployeeRegioncode VALUES (1001,'yy',2)
insert into #EmployeeRegioncode VALUES (1001,'zz',3)
insert into #EmployeeRegioncode VALUES (1001,'xy',4)
insert into #EmployeeRegioncode VALUES (1002,'qq',1)
insert into #EmployeeRegioncode VALUES (1002,'rr',2)
insert into #EmployeeRegioncode VALUES (1002,'ss',3)
---Target
Create table #EmployeeDetails
(EmployeeID int, Code1 varchar(10), Code2 varchar(10),Code3 varchar(10),Code4 varchar(10),Code5 varchar(10) , regioncode1 varchar(10),
regioncode2 varchar(10),regioncode3 varchar(10),regioncode4 varchar(10))
insert into #EmployeeDetails VALUES (1000,'AA','BB','CC','','','xx','yy','zz','')
insert into #EmployeeDetails VALUES (1001,'AAA','BBB','CCC','DDD','','xx','yy','zz','xy')
insert into #EmployeeDetails VALUES (1002,'AAAA','BBBB','CCCC','DDDD','EEEE','qq','rr','ss','')
SELECT * FROM #Employee
SELECT * FROM #EmployeeCode
SELECT * FROM #EmployeeRegioncode
SELECT * FROM #EmployeeDetails
Can you please help me to get the desired /targetoutput? I have sql server 2008.
Your help is greatly appreciated.select a.EmployeeID,b.code1,b.code2,b.code3,b.code4,b.code5,c.Reg1,c.Reg2,c.Reg3,c.Reg4 from
#Employee a
left outer join
(select EmployeeID,max(case when [Order] =1 then Code else '' end) code1,
max(case when [Order] =2 then Code else '' end)code2,
max(case when [Order] =3 then Code else '' end)code3,
max(case when [Order] =4 then Code else '' end)code4,
max(case when [Order] =5 then Code else '' end)code5 from #EmployeeCode group by EmployeeID) b
on a.EmployeeID=b.EmployeeID
left outer join
(select EmployeeID,max(case when [Order] =1 then RegionCode else '' end) Reg1,
max(case when [Order] =2 then RegionCode else '' end)Reg2,
max(case when [Order] =3 then RegionCode else '' end)Reg3,
max(case when [Order] =4 then RegionCode else '' end)Reg4 from #EmployeeRegioncode group by EmployeeID) c
on a.EmployeeID=c.EmployeeID
Thanks
Saravana Kumar C -
Read table to get next value (Sequence Question)
Is there a function in line with my_seq_no.nextval that can read a value in the previous field and get the next sequence number? I know how to create a sequence, but I thought that there is something like a getnextval function.
Thanks.Preston,
The problem is that there is no such thing as a previous value in Oracle.
You have to specify some way (like maximum number.. etc..) to get the expected value...
Sometimes , you can see code like....
insert into emp values
(select max(empid) + 1 from emp) new_emp_id,
''XYZ' ename,
from dual;As is evident...the above code takes the maximum value from the table emp and gives you the next emp id.
The problem here is that all the currently logged in users will get the same value for the new empid until someone inserts a record and then.. all the others would have unique constraint errors (if you have the right constraints in place).
Using sequences is the right way to make sure all the concurrent users get their own unique values for the new values.
As for the getnextval, one could always come up with a function which just selects the max(col_name)+1 and returns it... but it has the same problems as the insert...select mentioned above.. So i would rather not provide code for such a thing.. I'd be doing more damage than help. Please use a sequence for your case. -
Link between table SOFFPHF and FI document
Hello Experts,
I have a requirement to find all the FI documents with the attachement .
We have a table SOFFPHF (SOFF: Files of Physical Information Objects) where i can get the details of attachement, But now how to link this table with the FI document which has this attachement.
I tried the link using table SRGBTBREL , But i am not getting entries from table SOFFPHF in this table.
Thanks.
Regards,
Ganesh.Hi Shivkumar,
When you enter the item category as 'D'then a purchase order is
classified as a service purchase order.
When you use ML81N to perform a service entry, then automatically
the GR document is generated.The basis for this is a service can
only be performed and cannot be stored.
The PO history table will give you a good idea of the relation.
You can check the EKBE table.Enter the service entry sheet number
in the field LFBNR of EKBE table, enter the SES number, you will
see all the documents associated with it. -
Filter and sorting on table when getting data through store proc
Hi All,
I am using JDeveloper 11g and trying to implement a table which gets its data from a result set returned by a store procedure. The store procedure is using joins to fetch data from multiple oracle tables. I am able to display the data by binding result set element to each columns of ADF table, but sorting and filtering is not working on this, I have checked the chek box while creating table to make it sortable and filtering.
Please help on this issue. How can we implement filtering and sorting in this case?
Thanks in advance
Saurabh agarwalHi,
I use managed bean directly to access data. My back end returns me a map with the values and these values are then mapped to columns.
Can you please suggest me any link or example where this model supporting filter is used.
Thanks
Saurabh -
How to get the values inputted by the user in Classification view of MM02
Hello,
Does anyone know how to get the inputted values in Classification view of MM02/MM01? I tried to use CLAF_CLASSIFICATION_OF_OBJECTS but this gets the values that is currently saved in the tables and not the values that the user recently inputted in the screen.
Regards,
Alfredhi
try this...
How to Display the Batch Characteristics in BOM? -
How to get the values multiple times for the specified element - ABAP IXML.
Hi all,
i have requirement to get the values for the specified elements multiple times. eg:., if the element is used in the xml 4 times then i need to get all the 4 values. here is the sample xml,
<View mmRelease="6.30" mmVersion="2.0" mmTimestamp="1180099591892" name="Comp_viewtestView" package="sap.com" masterLanguage="en">
<AbstractView.InboundPlugs>
<InboundPlug name="ip2">
<ParameterizedFeature.Parameters>
<Parameter name="ippara2">
<Parameter.Type>
<Core.ForeignReference modelName="DtDictionary" package="com.sap.dictionary" name="binary" type="DtSimpleType"/>
</Parameter.Type>
</Parameter>
</ParameterizedFeature.Parameters>
</InboundPlug>
<InboundPlug name="hi">
<ParameterizedFeature.Parameters>
<Parameter name="hipara">
<Parameter.Type>
<Core.ForeignReference modelName="DtDictionary" package="com.sap.ide.webdynpro.uielementdefinitions" name="Visibility" type="DtSimpleType"/>
</Parameter.Type>
</Parameter>
</ParameterizedFeature.Parameters>
</InboundPlug>
Here i need to store the following values in internal table, the element to get the values are,
(1) InboungPlug name and the respective values of "Parameter name" and "Parameter type" name value.
The output will be of 2 records & values should be
Inbound plug name = ip2
Parameter name = ippara2
Parameter type = binary
2nd record
Inbound plug name = hi
Parameter name = hipara
Parameter type = Visibility
These 2 records should be in internal table and then i will be passing to database table...
Can anyone provide me the code for the above......
Thanks in advance,
Vishnu.I didn't get ur requirement..
As per my understanding, upload the XML file into an internal table and then loop over the internal table and get the values for ptype and pname..
XML ABAP - may b helpfull
Edited by: Veeranji Reddy on May 7, 2009 2:10 PM -
Hey Guys
I'm trying to find a way to get multiple values using the following method
HttpSession.getAttribute(java.lang.String)
Here's the scenerio. Its a already written application and now i'm trying to make some changes. earlier in the jsp page a combo box was used and value was retrieved in the servlet using the getAttribute method of Session. Now I'm using a html multiple selection list and have to retrieve all the values selected in the list in the servlet. Can anyone please suggest me how to do that. HTTPRequest class has a method getParameterValues which will let me do that but i have to do is using HTTPSession.
Thanks for your time to read thisI'm not sure what you are trying to do. You can only use session.getAttribute to retrieve something that has already been stored in the session with a previous setAttribute. If you need to store multiple values under one attribute name using setAttribute, you can store an array, or an ArrayList or whatever type of Collection you want. The request.getParameterValues method is the only way you can retrieve form parameters than can have multiple values. If the servlet hasn't already processed these parameters and put them into the session for you, you have to use request.getParameterValues.
Maybe you are looking for
-
I cannot install office 2011 onto macbook pro?
I have a macbook pro OSX mavericks or what ever it is called... I wish to install Microsoft office 11 but I can't because of this? http://i.imgur.com/FhUIDBw.png http://imgur.com/trpdOKO When I try to open up the application "pages" sometimes it quit
-
I have restarted, reset, erased all data and network settings, tried different ports and different cords, restarted computers, reinstalled and updated iTunes... and now I cannot use my iPod at all. It is less than 6 months old, Apple won't help me on
-
Icons and toolbar text is way too small and hard to read (kind of fuzzy)
The toolbars (menu bars) at the top of the screen have letters and icons and symbols that are way too small to read. Also the background color options are limited. Light black on grey is hard to read. I have tried customizing all that I can. There us
-
Hello All: Is it possible to have the CASE Statement in the cursor? If so, could you please show me how to use it? I tried to use it as following but it did not work on Form Builder. I tried it on Oracle SQL *Plus and it worked there. CURSOR tbl_chck
-
Solaris 10 NIC, what do you use?
Well my previous post http://forum.java.sun.com/thread.jspa?threadID=5258945 yeilded no comments other than a link to the approved hardware list http://www.sun.com/bigadmin/hcl/, thank you SolarisSAinPA for that little bit of info, but I am sill left