Error in SetDefaultReport with normal users

I have to change default report for the invoices. I try to use the ReportLayoutsService.SetDefaultReport method but i only have sucess if the user that I'm using at the moment is one Super User. If the user is not SU I have the following error: Internal Error (-10) Occurred.
My code is:
Try
                            Dim oCmpSrv As SAPbobsCOM.CompanyService
                            Dim oReportLayoutService As SAPbobsCOM.ReportLayoutsService
                            Dim oReportParam As SAPbobsCOM.DefaultReportParams
                            oCmpSrv = oCompany.GetCompanyService
                            oReportLayoutService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService)
                            oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
                            oReportParam.CardCode = "-1" 'For all BPs
                            oReportParam.ReportCode = oDocCode
                            oReportParam.LayoutCode = oDocLayOut
                            oReportParam.UserID = oUserID
                            oReportLayoutService.SetDefaultReport(oReportParam)
                        Catch ex As Exception
                            MessageBox.Show(ex.Message)
                        End Try
I already try to use:
oReportParam.UserID = 1
Trying make the change with user manager but i have the same error.
How can I this work with normal Users. That no have authorization to change the layout.
Best Regards for all.

Olá Vitor,
O problema é que se não conseguir instanciar auxCompany também não vou conseguir alterar o layout de impressão. Acho que a solução aqui é perceber porque é que falha quando está a instanciar auxCompany. Será por causa de outros utilizadores estarem a fazer o mesmo? Visto que estamos a falar de uma empresa com 7 filiais, o numero de documentos criados é muito elevado
Mesmo tendo vários utilizadores a trabalhar ao mesmo tempo a instanciação de auxCompany não devia funcionar correctamente?
Será por não estar a livertar correctamente o objecto no final da operação?
auxCompany.Disconnect()
auxCompany = Nothing
Também coloquei uma validação para o caso de auxCompany já estar conectado na base de dados.
If auxCompany.Connected = True Then
                                            Try
                                                Dim oCmpSrv As SAPbobsCOM.CompanyService
                                                Dim oReportLayoutService As SAPbobsCOM.ReportLayoutsService
                                                Dim oReportParam As SAPbobsCOM.DefaultReportParams
                                                oCmpSrv = auxCompany.GetCompanyService
                                                oReportLayoutService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService)
                                                oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
                                                oReportParam.CardCode = "-1"
                                                oReportParam.ReportCode = oDocCode
                                                oReportParam.LayoutCode = oDocLayOut
                                                oReportParam.UserID = oUserID
                                                oReportLayoutService.SetDefaultReport(oReportParam)
                                            Catch ex As Exception
                                                MsgBox(ex.ToString())
                                            End Try
End If
Será esta validação que está a causar-me problemas?
Pelo que viste do meu código, achas que estou a abordar o assunto da forma correcta?
Muito Obrigado,
Cumprimentos,
Luis Duarte

Similar Messages

  • Preoblem with Browse facility in Terminal Server with Normal User Login!!!

    Hii All,
           I am facing a problem with my addon in which I am using browsing facility.
           But the Browse facility is working properly  in Terminal Server with Administrator Login, but not working in Terminal Server with Normal User Login.
           So how it can be solved?
    Thanks & Regards,
    Nabanita
    Edited by: ghosh.nabanita on Aug 9, 2011 12:47 PM
    Edited by: ghosh.nabanita on Aug 9, 2011 1:46 PM

    Hi,
    You have to check group polices if browsing is enabled.
    Check this thread:
    http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/336377db-e0cb-4c8e-b7c7-01b7c11c0e27/

  • Mount a Drive with Normal User Access

    How do I do this? Even better, can I mount it automatically. I know this has something to do with /etc/fstab
    What should I append to /dev /sda2 /mnt/mac to make it mount automatically and allow the normal user access?
    It's where I store my music library.

    duke11235 wrote:How do I do this? Even better, can I mount it automatically. I know this has something to do with /etc/fstab
    What should I append to /dev /sda2 /mnt/mac to make it mount automatically and allow the normal user access?
    It's where I store my music library.
    Every question you asked is answered in the Wiki - please read it and then try and implement it yourself. If it doesn't work, then come back with a description of what you tried, what errors you got and any other material you have come across.
    This is help-vampirism.
    Closing.

  • In App Purchase An unknown error has occurred with test user account

    I have created a test app that has in app purchasing. I am able to connect to the store and verify my product ID's. I then use my test user account to purchase a product. And guess what... it works... the first time. If I try to use the test user account to buy another product (the same product or a different one) then I get a pop up that says
    "An unknown error has occurred"
    with a "Cancel" and "Retry" option. If I retry then I get the same error. After hitting cancel I get the error:
    Error Domain=SKErrorDomain Code=0 UserInfo=0x161180 "Cannot connect to iTunes Store"
    Any ideas?

    I am having the same problem with my test account on multiple versions of iPhones. Any idea? Would this error affect real users?

  • Can't login with normal user via XDM

    Hi everyone,
    I have installed XFCE with XDM. The problem is, that when xdm loads, when I enter my normal user name and password the screen blinks and drops me back to xdm. When I enter root with password everything is fine (but I don't want to use root obviously).
    I have copypasted .xinitrc and .xsession from root to home/jonas/. Here are the contents of
    .xinitrc: http://pastebin.com/n2u4qfLD
    rc.conf: http://pastebin.com/2NLKEXyw
    inittab: http://pastebin.com/6Sbf76ff
    What am I missing? Thank you in advance

    weltio wrote:last advice was to downgrade gdm but it sounds very unlikely due to the fact that xdm makes similar problems
    I got the same problem with xdm, while gdm works fine. I'm still interested in seeing what's the xdm issue, though.

  • "Bad request" errors in Firefox with second user account

    Yesterday, I set up a second user account for my husband to use. Everything seems to work fine with one annoying exception. When Firefox 3 is used as the browser under the new user account, I get frequent "Bad Request" errors with various web mail programs (MobileMe, GMail, Earthlink's web mail).
    This does not happen when the same Firefox 3 is used under my original user account. It also does not happen when performing the same functions with Safari under the new user account. It also doesn't seem to matter whether Fast User Switching is enabled or disabled.
    I have tried clearing caches, deleting cookies, deleting preferences etc. in the second user's Firefox, all to no avail. Anyone have any other ideas?
    I guess one thing I'm a little unclear about... is the second user actually using the same Firefox app as the first user? If so, would there be a way to install a 2nd Firefox app that would only be for the second user? I'm just thinking maybe there is some kind of conflict going on?
    Any thoughts or help out there much appreciated!

    I think I figured it out. I found an article online that said if you have Parental Controls enabled on an account (which I did on the second user account), it will not allow Firefox to write cookies, thus causing the "bad request" errors.
    This is not exactly true, as Firefox under the new user DID seem to be writing cookies just fine. However, when I disabled Parental Controls on the account, suddenly the errors went away. So, it doesn't have to do with cookies, but there is something about having Parental Controls turned on that can cause these errors.

  • Installation Error RFC connection with ddic user

    Hi
            when i am installating IDES ECC6.0  iam unable to continue the installation
    due to ddic password. i have tried with master and standard password but no use.
    i have tired to logon to the system  using sap* user . But it also failed to logon .
           could any body help me this issue.
    Thanks in advance.

    Hi Kumar,
    When you delete the user SAP*, please make sure you also add the parameter
    login/no_automatic_user_sapstar = 0 to instance profile (your need to restart the SAP instance)
    As NW2004S, that parameter prevent SAP* login using PASS password.
    But before you do this, please just try to delete the SAP* user first and login using PASS password, if that not work than you should add the parameter and restart the SAP.
    Hope this help.
    FS

  • Work flow in error when executed with a user decision.

    Hi,
    I am executing a workflow for notification of absence. It has a user decision step to Revise the request or to withdraw it when the absence request is rejected by the approver. When I am executing this the workflow is going into error state. User decision step is not starting at all. The first two steps create notification of absence and check notification are getting completed successfully.
    Please let me know where I am going wrong.
    Thanks & Regards,
    Soumya.

    Hi,
    I believe the orginal poster is following the workflow tutorial in the sap help.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fb/135962457311d189440000e829fbbd/frameset.htm
    I'm following the instructions and pretty sure it's been followed exactly on each step but am hitting the same issue - see 'Unit 10 - third step'.
    The log is reporting two errors
    Work item 000000014093: Object FLOWITEM method EXECUTE cannot be executed
    and
    Error when processing node '0000000039' (ParForEach index 000000)
    You reject the notification and then the work flow errors.
    Can anyone help?

  • License errors: shared computer with multiple users

    Please help!  I work at a shared computer (we each take shifts manning the desk and take turns using the PC).  I tried to download an e-Book to the Digital Editions on the desktop and got this message:
    Error getting license
    License server communication problem: E_LIC_ALREADY_FULFILLED_BY_ANOTHER_USER
    I tried uninstalling Digital editions, rebooting, and reinstalling but am getting the same message.  Is there a way to resolve this issue?
    Thanks for your help!

    That's what group policies are for...
    Mylenium

  • Allow normal user to run "ip link set"

    Hi,
    every time I power on my wireless lan device by hardware switch I have to execute
    ip link set wlan0 up
    as root in order to use it. There's a bash script which is triggered with normal user rights by the switch.
    I'm member of the network group, but I can't use the bash script to run ip automatically:
    [drake@laptop ~]$ ip link set wlan0 up
    RTNETLINK answers: Operation not permitted
    Is there a way to allow my account to set up wlan0?
    Thanks!
    Drake

    Good afternoon.
    I believe we have a RFE for this issue our datebase. Namely:
    Bug 18202: Allow to specify params in reports but prevent saving changes
    If I may, I recommend that you open a support case and ask the responsible engineer to add your company's information to the RFE (once it's confirmed that the 2 issues are indeed the same). Doing so will increase the chances of this functionality being added to the product in a future release.
    Regards,
    Alex

  • I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill f

    I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill forms?

    Well, try this (I was able to fix my with these steps):
    Go Utilities > Disk Utility
    Select your Startup Disk, e.g. Macintosh HD
    Then, under the First Aid Tab, click Verify Disk Permissions.
    If there are errors, then click repair Disk Permissions.
    After it is done, restart the computer and see if your problem is resolved.
    I hope this help.
    Zeke
    www.ZekeYuen.com/blog/

  • [SOLVED] Can't hibernate with xfce as normal user

    Until recently, I can't hibernate using xfce menu as normal user. All other operations such as poweroff, reboot, logout... works.
    When I tried systemctl:
    > systemctl hibernate
    Failed to issue method call: Operation not supported
    Failed to issue method call: Access denied
    "sudo systemctl hibernate" works
    All other operations also works for normal user (without sudo).
    When I checked CanHibernate:
    >sudo dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
    method return sender=:1.0 -> dest=:1.56 reply_serial=2
    string "na"
    Which is totally not true since I could hibernate as root.
    CanReboot, CanShutdown... returns "true".
    As expected, this doesn't work:
    > dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Hibernate boolean:true
    Error org.freedesktop.DBus.Error.Failed: Operation not supported
    And of course, all other operations work, which is confusing.
    Package versions:
    > pacman -Q xfwm4 xfdesktop xfce4-session xfce4-power-manager systemd slim polkit
    xfwm4 4.10.1-1
    xfdesktop 4.10.2-1
    xfce4-session 4.10.1-3
    xfce4-power-manager 1.2.0-5
    systemd 208-1
    slim 1.3.6-1
    polkit 0.112-1
    Any ideas what's wrong? Thanks in advance.
    Last edited by bullno1 (2013-10-05 05:57:20)

    qr wrote:
    Hey,
    I experienced the same problem after todays update and after I downgraded systemd and systemd-sysvcompat to 207-5 it's working again.
    I still have to figure out what changed, but it's a temporary fix. Hope it helps.
    Thanks. Downgrading seems to fix it.
    root wrote:As far as I see you are using polkit with XFCE, are you aware that recent updates (03/09 in my pacman log) established that polkit would not autostart anymore but in GNOME Flashback?
    You might want to make sure polkit is running (not only installed) and consider switching to lxpolkit which is suggested as a lightweight alternative which will start automatically with DEs such as XFCE.
    It is running. Thanks for the suggestion about lxpolkit. I'll check it out.

  • Error message in time machine: "There was a problem with the user name or the password of the network

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

  • Get error while Integrating with Oracle's Enterprise User Security

    Hi,
    I am trying to create an Oracle Enterprise User integrating with OVD and MS Active Directory.
    I am following all the steps in Integrating with Oracle's Enterprise User Security.
    In the documentation section: "Configuring Oracle Virtual Directory for the Integration"
    I have applied the steps successfully until:
    Update and load the entries into the Local Store Adapters by performing the following steps:
    I have successfully extended the Oracle Virtual Directory schema with the loadOVD.ldif
    However I am getting errors in the next step: Update realmRoot.ldif to use your namespaces
    The next step states the following:
    Update realmRoot.ldif to use your namespaces, including the dn, dc, o, orclsubscriberfullname,
    and memberurl attributes in the file. If you have a DN mapping between Active Directory and
    Oracle Virtual Directory, use the DN that you see from Oracle Virtual Directory.
    The realmRoot.ldif file is located in ORACLE_VIRTUAL_DIRECTORY_HOME/eus,
    where ORACLE_VIRTUAL_DIRECTORY_HOME represents the location where Oracle Virtual Directory is installed.
    The realmRoot.ldif file contains core entries in the directory namespace that Enterprise User Security queries. The realmRoot.ldif file also contains the dynamic group that contains the registered Enterprise User Security databases to allow secured access to sensitive Enterprise User Security related attributes, like the user's Enterprise User Security hashed password attribute.
    Load your domain root information in the realmRoot.ldif file into Oracle Virtual Directory using the following command:
    ldapmodify -h Oracle_Virtual_Directory_Host –p OVD_Port -D cn=admin -w Admin_Password -v -a –f realmRoot.ldif
    When I run the ldapmodify command I get the following error:
    add dc:
    testldap
    add objectclass:
    top
    domain
    domainDNS
    adding new entry DC=testldap,DC=local
    ldap_add: Operations error
    ldap_add: additional info: LDAP Error 1 : null
    The actual realmRoot.ldif looks like this:
    # Please uncomment the following one line if you are importing this
    # LDIF file via OVD Manager or OVD Server's ldapmodify tool.
    #version: 1
    #dn: dc=com
    #dc: com
    #objectclass: domain
    dn: DC=testldap,DC=local
    changetype: add
    dc: testldap
    #o: subarashii
    objectclass: top
    objectclass: domain
    objectclass: domainDNS
    #objectclass: orclSubscriber
    #orclsubscriberfullname: subarashii
    #orclVersion: 90400
    # If your domain structure has more layers than dc=subarashii,dc=com,
    # for example, it's dc=us,dc=subarashii,dc=com, you will need to load
    # the following ldif entry/entries too.
    # Uncomment out the following, if required.
    #dn: dc=us,dc=subarashii,dc=com
    #orclversion: 90400
    #orclsubscriberfullname: us
    #objectclass: domain
    #objectclass: top
    #objectclass: orclSubscriber
    #dc: us
    # Adding EUSDBGroup entry
    # Modify the memberurl attribute and replace it with your own domain name
    #dn: cn=EUSDBGROUP,dc=subarashii,dc=com
    #cn: EUSDBGROUP
    #memberurl:ldap:///dc=subarashii,dc=com??sub?(&(objectclass=orclService)(objectclass=orclDBServer))
    #objectclass:groupofuniquenames
    #objectclass:groupofurls
    #objectclass:top

    Did you ever get your questions answered about the realmRoot.ldif file? Did you manage to configure a successful integration of OVD with EUS? I am battling with trying to get Oracle Virtual Directory integrated with Enterprise User Security, but every step I take in Chapter 7 of the OVD manual fails in some way, and the instructions are often vague. I am not sure how to modify the realmRoot.ldif file. Is there any improved documentation on this? I have logged a Service Request, but not getting any help. Any resources or documentation you know of that provides better guidance would be much appreciated. I am way behind my schedule now and this is a very frustrating exercise.
    Thanks.

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

Maybe you are looking for

  • Can I use an existing iCloud email address on my mac?

    Hi everyone, I am wondering how I use an existing iCloud.com email address for mail on the iCloud.  Here is what I did: I bought a new Mac.  I signed in to iCloud with my apple ID and turned on the mail feature.  I created a new email address. Then,

  • BW Technical UpGrade

    please search the forums before posting Hi Experts, Currently we are  working on SAP BW 3.5 and my company is planning for BI 7.0 technical upgrade , can any one let me know what does we do in the technical upgrade - is it mostly related to Basis?? w

  • Hubby has iPad with purchased games. I just got a mini iPad. Using iCloud and wifi can I get his games onto mini?  Just purchased a new one and downloaded on both.

    hubby has an iPad with purchased games. I just got a mini and would like to have these same games without having to pay again. We just purchased a new game that downloaded to both. Can I get his existing games on my mini?  iCloud activated and wifi w

  • Authorization does not work

    I need to configure my web application such that users from different groups/roles have access to certain or all application uris. The way I am trying to achieve this is by defining separate <security-constraint> for each type of role. Please see the

  • ¿Cómo desbloqueo el sonido?

    Conecte mi Mac a un reproductor de sonido y al bloquear el sonido intente desbloquear y ya no me dejo... Ya la reinicie, la deconecte, bueno he hecho de todo y nada funciona