To Fetch Data from GTS and print in R/3
Hi,
iam in need of help.
the core is i have a print program in R/3.from R/3 i have to validate some field with SAPGTS.
so that i have to apply a RFC call from R/3 ( print program ) to GTS and i have to fetch the data from GTS and print in R/3.
help me out in finding the RFC.
the print program is for VL02N
Mohan:
SAP and GTS are linked through a RFC destination and the RFC user ID is used to make the call. Once this is set up, you can call GTS through a Function Module call. The set up is normally done by BASIS team
From the program /SAPSLL/SAPLCD_PI_R3 you can drill down to get details of the specific user-exit which you can use to call GTS tables for specific data.
Let me know if this helps
Siva
Similar Messages
-
How to fetch data from XML and store it in internal table
Hi All,
Can anyone help me out, in fetching data from xml and store it in an internal table. Is there any standard function module is there?
Regards,
Karthickto do this you can either develop a XSLT program and use it with CALL TRNSFORMATION key word to tranform the XML into itab .
(search the ABAP General forum, i have posted few samples)
or simply use the following FM which converts your XML into a itab of name value pair (name would holw the element name and value would hold the value of the element) which you can then loop and read it to your itb.
data: xmldata type xstring .
data: result_xml type standard table of smum_xmltb .
data: return type standard table of bapiret2 .
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = xmldata
TABLES
xml_table = result_xml
return = return .
Regards
Raja -
Fetch data from different tables print them is assigned places
Hi Friends,
I have designed one SMART-Form (Receipt).
I need to fetch data from different tables and the data must be print in assigned places. Please help me how to achieve this requirement. Thanks for your help.
Best regards,
Manju.
Edited by: Alvaro Tejada Galindo on Feb 12, 2008 10:20 AMU're right.
When it creates a smartform it needs to decide when the main data have to be extracted:
- or in driver program
- or in smartforms
The difference can be in the performance, because the program can select the data only once, the smartforms needs to extract them everytime it's called.
I prefer to use a complex structure for the smartform interface as so all data I need are in only one structure, the problem is the complex structure is harder to be managed.
Max -
Fetch data from table and generate attachment than mail it.
Hello Experts,
From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
My Scenario is:
I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
select a.location_code,
a.item_code,
b.description item_desc,
to_char(a.manufact_date,'ddMonyy')mfg,
to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
a.closing_balance_posted quantity
from wms_stock_current_balance_v a, wms_item_setup_mast b
where a.closing_balance > 0
and a.item_code = b.item_code
and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
and nvl(b.qurantine_period,0) > 0
and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
order by a.item_code, a.location_code;
Sample data of above query is
LOCATION_CODE
ITEM_CODE
ITEM_DESC
MFG
Expiry
Quarantine
Days Elapse
Quantity
13DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
14DL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
134
14DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
14DR2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
20
14LL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17ER2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17GL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17SL0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
64
18QL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
19AR5
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
160
19DL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
19JR0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
60
19TL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
20GR2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
40
36FL3
000000000000000F0487
CLEAR COOL BLACK 05ML
18-Feb-10
29-Mar-14
2-Jun-13
-124
65
19UR0
000000000000000F0591
COMFORT WHITE 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
1
12SL1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
12SR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
14OR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
8
36EL4
000000000000000F0594
CLEAR HF DECRASE 5M*360
14-Feb-10
14-Feb-11
12-Oct-10
-1088
14
13VL1
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
160
14ER0
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
105
Database Info
Oracle 10g
Version 10.2.0.1.0Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
Re: How to execute a proc and spool files in a database job
And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP. -
Dynamically fetch data from database and display it in the report
Hi,
We have a requirement in developing a report which needs us to dynamically fetch data from the database and display it in the report.
We have a column called WORKER in the report.
For each worker there is a measure(PSA) associated with it.
In the report we have to display both the WORKER and the PSA column.
What we want is, when we display the list of the workers, the corresponding workerid_id of the worker will be passed and the value of his PSA will be fetched from the database and displayed in the report.
Or anything similar to this.
We also have drill applied on this WORKER column. So after any drill up or drill down also the value for PSA should change.
Is there any way of doing this?
Please help if possible.
Thanks,hi,
data : count type i value 0.
data : Begin of itab occurs 0 ,
plan_version like hrhap-plan_version,
APPRAISAL_ID like hrhap-APPRAISAL_ID,
AP_START_DATE like hrhap-AP_START_DATE,
AP_END_DATE like hrhap-AP_END_DATE,
AP_STATUS like hrhap-AP_STATUS,
AP_STATUS_SUB like hrhap-AP_STATUS_SUB,
OBJ_DATE_SET like hrhap-OBJ_DATE_SET,
REVIEW_DATE_SET like hrhap-REVIEW_DATE_SET,
AP_DATE_SET like hrhap-AP_DATE_SET,
AP_DATE_EARLIEST like hrhap-AP_DATE_EARLIEST,
AP_DATE_LATEST like hrhap-AP_DATE_LATEST,
CHANGE_DATE like hrhap-CHANGE_DATE,
CHANGE_TIME like hrhap-CHANGE_TIME,
CHANGE_USER like hrhap-CHANGE_USER,
end of itab.
<b>select * from hrhap into corresponding fields of table itab.</b>
loop at itab.
write :/ itab-plan_version under 'plan_version',
itab-appraisal_id under 'Appraisal Id',
itab-AP_START_DATE under 'Start Date',
itab-AP_END_DATE under 'End date',
itab-AP_STATUS under 'Status',
itab-AP_STATUS_SUB under 'Substatus',
itab-OBJ_DATE_SET under 'Objective setting date',
itab-REVIEW_DATE_SET under 'Review date set',
itab-AP_DATE_SET under 'appraisal date',
itab-AP_DATE_EARLIEST under 'Earliest appraisal date',
itab-AP_DATE_LATEST under 'Latest Appraisal date',
itab-CHANGE_DATE under 'Change Date',
itab-CHANGE_TIME under 'change time',
itab-CHANGE_user under 'change user'.
count = count + 1.
endloop.
write : 'No of records' ,count.
rgds
anver
if hlped mark points. -
Fetch data from C251 transaction - print master recipe
Hi ,
I am working on SAP xMII. I need to fetch the data from c251 transaction and show it to the user.
The problem is that xMII can call BAPI or can listen to IDOC messages. I could not find any BAPI inside c251 transaction program.
Following are my queries
1) Is it possible to convert a transaction program into BAPI?
2) Is it possible to generate IDOC messages using c251 transaction?
3) Is there any BAPI which will fetch the information of c251 transaction?
Thank you,
KolahI,
Please check the following BAPI
BAPI_CONTROL_RECIPE_GET_LIST
Regards
Kannan -
Sql query to bind data from grid and print total count and amount total when date changes
SELECT SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,SUM(SLTXN.CALC_NET_AMT) AS AMT,ACT.ACT_NAME,SUM(SLTXN.TOT_QTY) AS QTY
FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODE
GROUP BY SLHD.VOUCH_CODE,SLHD.VOUCH_DATE,SLHD.VOUCH_NUM,ACT.ACT_NAME
ORDER BY SLHD.VOUCH_DATE
i want to print total quatity and total sale in grid when data changes
like
date amount quantity
01/02/2013 1200 1
01/02/2013 200 1
01/02/2013 1400 2 // date changes here
02/03/2013 100 1
02/03/2013 50 4
02/03/2013 150 5 // date changes and so onthis query only print all the data from table i want total quantity and total amount of daily sale in same grid when ever date changes
You may add the date filter to Visakh's query:
SELECT SLHD.VOUCH_DATE,SUM(SLTXN.CALC_NET_AMT) AS AMT,SUM(SLTXN.TOT_QTY) AS QTY
FROM SL_HEAD20132014 AS SLHD,ACCOUNTS AS ACT,SL_TXN20132014 AS SLTXN
WHERE SLHD.ACT_CODE=ACT.ACT_CODE AND SLTXN.VOUCH_CODE=SLHD.VOUCH_CODEand SLHD.VOUCH_DATE = @yourdate --passed from the front end application
GROUP BY SLHD.VOUCH_DATE
WITH CUBE
ORDER BY SLHD.VOUCH_DATE
Having said, each time when you select the date, you query the table would be expensive method. May be you can filter the date within your dataset already populated if you have entire data in the dataset. -
How to fetch data from SolMan and move it into SAP BI?
Hi all,
I have the portal activity report data residing in the SolMan ( achieved by configuring portal and SolMan). I need to extract this data from Solution Manager into SAP BI, such that i can report on the data in SAP BI using the BEx tools. How will i proceed with it ? Your response is higly appreciated.
Regards,
Divya.Hello Divya,
You must set up E2E Diagnostics for the managed system (portal system).
You can accomplish this by running transaction solman_setup in the Sollution Manager and ensure that Initial and Basic Configurations are performed. Afterwards, you must follow the Managed System Configuration (also in solman_setup) for the managed system.
Afterwards you must activate some specific Portal Activity Data Collectors following the note 1309740.
Best regards,
Guilherme Balbinot -
How to fetch data from 2lis_03_bx and 2lis_03_bf
Hello Guys,
I have to create an inventory report for which i would have to use 2lis_03_bf and 2lis_03_bx for last consumption date and valuated stock value respectively. But when i am looking into rsa3 for these Datasource, i am finding nothing there.
Please suggest how would i get data from there.
Thanks & Regards,
Dollyvishnu@sri wrote:
hi,
> Please follow these steps........
> Loading of 0IC_C03(Material Stocks/Movements)
>
> R/3 Side
> Step1:
> Tcode: SBIW
> Goto Settings for Application Specific Datasource
> Logistics
> Settings: Inventory Controlling
> Determine Industry Sector----Select Standard(CORE)
> Stock Initialization----Only Valued Stocks
> 2LIS_03_BX will be activated
>
> Step2:
> Tcode: MCNB
> Filling setup tables for 2LIS_03_BX
> Transfer Structure 2LIS_03_BX
> Only valuated stock(with posting block)
>
> BW Side
> First load 2LIS_03_BX
> Goto Infopackage---select Generate Initial Status in Update Tab
> Now Goto Infocube(0IC_C03)-Manage-Collapse Tab---Remove No Marker Update then click on Release
> Load BF & UM then Goto Collapse Tab & Select No Marker Update for Initial loads of both the datasources
> For Delta load Uncheck---No Marker Update
>
>
> Regards,
> Vishnu.
Thanks Vishnu.
I performed step 1 but by mistake i did it twice ..
so now double data records are visible in rsa3 .....
please suggest -
Fetching data from VO and put into table Region
Hi All,
I am using Jdev 9i and 11i application.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
Number Variable= (Number)pageContext.getSessionValue("SessionValue");
Number numValue = new Number (Variable);
pageContext.writeDiagnostics(this, "In XXXXShoppingCO header "+ Variable, 1);
pageContext.removeSessionValue("SessionValue");
String sql ="SELECT REQUISITION_LINE_ID,REQUISITION_HEADER_ID, LINE_NUM, ITEM_DESCRIPTION, UNIT_MEAS_LOOKUP_CODE,UNIT_PRICE,QUANTITY,BASE_UNIT_PRICE FROM PO_REQUISITION_LINES_ALL ORDER BY LINE_NUM ASC";
ViewObject VO;
//Get the AM. Here
OAApplicationModuleImpl AM= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
//Create the View Definition
OAViewDef viewDef = AM.getOADBTransaction().createViewDef();
viewDef.setSql(sql);
viewDef.setExpertMode(true);
viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
//Now since the View Definition is ready, we create the View Object
VO = (OAViewObject)AM.findViewObject("JDSUPoReqVO");
if(VO==null){
VO = AM.createViewObject("JDSUPoReqVO",viewDef);
VO.setWhereClause(null);
VO.setWhereClause("REQUISITION_HEADER_ID = :1");
VO.setWhereClauseParams(null);
VO.setWhereClauseParam(0,numValue);
//AM.getOADBTransaction().putDialogMessage(new OAException("param value is "+VO.getWhereClauseParams()));
Object[] temp =VO.getWhereClauseParams();
pageContext.putDialogMessage(new OAException("temp value"+ temp.length));
for(int i=0; i<temp.length;i++)
pageContext.putDialogMessage(new OAException("parameters are "+ temp[i].toString()));
AM.getOADBTransaction().putDialogMessage(new OAException( " query is "+VO.getQuery()));
AM.getOADBTransaction().putDialogMessage(new OAException( "Where Clause of the VO is "+ VO.getWhereClause()));
//ItemTableRN
//OATableBean localOATableBean =(OATableBean)webBean.findChildRecursive("ItemTableRN");
OAMessageStyledTextBean LineNum = (OAMessageStyledTextBean)webBean.findChildRecursive("LineNum");
LineNum.setViewUsageName("JDSUPoReqVO");
LineNum.setViewAttributeName("LINE_NUM");
//LineNum.setReadOnly(true);
OAMessageTextInputBean itemDesc = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("ItemDescInput");
itemDesc.setViewUsageName("JDSUPoReqVO");
itemDesc.setViewAttributeName("ITEM_DESCRIPTION");
//itemDesc.setReadOnly(true);
OAMessageStyledTextBean SpecialInfo = (OAMessageStyledTextBean)webBean.findChildRecursive("InfoTemplateText");
SpecialInfo.setViewUsageName("JDSUPoReqVO");
SpecialInfo.setViewAttributeName("REQUISITION_HEADER_ID");
//SpecialInfo.setReadOnly(true);
OAMessageLovInputBean Unit = (OAMessageLovInputBean)webBean.findChildRecursive("TranslatedUom");
Unit.setViewUsageName("JDSUPoReqVO");
Unit.setViewAttributeName("UNIT_MEAS_LOOKUP_CODE");
//Unit.setReadOnly(true);
OAMessageTextInputBean Quantity = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("Quantity");
Quantity.setViewUsageName("JDSUPoReqVO");
Quantity.setViewAttributeName("QUANTITY");
//Quantity.setReadOnly(true);
OAMessageTextInputBean Price = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnPrice");
Price.setViewUsageName("JDSUPoReqVO");
Price.setViewAttributeName("BASE_UNIT_PRICE");
//Price.setReadOnly(true);
OAMessageTextInputBean Amount = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnAmount");
Amount.setViewUsageName("JDSUPoReqVO");
Amount.setViewAttributeName("UNIT_PRICE");
when I use print values of VO into table's field then I am getting error:
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736)
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736)Hi All,
I am using Jdev 9i and 11i application.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
Number Variable= (Number)pageContext.getSessionValue("SessionValue");
Number numValue = new Number (Variable);
pageContext.writeDiagnostics(this, "In XXXXShoppingCO header "+ Variable, 1);
pageContext.removeSessionValue("SessionValue");
String sql ="SELECT REQUISITION_LINE_ID,REQUISITION_HEADER_ID, LINE_NUM, ITEM_DESCRIPTION, UNIT_MEAS_LOOKUP_CODE,UNIT_PRICE,QUANTITY,BASE_UNIT_PRICE FROM PO_REQUISITION_LINES_ALL ORDER BY LINE_NUM ASC";
ViewObject VO;
//Get the AM. Here
OAApplicationModuleImpl AM= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
//Create the View Definition
OAViewDef viewDef = AM.getOADBTransaction().createViewDef();
viewDef.setSql(sql);
viewDef.setExpertMode(true);
viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
//Now since the View Definition is ready, we create the View Object
VO = (OAViewObject)AM.findViewObject("JDSUPoReqVO");
if(VO==null){
VO = AM.createViewObject("JDSUPoReqVO",viewDef);
VO.setWhereClause(null);
VO.setWhereClause("REQUISITION_HEADER_ID = :1");
VO.setWhereClauseParams(null);
VO.setWhereClauseParam(0,numValue);
//AM.getOADBTransaction().putDialogMessage(new OAException("param value is "+VO.getWhereClauseParams()));
Object[] temp =VO.getWhereClauseParams();
pageContext.putDialogMessage(new OAException("temp value"+ temp.length));
for(int i=0; i<temp.length;i++)
pageContext.putDialogMessage(new OAException("parameters are "+ temp[i].toString()));
AM.getOADBTransaction().putDialogMessage(new OAException( " query is "+VO.getQuery()));
AM.getOADBTransaction().putDialogMessage(new OAException( "Where Clause of the VO is "+ VO.getWhereClause()));
//ItemTableRN
//OATableBean localOATableBean =(OATableBean)webBean.findChildRecursive("ItemTableRN");
OAMessageStyledTextBean LineNum = (OAMessageStyledTextBean)webBean.findChildRecursive("LineNum");
LineNum.setViewUsageName("JDSUPoReqVO");
LineNum.setViewAttributeName("LINE_NUM");
//LineNum.setReadOnly(true);
OAMessageTextInputBean itemDesc = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("ItemDescInput");
itemDesc.setViewUsageName("JDSUPoReqVO");
itemDesc.setViewAttributeName("ITEM_DESCRIPTION");
//itemDesc.setReadOnly(true);
OAMessageStyledTextBean SpecialInfo = (OAMessageStyledTextBean)webBean.findChildRecursive("InfoTemplateText");
SpecialInfo.setViewUsageName("JDSUPoReqVO");
SpecialInfo.setViewAttributeName("REQUISITION_HEADER_ID");
//SpecialInfo.setReadOnly(true);
OAMessageLovInputBean Unit = (OAMessageLovInputBean)webBean.findChildRecursive("TranslatedUom");
Unit.setViewUsageName("JDSUPoReqVO");
Unit.setViewAttributeName("UNIT_MEAS_LOOKUP_CODE");
//Unit.setReadOnly(true);
OAMessageTextInputBean Quantity = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("Quantity");
Quantity.setViewUsageName("JDSUPoReqVO");
Quantity.setViewAttributeName("QUANTITY");
//Quantity.setReadOnly(true);
OAMessageTextInputBean Price = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnPrice");
Price.setViewUsageName("JDSUPoReqVO");
Price.setViewAttributeName("BASE_UNIT_PRICE");
//Price.setReadOnly(true);
OAMessageTextInputBean Amount = (OAMessageTextInputBean )webBean.findIndexedChildRecursive("TxnAmount");
Amount.setViewUsageName("JDSUPoReqVO");
Amount.setViewAttributeName("UNIT_PRICE");
when I use print values of VO into table's field then I am getting error:
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736)
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition ITEM_DESCRIPTION of type Attribute not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2958)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2755)
at _oa__html._OA._jspService(_OA.java:101)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at _oa__html._OA._jspService(_OA.java:94)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:736) -
Reading data from table and print the value based condition
hi
my table like this
slno | value1 | value2 |
1 0 5
2 5 10
3 10 15
assume n= 8 ( where n is user define)
i want output like
number 8 between value 5 and 10
plz helpHi,
Try:
Select 'Number '+ U_Value3 + ' Between '+ U_Value1'and 'U_Value2
From [dbo\].[@UDT T0\]
Where T0.U_Value3=[%0\] and T0.U_Value3 BETWEEN U_Value1 AND U_Value2
Thanks,
Gordon -
Authorization control when fetching data from PA OM tables
Hi all,
I want to know how to control DB level authorization using HR_READ_INFOTYPE and RP_READ_INFOTYPE. Taht is, i want to check whetehr the user who is executing a report is having read authorization for that infotype. If not, i should not fetch the data and the report should return error message?
Instead of authorization (std, custom) object, i want to control when fetching data from PA and OM tables in HR. How to achieve the same?As EJP said, your query might have problem with the using clause. Post your query.
It gives an exception when I try to run the query, and I'm trying to fetch all columns not only 'taskid'
java.sql.SQLException: ORA-25154: column part of USING clause cannot have qualifier
Yes, with the exact sql query he posted. It gives that exception.I guess you are trying to fetch all the columns by using the above query which i posted. No you should not fetch all the columns. Because the rs will only the three columns.
Also, use 'as' with that query like,
select t1.taskid as t1_taskid, t2.taskid as t2_taskid ,t3.taskid as t3_taskid from...Edited by: Ram on Aug 23, 2011 6:20 PM -
Error in fetching data from DB to Matrix
hi everyone...i want to fetch data from Db and sisplay it on matrix..i tried this way..but i'm not getting data..it is saying that invalid row index..what should i give at row value...
Try
oitem = oForm.Items.Item("8") ''''8 is uid of matrix
oMatrix = oitem.Specific
oColumns = oMatrix.Columns
rset = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
query = "select * from [@VIDS_MGT]" '
rset.DoQuery(query)
oMatrix.FlushToDataSource()
Catch ex As Exception
End Try
Dim i As Integer = 1
While Not rset.EoF
Try
oMatrix.AddRow()
oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.value = rset.Fields.Item("Code").Value
i = i + 1
rset.MoveNext()
Catch ex As Exception
SBO_Application.MessageBox(ex.ToString)
End Try
End While
oMatrix.LoadFromDataSource()Hello,Shehnaaz
While binding data to matrix u have to use datasources
Steps
1.Create one datasourece
Declare
assign ur matrix table like this
oDB_Row = oForm.DataSources.DBDataSources.Item("@VEDA_TC_DLN")
2. Give here loop
rs.MoveFirst()
For I = 1 To rs.RecordCount
oMatrix.AddRow()
oDBs_Head.SetValue("LineID", oDBs_Head.Offset, oMatrix.VisualRowCount)
oDBs_Head.SetValue("U_BobNo", oDBs_Head.Offset, rs.Fields.Item("U_BobNo").Value)
oDBs_Head.SetValue("U_CovSze", oDBs_Head.Offset, rs.Fields.Item("U_CovSze").Value)
oDBs_Head.SetValue("U_BrWid", oDBs_Head.Offset, rs.Fields.Item("U_BrWid").Value)
oDBs_Head.SetValue("U_BrThi", oDBs_Head.Offset, rs.Fields.Item("U_BrThi").Value)
oDBs_Head.SetValue("U_Flex", oDBs_Head.Offset, rs.Fields.Item("U_Flex").Value)
oDBs_Head.SetValue("U_Adh", oDBs_Head.Offset, rs.Fields.Item("U_Adh").Value)
oDBs_Head.SetValue("U_Elog", oDBs_Head.Offset, rs.Fields.Item("U_Elog").Value)
oDBs_Head.SetValue("U_UTS", oDBs_Head.Offset, rs.Fields.Item("U_UTS").Value)
oDBs_Head.SetValue("U_Hard", oDBs_Head.Offset, rs.Fields.Item("U_Hard").Value)
oDBs_Head.SetValue("U_BDVRt", oDBs_Head.Offset, rs.Fields.Item("U_BDVRt").Value)
oDBs_Head.SetValue("U_BDVEt", oDBs_Head.Offset, rs.Fields.Item("U_BDVEt").Value)
oDBs_Head.SetValue("U_Scrap", oDBs_Head.Offset, rs.Fields.Item("U_Scrap").Value)
oDBs_Head.SetValue("U_Aprvd", oDBs_Head.Offset, rs.Fields.Item("U_Aprvd").Value)
oDBs_Head.SetValue("U_BsLineId", oDBs_Head.Offset, InsBaseRow)
oDBs_Head.SetValue("U_BsDoc", oDBs_Head.Offset, InsBaseDoc)
oMatrix.SetLineData(oMatrix.VisualRowCount)
rs.MoveNext()
Next
3.Try to under stand setline data is very important if did nt mension set line data means that will not display any data
Hope this will help u
By
Firos -
Fetch data from text file to print
Dear All,
I am trying to fetch data from a text file in to Oracle database to print.
The problem I have is that I cannot gather data because this is a statement, generated by a report utility and the data consist of multiple dimensions.
First 3 fields of data are in the first 3 rows of a page and the rest is displayed column wise for the next 20 rows (5th row to 24th Row). Then there is a page break character ASCII (012) (Hex - 0C)then the next record starts.
Please give me a solution to fetch first 3 lines to one master table & the column of data to a detail table.
I konw I can fetch data using SQL Loader but the problem is how can I seperate multiple dimention data.
Sample
<page breake>
Code:123456
Name:1233445566
Address:aaaaaaaaaaaaa
Detail1 Detail2 Detail3
======= ======= =======
AAAAAAA BBBBBBB CCCCCCC
AAAAAAA BBBBBBB CCCCCCC
<page break>
Code:123457
Name:AAAAAAAA
Address:AAAAAAAA
Detail1 Detail2 Detail3
======= ======= =======
AAAAAAA BBBBBBB CCCCCCC
AAAAAAA BBBBBBB CCCCCCC
<page break>
Thank you in advance..
Regards, Shaamil.Try using the package UTL_FILE.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_file.htm#998101 -
Fetching data from a table and displaying it on the text box
Hi,
I have created a dialog program in which created a container(text box) to enter data upto 1000 characters.
Iam capturing the data and storing it in a custom table. In PBO I want to fetch data from my custom table (if data is already present :1000 characters data) and display it on screen.
Please let me know how do i do it?hii Pavani,
declare this two sttements in Screen
MODULE STATUS_DATA.
MODULE SELECT_DATA.
In PBO, Under SELECT_DATA write Select query like:
(considering the DB field to be text and Screen Field to be SC_TEXT)
select text from <DB Table> into SC_TEXT where <condition>.
*note if u r selecting more than one field than write fields in ( ),eg. (f1....f2) )
Plz let me know for any further queries.
Regards,
Apoorv
Maybe you are looking for
-
Is there a way to password protect the email accounts in my ipad?
I have private info in the emails, and sometimes i lend the ipad to my kids so they can play games or to someone to look at something with it. I dont want them to be able to read my emails. Is there a way to protect the emails account with a password
-
Apps Market - Download Unsuccessful
I have been unable to download any apps to my phone from the market. I keep getting a message saying Download Unsuccessful. I took out the battery, restarted, made sure that 3rd party apps are allowed and nothing is working. It stopped working on
-
I have 3 tables - Book, Author, BookAuthorReference A book can have multiple authors, and when I do straight query I get multiple rows per book SELECT <columns> FROM Book b, Author a, BookAuthorReference ba where ba.BookId = b.BookId and ba.AuthorId
-
Can't use java on any programs
so im trying to use a program that needs java, and it does start but you can't do anything or shuts down the mac hangs and it stops responding. aagggghhh
-
J2EE start fails after changing the instance-number
Hi, we installed a SCS with instance number 41. After a few weeks it was necessary to change it to 44. We changed all property-files and the profiles. The SCS started fine, but the J2EE-Server failed starting. In dev_server0 is still a line with the