PrintEvent in SAPB1

Hi again ...
I am facing a new problem here . I am trying to handle the printevent, in order to modify my print layout so I can show (or not ) the remarks field (sales order doc.) wich will contain 2, 3 text lines max.
I have declared a two event handlers - SBO_Application_ReportDataEvent and SBO_Application_PrintEvent, but none of them are being triggered when I print through Document Printing option in SAP B1...
Is there anything I need to know to put that to work ?
The code is the same as samples PrintEvent on Samples folder, with the exception that I don't have a form to display report data ...
Please advise ,
Rgrd
Ivan Frias

Just a VS2005 problem . Rebuilded the solution and it solved the problem.

Similar Messages

  • How to Print the DeliveryNote in SAPB1 Programatically.

    How can one print the deliverynote that is added in the SAPB1 using the SAP DI SDK .
    This option is available in the SAP UI in the Administration -> Print Preferences -> PerDocument .
    How can this be done using SAP DI Sdk .

    Hello
    This is an old story... Via DI API it is not possible.
    What you can do:
    User can start the document printing (wizard) and can print out the di added delivery notes after the DI API action (End of the day for example).
    Regards,
    J.

  • SAPB1 in virtual machine?

    Hello!
    Has anyone had a success story running SAP B1 in a virtual machine, particularly virtualbox? Here is our problem: sql or SAP installer is very inefficient and stalls the installation process at 100% cpu for hours.
    Our setup. Host server:
    2 x Intel(r) Xeon(r) CPU E5620  @ 2.40GHz (2 x 4 cores, 2 x 8 virtual processors)
    24GB RAM
    6 x 1TB SATA-3GB 7200 rpm in RAID5 (raidz1)
    Software: Opensolaris, SunOS 5.11 snv_134b
    Virtualbox 3.1.8
    SAPB1 Virtual Machine (more details - at the bottom):
    Hardware (virtual)
    4 cores, 8GB RAM, 32MB video ram, 2 HDDs:
    C:\ - host: VMDK 80GB, dynamically allocate storage, on RAID5/raidz1 volume, guest: NTFS
    E:\ - host: VDI 200GB, dynamically allocate storage, on the same raidz1, guest: NTFS
    Software:
    Windows Server 2008 R2 64bit (180 days evaluation license)
    SQL Server 2008 R2 (180 days evaluation license)
    SAP B1 8.81
    Situation:
    SQL server is configured by SAP installer. When installing SAP Demo database the VMu2019s cpu usage stays at 100% with sqlserver process at 18%, RAM usage is at only 40% (60% free), the installation process takes 6-7 hours to complete. SQL data and log files are placed in the same C:\ drive as the guest operating system. Disk activity shown by the host system is on average 300KB/s writes. The load on the host machine is 10% cpu for the copy of VirtualBox running this VM but no other cpu- ram- or disk-intensive tasks running at all. Earlier tests showed 30MB/s sustained writes on raidz1 but significantly faster in bursts due to effective ZFS caching in hostu2019s RAM. For what I can tell, there is plenty of disk bandwidth, host cpu and ram and guest ram.
    Thereu2019s also a weirdest thing: CPU figures on guest donu2019t add up: performance monitor shows 100% cpu used on all four cores but when you look at individual processes the biggest one is sqlserver at 18%, SAP setup is 0-3%, taskmanager itself is 6-12%, the rest is negligible including IDLE process at 0-2%. The machine is clearly very busy with slow screen updates etc. but the sum of all running processes plus idle process is at 40-50%. Once install of the demo database  sucessfully finished many hours later cpu usage came back to normal - 95-97% idle.
    Suspicions:
    1. SAP installer and/or production executables are compiled so that they arenu2019t happy at all under a hypervisor or only under virtualbox in particular. Earlier trial installation of the an old, 2004, version of SAPB1 on the same VM didnu2019t show this problem although we didnu2019t specifically test performance, it was just an early test installation. Slow u201Cby designu201D?
    1a. SAP is not happy with evaluation versions of Windows Server or SQL. Slow u201Cby designu201D?
    2. Placing demo DB files and logs on a different virtual drive (E:\) or an iSCSI drive will dramatically improve performance of SQL - This is next thing we are going to try.
    2a. VirtualBoxu2019es realisation of VMDK (VMware disk format) is affecting performance.
    2b. The format of virtual disks was chosen to dynamically allocate storage which is, although it seems plenty of spare host disk performance is available is still inefficient. But then, why CPU usage is the problem? Is that caused by badly written .exe files that do not return spare cpu cycles while waiting for disk operations?
    Many thanks for any tips!
    More on VM:
    Guest OS:        Windows 2008 (64 bit)
    Memory size:     8192MB
    VRAM size:       32MB
    Number of CPUs:  4
    Synthetic Cpu:   off
    CPUID overrides: None
    Boot menu mode:  message and menu
    Boot Device (1): Floppy
    Boot Device (2): DVD
    Boot Device (3): HardDisk
    ACPI:            on
    IOAPIC:          on
    PAE:             on
    Time offset:     0 ms
    Hardw. virt.ext: on
    Hardw. virt.ext exclusive: on
    Nested Paging:   on
    VT-x VPID:       on
    Monitor count:   1
    3D Acceleration: off
    Storage Controller Name (0):            SATA Controller
    Storage Controller Type (0):            IntelAhci
    Storage Controller Instance Number (0): 0
    Storage Controller Max Port Count (0):  30
    Storage Controller Port Count (0):      2
    Storage Controller Name (1):            IDE Controller
    Storage Controller Type (1):            PIIX4
    Storage Controller Instance Number (1): 0
    Storage Controller Max Port Count (1):  2
    Storage Controller Port Count (1):      2
    SATA Controller (0, 0): /export/home/admin/.VirtualBox/HardDisks/RAID/disk1.vmdk
    SATA Controller (1, 0): /export/home/admin/.VirtualBox/HardDisks/RAID/disk2.vdi
    IDE Controller (0, 0): /opt/VirtualBox/amd64/additions/VBoxGuestAdditions.iso

    While the other suggestions here have merit, I wonder what can be done with your current solution...
    Why are you running such an old version of VirtualBox?  Version 4.1.4 is available for Solaris machines; I would think you could use that under OpenSolaris (although I am unfamiliar with the details of OpenSolaris, as I haven't run it).
    The dynamically-allocated disk is the second most likely culprit in the performance issues, right behind the older version of VirtualBox...  I have used the dynamic allocation many times for file servers and application servers, but a database server needs to have the highest disk I/O performance possible.  I don't like to see my client application waiting on the database to allocate new disk space which is waiting on the hypervisor to provide additional disk...  I think you see my point.
    You might take a snapshot or clone the VM and test on another machine, even to the point of cloning the existing virtual hard drive to one which was created as a statically allocated disk.
    Those would be the first two items I would try out.  Let us know how successful you are; I'd love to hear what seems to be the bottleneck, as we are considering placing our B1 services inside a VM.  We are considering VirtualBox, VMware, and Citrix Xen at the moment.
    Rob

  • Attaching file to a Order form by UDF - SAPB1 2007A

    Hi,
    I would like to know if there away to attach files (*.PDF) to a Order Form as same as  the activities tab in the Service Form.
    It can be done by using UDF but I don't know how .
    SapB1 version 2007A
    Thanks
                            Erez

    You can attach your form to the activitiy and link the activity to the order, or , you  can create a UDF of type Link, then from the UDF, navigate to the document you want to attach and create the link. In some versions of 2007A there is a bug that will recreate a copy of your file in the attachments path however, so do watch for that.

  • Last Prices is not working in SAPB1 2007

    Hi all,
    I just upgrade my sapb1 from version 2005 patch 36 to version 2007 patch 37. I found that the last prices feature, is not function in SAPB1 version 2007. Anyone have face it before?
    Regards
    Wong

    Hi Wong,
    I'm using pl 38  & it works fine. You can call the report up from 2 different locations:
    1.) From the SAP Business One Main Menu, choose  Inventory->  Inventory Reports -> Last Prices Report .
    2.) In a sales or purchasing document, place the cursor in the Unit Price field and press Ctrl + Tab. The values are copied automatically from the document.
    To generate the report, enter the necessary information and choose Refresh.
    Please be careful about your selection criteria, e.g. if you have selected a specific BP & you have not traded with this BP before with this item, there will be no data displayed.
    All the best,
    Kerstin

  • B1DE / PrintEvent  ..

    I am trying to think of a way to capture the output from a document print ( a sales invoice) so that i can do some additional processing on a subset of the printed items (export them to an external file) . I am using B1DE to create my application and the event handlers but i'm having a a problem with the printEvent  - namely where to put it and how to name it  ? I can add a handler to the "ok" button on the Document print dialog but this receives an ItemEvent and i'm not sure that this can or should be cast to a printEvent .. Is it just a case of capturing the print event from the main menu and doing all my processing within there  ?  I'm hoping the printEvent will hold the necessary info for me to extract what i want . In the main class B1DE generates a number of event handlers (eg OnShutDown(), OnCompanyChange() ...)  that i can overide but i dont see anything related to printEvents ..
    How can I handle this within B1DE framework  ? 
    Thanks  ..

    Thanks for the reply  .. I did try this within the main addon event handling application class generated by B1DE  ..
    In the constructor ..
    public Sample() {
                // ADD YOUR INITIALIZATION CODE HERE     ...
                // Add an event handler for the print event  ...
                B1Connections.theAppl.PrintEvent += new  SAPbouiCOM._IApplicationEvents_PrintEventEventHandler(myPrintEventHandler);
    and this for the event handler in the same class .. 
      private void myPrintEventHandler(ref SAPbouiCOM.PrintEventInfo pVal, out bool BubbleEvent)
                BubbleEvent = true;
                B1Connections.theAppl.MessageBox("The Print event has been sent", 1, "Ok", "", "");
    But the code is never called  ..  Would you happen to know if this is the correct way to add this handler
    via B1DE  ?
    As an aside i tried one of the samples provided in the SDK(2007A) but with a couple of small amendments  ..
    I used the "CatchingEvents" example but added the following 2 lines to register additional listeners ..
    // Try these additional events  .. 
            SBO_Application.PrintEvent += new SAPbouiCOM._IApplicationEvents_PrintEventEventHandler(SBO_Application_PrintEvent);
            SBO_Application.ReportDataEvent += new SAPbouiCOM._IApplicationEvents_ReportDataEventEventHandler(SBO_Application_ReportDataEvent);
    with this handling code ..
        private void SBO_Application_PrintEvent(ref SAPbouiCOM.PrintEventInfo pVal, out bool BubbleEvent){
            BubbleEvent = true;
            SBO_Application.MessageBox("The Print event has been sent", 1, "Ok", "", "");   
        private void SBO_Application_ReportDataEvent(ref SAPbouiCOM.ReportDataInfo pVal, out bool BubbleEvent)
            BubbleEvent = true;
            SBO_Application.MessageBox("The ReportData event has been sent", 1, "Ok", "", "");   
    These events didn't fire as expected either - they didn't fire at all . Can anyone see a problem with my implementation or my interpretation of the event handling  ?  ..
    Edited by: Rob Morning on Apr 8, 2008 2:59 PM

  • Bank Loans in SAPB1.

    Dear Experts,
    We apply loans to each AP invoice when AR invoice due date is later than AP invoice due date.
    We want to link the interest cost to each loan as a landed cost on the invoice
    (I know landed cost is not supposed to be used for that but Landed costs seems the only way to total the costs of sales
    such that profit can be shown as AP INV + costs - AR INV)
    They are short term loans typically less than 1 month.
    Loan is done on a per invoice basis.
    The loan is paid back in full as soon as AR payment is received.
    Eg
    1) AP Invoice     1,000 USD
    Due date:        June 2nd      
    AR Invoice        1,100 USD
    Due date:        June 29th
    Cost of the loan is for example 1 USD in interest. Which we would like to apply as a landed cost to the invoice.
    I cannot find a loan module in SAPB1 so I was thinking I need to make our bank
    a vendor and customer and make an AR INV for 1000 USD incoming as June 1st,
    and AP INV for 1001 USD outgoing June 30th. Then we can see our cash flow position.
    After that, I'm a bit stuck because I want to link the interest cost of 1 USD to the original AP invoice (1 above)
    as part of the cost of sales (landed cost together with freight costs) etc.
    Any kind advice or pointers in the right direction would be really appreciated.
    Message was edited by: George Harris

    Hi ,
    Could  you please elaborate your problem  .
    Is the loan service visible on portal . If yes  are the loan types coming .
    Have you checked the ess related config in back end ?.
    Also while entering loans in IT0045 do any warning messages come because all the warning messages are converted to error messages in ESS . so if there is warning message coming for loan type in back end for eg :  the maximum eligibilty for loan type XXXX  is 0 . then thye loan type shall not be visible on front end.
    so please check the above things
    Regards
    Nidhi

  • Customisation SAPB1-2005

    hi all,
    iam new in SAP B1-2005 ,here we started Customisation of SAPB1 my modules are like thisie
    1.)Purchasing A/P ->
    1.1)Goods Receipt P.O -->Step1)In this i had to modify the Menu Item to be changed as "Material Inward Receipt"(Requirement).
    Where iam confusing that like when i press the in sapb1 present main menu ie Menu item-"2036"-Goods Receipt P.O its event message is comming but,that Menu item name is not Changing i return my code like this
    SBO_Application.Menus.Item("").String = "&Material Inward Receipt" is this correct way or n't?? plz respond this Requirement asap with Clear information??
    Regards
    ANAND

    hi anand,
    Do one thing, go to "Goods Receipt P.O "
    perss control and double click...
    u can change the label. this is easiest way..
    if satisfied reward points...
    nirdesh

  • Display more than 7 users in the #SAPB1 calendar

    How do I see more than 7 users in the #SAPB1 calendar? Transpose the present layout - users vertical/time line horizontal would also be a good idea. I'm aware that you can change the 7 by using the formsettings but this is too time consuming.

    Hi Martin,
    Only way to show more users is enable them from form settings.
    also You cannot display more than seven users in the Group View simultaneously.
    Thanks,
    neetu
    Edited by: Neetu Dhami on Dec 20, 2011 5:01 PM

  • Is it possible at all to have DB on separate serer in SAPB1

    I think the answer is no as SAPB1 is not three tier architecture like R/3, however, I want to confirm it again.
    SO the question is, is it possible to have MS SQL DB on a separate server than the one on which SAP B1 Server is installed? This question came from a prospect.
    Thank you.

    Dear Syed Aleem ,
    ofcoure you can maintain the Database server on seprate machine.even you can mainatin multiple database server on a single license server in SAP business one 8.8.
    Regards,
    Amit

  • Reg: SAPB1 8.81 dot net framework 3.0 in Win 2000 OS

    Dear All,
    Which framework will support for Window 2000 OS. While installing SAPb1 8.81 in the client where have win2000 OS its showing Error and Net 3.0 framework not installing.
    Please do the needful
    Thanks & regards
    Venkatesh N

    Hi Venkatesh,
    At least Windows 2003 is needed. Win 2000 is not in the support server list.
    Thanks,
    Gordon

  • How to Get Certification courses in SAPB1

    Hi Friends,
    How to get certification courses in SAPB1,how to contact them..
    Thanks,
    Nageswar

    Hi
    You can check the SAP Portal at: http://service.sap.com/smb/sbo/training
    There you can get the information and the materials available.
    Paulo Calado
    SAP Business One Forums Team

  • SAPB1 in Thai Language

    Hi,
    I would like to check with you, if its possible to have the entire SAPB1 Menu in Thai language?
    Regards,
    Belita

    Hi,
    Currently, Thai language is not available in SAP B1 standard. Using add on could solve it but I am not sure that all fields will be able to translate because the partner addon will not touch the B1 core system.
    Addon connect to UI API and DI API, so if some objects are not opened in DI API, it means that addon could work.
    JimM

  • Drawing in SAPB1

    Dear All,
    Could you pls tell whether the following requirement can be mapped into the SAPB1.
    Its a construction company,
    Requirement
    want to implement their construction and site diagram (autocad) into SAP and want to know the status about what happening in the site daily by seeing drawing / layout
    whether drawing and corresponding validation / alert is possible in SAPB1
    Please help me out
    thanks & regards
    Venkatesh

    Hi
    U can convert ur Autocad Drawing into PDF and attach to corresponding customer and link with activity. In activity check the remainder so it will popups the Remainder as per u r setup.
    whether drawing and corresponding validation / alert is possible in SAPB1 ?
    What it means ur expecting something from SAP for Drawing Validation? Explain little bit more.
    Note: In all marketing document & to BP u can have activity. It will remind u automatically as per ur setting.
    Giri

  • SAPB1 installed in a MAnufacturing - Exporters  industry in india

    hi
    Please can any one provide the Link for SAPB1 installation in Manufacturing-Export Idustry in India only.

    Hi Anurag,
    Check the following thread
    Is SAP B1 is suaitable
    Re: Capacity
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

Maybe you are looking for

  • Automatic payment program

    Hi all sap guru's i have one issue: PO, :200 GRN: 150 GRN: 50 MIRO for both  EUR currency, now i want to clear( 50 grn) this doucment in USD  through F110, Is it possible?? or not manually we can clear in usd even i try in test cleint same data, but 

  • [SSRS] Abnormal behavior for parameter usage in checking case within query of dataset

    Details : Following error is displayed when I preview a report (SUR_EXPLORER-NG.rdl) in Microsoft Visual Studio: "An error occurred during local report processing. An error has occurred during local report processing. Cannot set the command text for

  • Can't share photos, yet my email is set up correctly

    Everytime I try to share photos using the "Share" option, I get an error message stating that my email/password combination is wrong.  However, in Mail, I have the same email accounts and have been able to send/receive email normally.  How can I fix

  • Bookmarks Internet Explorer 8

    Hi folks, many users of our BI 7.0 web reports are using IE 8. Everthing seems to be working fine except setting bookmarks. Bookmarks are stored in the system, but there's no way accessing them easily. Before, the user was prompted to store the bookm

  • Simple applet in IE

    I am going back to the basics to figure out why my huge program doesn't work as an applet in IE. I have the following little code import javax.swing.*; public class Something      public static void init()      {     new Something();}      public sta