Et_FORM_DATA_ADD event with Document Generation Wizard

In B1 2007 UI API, the et_FORM_DATA_ADD event doesn't get triggered with Document Generation Wizard. So, if the user using Document Generation Wizard to generate A/R invoice, how does my program get notified. If they use the A/R invoice form, we will get et_FORM_DATA_ADD event.
Thanks,
David

Hi,
You can use the SBO_SP_PostTransactionNotice stored procedure in order to call your code and do the required actions.
You can find more information on how to do it at the document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf and also you can have a look to the DIEventService tool that can help you coding it at https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/53cefa6a-0a01-0010-cd8e-e7c189cb6519.
Hope it helps
Trinidad.

Similar Messages

  • Document Generation Wizard - disregard picked Items for Delivery Notes

    Hi,
    We have a requirement from a customer whereby when they are creating Delivery Notes from Sales Orders via the Document Generation Wizard to exclude quantities of Items which have been picked on the Sales Order already. 
    E.g. Sales Order, Product XXXX for Qty 10.
    Qty 5 has been Picked.
    Document Generation Wizard is run with an option to create Delivery Note from Sales Order for qty 5 of XXXX
    Thanks,
    Caroline

    Here is the other solution:
    1. Using the draft document generator, you can generate 1 time all the invoices like draft, then you can write a query to display this invoices , then you ca put this query in the alert management to generate the report with this invoices montly when you want.....then you create the invoices that you want, this option is semi-automatic and can work good if you don't have a lot of invoices...
    2. using Data tranfer workbench, you can configure a excel template with all the invoices ready to migrate to SBO with the DTW, also you can make a alert in SBO in order to make this activity in a day montly....this is more automatic.
    3.writing "Simply" SDK project to generate this invoices... using the oinvoice SBO object to create automaticaly all the invoices that you want....you can use the draft table information in order to generate this invoices using SDK.
    The 3 solutions above are meant to resolve problem relate to auto invoice process, you can think about it.
    Rgds,

  • Document Generation Wizard Creating Documents out of order

    Experts,
    I am experiencing a strange issue with the document generation wizard.
    I will begin by stating that we are using 2007A SP00 PL47
    This is our process.
    An import document for sales orders is created and imported through the DTW
    We then start the Doc Gen Wizard in order to create draft deliveries which are then picked up by a shipping solution.
    We use the expanded criteria in order to select the appropriate documents.
    The wizard is set to sory by Document number (this is imperitive as the shipping solution requires these to be in order to effectively process).
    Up until a couple of days ago this process had worked flawlessly.
    Sales orders are imported, and the corresponding documents are created in the order of the sort criteria.
    Example:
    SO#              |          Draft Delivery Internal #
    1                -             1
    2                -             2
    3                -             3
    4                -             4
    etc.
    Now this is happening:
    SO#              |          Draft Delivery Internal #
    1                -             3
    2                -             2
    3                -             4
    4                -             1
    etc.
    There is no pattern to the sort.
    I have tested this multiple times, and 90% of the time it is incorrect.
    Additionally I have tested this with the same database in a separate test environment and it is correct 100% of the time.
    I have made no configuration changes to the network, server, or the B1 Application prior to the change in process order.
    Does anyone have any ideas, or have you sen anything like this before?
    Kind regards,
    Lucas

    Document Generation wizard. The problem we have is that the warehouse will process a bunch of orders. Their  "packing slips" print as the delivery note is generated and sent to SAPB1. Then they go to the document generation wizard to turn the DNs into Invoices and have the Invoices print out. Aside from the fact that it goes through all BPs, which takes time, anything that does print, prints in BP Name order, so they then have to match up the Invoice to the Packslip they just printed, two piles of papers in different order. While using the Document Print option can get around that, somewhat, it makes other processes difficult. The best solution would to be able to have the document generation wizard process DNs to Invoices, and print them, in an order other than the BP name

  • Not able to select Business Partners in Document Generation Wizard

    Hi
    While i was trying to generate a consolidated A/R Invoice from deliveries in the step where i have select the business partners,some of the business partners are not in the selection list.These business partner's currency are defined as multicurrency.How to solve this issue.Since i want to generate documents for this business partners?

    Hi,
    In Document Generation Wizard,
    Step 1 : You will create new Parameter set or select the existing
                 parameter set.
    Step 2 : You will be selecting the target Document  and other relevant
                 datas selection such as Posting date, Document date, Series
                 etc.,
    Step 3 : You will select the Document Types which are to be
                 considered to generate the target Document. and Posting
                 Date and Document Date.And you select the in which order
                 the Document wizard to be sorted in Sort By selection.
    Step  4 : In this step you will be choosing the Consolidated by  or No 
                 consolidation. If you choose Consolidate by, then we choose
                 whether it should be consolidated by Ship- to - Address
                  and/or Payment Terms and/or Payment method.
    Step 5 : Now you must select the Business partner range in selection 
                critieria and Customer group in it. If the data already exists in
                the table then clear it and select the business partner freshly.
    Step 6 :You will be selecting the messages and alerts
    Step 7 :You must save and execute the document wizard.
    I hope this will help you.
    Regards
    Raja.S

  • Withholding Tax for Document Generation Wizard

    Hi,
                              I have defined Withholding tax for my customers.When I try to create the A/R Invoices through Doc.Generation Wizard,the system is giving the error message-'Withholding tax is missing.'But I am unable to assign any W/Holding tax in the delivery.Can somebody give suggestions?
                   Thank u.
                    Regards,
                    Sekar

    Hi Sekar,
    I Reproduced the same scenario till delivery and used Doc. Gen wiz  as target document as A/R Invoice it worked fine.
    Settings BP and Item both we set to Witholiding tax Liable. The Invoice had withholdig tax amout added generated by the DGW.
    Could you check in for the list of BP in DGW (Document generation wizard)
    Business Partner --> Accounting tab --> Tax sub-tab --> WT taxes allowed and check if  you have one WT checked.
    Let meknow if this works.
    Regards,
    Rakesh

  • PLD settings in Document Generation Wizard

    I have set the document properties in the PLD for a document so that it will print 3 copies.  Number of copies is set to 3 and the Use Sys Print Pref box is NOT ticked off. When the document, in this case an Invoice, is generated and automatically printed by running a session of Document Generation Wizard, only one copy prints. If I generate the invoice within SAP manually, three copies print. Document generation wizard recognizes the landscape setting in the PLD but not the number of copies. Is this a bug?

    You may call it a Missing functionality.  I am afraid it is by system design.  You know, if you need create >100 documents by one run, 3 copies each may kill the process all together.
    Thanks,
    Gordon

  • Limitation in Document Generation Wizard

    Hi All,
    Is there any limitation for no.of documents generated through Document Generation Wizard in 8.8 ? I am getting an SQL Native Client Error 'COUNT Field incorrect or syntax Error'. I have refered to SAP note 1509823 which says tehre is a limit for number of records selected.. But the note says it is an issue SQL Server 2005 and doe not say about SQL server 2008. Am using 2008.
    Has anyone else faced the same issue ? I have seen previous threads on this like the one below
    'Document Generation Wizard error'
    Just thought if anyone know about any limitation in SQL server 2008 ?
    regards
    Johnson

    Hi Johnson,
    Check  Document Generation Wizard error link
    Thankss,
    Neetu

  • Document Generation Wizard, not working in 8.8 PL16

    Hi everyone.
    I Have an issue with the DGW. When I change consolidating option in the accounting tab on the BP to delivery consolidation, without adding andy BP I get several error messages when I'm trying to create invoices from deliveries with the DGW.
    So I change it back yo payment consolidation, and again without putin in a BP. WHat workt before isn't working anymore, I still get the same error messages..
    Please help! Can you reproduce the error?
    No matching records found  'Business Partner' (OCRD) (ODBC -2028)  [Message 131-183]
    Internal error (32769) occurred  [Message 131-183]
    Delivery(s) consolidation to A/R Invoice failed: 255
    BR
    Anders

    Thank you for your suggestion.
    We manage to solve it with a workaround.
    We updated all BP to payment consolidation instead of delivry. But this wasn't enough.
    We had to update all open deliveries to change consolidation to payment from delivery if fathercard was empty.
    So, you can't have delivery consolidation checked with no father bp code, but you can have payment consolidation with no fathercard. Weird
    Were is the option of no consolidation
    Many thanks

  • Cannot see BP in all currencies in Document generation

    Dear All,
    Our customer is on SAP2007A PL45, SQL2008, 3rd party add-on, CA localization. This issue is not associated with the add-on and the localization. I tried with / without our add-on. I tried in CA and US localization. I tried in SAP2007 and SAP8.8. So this looks like a system behavior.
    When I run document generation >> target AR invoice >> source delivery >> Choose BP
    I found if a BP is all currencies, it will not in the list.
    I've let our customer know this is a system behavior. Can anybody let me know why SAP doesn't allow us to use thsi tool for a BP in all currencies? Thanks in advance.
    Regards,
    Yuka

    Thanks for the reply Gordon. I can add the DN to IN manually (copy to / copy from).
    In Document Generation Wizard, step 5 or 8, it asks us choose customer. I click add customers >> code from... to... (It is a CFL). I click the choose from list, in that list, I should have all my customers. However, any customer in all currencies, not in the list. If this is a system behavior, I would like to know why.
    Regards,
    Yuka

  • Insufficient memory from doc generation wizard

    Hello all,
    I'm trying to generate invoices with the document generation wizard, and a document with 30,000 lines is generation an insufficient memory error. Is this a known problem for document generation wizard? Any help is greatly appreciated

    Hi,
    What is your server hardware specification?
    It seems that this is the result of out of memory of computer or hardware.
    Can you try to load 1000 (use TOP 1000) records first dont load all records, this is a practice to SQL query that
    when creating a query it should limit loading to much data records this will hang -up the system unless
    records are few. In fact when viewing tables or records in SQL Server 2008 Management Studio
    its in default to load 1000 records initially.
    Thanks.
    Clint

  • Is it legal to use MessageBox and Statusbar during et_FORM_DATA_ADD event

    Is there anything wrong in showing a MessageBox or setting the status bar when handling et_FORM_DATA_ADD event
    (either before or after action)?
    The add-on I'm developing causes B1 to crash completely (windows application error in ntdll.dll) and irregularly.
    After lots of experiments I suspect that using a MesssageBox or setting the status bar in the FORM_DATA_ADD event sometimes confuses B1 completely.
    I may be totally wrong but this is the only suggestion I have at the moment.
    I'll be thankful for any comments on this matter.
    --Svilen

    Hi Louis,
    Thanks for the reply.
    I noticed that it's not only MessageBoxes and Statusbar updates that crash B1.
    Can you elaborate on the following topic:
    How safe is to use the objects SAPbouiCOM.Application and SAPbobsCOM.Company
    from the event handlers when they are originally created in another thread. I mean my application starts, creates the above objects once, saves them to be  globally accessible and all this happens in the main thread. Then when a particular event is fired by B1 - like FORM_DATA_ADD for example, it happens to run in another thread but it uses the above mentioned global objects - the Application objects to display message boxes and statusbar
    messages and the Company object to work with documents and for raw access to user tables via Recordset.
    Is this the right approach?
    I also read on this fourm that SAPbobsCOM used a single thread appartment (STA) while all SAPbouiCOM event handler threads are MTA.
    I feel that the above problem with messageboxes and statusbar messages is just a case of a bigger architectural problem related to B1 events and threads.
    Any help will be much appreciated.
    Thanks
    -- Svilen

  • LabVIEW VI with Report Generation Toolkit elements in a TestStand sequence does not run with a LabVIEW 8.5 Run-Time Engine

    Hi all,
    I am using LabVIEW 8.5.1 and TestStand 4.1. I have done a TestStand sequence with a VI in it, which uses Report Generation Toolkit elements. On my machine I am using LabVIEW and TestStand with a Development System license. On the other machine I am using TestStand with a Base Deployment license and I have chosen the LabVIEW 8.5 Run-Time Engine in the Adapter Configuration. Everything is running well except of this VI with Report Generation Toolkit elements. The error message is showing that the VI is not executable. It works well only after I have installed LabVIEW with an Evaluation license and chosen LabVIEW 8.5 Development System in the Adapter Configuration.
    I have found other posts and a document in the KnowledgeBase with a similar problem: http://digital.ni.com/public.nsf/allkb/8A0E6274D9B​D7B1986256F62006AD402?OpenDocument But I am not using EXE files in my sequence, so I don't know how to solve mine. Anybody has an idea?
    Solved!
    Go to Solution.

    Hello guys,
    thank you very much for your answers!
    @Ruediger:
    I tried to follow the instruction for Method 2 in the mentioned document: http://digital.ni.com/public.nsf/allkb/F3DC40A6E3F​3B25B862570AD005D1D3D?OpenDocument, but the steps on my machine are different starting from step 4. After I click "Continue..." in step 3, I dont get a window, the system just makes a new folder with the same VI. 
    To be honest, I am new to LabVIEW and have some difficulties at this time. What I understood from your reply is, that I need to make a LLB-File, where the files from Report Generation Toolkit are in!?
    @GovBob:
    I was following the instruction in the document: http://digital.ni.com/public.nsf/allkb/9E00E7EFE06​35E678625734600779EFE, but it wasnt working. Can you please tell me how I can check if the VI Server is installed and running on the machine?
    I am using LabVIEW 8.5.1 and TestStand 4.1 on my machine, on the deploy machine there is TestStand 4.1.1. The version of my Report Generation Toolkit is 1.1.2.
    Kind regards, Roman

  • Unable to edit "calendar" field of events with invitees

    I am having a couple problems with the "calendar" drop-down field on calendar events.
    This is on a 4S, iOS5, syncing calendars with iCloud.
    If I create an event with an "invitee" (or add an invitee to an existing event), I can no longer change the "calendar" field of that event.  In fact, the "calendar" drop-down doesn't even appear on the iPhone calendar app's "Edit" dialog for events that have an invitee.  I can still change it via the web interface at www.icloud.com, and the change is even pushed to the iPhone.  But on the iPhone itself, I cannot find a way to change the "calendar" field on an event that contains one or more "invitees".
    Second, if I receive an "invitation" from someone else, I cannot find a way specify which of my calendars I want the event on when accepting it.  I would expect it to go to the calendar I have defined as "default" in Settings, but it seems instead to go to the last calendar I created.  And after accepting it, I cannot change it because the "Edit" dialog doesn't display the "calendar" field, as mentioned above.  Again, I can change it via the web interface at www.icloud.com, but cannot find a way to change it directly on the iPhone.
    Am I missing some way to edit/change the "calendar" field of an event with invitees?  Or to select which calendar I want events to be on when I "accept" invitations from others?

    I have the same problem.  I recently updated to iOS5 and set up syncing through iCloud. 
    I was able to add one event into my iphone calendar app, but for the next event that I tried to add, there was no longer the option to choose a calendar and when I tried to add it by tapping "Done," an error message came up: "No calendar is set". and there was no way to select a calendar.
    I was able to add the event on my Google Calendar on my laptop (PC), and it synced automatically, but I wasn't able to add any events from the iphone itself because "no calendar is set". 
    I tried turning off and on the phone and syncing back to my laptop, but the problem persisted.
    I deleted the iCloud account on my iphone, and that seemed to fix the problem; I'm able to add events again from the iphone and it's syncing to my Google Calendar.
    I then signed on to iCloud and setup syncing again, but turned off syncing everything except photostream, documents&data, and find my iphone since everything else would sync to outlook or internet explorer, neither of which I use.
    That might have been the problem.  For PC, iCloud will only sync to Outlook and Internet Explorer, and I don't have Outlook setup (can't connect to my work's email server with my account and the IT guys don't know how to fix it or they're too lazy to troubleshoot) and I only use Firefox and Chrome.  Since iCloud isn't syncing to any calendars on Outlook, there aren't any calendars set...
    I just did this a minute ago and everything seems to be back to normal, including the ability to choose a calendar when adding events.
    I'll have to see if it the problem comes back

  • Issue with check generation in Automatic Payment Program

    Hi experts,
    I need your inputs for an issue with check generation in Automatic Payment Program. Trying to make a payment to a US vendor with payment method C. The due item is getting picked up and a clearing document is getting generated. But Check is not being generated, niether can I see an entry in PAYR table. However, if I try to generate a check manually in FCH5 for the same clearing document, it is working.

    Have u checked the Variant created in F110 - Printout / data medium, whether the Hose bank details are correctly set or not.
    If yes, check the Printer details
    Let us know the results
    Thanks

  • Document Generation in MSA - Make Word Doc Read-Only or PDF Documents

    Hello,
    The mobile sales client comes with an Document Generation tool to fill Word Document Templates with SAP data on demand.
    Because of legal issues, we do not want to allow anyone to be able to modify the generated word document. Using the permission functionality of the word template is not working as it would prevent the Generator itself to fill in the data.
    Is there any option to set the created Document to "Read-only" after the generation is finished or to convert the Word document on fly to a PDF version?
    As I am not so experienced in VB I would appreciate any code examples.
    Regards,
    Andreas

    Hi,
    there are at least 2 different ways to implement your request:
    - before and after the word document is created you can start a word makro (which e.g. disables the document); this would be done in the method "TextGeneration" of the underlying BO, e.g. BOSALESDOCGEN. The code is quite simple, in earlier Word versions it was sth like
    WordObj.ToolsMacro sMacroname, 1
    - you can call any 3rd party SW to convert the doc file to pdf, similar to this thread
    [MSA "Cancel login" functionality;
    Regards,
    Wolfhard

Maybe you are looking for

  • Open a document in a new tab or browser window Sharepoint 2013

    Customer requirement states that a doc must be opened in the browser, but requires that it open in a new window or tab.  I know that this is bad practice, but customer is the customer.  Please provide the best course of action.  95% of docs will be P

  • Issues in IDOC_XML_FILE function module in ECC5.0

    Hi, I used the function module IDOC_XML_FILE to upload and convert XML file from the application server to idoc. It was working fine in 4.6C. Howeverm when we recently upgraded to ECC5.0, the version of this function module changed. And we are facing

  • MacBook Pro Late 2008 graphic system and virtualizers

    I was asking myself if virtualizers could directly control the video card that is not used by OS X in the new MacBook Pro with the double Nvidia graphic set.

  • Compatibility of Dreamweaver 3 with Photoshop CS4

    I have Photoshop CS4 and want to buy Dreamweaver CS3 (because it's less expensive than 4).... will there be any compatibility issues if I do this? Or does this even matter? I have never used Dreamweaver which is why I'm asking. Thanks for your help/a

  • Help with Change Password 11.0.3/8.0.5

    Your help is greatly appreciated. We have a requirement to change application end user passwords through an SQL connection. It is part of a password synchronization project. We will be making the SQL connection under "APPS" and wish to change the use