"Wrong" User is used for getting Data via Gateway

Hi experts,
simple question:
I have created a view which included a oDataModell, done like this:
onInit: function() {
var odataUrl = "/sap/opu/odata/sap/ZWWW_XXX/";
var odataUser = "remoteuser";
var odataPass = "pass";
var oModel = new sap.ui.model.odata.ODataModel(odataUrl, false, odataUser, odataPass);
sap.ui.getCore().setModel = oModel;
this.getView().setModel(oModel);
This is deployed in my Gateway Server (extra system), which will then gets the data from my SAP system.
When I log on to my BSP page, I use my "normal" user (MFALLEN), perfect. Now, when the view needs the data, I am logged in to my SAP system also with my user (MFALLEN), not with my remoteuser (remoteuser) which I have added to the oModel.
Is this the normal behaviour? Or am I doing something wrong? I want to use the remoteuser...
Thanks
Michael

Could actually someone point me out if the second argument is mandatory?
Yes, it is mandatory.
The database has to know which encoding is used for the input file in order to load it correctly and convert data to the db charset (if necessary).
If you don't know the encoding of the file, you can always assume one such as UTF-8, or the db charset itself that you can specify using nls_charset_id('CHAR_CS').
That being said, the error you get is not expected. You should have received this :
SQL> select xmltype(bfilename('DATA_DIR', 'units.xml')) from dual;
select xmltype(bfilename('DATA_DIR', 'units.xml')) from dual
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'XMLTYPE'
which is much more clear.
So I guess there's another problem going on here. You should report it to Oracle Support.

Similar Messages

  • What message type to use for syndicating data back to R3 from XI

    What message type to use for syndicating data back to R3 from XI. It gives a Message type IDOC error code 51.

    Hi Rehman,
    You are getting error 51 which means "Error: Application document not posted".
    This might because of two reasons:
    1. Your IDoc doesn't contains all the mandatory fields required by the inbound function module to post the IDoc.
    2. You have assigned wrong inbound function module to post the IDoc.
    Please check these cases.
    Hope this will help you.
    Thanks,
    Shiv Prashant Dixit

  • ALV FUNCTION MODLE FOR GETTING DATA IN EXCEL SHEET

    HI ,
    CAN I HAVE ALV FUNCTION MODLE FOR GETTING DATA IN EXCEL SHEET
    Regards,
    Aruna

    Standard ALV grid uses the FM <b>ALV_XXL_CALL</b> for exporting data into Excel. You can put a break-point in the FM and check it for urself.
    for ur info - the above FM takes the internal table name, internal table content and the field catalog as input.

  • Can Oracle Access Manager (OAM) be used for configuring data-level access?

    Hi,
    Can OAM 10gR3 or 11g be used for configuring data-level access in PS 9.10 and OBI 11g.
    This would mean that data-level configuration are stored centrally within OAM database and PS 9.10 pulls these settings for its appropriate Row and ChartField security and OBI 11g queries OAM database tables to populate the initialization blocks during login.
    If you have configured this successfuly, please feel free to provide highlevel details/steps about the configuration and any complexities that can pre present.
    Thanks.

    I recently worked on an interesting implementation that utilized OAM configured against OID in which OAM was configured to control authentication/authorization and then all applications that were serviced by OAM utilized the users login to pass to the database at which point the Oracle database utilized VPD, which was configured against the same OID instance, to leverage user attributes/groups in order to configure fine-grained access control to data within the database. Not sure if this would work for you unless your requirements are similar but it worked very well for this particular implementation as it allowed them to have SSO for their own apps and for BI Publisher which then could pass allong the userid to be leveraged by the database to do fine grained access control.
    Edited by: oblix_fan on Jun 23, 2011 8:10 AM

  • Want to create RFC FM for Getting data in CRM from R/3

    Hi,
    I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
    From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
    Thanks
    Bobby

    Dear Bobby,
    You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
    Select matnr werks LGORT LGPBE
               from MARD
               into ET_MARD
               where matnr = i_matnr
               and  werks = i_werks.
    Note:
    matnr is material number
    werks is plant
    LGORT is storage location
    LGPBE is storage bin
    Hope this will help.
    Regards,
    Naveen.

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • User defined function for getting last string in the line

    Hi Experts,
    I am not java expert, can anyone give me user defined function for getting last string in the line.
    for example if the source field is "NEW ARBOUR SQUARE"  i want to pass to target field only last string that is "SQUARE"
    please help me out of this.
    Kind Regards.
    Praveen.

    You don't even need a UDF for this. In the graphical editor look for the standard functions and once you do a scroll over on 'text functions; you will find what you are looking for.
    Just a piece of advice, try keeping UDF's to minimum unless really required or it is complicated without it.
    regards

  • Can Audit Vault be used for getting detailed read type information from the siebel database?

    Can Audit Vault be used for getting detailed read type information from the siebel database?

    Kramer wrote:
    saurabh wrote:
    check below cmd to see where archive are generated.
    SQL> archive log list
    And also check the following
    SQL> select flashback_on from v$database;
    Hi
    Here is the out put
    SQL>  select flashback_on from v$database;
    FLASHBACK_ON
    NO
    SQL>  archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     11
    Next log sequence to archive   12
    Current log sequence           12
    The flashback is not enabled. But archive log list shows archive destination is specified to use_db_recovery_file_dest.  And I checked the log_archive_dest_10 still empty
    Flashback off or on has nothing to do with it. 

  • Questions about Assumption of Liability and device to be used for unlimited data plan

    This is my first post on here. I have an opportunity that someone I know is willing to transfer his smartphone plan with unlimited data to me. I have read extensively on here and other sites and gathered some information, and also heard of many complications and questionable losses of unlimited data plans when making various types of changes to devices or services. Some of what I read may be outdated as well if Verizon has made changes in their policies, so I will start with the most obvious question: as of this date, is an AOL possible while keeping the unlimited data plan intact?
    If so, here are some other questions I have:
    -Will I receive a new SIM card by mail or do I need to use my friend's old SIM card?
    -If my ultimate end goal is to use laptop, do I have to connect through a smartphone (and is there any additional charge for that, or would it change the plan), or can I put the SIM card in a mobile hotspot such as the MHS291L and use only the data portion of the plan?
    -After getting the plan, is there any way I can get TWO SIM cards - one for a mobile hotspot, and the other strictly for voice and text? If so, how much extra would that cost?
    -If we went to a Verizon store to do this transfer or AOL, how can we be absolutely certain it goes smoothly, that no one makes any unauthorized plan changes and does not lose the unlimited data? I have unfortunately read some horror stories of it being lost in similar situations, no one seems to be accountable, and it winds up costing someone countless hours of struggle with Verizon to try to get it back (whether they are successful or not I don't know).
    -If at some point the SIM card was lost (such as if I lost the device), can it be replaced without affecting the plan?
    For what it's worth (especially for those working for Verizon), I am not looking for a way to hog up absurd amounts of data but simply to be able to do the basic stuff I need to online and maybe watch a movie once in a while without having really huge bills. Even if I used the internet without giving data consumption a second thought, I doubt I'd go much over 25-30GB most months.
    Thanks to whoever can provide me with information.

    Hi NicandroN_VZW, sorry i did not see your reply in time but thank you just the same. I called the number for the AOL department and they were able to help me with it pretty easily and answer most of my questions
    I do have a couple other questions regarding the unlimited data plan on smartphones. I have seen various comments regarding these things online, and i can make a good guess about what "might work," but i'm really looking to know Verizon's official policy on these things, if one exists. In case any non-verizon employees are able to provide this information as well, if you have references to where i can find it in writing that would be helpful.
    First, i realize there is an optional $30 fee for mobile hotspot use. But does Verizon have any policy about whether this fee must be paid if i connect only via a USB cable (since it would not actually be a "hotspot," and could not connect multiple devices)?
    And my other question is, if i do opt to pay the $30 hotspot fee, is there any policy either for or against using that SIM card in a 4g hotspot such as the MHS291L?
    PS i am asking these things here rather than by PM because, given the wide range of opinions which can be found online and that others have looked into similar things, i am sure other people could also benefit from knowing Verizon's policy regarding these things.

  • Formatted Text Field for getting Date

    I need a text field to get Date. does anyone know where I can find such a thing?
    all it needs to do is allow the user to type a date in dd/MM/yy format.
    10x.

    in a jtable it has a problem - when I press tab to exit the field the date is not changed.
    i set the on focus lost behaviour to commit, but still not working.
    also, it allows me to enter 4823749823/02/02 - and it translates it to the right format - I'm interested in something more fixed - allows to enter only 2 digits for day, 2 digits for month,2 digits for year.
    the relevent code I'm using is:
    // a cellEditor that uses a formatted text field that holds a Date object
    public class JFormattedDateCellEditor extends DefaultCellEditor {
    public JFormattedDateCellEditor(final JFormattedTextField textField) {
    super(textField);
    textField.setFocusLostBehavior(JFormattedTextField.COMMIT);
    textField.setHorizontalAlignment(SwingConstants.RIGHT);
    textField.setFont(JUtility.theFont);
    textField.setBorder(null);
    textField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    if (textField.getValue() == null) {
    textField.requestFocus();
    delegate = new EditorDelegate() {
    public void setValue(Object value) {
    textField.setValue((java.util.Date)value);
    public Object getCellEditorValue() {
    return textField.getValue();
    //to set the cell editor:
    column = collectionsTable.getColumnModel().getColumn(CollectionFrame_collectionsModel.DATE_COLUMN);
    column.setCellEditor(
    new JFormattedDateCellEditor(
    new JFormattedTextField(
    new DateFormatter(
    new SimpleDateFormat("dd/MM/yy")))));

  • EJB-Archive for getting Data from the DB

    Hello,
    I want to get data from the Database. I created a EJB-Project with an Entity Bean and a Session Bean.
    The jar-Archive that I generated is corrupt. Is that normal?
    Can you provide me with information on database acces?
    In ABAP it would be a piece of cake: Select * from table into ...;-)
    Greetings, Frank

    Hi Frank,
    I see that you are interested in getting data from R/3, please correct me if I'm wrong.
    If that's so, you cannot do it by purely using EJBs, as an entity bean maps to a Table row in the database, which is not quite straight forward in terms of R/3.
    The only way to get data from R/3 is to use
    1)Java + SAP JCO
    2)or a Netweaver technology like Webdynpro + Adaptive RFC
    3)Portal Component + SAP JCO.
    Again, assuming you're dealing with a WebAS server, coming to EJBs, its no different to any other application server. So, you need an RDBMS to use Entity Beans.
    Please let me know if you've got more doubts.
    Regards,
    Rajit

  • What is the option client certificate for user authentication used for?

    Hi All,
    I have to work on a FTPS - XI -SAP scenario.
    I can see an option for client certificate for user authentication when security is enabled for the FTP adapter. what exactly is this option used for?
    P.S: I went through sap help but couldnt quite understand.

    Thanks a lot Mark.
    So for a FTPS -> XI -> SAP scenario the following settings are required.
    1. I have to create a certificate in Visual Admin for the XI server , send a csr to a CA and get it signed by them, and i have to add this to the ssl_service view.
    2. I have to hand over the public key to the FTPS server & this key will be used for encryption of the file
    the above 2 steps are mandatory.
    If i choose to use the client certificate option , i have to get the client certificate from the FTPS server and add it into the TrustedCAs list. This certificate is just to imply that the client is what it claims to be.
    Will this certificate be used for encryption?
    To make it clear let me put it this way. The certificate created in the XI Server is used for encryption and also for ascertaining that the its what it claims to be.
    The clients certificate option is used only to make sure that the client is what its claiming to be & this is not used for encryption?

  • Scope of java class used for building data control

    Hello,
    I have tried a sample application where in we are using Datacontrols to render the UI.
    The data control is generated off a simple java class(abc.java) which is used to render a "Page called - Employee". This java class then uses a session bean which in turn talks with the database entities. The database entities(POJO's - employee.java) are then exposed in the abc.java and used to display data on the UI such as employee name, id , etc.
    My question is regarding the scope of abc.java. I presume, that the constructor of this class will be called when the page is rendered.
    Now say i am navigating from some Page-A to Page-Employee. On click of a button in Page A, i want to go to the Database, retrieve a particular employee's details and then place it in the employee entity exposed in abc.java so that it gets displayed when Page-Employee is rendered.
    If the actionlistener method of the button click in Page A has the code of - 1)create new instance of abc - new abc() 2)retrieve employee entity 3) set employee entity in the class level attribute of abc
    But on going to the next page-employee, a new instance of abc is getting created and i am losing the employee that i had retrieved in the previous screen.
    Is there a scope for abc that can be set somewhere similar to managed beans? or is there some other solution.
    -thanks

    Hi,
    Say, on an 'employee create page' we use data controls which are generated from a java class, 'EmployeeService'.
    This java class has the POJO(entity) - Employee whose attributes like name, description are used to create input text boxes on the employee page.
    Now, assume we come to the Employee create page from some other page in the application; where exactly is the best place to make an instance of the employee entity.
    Do we place- Employee emp = new Employee(); in the constructor of the EmployeeService.java class or is there some other way?
    Any pointers would help.
    Thanks
    Edited by: user9935204 on Feb 4, 2010 8:44 PM

  • Bapi to be used  for delivering data of outbound delivery to LDL

    Hi,
    I am new to ABAP development and I need to do some enhancements for standard bapi BAPI_OUTB_DELIVERY_SAVEREPLICA .
    I have to use bapi for delivering data of outbound delivery to LDL.
    I have created segments with additional fields for order header and item header in we31.
    The additional fields should be implemented in created segments.After creating segments the additional fields data should be assigned to Idoc structure OBDLV.
    This is the requirement I need to deliver  by tomorrow.Please help me by providing step by step procedure and how to do?
    Thanks in advance
    Raj

    Dear Venkat,
    for cancelling GI/GR you may use BAPI_GOODSMVT_CREATE with GM_Code 06
    for cancelling confirmations you may use BAPI_PRODORDCONF_CANCEL
    Regards, Andreas

  • Which table field is used for getting Release quantity

    Hi friends,
    please tell me which table and field used to get "Release Quantity" also i want "Cumulative GR by release" table and field please do reply if u know.
    Thanks
    Yogesh

    Hi,
    RSEVENTCHAIN       Event
    Chain Processing Event Table
    RSEVENTHEAD        Header
    for the event chain
    RSEVENTHEADT        Header
    for the event chain
    RSPCCHAIN     Process
    chain details
    RSPCCHAINATTR      
    Attributes for a Process Chain
    RSPCCHAINEVENTS      Multiple
    Events with Process Chains
    RSPCCHAINT      Texts
    for Chain
    RSPCCOMMANDLOG     System
    Command Execution Logs (Process Chains)
    RSPCLOGCHAIN      
    Cross-Table Log ID / Chain ID
    RSPCLOGS
    Application Logs for the Process Chains
    RSPCPROCESSLOG     Logs for
    the Chain Runs
    RSPCRUNVARIABLES      
    Variables for Process Chains for Runtime
    RSPC_MONITOR     Monitor
    individual process chains
    Regards
    Ashwin

Maybe you are looking for

  • Java Application Crash while loading a 64-bit DLL

    Hi there, I'm calling native C++ functions from a 64-bit DLL through a java application. But the application crashes with the below crash exception when the DLL is loaded. # A fatal error has been detected by the Java Runtime Environment: # EXCEPTION

  • All itunes data gone...can I reload from Time Machine and external HD

    Okay, so maybe I was the stupid one and deleted all of my ITunes library....don't yell, I just wanted to free up some HD space... Fortunately I use Time Machine and an external HD to back everything up..can I reload my Itunes library from Time Machin

  • Benefits and Plans

    Hi Can any one explain me how to setup benefits and plans, Reimbursement. Thanks in advance Nakshathra

  • MIDI events are crazy.

    When I create some events in the "matrix" and try to edit them, those edited events will cause a delay. It sounds like if every note was note quantized.

  • IMac Intel and CS2 using RAW

    Does anyone have problems working with RAW images on CS2 and the iMac Intel machine? Everytime I try to convert an image from RAW to TIFF ( in Bridge ) and then open in CS2 I get a window saying that it cannot open due to an error. Any help or commen