SAP company connection with DI only

Hello,
I am developing a asp.net application that uses DI to connect to a SAP Company. Now, I need to get the user password to connect to the company and then post a purchase Order.
thanks
Julia

Perhaps the best way would be, if you are using .NET, to use “app.config” file, store user names/password in it. The first time your add-on is installed, pop off the dialog asking for SAP user name and password (even DB username and password if don't want to use .UseTrusted = true).  Subsequent Add-On startups would not need those pop-ups because Add-on would rather pick it up from app.config file.
Use System.Configuration.ConfigurationSettings.AppSettings[] to pull off encrypted values, then decrypt it using any of the .NET libraries e.g. Symmetric.Provider.TripleDES before establishing connection with DI.
For simple ready to go downloadable snippets, I think check :
http://www.codeproject.com/dotnet/SimpleEncryption.asp
For in-depth coverage, of course, visit MSDN

Similar Messages

  • How to make SAP B1 connection with Windows Sharepoint Service 3.0

    how to make SAP B1 connection with Windows Sharepoint Service 3.0 through asp.net web part code.. I get the security error when i run that web part......
    public bool ConnectToCompany()
                oCompany = new SAPbobsCOM.Company();
                oCompany.Server = "192.168.1.58";
                oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
                oCompany.CompanyDB = "SBODemoUS";
                oCompany.DbUserName = "sa";
                oCompany.DbPassword = "abc";
                //oCompany.UseTrusted = true;
                oCompany.UserName = "manager";
                oCompany.Password = "manager";
                oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
                oCompany.LicenseServer = "192.168.1.58:30000";
                int i = oCompany.Connect();
                if (i != 0)
                    return false;
                return true;
    protected override void RenderContents(HtmlTextWriter writer)
                if (conn.ConnectToCompany() == true)
                    writer.Write("Hello" + this.Context.User.Identity.Name);
    Edited by: bikalg on Nov 28, 2010 9:43 AM

    Hi.......
    Welcome to SAP Business One Forum.....
    Unfortunately this is the wrong forum you posted here.
    I would suggest you post it in SDK or System Administration Forum and definitely you get the solution and close this thread from here......
    Regards,
    Rahul

  • My iphone is not responding, while connected with charger only apple logo is appeared no any other response , what i have to do

    my iphone is not responding, while connected with charger only apple logo is appeared no any other response , what i have to do

    while connecting to itunes to restore, i am getting error. UNKNOWN ERROR 3194  WHAT I HAVE TO DO

  • MY IPHONE 5 does not connect with 3g only wifi

    MY IPHONE 5 does not connect with 3g only wifi

    Has it ever connected to 3g?
    If this is a recent problem perhaps you've reached your Mb limit: if it never has connected are you sure you're paying your carrier for cellular Internet.

  • ITunes doesn't find Airtunes when connected with cable, only WiFi

    I have an Apple TV with Airtunes enabled. But apparantly, it's not possible to connect to it from PC's who are connected to LAN with cable instead of WiFI? Does anyone know why?
    More details:
    I have 3 PC's:
    PC 1: , Windows 7 64-bit with iTunes 9.1.1.12 (latest)
    Stationary, connected to LAN using cable in a Gigabit switch
    PC 2: 100% fresh install of Windows 7 32-bit and iTunes 9.1.1.12
    Stationary, connected to LAN using cable in a Gigabit switch
    PC 3: Win 7 32-bit with iTunes 9.1.1.12
    Netbook - connected through WiFi
    Apple TV device (latest firmware) is connected to same LAN using cable as well. *All PC's can ping the Apple TV without problems.*
    So the problem is that iTunes doesn't find the Airtunes device (the output dropdown selector doesn't show up). I first tried on my main PC (PC1). It didn't work, so i tested on PC2 (wich is a fresh install of both OS and iTunes!), but same problem there.
    But then the weird thing happened. I tried to install on my netbook, and it worked! Only difference is that the netbook was connected through WiFi. I don't see why that would matter, but just for fun i tested to disconnect WiFi, and connect with cable and boom - airtunes selection dissappeared! As soon as I disconnected the cable and reconnected WiFi, it appeared again.
    Why on earth would Airtunes only work on WiFi? As you can see on this screenshot, network configuration is equal on Wifi and cabled connection. (Apple TV has IP 10.0.1.30)

    It's supposed to be able to cope with slightly different file & folder structures, missing track numbers, all tracks in just an artist folder, everything in Unknown Artist\Unknown Album etc. Details here. Can you give me an idea of how things are set out? Maybe it needs a little tweak to cope with the way you've done things, or we could use something like MediaMonkey to reorganize what you have into something the script can work with.
    I'm going to be out for much of the day but I'll look in on this thread later.
    tt2

  • DI-API Error Company Connect with SAP BUSINESS ONE 2004 - B 7.30.215

    Hi,
    I am using SAP BUSINESS ONE 2004 - B 7.30.215. But in the COM window of the Visual Studio.net is having only
    SAPbobsCOM 6.2 and 6.5.
    While executing the DI connecting program It is showing an error
    the error is -2028 (without description)
    I need to add any patches to connect to company?
    help me..
    Regards,
    Jay

    Hi Jay,
    Here's a post that also refers to the same question you asked.
    Need Help in DIAPI
    Is your problem with the connection? Have you tried to connect using the Data Transfer Workbench? Where do you get this error -2028? Please post your code so we can see what the problem is.
    Adele

  • SAP ALE connection with EDI sub-system

    We are using the SAP ALE functionality to connect to the EDI sub-system, rather than the traditional way (creating IDoc flat files). For this setup also, the RFC type is TCP/IP type. But I'm not sure of the various other details to complete the setup. Rather I guess, I don't know which is the correct program to run on the Application Server.
    Look at the error text below, and tell me if this is not working because I cannot connect to the program on the application sever?
    RFC connection type: T (TCP/IP)
    Activation type: Start on Application server
    Program: /usr/sap/D05/SYS/exe/run/rfcexec.sec
    Test connection error:
    ERROR                timeout during allocate                        
    LOCATION             SAP-Gateway on host jua-sap-dev / sapgw02      
    DETAIL               no connect of TP /usr/sap/D05/SYS/exe/run/rfcexec.sec from host jua-sa
    COMPONENT            SAP-Gateway                                    
    COUNTER              6321                                           
    MODULE               gwr3cpic.c                                     
    LINE                 5774                                           
    RETURN CODE          242                                            
    SUBRC                    0                                          
    RELEASE              640                                            
    TIME                 Thu May  3 17:01:32 2007                       
    VERSION              2

    Hi Vinodh,
    I am facing the same issue right now with GIS. Did you get the solution for this please?
    Regards,
    Deepesh Datt.

  • Sap Oracle Connection with other oracle

    Dear Experts ,
    I am trying to connect other oracle machine through database enterned necessary entries in TNS and listerner ora , but i not able to connect
    oracle veriosn is 9.2  and on sap server oracle  is  10.2  , is there any prblm with  version
    Please advise

    Hi Fidel.
    My requirement is i want  to connect to other oracle database with my sapsystem oracle database .
    i am trying to connect thru SQL prompt .i am able to ping the Ip of system , TNSping is also working .
    had made entries in TNS and lister.
    but  when i am trying to connect from SQL  iam  getting error
    ORA-12170: TNS:Connect timeout occurred
    please advice
    Thanks and regards

  • SAP MDM Connection with WebDynpro Java

    Hi,
    I am working with SAP WebDynpro Java (UI) and SAP MDM (Database). I had added the respective jars-
    a) I want to test whether I am able to make a connection to the MDM server. Let me know input parameters (sample source code required) which I need to pass from SAP WebDynpro Java (UI) to make a successful connection to MDM (DB). Please let me know this in details.
    b) After making connection to MDM, I need to write a query where I need to pass Lot No1 & Lot No2 from WebDynpro Java (UI) & check in a MDM table numbers of records existing and later display  the corresponding records details  (sample source code required) in the screen.
    Your inputs will be highly appreciated.
    Thanks.

    Anmol,
    Depending on what version of WAS you are on...you might have WDJ components available that you can use. Just to offer a different view on your question.
    Otherwise follow the links above or the following link to get sample code.
    Read MDM ItemDetail Record in WDJ
    You should get lots of sample code on SDN.
    Thanks,
    Praveen.

  • SAP BOBJ connection with SQL server 2008

    HI Gurus
    I want to install bobj server on a server that already have SQL server 2008 installed on it, I have few confusions as this is my first time installation, I hope you can help me.
    1. Since SQL server is installed on the same machine where I have to install bobj, do I need to create an ODBC connection. Note that O/s is windows server 2008.
    2. What kind of other softwares or tools do I need to istall on the server to connect bobj server to sql server in order to crate universe on sql database, for example, Microsoft IIS and ASP.NET, .NET frame work etc etc or are these installed by default automatically when sql server or bobj server installed on the machine.
    3. is there any checklist I need to go through before I start with the installation of bobj server.
    4. Last but not the least but very important, does anyone has step by step guid with screen shot to thjis installation connectivity.
    I would appreciate your feedback and respoce.
    Regards.

    > what do you exactly mean my set---next next and finish, I think if eveything is setup already such as database server, app server, dev qa and prod and sizing , users etc etc then i guess installing bobj is pretty simple
    > , all i need is a odbc connection to set up, i am not sure what kind of problems should i be anticipating.
    Read the installation guide - and figure yourself if you consider it "easy".
    > Also I am not talking about admin part, universe design and report development ,its totally seperate issue, I was just concerned about installing a bobj tool on the server and to connect it to sql server.
    > Do you have any thoughts on this, would appreciate
    As said - read the installation guides
    There's a reason why they are there and why they are so big.
    All I can say that it is not as easy as doubleclicking a "setup.exe", pres "next", "next" and "finish".
    Did you check the guides?
    Markus

  • Ipod 1st Gen will no longer charge or connect with cord only dock.

    I was recently given an ihome dock for my ipod. I've using it for about a month now and recently my ipod touch has stopped connecting to ANY computer (yes I have tried 3 different ones) I have also tried 3 different cords. I used an old Ipod nano video to test the cords and it connects just fine and charges. Is it possible that something has become loose or has malfunctioned inside the touch due to the use of the dock? I know that 1st gen's don't always fit with new docks etc, so I'm afraid I may have damaged something.
    Any ideas?

    Because once it has charged enough to be powered on as soon as you turn it on it says battery is at 20% and will not charge anymore after that, it just runs for about 5-10 minutes before the battery dies again. The battery cycles discharge/recharge daily and its not on the charger at full charge for more than a couple hours and is never totally dead for more than a couple of hours.

  • SAP R3 CONNECTION WITH JSF APPLICATION

    Hi Experts,
    i want to integrate my JSF application to the SAP R3 using java class. I searched a lot of blogs and docs where they have given a proxy class approach.But i am not able to use it.
    If you have any experience or knowledge , please reply .
    Thanks in Advance
    Ankur Goyal

    Hi,
    I am using NWDS 7.2.If you have any sort of information about a java apllications integration wiith SAP R3 then please reply back to me.
    Ankur Goyal.

  • Business Connector Connection with SAP

    Hi!!!
    I have a XML file with 3 fields with 100 records. I have in SAP a Z table with the same fields of the XML file.
    I made the mapping in SAP BC Developer. I want to put the records of the XML in the Z table of SAP. How can I configure this to SAP BC connects with SAP and fill the table?
    Thanks a lot for your help!
    Regards!

    Hi,
    This might help you
    /people/bla.suranyi/blog/2006/07/10/xi--sap-business-connector-integration-using-the-http-adapter
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/96ed2129-0b01-0010-2e91-c45e1fad0d03
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a8424011-0d01-0010-e19d-e5bd8ca52244
    Kumar.S

  • Running with Smartband only

    Hi everyone,
    I know others have posted about this, but I can't find an answer to my specific problem...
    I went running today, with my Smartband only, leaving my phone at home. When I got back LifeLog showed my run, down to the closest minute, but then when I went back on an hour or so later the run had disappeared, it's still showing my steps but the running value is down to 0. Does anyone know why this may happen?
    Thank you in advance!

    I'm still struggling with this, tried resetting it etc and it's still the same. Did a 20 minute jog today, at 12pm I took a screenshot and the running had tracked, by 12.23pm it has disappeared. I'd not disconnected my Smartband or anything. My partner still has the same problem with his smartband and phone. I've noticed that my Smartband will only connect with Bluetooth, when I turn it off and try to connect with NFC only my phone turns Bluetooth on automatically. Could that be affecting it? Thank you all for your help once more.

  • ECC connectivity with HANA

    Hello Experts,
    We are working on SAP R/3 system. Now client wants to move to SAP HANA. (connection with R/3 and HANA is done)
    Currently, all the processing and queries are executed on R/3.
    The requirement is to either execute the queries on HANA and display the data on R/3 continuing the existing system OR to execute the reports on HANA and display them on R/3.
    I'm very new to this and have no clues about this.
    Please suggest if this is feasible. If yes then kindly suggest how.
    Any third party connector/extractor is required?
    Kindly explain in details, the steps that we need to perform.

    Hi Jitin ,
    we have 3 types of replication methods in HANA to extract data from any kind of source.
    1. Trrigger Based
    2. ETL Based
    3. Log Based
    Go through below links once provide detail document which method to use for ecc systems ..
    http://www.youtube.com/watch?v=rg-fqpuFqCU
    http://www.youtube.com/watch?v=oFhTD1tnuR0
    http://help.sap.com/download/multimedia/ebooks/ec/SAPHANAOverviewofDataReplication/story_con
    tent/external_files/04_SAP_HANA_Data_Replication.pdf
    Regards,
    Giri

Maybe you are looking for