JCO not returning Table Data from RFC
Hi,
I have written a RFC in ABAP having ..
1) One Import parameter.
2) NO EXPORT Parameter.
3) One Table. (Returning 'n' rows of data field 'WA').
I am calling the RFC using JCO.
No output is displayed. The ABAP functions is working fine
when tested using SE37.
How call function with this combination?
Regards.
Milind,
This is how I have done.
I pass the parameter to import parameter list. The abap code looks if any import parameter is added. Then it fills one of the tables with data values. Then I call the table and display the results and set the import parameter to something else.
JCO.Field import = function.getImportParameterList().getField("<Field Name>");
import.setValue("<Field Value1>");
Table1=function.getTableParameterList().getTable("<Table Name>");
Table2=function.getTableParameterList().getTable("<Table Name>");
mConnection.execute(function);
Then I get the table values from the required table1 and table2. Then Finnaly before exiting from the connection
I reset the value of Import parameter
JCO.Field import = function.getImportParameterList().getField("<Field Name>");
Con2.setValue("<FieldValue2>");
mConnection.execute(function);
mConnection.disconnect();
Hope this helps to understand from J2ee perspective what is happening. So accordingly you can write the ABAP code to change the table values based on the values that you get in the import Parameters.
Ravi
Similar Messages
-
EJB 3.0 - EntityManager.find() not returning latest data from DB
I have to restart the app server (using 10g embedded server) to get an EntityManager find to work propoerly. Basically if I update the DB directly (using dbvisualiser) and do a find using an entiy bean in JDev with embedded container the find return old data.
Very new to this.
any ideas ?The persistence provider for our EJB 3.0 implementation is TopLink and uses TopLink's object cache for the retrieved entities. By default it is configured to aggresively cache. You can customize the caching by using TopLink configuration files. I briefly described the process in this EJB3: Mapping a Boolean.
I would recommend using entityManager.refresh(entity) or use the vendor hint on the query:
Customer customer = (Customer)entityMgr.
createNamedQuery("findCustomerBySSN").
setParameter("SSN", "123-12-1234").
setHint("refresh", Booelan.TRUE).
getSingleResult();Doug -
Reg: Proxy error while fetching data from RFC's
Hi All,
I am fetching data from RFC's. When the data is in bulk I am getting an error like:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /webdynpro/dispatcher/sap.com/pb/PageBuilder.
Reason: Error reading from remote server
When the data is samll only I am not getting any error and am able to fetch it easily. Please suggest me something in this regard.
Thanks in advance,
GauravHi Detlef / Gowtham,
Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
One way I have achieved as suggested by you
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copy all flat files on OWB Server
5) Updated the location which I created at the client.
Other way
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
Hence my problem solved.
Thanks a lot.
Regards,
Manmohan -
Custom reports in R12 not returning any data
I'm seeing an issue of custom reports in R12 not returning any data. So far what I've been able to dig into is that the report query itself is referring to APPS synonyms that are secured under MOAC. What I am able to do is run the query in SQL Developer after having run mo_global.set_policy_context and I receive the data I'm looking for. This is not the case when running the report through the concurrent programs request.
Secondly, I've also configured the concurrent program request to run as single operating unit mode. This aided in fixing any issues with LOVs on the parameter form. However, still no results from the report itself. I've also searched around quite extensively and added a P_CONC_PROGRAM_ID user parameter in reports developer, as well as adding SRW.USER_EXIT('FND SRWINIT') to the before report trigger and SRW.USER_EXIT('FND SRWEXIT') to the after report trigger as well. No luck. I've also tried running mo_global.set_policy_context on the before report trigger and no such luck.
Has anyone seen similar issues with this and could shed some light? At this point, the workaround I would see is to just change the query to use respective all tables and match up against the orgid, but I'd rather not do that.I am facing exactly the same issue with 2 of my custom Reports in R12.1.3. We did our level best to find out the issue. It was always a hit and trial fix.
But the following were our observations and workarounds
0) The reports Conc Prog were in MOAC - Single mode. Both the reports had SRW INIT, EXIT and P_CONC_REQUEST_ID
1) The reports which caused the issues[NO data fetched for MOAC] had multiple Queries in the data model and one Query fetches data and the 2nd one doesnt. Both the queries when run from SQL developer after setting the org gave results.
Workaround for Report1
a) We deleted the data link connecting the 2 columns in both the queries and added a bind variable instead in the 2nd /child query to refer to the column in the parent query and linked the 2 groups.
Workaround for Report 2
a) In report 2 the queries were not linked to each other. Only one query used to return results and the 2nd one returned 0 rows. The workaround was to use the "where" conditions as lexical parameters after having set the value for the same in before report trigger.
Both the work around looks illogical. Still It worked..!
Thanks
Biju Radhakrishnan -
Problems Displaying data from RFC on Adobe Forms
Hi,
I have some Problems with creating an Adobe Form and hope, someone can help me or give me some hinds to some tutorials, which can help me.
I'm developing an webdynpro-application which get data from a R/3 via RFC-Call.
Context-Binding and so on is done and works. I created also an interactive form and can display some datas on it.
Here my questions:
I have an field 'unit' which shoulb be displayed on several positions onto the form. My problem is, i can display it only once. If i copy the field, there is no output in it. What can i do, to solve the problem?
From the RFC i get a table with several rows of data, i want to display on the form.
With drag&drop i can place the fields onto the form but they are displayed only once. I want one line for every row from the table.
What do i have to do? Are there tutorials which show the steps?
When I am not using a form, i can display the data from RFC in a table with no problems (i create a table ui and choose create binding from context menue). Are the nescessary steps for displaying the data on an interactive form the same.
I read something about creating a dynamic form design. Do i have to create it? What are the steps i have to do.
Many questions, but i hope that someone can give me some helpful hints.
Many thanks
Mathias LangeHi Mathias,
If I caught you correctly, you want to display data in Adobe forms in form of tabel, right?
So, follow the steps:
1. Insert one sub form on your adobe form.
2. Set its type as "flow content" in object->subform property.
3. Set flow direction as "Table".
4. Insert another subform inside this subform.
5. set its type as "flow content" and flow direction as "Table row".
6. Now, choose binding tab, and there check "repeat subform for each Data item check box" and specify min. count for your rows.
7. Now, insert your column fields inside this sub form once.
8. Format its look and feel as you want.
When you run this application, it will show you multiple data as table on Adobe form.
Regards,
Bhavik -
Application Insights is not recording any data from the released version of my Windows Phone app
I released my first Windows Phone app a week ago, and Application Insights worked perfectly to collect usage data whilst in a debug build. However, the released version of the app is not returning any data at all. Is this a common problem for new apps or
is there a problem that I need to address?
I configured Application Insights for my app using the information on this guide - http://msdn.microsoft.com/en-us/library/dn509554.aspx
Any ideas or help would be greatly appreciated, thanks for your help.Hi Bernard, thanks for your reply.
I tested the data using a release package of the Windows Phone app deployed directly to my phone from Visual Studio and the data appeared after around 10 minutes. However, once I published the exact same package to the Windows Phone Store and started using
the version downloaded from the store, no usage data has been uploaded even after several days of waiting.
I am using SDK 0.7.1 and Application Insights Tools for Visual Studio v1.3.2. The app is built for WP 8.0 and running on WP 8.1.
The instrumentation key is 757eeaff-605e-44a2-8eaa-6abf498bfcf5.
Thanks for your time and help, I really appreciate it.
Dan -
How to access internal table data from webdynpro to Flex application.
Hi Connoisseur
The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
i tried to do pass internal table value to flex-datagrid.but its not work.
i would like to know
1.how to access internal table data from webdynpro to Flex application.
2.how to pass the internal table to flex-datagrid.
2.how to pass dynamically in ADOBE flex.
3. how to do Flex is receiving the wd context data?
4. how can we update WD context with FLEX data.
Ple give me sample example and step by step procedure.
Regards
laxmikanthHi Laxmikanth,
Please refer this...
Flash island: update complex type from flex
Cheers..
kris. -
What is the easiest way to export all tables data from Oracle to MS SQL Server?
Hello MS,
I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
Is it:
- the „MS SQL Import and Export Data“ Tool
- the “MS SQL Integration Services” Tool
- not Oracle dump *.dmp format because it is a propritery binary format
- flat file *.csv (delimited format)
Thanks!Hi lingodingo,
If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Binocular search for Cost Center is not returning any data
Hi Gurus,
When clicking on the SRM-Shooping Cart-Cost Assignment- Account Assignment Overview- Cost center Binocular search icon, it is not returning any data. However, when drilling down in the Account Assignment Overview, you will see another Binocular search icon for Cost Center which is working fine.
Any idea of how you troubleshoot it.
Thanks in advace for your help.
HANot sure about the cost assignment drill down, but after we applied SP13 to SRM server 550 the binoculars for cost center stopped working. the following note corrected this.
Note 1259735 - Search help of generic account does not work
If it has never worked, then probably need to setup a RFC dialog user for the F4 search help, Multiple threads on here around the dialog user for F4 with details on configuration and use.
JF -
Hi,
I have some ibots that I scheduled to run on a daily basis and which were working perfectly.
Suddenly the same ibots, they run but the content of the attachment says "The specified criteria did not return any data".
I checked the log files and could not see any relavant error.
If I go back in the report that I am sending through the ibot, it runs without any problem.
I tried to send it in different formats and run as different users, but the results are still the same!
Any idea what else I could check?
Type: Warning
Severity: 50
Time: Wed May 15 14:10:19 2013
File: project/webodbcaccess/odbcconnectionimpl.cpp Line: 199
Properties: RptPath-/shared/MICROS/giuliano/cube_build_verification;SID-btilnnapkfo2omg91a71b9m6n2;bindID-1;connID-31;ThreadID-4640;statementID-364;RSP-o:go~r:report
Location:
saw.odbc.statement.fetch
saw.subsystem.portal.pdf
saw.delivers.rpc.getDeviceContent
saw.rpc.server.responder
saw.rpc.server
saw.rpc.server.handleConnection
saw.rpc.server.dispatch
saw.threadPool
saw.threads
SQLFetchScroll returned code SQL_NO_DATA_FOUNDThanks it solved the issue.
But One more thing Now I have placed the parameters in the where clause of the query
Query-
select field1,field2,field3,field4,field5,job_name,candidate_name,interview_date from etc.ethr_irc_int_details
where field1 is not null
and job_name = :1
and candidate_name = :2
and interview_date = :3
in the VO I am executing
public void iniQuery(String S1, String S2,String S3)
System.out.println("insdie ini query of the VO");
System.out.println("S1 "+S1);
System.out.println("S2 "+S2);
System.out.println("S3 "+S3);
this.setWhereClauseParams(null);
this.setWhereClauseParam(0,S1);
this.setWhereClauseParam(1,S2);
this.setWhereClauseParam(2,S2);
executeQuery();
and in AM
ETHRIntDetailsVOImpl IDVO = (ETHRIntDetailsVOImpl)this.getETHRIntDetailsVO();
// IDVO.executeQuery();
// OAViewObject IDVO = (OAViewObject)findViewObject("ETHRIntDetailsVO");
IDVO.iniQuery(S1,S2,S3);
Row row = IDVO.first();
again I am not getting any data in the row??
Any idea if I am doing any thing wrong..
Please help urgently.
Thanks
Ashish -
How to copy table data from onde DB to another DB using clipboard
HI,
i copied table data from one DB to another DB, but it displays an error as "policy with check option violation" when inserting the table data.. so how to resolve the proble.. thanks in advance.DECLARE
log_utl_dir VARCHAR2(100) :=('/apps/home/cmsftp/log/gaa');
CURSOR tb_compy_cur is
select tb.compy_acronym
-- QC 158113 - added below
,tb.ivr_plan_num
from tb_fc_compy tb,tb_xop_entitlements te
where tb.grant_award_accept_flag = 'Y'
and tb.ivr_plan_num = te.ivr_plan_num
and te.entitle_name = 'GAA_RECONCILED'
union all
select compy_acronym
-- QC 158113 - added below
,tb.ivr_plan_num
from tb_fc_compy tb
where tb.res_stock_flag = 'Y'
--and (tb.res_auto_lapse_flag = 2 OR
--tb.res_auto_lapse_flag = 3)
and exists (select entitle_name from tb_xop_entitlements te
where tb.ivr_plan_num = te.ivr_plan_num
and te.entitle_name = 'GAA_RES_FLAG'
and te.optionee = 'Y'
and te.psrep = 'Y'
and te.sponsor = 'Y'
and te.advisor = 'Y');
v_xopgrantz_insertcount NUMBER := 0;
-- QC 158113 - added below
v_xopgrantz_accpt_count NUMBER := 0;
v_user_id VARCHAR2(30);
insert_file_id UTL_FILE.FILE_TYPE;
insert_log_file varchar2(45) := 'xop_grantz_insertstats.log';
BEGIN
DBMS_OUTPUT.PUT_LINE('success1');
insert_file_id := UTL_FILE.fopen(log_utl_dir,insert_log_file,'w');
UTL_FILE.put_line(insert_file_id,'Starting the Process at '|| CURRENT_TIMESTAMP);
UTL_FILE.put_line(insert_file_id,'INSERTING ROWS FOR Companies turned on for GAA_RECONCILE and GAA/RESSTOCK');
for compy_rec in tb_compy_cur loop
v_user_id := 'CMS'||compy_rec.compy_acronym||'_USER';
ctx_set_session.set_user_session(v_user_id);
dbms_output.put_line ('success2'||''|| v_user_id);
INSERT into xop_grantz(grant_num,
user_id,
last_user_id,
restrict_grant,
child_symbol,
parent_grant_flag,
bulking_overide_flag,
exerrestrict_code,
rounding_method,
exercisiable_dt,
def_res_units_flag,
opt_gain_def_elig_flag,
opt_gain_deferred_flag,
opt_gain_deferred_dt,
opts_accepted,
lst_updtby_usercd,
accepted_type,
GAA_eligible,
GAA_LST_UPDTBY)
select g.grant_num,
v_user_id,
'GRNTACCPT',
'N',
'N',
(sel ect code
from tb_xop_exerrestrict_codes
where cash_allowed = 'Y'
and cashlesshold_allowed = 'Y'
and cashlesssell_allowed = 'Y'
and stockswap_allowed = 'Y'
and restricted_allowed = 'Y'
and sar_allowed = 'Y'
and cashmargin_allowed = 'Y'
and cashpartial_allowed = 'Y'
and sarsale_allowed = 'Y'),
NULL,
'N',
'N',
'N',
NULL,
NULL,
NULL,
'N',
NULL,
NULL
from grantz g
where not exists(select 1
from xop_grantz xg
where xg.grant_num = g.grant_num);
v_xopgrantz_insertcount := SQL%ROWCOUNT;
dbms_output.put_line ('1');
-- QC158113 - Optimisation fix--starts
DELETE FROM gt_xop_grant_accpt_type;
INSERT INTO gt_xop_grant_accpt_type
SELECT g.grant_num,e.ivr_plan_num,
pk_xop_grntaccpt.fn_get_accpt_type (v_user_id,
g.plan_num,
g.grant_dt,
g.opt_num,
g.grant_cd,
g.plan_type,
'Y'
FROM grantz g,tb_xop_entitlements e
WHERE plan_type IN (2, 4, 5, 7, 8)
and g.user_id = v_user_id
and e.ivr_plan_num = compy_rec.ivr_plan_num
and entitle_name = 'GAA_RES_FLAG' ;
dbms_output.put_line ('success3');
v_xopgrantz_accpt_count := SQL%ROWCOUNT;
UTL_FILE.put_line(insert_file_id,'Inserted count in gt_xop_grant_acceptance '|| v_user_id||v_xopgrantz_accpt_count);
-- QC158113 - Optimisation fix--ends
COMMIT;
UTL_FILE.put_line(insert_file_id,'Inserted count in XOP_GRANTZ for USER_ID '|| v_user_id||v_xopgrantz_insertcount);
ctx_set_session.set_user_session('');
dbms_output.put_line ('process completed');
end loop;
UTL_FILE.fclose(insert_file_id);
EXCEPTION
when others then
rollback;
dbms_output.put_line ('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||'INSERTING into xop_grantz for ALL grants');
END;
i received this error when running the procedure also, so the table gt_xop_grant_accpt_type is not populated
{Code -28115:ORA-28115: policy with check option violation at CMSFB_USER .pr_xopgrantz_insert} -
Payroll extractor 0HR_PY_1 do not return any data in RSA3 in full mode
Hi,
I have activated Payroll extractor 0HR_PY_1.
I use RSA3 to check the extractor.
It does not return any data(0 records) in full mode.
Do i need to do activate any other object, apart from the datasource?
Thanks in advance for your help.
Regards,
Suresh.Hi Suresh,
HR extractors need additional authorizations. When the extractor is run, there would be a check if the user is authorized to extract data. Check SAP notes 672514 & 397208. Also find my previous post on this.
Re: Extractor 0HR_PY_1 does not return data to BW
Best Regards,
Murali. -
Boot loader did not return any data.
Hi,
i have installed the Oracle VM Server and Oracle VM Manager in two different machines. I'm using the VM Manager to create the Virtual Machines(guest). I followed all the steps given in the Oracle VM Manager User guide 2.2. I'm using the RHEL5 as the OS for the guest machine. I receive an error saying 'Boot loader did not return any data.'. The vm.cfg file has got created in the path /OVS/running_pool/12_VM1. The contents of the vm.cfg file are as below
bootloader = '/usr/bin/pygrub'
disk = ['file:/var/ovs/mount/616CC4FA976D4352B1630FFCE835FEC5/running_pool/14_VM1/System.img,xvda,w']
keymap = 'en-us'
memory = '1024'
name = '14_VM1'
on_crash = 'restart'
on_reboot = 'restart'
uuid = '3a925bc9-1555-b5bb-b0f0-c5958db65468'
vcpus = 1
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=vm123']
vif = ['mac=00:16:3E:02:8B:64, bridge=xenbr0']
Can any one help out in this ASAP.
Thanks in Advance.re..
sorry but did you installed guest OS or not ?
Did you install from image, from dvd ...?
If yes try start youre vm from server terminal
#>xm create -c vm. cfg
*T -
BC4J - ViewObject not returning latest data
BC4J - ViewObject not returning latest data. Some kind of EO/VO Cache Latency Issue.
I have an edit page that presents a drop-down list which is suppose to display * un-assigned * messages, but does not. The drop-down list is using an <jbo:InputSelect> tag that gets values from a ViewObject (UnAssignedMessageView ) which issues the query listed below. Note, the ViewObject is not based on an Entity Object.
(Query in UnAssignedMessageView)
select message.message_desc_short, message.message_id
from fmm.message
where message.message_id not in (select cardmessage.message_id from fmm.card_message)
and message.message_id != 0
(from the edit.jsp)
<jbo:ApplicationModule id="am" configname="com.maxmcbyte.fmm.model.ModelModule.ModelModuleLocal" releasemode="Reserved" />
<jbo:DataSource id="ds" appid="am" viewobject="CardMessageView1" /> <<****** The VO where the inserts/updates are recorded.
<jbo:DataSource id="ds2" appid="am" viewobject="MessageUnAssignedView" /> <<****** The VO for the unassigned message drop-down-list.
The problem is at step 3.
Starting with 3 Unassigned Messages.
Step 1: enter new record AND select a MESSAGE_ID from the drop-down list.
Step 2: commit the transaction.
Step 3: enter another record AND select a MESSAGE_ID from the drop-down list. <<****** the list should now be displaying 2 unassigned messages but is displaying 3.
Note, if I check the database after step 3 using the same query as in the UnAssignedMessageView I get the correct result. I guess I'm not understanding how BC4J ViewObject Caching is working. It is strange that even after I commit the record that the cache is not updated.
I have read the docs and will have to re-read them again * but * it would be REAL NICE to see an illustration of "A DAY IN THE LIFETIME OF DATA IN BC4J" for dummies like me.
Can anyone tell me what I'm missing here AND what specifically needs to be done?
Thanks All,
Bill G...Well, I figured it out * BUT * this is the sort of thing that I'll bet stumps a lot of new users * AND * should be posted to a "Gotch-Ya" list.
I'd still like to see an illustration of "A DAY IN THE LIFE OF DATA IN BC4J"
Bill G...
<jbo:ApplicationModule id="am" configname="com.maxmcbyte.fmm.model.ModelModule.ModelModuleLocal" releasemode="Reserved" />
<jbo:DataSource id="ds1" appid="am" viewobject="CardMessageView1" />
<jbo:DataSource id="ds2" appid="am" viewobject="MessageUnAssignedView" />
<%-- adding this did the trick --%>
<%
ViewObject view2 = ds2.getRowSet().getViewObject();
view2.executeQuery();
view2.first();
%> -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action.
Maybe you are looking for
-
sound on my phone has gone so when someone calls me they can hear me but i cant hear them.The ticks cant be heard when you press the keyboard. I've checked the settings and they are ok. can still hear music thru headphones but not without. Any help p
-
How much is to change a iphone 3gs battery?
HI I JUST WANTED TO KNOW HOW MUCH WOULD IT BE TO CHANGE THE BATTERY ON MY 3GS PHONE IS COMPLETED DEAD AND JUST WANTED TO KNOW HOW MUCH WOULD APPLE CHARGE THANKS
-
Can You Listen FOR while AS does something else too?
Play and control the playing of a QT movie while also listening with Speech recognitionServer to some word from the user. i heard AS cant multithread.......
-
Country-Specific PO SmartForms
We have a standard PO SmartFrom for US, MX and CAN. Due to legalities in CAN, they want their "Terms and Conditions" as part of the PO print-out (SmartForm). If we create a CAN specific Form, how does the system know to use this for for PO's with CAN
-
SQL SERVER 2008 R2 - REPLICATION BEGINNERS
Hi all Friends, Am beginner to ms sql 2008 and i have installed sql Express edition and management studio and tried to do replication there some issues i have faced 1) Cant use my host as distributor 2) SQL server agent Edition is running 3)Cant cr