Event to handle DocNo. automatic population after document was added

Hi,
I have created a UDF using SAP B1 Studio with visual studio 2010.Values can enter in form and it is successfully added to table. I am trying to show the DocumentNo. automatically once document got added to the table.
i.e., DocNo. textbox in form is empty once document got added.I have tried in Buttonclick after,Data Add after...Its not working.
In which event can we handle this?
Thanks in Advance,
Parvatha Solai.N

Hi Parvatha,
The DocNumber is finalised by SAP when you save the document.
Hence, you cannot save this number into your UDF at the same time.
This has to be a two step process.
On After Data Add event,
    1 get the DocEntry from the pVal.ObjectKey
    2 Call up the Doc using this object key and update your UDF
          Dim oDoc As SAPBobsCOM.Documents = oCompany.GetBusinessObject(yourDocObjType)
          oDoc.GetByKey(DocEntry)
          oDoc.UserFields.Fields.Item("UDF").Value = oDoc.DocNum
          oDoc.Update
On the other hand, why would you want to save the docnum in the user field ?
Regards
Edy

Similar Messages

  • 925685 - Approval process is not triggered after documents are added

    Hi there,
    I was wondering if anyone found already a solution for the following problem.
    According to SAP Note: 925685 - Approval process is not triggered after documents are added.
    Within our SAP application, we want to approve purchase orders for departments based upon the document total.
    I was very astonished that employees are able to add a PO which will not trigger an approval stage and after the document is added, they have the possibility to change the document and at the update moment no approval will be started even if the document meets the approval requirements.
    Therefore I really want the flexibility to give users the possibility to change their PO.
    Meanwhile, documents which are added under approval, are also locked for changes, although this is another question it is also pretty annoying!
    I hope anyone has already found a method or work around for the stated problems above.
    (We are using SAP 8.8 PL 20)
    Thanks in advance.
    Kind regards,
    Marcel

    Hi Kambadasan,
    Thank you for your reply
    I'm sorry but I know how the approval templates work and they are configured correctly, however as SAP also mentioned in their own Note, this is due to the lack of SBO that SAP has such behaviour.
    Hi Gordon,
    Thanks for your reply.
    Unfortunately I have not found the post you mentioned...
    I will post my issue alson on the topic you mentioned.
    Hopefully they found a solution or maybe version 8.81 will solve the problem.
    Thanks a lot!!
    Kind regards,
    Marcel

  • How To Automate OCR after documents are scanned?

    I am using Acrobat 8 Professional
    1. Is there a way to have Acrobat 8 Professional to automatically ocr after the documents are scanned?
    2. Is there a way to create a buttom to ocr the scanned documents. Currently I have to go through: document>ocr text recognition>Pages options >OK
    Any advice would be appreciated! Joe

    I'm sure the javascript experts will be able to create a button that runs a script for your task, but have you considered using other OCR software (Finereader, ReadIris etc)? Corporate versions of these programs allow you to have a 'Watched Folder' where any file sent to the folder will automatically be OCRd with no user intervention.
    Although the OCR quality may be no different to Acrobat's plug-in, there will also be far more in the way of options to view and edit the recognised text.

  • Trading partner automatically populated for document type KP

    Hi All,
    We have two vendor A & B.  In vendor A master data we have trading partner maintained & in Vendor B trading partner field is blank. Now when we execute transaction MR11(GR/IR clearing) then trading partner is populated to both the vendor. Which shouldnt be the case. Vendor A should display its trading partner and Vendor B Traidng partner should be blank. but it is displaying Vendor A's trading partner to all the vendor in that particular document.
    Can any one help in this issue?

    Substitution rule is used for substituting fields with values as required by business. You have to check the rules (by double clicking the line for the co code). please check whether there is any substitution rule created for KP doc type. There will be a pre-requisite (may b in your case doc type KP) and then rule defined saying sub this particular field with trading parter etc. please check thoroughly. You should not deactivate the rule as this must have created for some purpose .
    Call point -2 (line item ) means rule should apply for line items in the doc
    please reward if helpful
    thanks

  • How to disable TextEdit's automatic termination after closing last open document?

    Hi!
    I was wondering how to disable TextEdit's automatic termination after closing the last open document.
    It's so annoying!
    Thanks for everything!
    Chris.

    Quit TextEdit, launch the Terminal app in /Utilities, copy & paste this one-liner into the window that pops up, hit the return key, quit the Terminal app, and restart.
    defaults write com.apple.TextEdit NSDisableAutomaticTermination -bool yes
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.5), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • Is it possible to make is so that, immediately after I import a new clip into FCP, the file is automatically selected in the Event Library? (Similar to how After Effects and Premiere work).

    Is it possible to make is so that, immediately after I import a new clip into FCPX, the file is automatically selected in the Event Library? (Similar to how After Effects and Premiere work). Right now, after I import a new file, I have to then go searching for it amid all the other files in my project. It would be extremely helpful if the file I just imported was already highlighted and selected after import, making it instantly "locatable" and ready to go.

    Kryan73 wrote:
    …  after I import a new file, I have to then go searching for it amid all the other files…
    in a perfect world, you do know the recording date, and you simply scroll to that date.
    in a very perfect world, all your other imports are already tagged, so just have to create a smart list 'unrated' ...
    (I know those messy Events… a friend of mine constantly ignores my advice to check the time/date on his camera; on every battery swap, the cam creates a very erratic timestamp ... his actual recordings are listed as made in "2004" or in "2020" .... )

  • F8 proforma invoice automatically created, after PGI

    After completing PGI, business wants to take a printout of proforma invoice F8 automatically. How to do this?
    The truck driver shall take this invoice to the SH To address. Give him 1 copy and get another signed copy back.
    Please help, thank you in advance!

    From this link, below post is the best answer -
    Proforma Invoice F8 automatic creation
    Two questions -
    1. Is it functional consultant's job or technical consultant / ABAPer's job to do - to setup a Batch job for the Proforma invoice with the Program SDBILLDL in the transaction code SM36?
    2. Below indicates that when delivery is created then - via program running in batch - Proforma shall be created, but my business requirement is upon PGI, how to handle this?
    Thank you!
    Re: Proforma Invoice F8 automatic creation
    Posted: Sep 23, 2009 1:54 PM    in response to: NICKELODEON           Reply
    Hi,
    You need to setup a Batch job for the Proforma invoice with the Program SDBILLDL in the transaction code SM36.
    Goto the Transaction code SM36 and setp a job with the program SDBILLDL , then it will fetch all the Deliveries which are pending for the Billing of proforma.
    And in the Transaction code NACE create a output type and assign the Print program and the smartform to the output type .
    Create the print program in SE38 and the Smartform in the transaction code SMARTFORMS with the help of ABAPers
    Assign this Output to the Output determination procedure .
    Now maintain the condition records for the Pfororma billing document F8 and the sales organisation
    In the condition records maintain the Medium as PRINT OUTPUT
    and the Despatch mode as the 4 ( process the output once the document was saved).
    Now once the Delivery was created, the batch job will fetch the delivery and create the proforma invoice and then the output which was created in the NACE will trigger automatically and process.
    Once it was process, Spool will generate and simltaneously the output request and the invoice will send to the printer maintained in the condition records.
    Please do the above steps and revert back if u find any issue in doing.
    regards,
    santosh
    Edited by: Typewriter on Aug 23, 2011 1:17 AM
    Edited by: Typewriter on Aug 23, 2011 1:25 AM

  • HT1198 If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own

    If I share an iPhoto library between multiple users, will the Faces, Events, and Places be automatically usable by all users, or will each user have to tag all the photos (e.g. if a user tags a face, will a different user have to do it in their own iPhoto application??

    Have you read this Apple document regarding sharing a library with multiple users: iPhoto: Sharing libraries among multiple users?
    OT

  • Automatically populating a Form from data stored in Access

    Hi,
    I need help automatically populating a form from data stored in Access. The form needs to have specific fields that are updated from an Access database. I want to be able to enter a site number and have the subsequent list of information (approximately 35 pieces of data) populate. I DO NOT want to update the Access database via the form. The form is for quick viewing and documentation only, not data entry. Currently I've been doing this with VB in Access which exported the data to a Word Document which was then saved as a PDF. It seems easier and less troublesome to go directly to the PDF form, but I can't figure out how!
    I have already connected my database to the form using OLEDB.
    I don't want a dropdown list and I don't want buttons to scroll through the sites (I've already found out how to do that through this forum).
    Any help would be very much appreciated!!

    Some more help to get started in this.. would be really appreciated..Are you trying to come up with the graphs yourself? IF so, are you familiar with MVC?

  • Dates in Events do not update automatically

    After iPhoto made events out of my photo library during conversion from from iPhoto06, there are often photos from several days in one "event". I can live with that most of the time, but in several instances I split events. Unfortunately, the dates of the original, unsplit event do not update automatically. This often results in a wrong order of events. If, e.g. I take out pictures from August 10th from an event with photo dates August 10th to August 13th, the original event still shows the starting date of August 10th, and orders the event between August 9th and August 11th.
    The expected behaviour would be that the starting date of the modified event would change automatically to reflect the changes. This does not occur, and, worse, there is not even a possibility to change those dates manually.
    Am I missing something important here, or is this an VERY annoying bug in iPhoto08?

    I agree - but this is a user forum and we can NOT fix anything - only try to help either follow the correct procedures of (as in this case) identify a work around to use until Apple fixes the problem.
    As far as I know the work around of creating a new event form one photo and moving the remaining photos to the new event is the ONLY way arround this problem right now.
    Using the work around will accomplish what you need even though it should not be necessary. Complaining about on this forum will not accomplish anything - compalining directly to Apple might -- iPhoto menu ==> Provide iPhoto Feedback.
    Larry Nebel
    PS - and reading the thread prior to get the work around prior to adding "I have the same problem" would actually be a pretty good idea too!

  • Form automatically close after receiving a specific number of submissions?

    Hello,
    I am using the form as a registration tool for an upcoming event.  How do I get the form to automatically close after receiving a specified number of submissions?  There are only 15 spots and 700+ folks may see the form.  I need for only the first 15 to have access to the form.  Thanks.

    We don't currently have an automatic way to close a form after a set number of submission. You would have to watch for submission and close the form manually.
    Andrew

  • I have a pc with windows8.1 and it automatically puts download docuements to windows reader and cannot choose adobe acrobat instead or delete windows reader. How to i make adobe acrobat my download default for docuements instead of the windows reader.

    I have a pc with windows8.1 and it automatically puts download docuements to windows reader and cannot choose adobe  or delete/ get around the reader and the reader is jammed from deletion. How do |I make adobe acrobat my default reader?

    Open Acrobat manually and go to Edit - Preferences - General. Click the "Select Default PDF Handler" button and then select Acrobat from the list and click on OK. The next time you open a PDF it will be opened in Acrobat automatically.

  • Automatic delivery after the billing

    Can anyone tell me if there is a standard way to make an automatic delivery after the billing process.
    as my cycle will be Sales order->billing->automatic delivery->PGI.
    Thanks in advance.

    Hi
    Welcome to SCN Forum
    There is no standard way to make automatic delivery after the billing process.But you have to do some configurations firstly in VOV7  you have to change the billing relevance to Order related billing.In VOV8 also you have to check the box immediate delivery ,so that delivery document is created Then you run background job for billing as VF06. then you run a background job VL23..Please set the billing background job time before the delivery background job time
    NOTE : Kindly search in the forum before posting any thread
    Regards
    Srinath

  • Records Managment Automatic Disposal of Documents

    I have a customer request regarding automatic disposal of documents from Records Management after a predetermined amount of time has passed (i.e. legal retention dates have been met).Please advise if you have had to deal with this.
    Cheers -
    Jon

    Hai,
    Create a RECORD PLAN and mention the retention time and disposal period. Mention this record plan in the record plan positiion attribute of the particular document.
    Regard,
    Keerthika

  • How can I make my Introduction_mc automatically disappear after 10 Seconds and load Home_mc?

    Hi,
    How can I make my Introduction_mc automatically disappear after 10 Seconds and load Home_mc (automatically)? I don't want user to change by himself this Introduction page. It should be done automatically.
    What is the procedure and code to achieve it, please?
    Thanks.

    Hi,
    I gues you are using AS2.0, then use setInterval, in AS3.0 user Timer Class.
    AS2.0
    var interval:Number = setInterval(doThis,10000);//in milliseconds
    function doThis():Void{
    //do something;
    AS3.0
    var timer:Timer = new Timer(10000, 1);
    timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerCompleteHandler, false, 0, true )
    function onTimerCompleteHandler(event:TimerEvent):void{
    //do something;
    For details: http://blogs.adobe.com/pdehaan/2006/07/using_the_timer_class_in_actio.html
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com

Maybe you are looking for

  • Sending PDF by mail but PDF is not opening because of PDF Size.

    Hi all, I am sending a sapscript in PDF format through Email. Sapcript is going fine in PDF file for a test case in which file size is small but for PDF files where file size is Big in the mail while opening the file PDF is giving an Error message  t

  • Behavior of XML Form Builder after SP 13 upgrade

    Dear Experts, We are working on E.P 7.0 SP 10 and we've recently applied SP 13 and started testing the system. What we found on XML Form Builder is, we are unable to add schema (under Data Model) to the project. Can some one help us where exactly wen

  • Posting of Reverse documents

    hi we are doing a bdc to post the reverse document,we are checking to eliminate the dulpicate reverse document which sap will allow duplicates reverse document,we are checking this only for invoice document i.e RMRP.can anyone plz let me know what co

  • Importing video from Nikon D90 to iMovie by USB memory card reader

    Hi, I've been trying to import the videos in my camera (Nikon D90) using memory card reader (USB). I always transfer the photos to computer using memory card reader and my new Mac seems to be happy to import the photos to iPhotos. That's a good news!

  • Naming Convention document for MDM

    Hi, I am looking for naming convention document for MDM . If anyone have then please do share with me . Thanks, Rohit [email protected]