FM Vs RFC , FI related query.
Hi Friends,
Can any one lte me know what exactly is the difference between Function module & Remote Function Module.
Can any one let me know some links that show light on FI scenario and tables.
Regards,
Roby.
Hi roberts,
1. Normal FM
It runs in the same system,
in which it is called (thru abap code)
Remote FM.
It runs in ANOTHER system,
rather than, in which it is called (thru abap code).
(The OTHER System is specified using
DESTINATION keyword)
2. When we call RFC,
its NOT EXECUTED IMMEDIATELY,
(sap stores the information
and then executes if a little afterwards)
Hence, we cannot know
what has happened
in our abap code, immediately !
regards,
amit m.
Similar Messages
-
Logical system and rfc destination related Query?
Hi Dudes
Do we need to define logical system and RFC destination if they are in different clients in same server
Regards
Raj KumarHi
Both are client independent setting, so even if you define in one client, it would be available in other clients also.
Regards,
Sanjeev -
The workbook report no authorization, but related query can show part data
Dear All,
We meet an error, The workbook report no authorization, but related query can show part data.
We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO' & ' WZA")(User didn't have authorization for this condition), and workbook report no authorization.
Then we checked authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
But when we execute the related query with same condition. the query can open and show WZA's data.
I'd like to know the reason.
thanks & Best Regards,
Kent YuDear All,
We meet an error, The workbook report no authorization, but related query can show part data.
We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO' & ' WZA")(User didn't have authorization for this condition), and workbook report no authorization.
Then we checked authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
But when we execute the related query with same condition. the query can open and show WZA's data.
I'd like to know the reason.
thanks & Best Regards,
Kent Yu -
Multi-part related query reports
http://download-east.oracle.com/docs/html/B10310_01/orbr_concepts1.htm#1012365
Can someone provide me better info about 'Multi-part related query reports 'Hi,
yes you can have multiple query in your report. So you have multiple groups in your data model. Then you must put multiple repeating frames in your layout in order to extract data from your queries, selecting the desired group in the source property of your repeating frame.
Bye
Raffy -
How can I related Query name with Query elements?
Hello gurus!
I am working with BI7, content technical, well I need to find out a solution where I can related Query name with query elements (KYF, CKY, Restricted Key Figures, var, etc)
In master data 0tctquery, exist the query element, but, I can not related with object are from what query...
Do you know how I can do it??? some solution???
Best Regards"it is impossible to relate both tables" ???
hmmm... these are exactly the tables the Query Designer uses to "build" up the query... so trust me, they do relate
now to get this information in an InfoCube is a totally different thing... how do you expect to report on this if you should get it in an InfoCube? let's take a simple example... assume you have a query (QUERY_1) which looks like:
Sales Sales
Sales Org Customer Qty Value
1000 ABC 10 PC 500
1000 DEF 5 PC 250
in your Cube you would get:
QueryName QueryElement
QUERY_1 0SALESORG
QUERY_1 0CUSTOMER
QUERY_1 ZSLSQTY
QUERY_1 ZSLSVAL
if you have free characteristics, you'll add more lines... same for variables, CKFs, RKFs, conditions, ...
I guess it would be better to create a little ABAP report using the above tables (oh, you'll be needing a lot more tables if you wish more detail) -
Converting Relational query to XML
set serveroutput on
This is the code of a query to convert a relational query to xml. This code runs fine when I place the where condition at the end. e.g. where h.hospital_id=1. however when i place no such condition it begins returning errors such as
set serveroutput on
set long 10000000
set linesize 50000
set lines 20000
set pagesize 0
set pages 5
set feedback off
set head off
SET TRIMSPOOL ON
set long 200000000
set linesize 32000
set pagesize 0
set pages 0
set feedback off
set head off
Select XMLELEMENT("have:HospitalStatus",XMLAttributes('urn:oasis:names:tc:emergency:EDXL:HAVE:1.0 edxl-have_cs01.xsd' AS
"xsi:schemaLocation",
'urn:oasis:names:tc:emergency:EDXL:HAVE:1.0' AS
"xmlns:have",
'http://www.georss.org/georss' AS
"xmlns:n3",
'http://www.opengis.net/gml' AS
"xmlns:gml",
'http://www.w3.org/2001/XMLSchema-instance' AS
"xmlns:xsi",
'urn:oasis:names:tc:ciq:xal:3' AS
"xmlns:xal",
'urn:oasis:names:tc:ciq:xnl:3' AS
"xmlns:xnl",
'urn:oasis:names:tc:ciq:xpil:3' AS
"xmlns:xpil"
xmlagg(
xmlelement("have:Hospital",
xmlforest
( h.hospital_id,
xmlforest(
xmlforest(
h.name,
h.info,
h.addresses ,
h.contact_numbers) as "OrganizationInformation",
xmlforest(
h.geo_location) as "OrganizationGeoLocation",
h.comments) as "Organization"
xmlelement("have:EmergencyDepartmentStatus",
(select xmlagg(
xmlforest(
eds.date_updated,
xmlforest(
eds.ems_traffic_status,
eds.ems_traffic_reason) as "EMSTraffic",
xmlforest(
tcl.url,
tc.date_updated,
tc.code_value,
tc.ems_capacity
) as "EMSCapacity",
xmlforest(
tcl.url,
tc.date_updated,
tc.code_value,
tc.ems_census) as "EMSCensus",
xmlforest(
eds.ems_amb_offload_status,
eds.ems_amb_offload_min) as "EMSAmbulanceStatus",
xmlforest(
eds.ems_air_offload_status,
eds.ems_air_offload_min )as "EMSAirTransportStatus"
from EmergencyDepartmentStatus eds,TriageCode tc,TriageCodeListURN tcl
where eds.hospital_id = h.hospital_id and tc.hospital_id = h.hospital_id and tcl.hospital_id = h.hospital_id)),
xmlelement("have:HospitalBedCapacityStatus",
(select xmlagg(xmlelement("have:BedCapacity",
xmlforest(
mb.date_updated,
mb.bed_no,
mb.bed_type,
xmlforest(
mb.capacity_status,
mb.available_count,
mb.baseline_count,
mb.additional_24hr,
mb.additional_72hr) as "Capacity",
mb.comments
from MainBeds mb
where mb.hospital_id = h.hospital_id and mb.bed_no NOT IN(select mb.bed_no from MainBeds mb, SubBeds sb where mb.bed_no=sb.bed_no )
(select xmlagg(xmlelement("have:BedCapacity",
xmlforest(
mb.date_updated,
mb.bed_no ,
mb.bed_type,
xmlforest(
mb.capacity_status
) as "Capacity",
mb.comments
),(select xmlagg(
xmlforest(
sb.date_updated,
sb.bed_no,
sb.sub_bed_no,
xmlforest(
sb.capacity_status,
sb.available_count,
sb.baseline_count,
sb.additional_24hr,
sb.additional_72hr) as "Capacity",
sb.comments
)from SubBeds sb where mb.bed_no = sb.bed_no and sb.bed_no=h.hospital_id )
from MainBeds mb
where mb.hospital_id = h.hospital_id and mb.bed_no in (select unique mb.bed_no from MainBeds md, SubBeds sb where sb.bed_no=mb.bed_no))
xmlelement("have:ServiceCoverageStatus",
(select xmlagg(
xmlforest(
scs.date_updated,
scs.burn,
xmlelement("CardiologySubType",
xmlforest(scs.cardiology_invasive,
scs.cardiology_non_invasssive)) as "CardiologyIndicator",
scs.dialysis,
scs.emergency_dept,
scs.hyperbaric_chamber,
scs.infectious_diseases,
scs.neonatology,
xmlforest(xmlforest(
scs.neurology_invassive,
scs.neurology_non_invasssive) as "NeurologySubType") as "NeurologyIndicator",
xmlforest(xmlforest(
scs.obgyn_with_labor,
scs.obgyn_without_labor) as "OBGYNSubType")as "OBGYNIndicator",
scs.opthalmology,
scs.orthopedic,
scs.pediatrics,
xmlforest(
xmlforest(scs.psychiatry_adult_general,
scs.psychiatry_pediatric) as"PsychiatrySubType")as "PsychiatryIndicator",
xmlforest(
xmlforest(
sst.date_updated,
sst.general_ward,
sst.adult_general,
sst.pediatrics,
sst.orthopedics,
sst.nuero_surgery,
sst.facial,
sst.cardio_thoracic,
sst.hand,
sst.reimplantation,
sst.spinal,
sst.vascular,
sst.anesthesia) as "SurgerySubTypes") as "SurgeryIndicator",
xmlforest(xmlforest(
scs.ambulance_services,
scs.air_transport_services) as "TransportServicesSubType") as "TransportServicesIndicator",
xmlforest(xmlforest(
scs.trauma_service,
scs.trauma_service_level) as "TraumaCenterServicesSubType")as "TraumaCenterServicesIndicator"
from ServiceCoverageStatus scs, SurgerySubTypes sst
where scs.hospital_id = h.hospital_id and sst.hospital_id = h.hospital_id)),
xmlelement("have:HospitalFacilityStatus",
(select xmlagg(
xmlforest(
hfs.date_updated,
hfs.hospital_eoc_status,
hfs.hospital_eoc_plan,
hfs.clinical_status,
xmlforest(
dc.date_updated,
dc.decon_capacity_status,
dc.amb_patients_capacity,
dc.non_amb_patients_capacity) as "DeconCapacity",
xmlforest(
mc.date_updated,
mc.morgue_capacity_status,
mc.morgue_capacity_units) as "MorgueCapacity",
hfs.facility_status,
hfs.security_status,
xmlforest(
ah.date_update,
ah.admissions,
ah.discharges,
ah.deaths) as "Activity24hr",
hfs.comments,
hfs.clinical_operations,
hfs.resources_information
from HospitalFacilityStatus hfs,Activity24hr ah,MorgueCapacity mc,DeconCapacity dc
where hfs.hospital_id = h.hospital_id and ah.hospital_id = h.hospital_id and mc.hospital_id = h.hospital_id
and dc.hospital_id = h.hospital_id)),
xmlelement("have:HospitalResourceStatus",
(select xmlagg(
xmlforest(
hr.date_updated,
hr.staffing,
hr.facility_operations,
hr.clinical_operations,
hr.comments
from HospitalResourceStatus hr
where hr.hospital_id = h.hospital_id)),
xmlforest(h.last_update_time) as "UpdateTime"
))).extract('/*')
from hospital h;__________________________________________________________________________________________________________
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "HOSPITAL_EOC_STATUS" does not match start-element tag "have:HospitalStatus"
Error at line 1
ORA-06512: at "SYS.XMLTYPE", line 111
Edited by: 872489 on 14-Jul-2011 03:59
Edited by: 872489 on Jul 14, 2011 9:11 AM
Apologies for lack of formatting earlierPlease repost this and use the tag with some decent formatting.
See the FAQ Posting Guidelines on the main page of this XMLDB OTN Forum -
Hello experts,
does anyone know the RFCs which the Query Designer use? (NW04s SP10)
Thanks in advance for your help.
Best Regards,
MarcelHi Edwin,
I tried to use this function modules, but it seems that they have bugs, also the transaction rscz, because I copied a query and the copy is different to the original query.
Any suggestions for RFCs for adding characteristics to row, columns and so on?
Thanks in advance!
Best Regards,
Marcel -
Nullpointer exception in SAP code (RFC model related)
Hi,
Some threads have already been opened on this issue, but none of them give me a solution.
The problem is that a Nullpointerexception is thrown when I create a new Input element (to bind it to the input node of my rfc model).
As you can see in the stack trace, the nullpointerexception is thrown in SAP code.
This happens for all function modules I've created myself (even the simplest ones with no parameters/no code), but for the SAP BAPIs it works???
So this is not an issue related to Javaconnectors/my java code because it works for BAPIs (I'm doing exactly the same).
I've already restarted the J2EE server, recreated the whole application, tested with new applications (to avoid any caching problems) but nothing works.
I've been trying to resolve this issue for several hours without success. It's really frustrating.
Any help appreciated!
Jeroen
java.lang.NullPointerException
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:220)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:186)
at com.eozen.aif.ce5solman.Z_Jver_Create_Infosheet_Input.<init>(Z_Jver_Create_Infosheet_Input.java:51)
at com.eozen.jver.aif.Infosheets.wdDoInit(Infosheets.java:98)
at com.eozen.jver.aif.wdp.InternalInfosheets.wdDoInit(InternalInfosheets.java:181)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:95)I suddenly realized there is one last option and it works: I managed to sidestep the problem by doing the rfc via an R/3 SAP system that forwards the call to the CRM system. (The CRM 5.0 system is the one causing the nullpointerexception).
Maybe some incompatibilities between J2EE/WDP SP14 & CRM 5.0? -
Dear All,
Why do we use LDB in HR module?
What is the difference between the infotypes and tables ?
Do we use LDB in other modules?
Thanks,
Santhiya.BHi
Infotypes are nothing but information objects which are used in SAP HR Module
They also contain data and we can use Select Statements to fetch the data from these infotypes
HR deals with the INFOTYPES which are similar to Tables in General ABAP.
There are different ways of fetching data from these infotypes.
There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
Infotypes for these areas are different from one another area.
storing of records data in each type of area is different
LDBS like PNP are used in HR programing.
Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
On the whole Normal ABAP is different from HR abap.
For Personal Admn the Infotypes start with PA0000 to PA1999
Time Related Infotypes start with PA2000 to PA2999.
Orgn related Infotypes start with HRP1000 to HRP1999.
All custom developed infotypes stsrat with PA9000 onwards.
In payroll processing we use Clusters like PCL1,2,3 and 4.
Instead of Select query we use PROVIDE and ENDPROVIDE..
You have to assign a Logical Database in the attributes PNP.
LDB is a general concept which is used in other module also
It is another way of fetching data from database tables using GET and GET LATE commands
see the doc
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
<b>
Reward points for useful Answers</b>
Regards
Anji -
Displaying all related Query Views of an opened Query via DropDown
Hello Gurus,
I have following requirement in WAD for SAP BW 7:
All Query Views related to a opened Query should be displayed and selectable via a DropDown Item.
In the standard WebTemplate 0Analysis there is already implemented a DropDown Item called "QueryView Selection" but i dont get it working like in the BW 3.5 template 0adhoc.
Has anyone a solution or hint?
Edited by: D. Gehle on Jan 13, 2011 2:15 PM
Edited by: D. Gehle on Jan 13, 2011 2:15 PMHi Shantanu
Thank you for your reply.
I made a trace in the web by putting &TRACE=X at the end of the string.
I tried to analysis the transaction RSRTRACE and looked at the All Logs button against my user id.
Firstly, i do not seem to understand what this produces other than the debug session. I could not also seem to find any information that assisted me on how to produce a log file, and information that indicates what you have said in your reply.
If you could further assist providing info on how to use the debugger/log file, and how to read
- used processors
Thank you.
Simon -
LBACSYS related query consuming 30% of db time
HI,
Below query has been consuming more than 30% of db time for past few days.
BEGIN LBACSYS.lbac_events.logon(dbms_standard.login_user); END;
This is related to Oracle Label security.
Can someone suggest any workaround for this,Pl do not post duplicates - related to migration of db from sql server to oracle 11 g
Continue the discussion in your original thread
The error message is explicitly clear
ora :01440 : can not insert null into migrlog (id column)
Your process is trying to insert a NULL value into the ID column, which presumably cannot be NULL -
Drag & Relate Query iView Problem
Hi,
I just trying the weblog
1-2-3 Drag&Relate (or D&R for dummies)
So all the steps mentioned in that i have followed properly but in Content Admin --> unification under Business Objects i do get sales and stores and i define them according to weblog as source and destination but under <b>edit</b> mode Relation Type is <b>Empty</b> which i think should be <b>manual</b> or something and all the other things are same as shown is screen-shot of the weblog and also in the enduser screen i get message
<b>Query execution failed. Exception message: Error trying to execute a query statement against MetaMatrix: Error trying to establish connection to the EIS : null</b>
So i have no clue what could be possible problem
Kindly Help
Regards,
RickyHi,
Drag&Relate and Related links iviews are 2 different types of iviews.
1) Drag&Relate iview is part of the unification capability of the portal which can be used to get meaningful data by creating relations between business objects. Check
http://help.sap.com/saphelp_nw04/helpdata/en/76/c6693e54d6d112e10000000a11405a/frameset.htm
2) Related links iviews are iviews which are added as links or refernce iviews to existing iviews or pages so that it is easier to find them while navigating in the portal.
http://help.sap.com/saphelp_nw04/helpdata/en/c3/5f6c3eabbce712e10000000a11405a/frameset.htm
Cheers!! -
Hi,
I understand there are lots of examples related to Active Data Service over the internet. But my query is a bit specific.
If I want to include a (Real) data source instead of faking it through Threads, what would be inside the following methods.
void startActiveData(Collection<Object> rowKeys,int startChangeCount){}
void stopActiveData(Collection<Object> rowKeys){}
Any sample (runnable) code would be much much appreciated.
Thanks in advance!Timo Hahn wrote:
Well, me be you don't get answers as you don't give enough information to work on. Your question is a bit ambiguous, and you did not even give your jdev version.
TimoOk, let me put my query in another way.
I just want a sample code to be written inside the following two methods.
void startActiveData(Collection<Object> rowKeys,int startChangeCount){}
void stopActiveData(Collection<Object> rowKeys){}
wrt to this link http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/adv_ads.htm#CIHDIGID where these methods are not implemented. (they have commented out like "// Not needed. We do not need to connect to a (real) active data scource."). Can I have a sample method implementation with "real" datasource?...
vinod_t_krishnan wrote:
will this be helpful
http://www.orastudy.com/oradoc/selfstu/fusion/doc.1111/e15524/uc_async_dynamic.htm
http://prsync.com/oracle/building-a-real-time-twitter-client-with-oracle-adf-18495/
Thanks for the links but i've already gone through them, but doesn't cater to my need.
Regards!
Sorry forgot to add I'm using jdev 11gR2.
Edited by: adf_user on Aug 26, 2011 3:50 AM -
Mobile/Handheld client related query
hello all,
I have a query regarding handheld/mobile client. Does siebel gateway server come into picture when a mobile/handheld client synchronizes with siebel server? Iff yes then how?
ThanksYou're asking lots of questions and some are kind of loaded. But I'll chime in for some of them.
Web Service
In .Net I have created WCF services. What is the Java equivalent? Is it EJB?Definitely not EJB. The closest would be web services or RPC
Data Synchronisation
.Net has a Sync Framework. Basically it allows you to synchronise data from a main database (usually SQL Server) to a database on the mobile device (usually SQL Server CE). Is there a Java equivalent?My impression is not that this is specifically .NET, or at least not something you have to write code against. It's a service that you buy and deploy, right?
UI and UI Markup
The last time I used Java, Swing was what was used. Is that still the case? Is there a Java equivalent of Xaml? Xaml is an Xml like markup language which Microsoft uses for defining UI. It is very useful.There is no xaml equivalent. Swing it is as far as I know.
Data/Business Layer Utility
Is there are tool which will allow you to point at a data structure and pump out class files which reflect the database's structure? .Net has something called Entity Framework for this.Sounds like a job for Hibernate or similar ORM tool to me.
Auto Generation of Web Services
This is related to the first item Web Service, and the above item. Is there a way to pump out the services services automatically? In .Net I have written libraries that pump out Web Methods for saving, loading and deleting records in each of the tables in the database. Microsoft has something called RIA Architecture for this. Is there an equivalent in Java? I have no comment on this. -
Do any of the experts know why when users run queries I see in SM50 the session is stopped for RFC. It then continues.
What is it doing a RFC call for when running a query?
ThanksHi,
The BW front-end system uses RFC, to create the link to the the BW back end.So ,When you execute the query , first of all it call the RFC to get the result set from Underlying tables.
With rgds,
Anil Kumar Sharma .P
Maybe you are looking for
-
Mapping question: How to only pass on a certain number of characters?
I'm mapping a phone number from the idoc to the XML file. I only want to send the first 12 characters of a phone number. For example, if the phone comes in as, "123-456-7890 Ext 44", I only want to send "123-456-7890". I thought I could use the subst
-
Blackberry desktop manager error code
Hey every body can write here that blackberry desktop manager 4.7 error code and problems..and why? cause- results -..... Message Edited by melihlevent on 07-16-2009 04:21 PM best regard Blackberry support teams in linkedin ...join http://www.linkedi
-
BAPI to create a purchase organization ?
Hi All, Could any one tell me, are there any BAPI's to create a PURCHASE ORGANIZATION. THANKS
-
Fail to publish Captivate 5.5
Hello there. I am trying to publish a zipped project on our ftp platform with Captivate 5.5 I checked the connection with our platform and everything is OK. I set all quiz properties as I already did with other projects (which have been successfully
-
Adobe Reader 10.1.2 fails to open any PDFs
Like so many others, I accepted the upgrade to Adobe Reader 10 and now I cannot open PDFs on the internet. The error message I receive is: "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (1:1)" This message