Trying to get a employee with DI SERVER

Hi experts,
I'm using the DI Server and I need update a employee, for that, I need to get a specific employee and then modify him, but when I use the GetByKey method, it always returns "no record found". My code is the next one:
SBODI_Server.Node DISnode = new SBODI_Server.Node();
string sSOAPans = null;
XmlDocument xmlDoc = new XmlDocument();
string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
+ "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
+ @"<env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">"
+ "<Object>oEmployeesInfo</Object><EmployeeID>" + empID + "</EmployeeID></dis:GetByKey></env:Body></env:Envelope>";
sSOAPans = DISnode.Interact(sCmd);
xmlDoc.LoadXml(sSOAPans);
I just have one employee in the data base, with empID = 1. I tried to view all employees with the next code:
string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
+ "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
+ @"<env:Body><dis:GetObjectKeyBySingleValue xmlns:dis=""http://www.sap.com/SBO/DIS"">"
+ "<ObjNum>oEmployeesInfo</ObjNum><PropName>Religion</PropName><Value>--</Value><Condition>bqc_NotEqual</Condition>"
+ "</dis:GetObjectKeyBySingleValue></env:Body></env:Envelope>";
And the EmployeeID 1 appears.
What am I doing wrong?
Regards,
Pedro

Hi Maik,
I tried your code
<?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>
<env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">
<Object>oEmployeesInfo</Object><EmployeeID>1</EmployeeID></dis:GetByKey></env:Body></env:Envelope>
But  I have the same response:
<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
     <env:Body>
          <env:Fault>
               <env:Code>
                    <env:Value>env:Receiver</env:Value>
                    <env:Subcode>
                         <env:Value>-2052</env:Value>
                    </env:Subcode>
               </env:Code>
               <env:Reason>
                    <env:Text xml:lang="en">No record found</env:Text>
               </env:Reason>
               <env:Detail>
                    <EmployeeID>1</EmployeeID>
                    <Object>171</Object>
                    <Command>GetByKey</Command>
                     <SessionID>6B3C6A86-2F4B-4810-99DC-C0CCAAEECAC9</SessionID>
               </env:Detail>
           </env:Fault>
     </env:Body>
</env:Envelope>
The second message of original post returns this list:
<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
     <env:Body>
          <GetObjectKeyBySingleValueResponse xmlns="http://www.sap.com/SBO/DIS">
               <BOM>
                    <BO>
                         <AdmInfo>
                              <Object>oRecordset</Object>
                         </AdmInfo>
                         <EmployeesInfo>
                              <row>
                                   <EmployeeID>1</EmployeeID>
                              </row>
                         </EmployeesInfo>
                    </BO>
               </BOM>
          </GetObjectKeyBySingleValueResponse>
     </env:Body>
</env:Envelope>
I'm using SAPBO 9 PL10 HF1.
Regards,
Pedro

Similar Messages

  • My iphone can not get in touch with the server. What can I do?

    My Iphone can not get in touch with the server, when I am trying to accept terms and conditions. What can I do?

    Possible causes:
    1. Your antivirus is blocking access to gs.apple.com.
    2. Your phone is jailbroken.
    3. Your computer has been used at some time in the past to jaibreak some iOS device (not necessarily the phone with the problem), and its network database was corrupted by the hacking software that was used.
    4. Apple's activation servers are down (very rare, and never for more than an hour or so).
    For 1. try disabling your antivirus.
    For 2. & 3. you need to go somewhere other than an apple forum for help. Although you can try deleting lines containing gs.apple.com from your "hosts" file on your computer.

  • I deleted photobooth by accident and i have tried to get it back with the setup disk, i got imovie and garageband back but not photobooth. Any ideas?

    i deleted photobooth by accident and i have tried to get it back with the setup disk, i got imovie and garageband back but not photobooth. Any ideas?

    PhotoBooth is not on the iLife disk which has iMovie and Garage Band.  PhotoBooth is integrated into OSX, so it's not going to be easy to get back.  You'll need to get it from the recovery disk or partition.  Which OSX are you using so we can point you in the right direction.  NEVER delete any of the OSX programs.

  • The songs that I select will not play .... message said " Song selected could not be used because the original fie could not be found.  The other message I get says " Itunes ws not able to locate any of he 330 missing files".  Trying to get in touch with

    As a first time user trying to get in contact with a Itunes customer sevice rep is impossible and I was hoping someone is aware of this problem..

    This message papers when iTunes can't find the songs in the location they used to be. If you moved them, or is connected the external drive they're on, move them back to their original location, or onnect the drive before starting iTunes.

  • Windows Server 2012 C Drive gets always full with exchange server 2013 installed

    Hi All
    My C drive gets full always with exchange server 2013 installed what would be the reason because this is causing extremely bad to my environment can somebody help me please
    Thanks & Regards, Santosh Chowdary Vasireddy System Administrator Prolifcs DHFLVC Silicon Towers, 5th Floor, Survey #14, Kondapur, Hyderabad – 500 032. Work +91 40 3999 1999 Ex.1656 l Cell +91 9849277255 l [email protected] A Global
    Provider of IBM, Microsoft and Testing Solutions Award Winner for Technical Excellence, BPM, SOA, Portal and Governance

    Hi,
    Based on your description, I understand that this issue (C drive gets always full) occurred after Exchange
    Server 2013 installed.
    à
    But my exchange server is installed in different Drive (EX: D)
    I suggest that you should check file system to see what folders or files are taking up the space recently.
    This issue may be not related to Exchange server.
    Please refer to the following article and enable Disk Cleanup Utility. Then monitor the result.
    Enabling
    Disk Cleanup Utility in Windows Server 2012
    Meanwhile, please check if the winsxs directory is growing bigger.
    How
    to Reduce the Size of the Winsxs directory and Free Up Disk Space on Windows Server 2012 Using Features on Demand
    By the way, please check if you have installed update rollup 2836988. I noticed that Windows.edb file grows
    very large. For more details, please refer to the following KB.
    The Windows.edb file grows very large in Windows 8 or Windows
    Server 2012
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • My iphone plus is bending, what does Apple offer regarding this issue?   I am trying to get to contact with Apple Customer Care, but not clear to me how to do it beside this channel of communication. I bought the phone from kosovar carrier which is u

    My iphone plus is bending, what does Apple offer regarding this issue?
    I am trying to get to contact with Apple Customer Care, but not clear to me how to do it beside this channel of communication. I bought the phone from kosovar carrier which is under Slovenian ownership. This means that the original warranty comes from Slovenia, bit complicated but still I would like to get an urgent answer how to proceed with this issue, thanks

    Maybe i should have only asked if anyone is aware on apple's policy
    regarding bending. I took the point that this seems not a proper forum to
    pose Q's to apple thanks to both
    On Wednesday, November 5, 2014, Apple Support Communities Updates <

  • I'm trying to get in touch with apple via email how may i do that can you guide me through

    i'm trying to get in touch with apple via email how may i do that can you guide me through

    Contacting apple for support can be initiated here:  https://getsupport.apple.com/

  • Has anyone tried to get a refund for Lion Server yet?

    It's clear why server is only $50 now.  Some of the new features looked very promising, but this product is completely crippled and dumbed-down compared to Snow Leopard Server.  Once I accepted the fact that it is not possible to upgrade an existing 10.6 server to 10.7, I gave up on that and simply tried to do a clean install and start over from scratch.  All I'm trying to do is set up a few network accounts that can connect to the iCal and Address Book services.  It simply does not work.  It is not possible to create an Open Directory master on 10.7 Server without some kind of failure along the way.  I have clean-installed 5 times now, and it just doesn't work.  Local users seem to work ok, but network users, which you must use if you want to work with the Profile Manager, simply do not work.
    I am rolling back to my clone of 10.6 server now.  I am curious if anyone else has given up on 10.7 server and tried to get a refund from Apple yet, and if so, what the outcome was.

    Yes, and I have received word that my credit card will be credited shortly.
    I hope to be able to upgrade to Lion Server at some point but it is increasingly clear that Lion Server is not yet ready.

  • I keep trying to get on Notes with my iPad 2, but it keeps crashing. Why?

    I've been trying to get on Notes to take notes on something for school, but every time I try to open it, Notes keeps crashing. My iPad isn't even that old (maybe 5 months?). Why does this happen?

    Hi
    I don't have the original Ipad, I tried to download the update with itunes and over the wifi and both failed

  • How do I get Mac Pro with Lion Server to restart at a set time when users are connected?

    I have recently configured a Mac Pro with Lion Server, and have set it to restart automatically every morning at 3am. When I arrive in the morning, I notice that it has not rebooted, usually because it states there are users connected. Is there a way to automatically disconnect users so that the machine will reboot.  No one is ACTIVELY connected at this time of the morning, but may still be logged in somewhere. I did see where I can log out users after a set period of time when using Workgroup Manager to manage a computer or computer group, but I don't use the server to manage all of the computers that have users log in.
    Thanks!

    Well, it doesn't necessarily have to be each and every night, but it was for the sole purpose of preventing sluggishness. We had it set up before, as Snow Leopard Server and it would restart every night. It would occasionally be slow and need rebooting, however a manual reboot was not possible by most people in the store as they did not have credentials to screen share and restart it - which would result in holding down the power button to shut it down.
    The server is used for the sole purpose of logging in about 50 users just so they can customize their experience, as well as saving items to their own home folders.  The store is closed during the night, and there is no reason anyone would be accessing it during the night.

  • To get the employee with the largest salary

    Is it possible to find the employee with the largest salary without using a subquery???

    Well, of course there are many tables with employees in them, but from the
    phrasing of the question (find highest salary, but can't use subquery!) I think we can
    conclude it's the emp table in question here :-)... and I have no sample schemas in any of my databases. And now? ;)
    I guess it's absolutely ok to ask for actual data. Moreover, it should be provided by OP when posting the question.
    I'm not here because I love to make (more or less) educated guesses.

  • I accidentally purchased the wrong platform. Trying to get it exchanged with no success.

    I accidentally purchased the wrong platform. I am trying to get it exchanged. No telephone support. No online support. It seems I have to register the product first, but the link to that page shows up as a java applet runtime error. In short, a useless product and horrendous experience. Does anyone know how I can exchange this bloody product? I've been using photoshop for 20 years and the customer service is appalling!

    No, I'm talking about PSE13. I was going round and round in circles because I couldn't get telephone support and theonly suggested support was the forums. When I clicked on the link you gave me, Barbara, I also got chat support. The person who helped me was fantastic. They created a new serial number for me and I am able to download the correct version. I don't know hwy your linl gave me this option, but thank you! I was about to throw  my mac out the window.

  • Database Ownership gets messed up with SQL Server 2014 AlwaysON

    Hi All,
    I am trying to build a nightly refresh process for SQL Server DB from on premise to Azure Cloud (IAAS). The Azure infrastructure is configured as 2 node always on. Every Day a new DB get created with retention period of 7 days. (Another script which deletes
    old DB)
    Nightly Build Process as Below:
    1) DB Backup get copied to Azure Blob Storage 
    2) Restore DB on primary Server on Azure
    3) Change DB owner to appropriate login on primary Server
    4) Backup DB/Log from primary Server and restore it on Secondary Server.
    5) Add DB to alwayson temp Group.
    6) Failover temp Group and change DB owner to appropriate login. (Application Dependency to have login ID as the owner of the DB).
    7) Failback and remove DB from temp group and add it to appropriate group.
    During this process somehow the DB ownership gets messed up randomly either on primary or Secondary. 
    I can handle the primary server ownership mess-up by adding piece of code to set the ownership in the end, but for secondary I can't change the ownership as the DB is in readonly mode, resulting, when failover happens the application fails to open default DB.
    Any lead on the solution would be appreciated.
    Thanks,
    Viral Shah
    Thanks - Viral

    Are you using contained databases? If not, is the login on your primary server on Azure the same as the login from your on-premise SQL Server instance as per this
    KB article? Keep in mind that SQL Server looks at SID values and not login/password combination. If the login exists on both servers and the database backup is restored, it carries with it
    the login SID assigned as the DB owner
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • HELP NEEDED PLEASE WE ARE BRAND NEW WITH THIS TRYING TO GET ON LINE WITH PALM PILOT LIFE DRIVE

    WE BOUGHT THIS FOR ARE DAUGHTER 4 YEARS AGO AND CAN NOT GET IT ONLINE WE HAVE 2 COMPUTERS IN OUR HOUSE AND WE USE A ROUTER TO GET BOTH COMPUTERS TO BE ONLINE WE HAVE WE HAVE HIGH SPEED DIGITAL INTERNET THREW A CABLE LINE WITH TIME WARNER CABLE MY HUSBAND HAS BEEN WORKING ON THIS FOR DAYS
    OUR DAUGHTER NEVER USED THIS ONLINE AND IT IS ALMOST BRAND NEW AND NOW THAT SHE NEEDS IT WE CAN'T GET IT HOOKED UP RIGHT
    Post relates to: LifeDrive

    Hi, and welcome to the Palm Support Community.
    Please turn off the CAPS LOCK when you post. it makes your post very difficult to read and is considered SHOUTING.  Thanks!
    The first thing I suggest is that you read through this troubleshooting list posted near the top of this board.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • I am getting sync problems with Exchange Server and local outlook. Error code is 18439. Does anybody have an idea what the problem might be?

    I am using Outlook on my Imac, which is linked to the Windows Exchange Server. All off a sudden I keep receiving messages saying that the message Re: xxxx cannot be synchronized with the exchange server. When I delete the message from my local mail box, all is fine, but after a while another one pops up. The error code is 18493. Does anyone have an idea what could be going wrong???
    Thanks for your help already now!

    Hello Wolfgang,
    I get the same error, but I cannot figure it out too. I hope you or I get some responses back! I do not know why there isnt an edit feature in outlook to acknowledge the individual alarm so it does not alarm again!
    Fil

Maybe you are looking for

  • How can I get iCal working for me? Is Server the way??? Really need help he

    Hi, I made an earlier post, but nobody wanted to reply Here goes again. New photography business. My wife uses a MacPro tower, I use a MacBook Pro, and we have a spare Powerbook sitting doing nothing. 1. We want to access and edit the same iCal calen

  • How to Setup Gmail Account in C2-00

    how to setup gmail account to my nokia c2 00? Plese help me... Moderator's Note: The subject was amended as the post was moved to the appropriate board.

  • My computer has no sound :( help?

    I really need some help. My computer has no sound at all. Windows media player, youtube, there just doesn't seem to be any sound. (my volume is not on mute) I also checked that my sound driver is installed and updated but still no audio Thanks in adv

  • Laserjet 1536dnf MFP "Update"

    I'm getting a suspicious-looking pop-up.  It doesn't use the HP logo, but implies that I need a software update for the only HP equipment I have--the Laserjet 1536dnf MFP.  Last week something like this popped up and I followed along and the malware

  • Can't open the mac-air

    i can't open my Mac-air notebook,when power on ,the screen is blank with a question mark?