How to show windows form in SAP B1

Hi
I would like to create interface UI form using C# , windows form and add to SAP B1. I would like to know process and send me if you have any sample code please.
Thanks
rl

Hi ragno liver.
This are the step to create your addon. :
1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
2- Add References SAPbouiCOM and SAPbobsCOM
3- Add a module call SubMain to your project
4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
5- On the SubMain module add this code:
using System;
using System.Windows.Forms;
class SubMain {
static void Main() {
// Creating an object
MyClase oMyClase = null;
oMyClase = new MyClase();
// Start Message Loop
System.Windows.Forms.Application.Run();
Where MyClase are located the code to create your menu and the call to your form.
Regards,
Jose

Similar Messages

  • Show windows form on SAP

    Hi.
    I am opening a windows form and have this problem.
    When open the form this show on the taskbar. But it doesn't maximize.
    I am need that this form maximizes. How can I do this?
    Regards,
    Jose

    Hi ragno liver.
    1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    2- Add References SAPbouiCOM and SAPbobsCOM
    3- Add a module call SubMain to your project
    4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
    5- On the SubMain module add this code:
    using System;
    using System.Windows.Forms;
    class SubMain {
        static void Main() {
            // Creating an object
            MyClase oMyClase = null;
            oMyClase = new MyClase();
            //  Start Message Loop
            System.Windows.Forms.Application.Run();
    Where MyClase are located the code to create your menu and the call to your form.
    Regards,
    Jose

  • User Windows Forms in SAP

    Hi, is there an easy and quick way to use my Forms I made, which look like SAP forms as an AddOn in SBO?
    Maybe you know Mari-Projekt. The functionality should be the same. I have a stand-alone software but I also want to use it as an AddOn.
    Thanks Philipp

    Hi
    You can Open your windows forms in SAP Business One with a little bit work around.But event handlers for the form will be of .Net(like Button Clicks).But the problem is that you have to use showdialog property of form to show the form,Which will not allow you to access Sap Business One untill you close the windows form.
    If you want to handle your form events form with SDK,i am not sure whether that is feasible or not.
    Hope this helps you
    Regards
    Vishnu

  • How To Export Windows Forms Multiple DataGridViews in single PDF using iTextSharp, C#

    Hi,
    I am using VS2010 For my windows application dash board is required for that i am using 6 datagridview to display in form and i want to export all datagridviews to one single pdf please help me out.
    How To Export Windows Forms Multiple DataGridViews in single PDF using iTextSharp, C#
    Thanks in advance

    Hi friend,
    Actually iText is a third party library to create PDF originally written for java. iTextSharp is the C# adaptation of that library.
    Question regarding iText are better asked on the iText forum, but this is Microsoft Forum:
    http://itextpdf.com/support
    But I am found a similar thread, it may help you.
    http://www.codeproject.com/Questions/442171/How-to-convert-datagridview-to-pdf-in-csharp
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to move offline form from SAP dev to QA and Production environments?

    I developed and Adobe Form that can be used offline - steps in development are as below:
    1. Webservice generated out of a BAPI in SAP.
    2. WSDL generated from SOAMANAGER transaction code and kept on a newtowrk folder
    3. Used this WSDL to prepare the form in SAP WebDynpro view
    4. generated the URL of the webservice per Dev / QA / Prod when the form is being generated out of the WebDynrpo app - function module ICM_SERVER_INFO (used here)
    4. Placed a regular type button on the form and passed the URL on the click of the button
    5. This worked fine in Dev system.
    6. Now the transports are moved to QA. But click of the button was still pointing to the Dev system.
    7. Realized that it is reading the Dev WSDL from the network drive - it still tries to submit to the dev url of the webservice
    8. So generated the WSDL from SOAMANAGER fo QA and over wrote with the Dev WSDL files.
    9. When I opent he Adobe Form in WebDypro in QA, it reads the new WSDLs and updates the correct URLs - I checked this in the XML of the source of the Adobe Form
    10. here comes the problem - even though step 9 is done correctly, I can not save the form and activate it to reflect the new URLs - since QA is not open. Same procedure may need to be followed in case of Production also.
    So the question is:
    How to circumvent this issue of updating the WSDL and URL after the development transport is moved to QA and Prodcution?
    Or - QA and Prod have to opened, WSDL and URl updated in change mode of form and a transport also created?
    (seems to be a limitation)
    (I looked a bit but did not get any pointers when I googled - may be my search is not correct).
    Please advise.
    Thanks,

    hi Chandra,
    I store the url in one of hidden field in form, then copy javascript below to click event, button control type: Regular.
    just replace all the "<>" in the code below.
    var message;
    var response;
    // The name of the data connection will be pulled from the WSDLConnection name in the ConnectionSet packet
    var sWSDLName = <DataConnection name>;
    // clone, modify and execute the connection.
    var vConnection = xfa.connectionSet[sWSDLName].clone(true);
    vConnection.soapAddress.value = <url>;
    // Execute the connection, without remerge data after the result.
      var ws_rc = vConnection.execute(true);
    for multiple data connection, you have to repeat these code with replace different data connection name and it's url address.
    you may use script object (something like subroutine).
    Regards,
    Kathy Lau

  • How to download adobe form in sap inbox and process it

    Hello experts,
    I have a query like how we can download the adobe forms in sap inbox and process process the forms using some program which will convert form data in to XML.
    thanks in advance.

    Hello Samad arif,
    May be you can reuse the code that placed in this document to covert the PDF form to XML format.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    Thanks,
    Bharath.K

  • Help: how to show 9i forms without browser

    Hi, I want to show 9i forms in separate frame without browser, and I use JInitiator. I use separateFrame=true, which worked. But my question is since I don't need the browser, I want to close it. The problem is it'll close the form too. I think the reason for that is the browser is the parent of the form. Can someone tell me whether is possible to close the browser page without closing the actual form? or is there any other way to display actual form without the browser frame. Please help! Thanks,
    Sa

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • How to get windows form object of a MMC snapin node using MMC automation object model

    Hello,
    I am using automation object model for an existing mmc file and just trying to traverse all nodes of it. And i am able to do so.
    My query is : how can i get the access of windows form object of a particular node . Windows form is present in result pane of a node, i want to get access of that so that i can perform some automation on that form.
    http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx
    I found that if OCX control is in result view of any node, then "view object -> control object property" returns
    the automation interface supplied by the control in the result view. 
    However, if result view is HTML view then how to get the automation interface of that result
    view.
    Thanks in advance,
    Sumit

    Hi Sumit,
    I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
    object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
    VB Forum. If you want to use C#, may post in
    C# Forum.
    In addition, there is an answered question, may help you to find the correct forum.
    MMC development forum?
    http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
    Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
    understanding.
    Hope this helps.
    Best regards,
    Justin Gu

  • Windows Form with SAP B1 Problem

    Dear all,
    I'm building an add-on that use some windows form.
    In Menu Event i placed the code for open my windows form:
                        MyForm xxx = new MyForm();
                        xxx.WindowState = System.Windows.Forms.FormWindowState.Normal;
                        xxx.Visible = true;
                        xxx.ShowInTaskbar = true;
                        xxx.TopMost = true;
                        xxx.Text = string.Empty;
                        xxx.ControlBox = false;
                        System.Windows.Forms.Application.Run(xxx);
    All works fine, but, when my form is open i can't operate on SAP.
    It's like my form is modal, and until I have it open I can't do anything outside the form.
    Can someone help me?
    Regards
    Diego

    Hi Diego
    There's actually two ways to build an add-on, one that runs inside SAP Business One and one that runs along SB1 side but built on windows forms.  You can see this clearly if you try some of the add-on samples that come along with B1.  Overall, when I did the analysis I ended up with the conclusion that I was going to spend twice the work to achieve windows forms.
    First, you would have develop classes and objects that keep in communication with Business One.  Second, you have to keep in mind that you cannot create, update, or delete data directly to the database unless you use the SDK provided objects and methods.  Which brings you back to the SAP data sources.
    Furthermore, you can run into a bit of complexity do to the fact that to illustrate data in your form, you might have to "convert" your data.  For instance, say a SAP recordset into a dataset or ADO recordset.  In other words, you can end up with a bit more complex architecture the way I see it.
    Using the Screen Painter and SAP Business One tools such as the BIDE you can construct bound form (UDOs) which can even require very little coding from your part (if forms are not to be too complex).  Once you get use to SAP's way handling data objects you see is a lot easier than trying the alternative.

  • How to Show Image form Library with Thumbnail view on visual Web part page using XsltListView web part?

    <WebPartPages:XsltListViewWebPart ID="XsltListViewWebPart_AppWeb"
    runat="server" ListUrl="Lists/MyList" IsIncluded="True"
    NoDefaultStyle="TRUE" Title="XsltListView web part" PageType="PAGE_NORMALVIEW"
    Default="False" ViewContentTypeId="0x">
    </WebPartPages:XsltListViewWebPart>
    For any List it work fine but for Image form library its not working:
    My url: http://sitename:portname/PublishingImages/Forms/AllItems.aspx
    Please provide Solution.
    Question:How To show image library with thumbnail view in Visual Webpart using xslt webpart.

    Is it throwing any error?
    do you set correctly the ListUrl parameter? in this case it will be "PublishingImages"

  • How to show crystal report from sap b1 ?

    Hi expert all
    step 1 :I    have  a one button in sap b1 form when i click this button want to show crystal report.
    please   tell me in step by step.
    please help me how to do this ?its our customer requriment......
    Edited by: john_kk on Jul 7, 2009 9:08 AM

    You may search and post your question on SDK forum to get more expert responses.
    Thanks,
    Gordon

  • How to show corporate dashboard in SAP Portal?

    HI,
    we have requirement to show BOBJ info view corporate dahsboard (three tabs) via SAP netveawer portal.
    I know we can integrate crystal report into SAP portal but how to integrate whole corporate dashboard from info view?
    thanks

    Thanks,
    I tried it with the following based on documentation I found:
    http://<server>:8080/businessobjects/enterprise11/desktoplaunch/opendoc/openDocument.jsp?iDocID=2776 (<server> being our dev server and 2776 being the id I found for the dashboard from CMC)
    however - I get an error:
    description The requested resource (/businessobjects/enterprise11/desktoplaunch/opendoc/openDocument.jsp) is not available.
    any idea?

  • How to show system form with a new button

    Hi experts,
         I created a new button on the sales order system form, I need that the new button calls other system form, How can I show a system form with my new button?
    Thaks.
    César Lemus.

    Hi César,
    On the Item Pressed Event of the button, Write the code to show the other system form. The sample for this is as follows.
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                          If pVal.ItemUID = "URButtonID"
                                    SBO_Appln.ActivateMenuItem("Menu ID of ur system form.")
                          EndIF
    Hope this is helpful. If yes reward points.
    Regards,
    Vasu Natari.

  • How to show window programaticaly on xcode 6

    How can I show a window programaticaly on xcode 6? On xcode 5 i did work with this: [window makeKeyAndOrderFront:window]; but now not anymore.

    i fixed it already

  • [Forum FAQ] How to show Windows Update in Control Panel in Clean Installation of Windows 10 Technical Preview Build 9926

    Scenario
    If you performed a clean installation of the new Windows 10 Technical Preview Build 9926, you would find Windows Update is only available in
    Settings and is hidden in Control Panel by default. However, Windows Update is still available in Control Panel if it is an upgrade version of Windows 10 Technical Preview Build 9926.
    Solution
    After the comparison of the two different version, the differences is the following registry:
    HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\IsConvergedUpdateStackEnabled
    In clean installation version:
    In upgrade version:
    The method to make Windows Update show in Control Panel in the clean installation of Windows 10 Technical Preview Build 9926:
    Edit the REG_DWORD value of IsConvergedUpdateStackEnabled from 1 to 0.
    Applies to
    Clean installation of Windows 10 Technical Preview Build 9926
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    We’ve seen a few forum posts talking about changing registry keys to alter the update experience we shipped in Technical Preview build 9926. There are a couple of reasons that we don’t recommend doing things like that.
    First, the default experience is what we’ve tested across not just the Windows 10 team, but across all of Microsoft before we released it to you. That doesn’t mean that you won’t still find bugs, but it’s definitely the code that’s been most thoroughly
    tested. Changing things back to older versions is risky because the combination of those old settings with the rest of Windows 10 is not something that’s been validated or supported, so we can’t predict the side effects. It’s possible that changing registry
    settings related to update could cause a machine to no longer be able to get new updates or Technical Preview builds.
    The other reason to avoid changing the default update experience is that a lot of update-related code is actually being re-written in order to scale across the variety of different device types Windows 10 will support. Since Technical Previews are
    a work-in-progress, some code that may still be in build 9926 won’t actually ship in the final version of Windows 10 that we provide to all our customers, so trying to re-enable that code temporarily won’t provide a way to accurately assess Windows 10’s update
    capabilities.
    We want to hear your feedback! We’re sharing Technical Preview releases early so we can understand exactly how customers are using our software and make sure we are designing our experiences to address those scenarios. The more
    specific the feedback, the more helpful it is for us – saying “I hate the new Windows Update UI” isn’t very useful, but when we see “I need to be able to tell Windows Update to grab updates from WU itself and not from my internal corporate server, so the new
    Windows Update UI is painful for me”, we can actually understand what changes we could make to solve those specific problems. We can’t promise to fix everything that everyone asks for – and sometimes what one customer wants is exactly what another customer
    doesn’t want – but the more you can help us understand why you want something changed, the better we can try to meet those needs.
    Thanks for listening, and we look forward to hearing your responses.
    http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_update/warning-disabling-the-new-windows-update-ui-may/dc846517-eca0-4960-b0ff-1eb7227223f5

Maybe you are looking for

  • Please help me to get a clue from this program

    I'm sorry to bother you with such stupid questions. I have to admit I'm just making my first steps in programming. So I have a program like this and don't understand how it works: // Masking sign extension. class HexByte { static public void main(Str

  • Data load from BW converting but rejecting

    Hi All, We are loading data from BW to BPC via the data manager package LoadInfoprovider selections with validated transformation and conversion files.  When we load the data (any selection), the data converts correctly (giving an acceptable accept c

  • Opening links in tabs

    Is there no way to set a preference so that clicking on a link on a webpage in Safari opens the linked page in a new tab instead of a new window without holding down the command key?

  • Photos become pixelated when moved to new photo album?

    If I create a new photo album and select photos from camera roll or photo stream, once moved, they become pixelated in both locations. Help?

  • Received a mail delivery subsystem email - need help understanding why?

    I sent an email to two groups...total quantity of people was 32 recipients. I received the following email. It references this...Chair Contacts"@mailpod.hostingplatform.com...which I have no recipient with this email string. I can't tell if all the e