Auto BatchNumbers in Documents

I need to auto assign the batch number to my doc line elements before add the document.
How can i do?
I'd like to retrieve the line object and assign batch number but if the document isn't alredy added i can't access to document object.
Please, help me.
Edited by: Graziano Di Risio on Jun 30, 2008 5:55 PM

Hello Mauro,
use the DBDataSource after Event et_FORM_DATA_ADD. You will receive the right DocEntry and DocNum. Don't use the pre-assigned DocNum from the Form.
My Question to you: Did you already successfully assigned the batches, because I have to so so also today, but I'm afraid, marketing documents are not supported for storing this Information:
B1 SDK Help: BatchNumbers is a business object that represents the batch numbers of an item in the Inventory and Production module.
And for Documents the remarks are:
Document_Lines is a child object of Documents object and represents the line entries of a document in the Marketing Documents and Receipts module and the Inventory and Production module.
So it might be not working yet.
Regards
Christian

Similar Messages

  • Pages has no auto save or document recovery? seriously?what century is this?

    pages has no auto save or document recovery? seriously?

    Are you reading carefully ?
    LIon (OSX 10.7) embed an Autosave and a Versions feature at system level.
    iWork components are using them.
    The question and the given answer were dedicated to apps running under older systems.
    alphaflight wrote:
    Why should any user be expected to check for this?  Most every Apple - heck most every modern product does it automatically.
    It's perfectly odd to assume that an application deliver this or that feature.
    It's perfectly wrong to write that "most every Apple - heck most every modern product does it automatically".
    TextEdit did that but iLife apps didn't and I'm not sure that Apple's Pro apps were doing that before Lion.
    More, some users are ranting in several threads against the Autosave and Versions features introduced by Lion.
    Yvan KOENIG (VALLAURIS, France) vendredi 21 octobre 2011 09:54:04
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Auto-Update Open Documents?

    I am having a few problems with a recently installed version of Photoshop CS4.
    Before posting, I installed the newest Aug 21 drivers for the built in NVIDIA GeForce 6200 SE Turbo Cache card running on a Windows XP machine.
    Symptoms:
    1: When opening a file for the first time, all "open" commands are grayed out in the File drop down menu. I can do a Control-O to open or Control-N to create a new document and after doing so, the menu items are available to me.
    2: After applying an adjustment layer, such as a Curves adjustment layer, I can adjust the curve and the current image changes correctly. However, if I apply a gradient to the layer mask, it will not display the gradient in the gradient icon until I touch one of the S curve points. If I make a different gradient, I have the same issue.
    3: If were to delete the adjustment layer by dragging it to the trash, the current image does not update and I have to click one time on the image to make it display correctly.
    There may be other problems, but these are plenty to deal with right now.
    I tried going to the preferences and turning off OpenGL and ended up with the same problems.
    I tried checking Auto-Update Open Documents and got the same results whether it is on or off.
    I am not sure what Auto-Update Open Documents does, but it sounds like the correct issue.
    Any help would be appreciated. CS3 works fine on this system.
    M Jackson

    Hello Mylenium
    You probably have the correct answer. I've run CS2 and CS3 on this system and it has done an okay job, though I know it is showing its age now. I have a Vista laptop and don't care for it that much, so I haven't been too excited to buy a new desktop with that operating system on it. And, of course, I hate to buy an expensive video card and power supply to run this XP machine.
    With Windows 7 on the horizon, I may just use CS3 a while longer and see how the new system works before upgrading to a new computer. Either way, I have a $1500 software package here that isn't getting much use.
    M. Jackson

  • How to Auto Fax Delivery Document?

    Hello SD Guru's
    Need help with enabling this function to auto fax delivery document to the shipping point fax machine, whenever our customer service creates the delivery for the sales order.  I have completed output condition type configuration in terms of processing routine & partner function for Medium = 2(Fax) & progra RVADDN01 & my Delivery form.  What other things I need to take care of in order to make this thing work. By the way, couldn't find the Fax test program RSKSENDF as mentioned in some other thread.
    Thanks
    Suri

    I think you'll have to active the FAX capability with transaction SCOT, (+ may be active a profil parameter in RZ10 )
    Erwan

  • Auto Print billing document

    Just wonder where do I set to auto-print billing document for tcode VF04?
    Instead of going to VF31 to select the invoice to be printed, can i set manually to print immediately after creation of invoice through VF04?
    Thanks.

    Hi
    U can manage it by trx W33
    Max

  • Could not Auto-save your document ERROR

    Greetings,
    I am going through a nightmare at our school.
    Keynote regularly brings the above error and I am stuck now, Reinstall of Iwork,File Server and disabling auto save didnt help.
    This is the the log extract :
    11/28/14 10:13:09.565 AM Keynote[1075]: *** Error: +[TSPFileManager linkOrCopyURL:decryptionKey:toURL:encryptionKey:] TSPFileManager.m:56 Couldn't copy file:///Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A%20Document% 20Being%20Saved%20By%20Keynote%208)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16. jpg to file:///Volumes/Lower/Grade%202/2G/Sophia/Tomatoes%20to%20Ketchup.key.sb-621df9 a2-SqBtVx/Tomatoes%20to%20Ketchup.key/Data/st4-282.jpg: Error Domain=NSCocoaErrorDomain Code=260 "The file “st4-16.jpg” couldn’t be opened because there is no such file." UserInfo=0x600000c7b900 {NSFilePath=/Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A Document Being Saved By Keynote 8)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16.jpg, NSUnderlyingError=0x600001251940 "The operation couldn’t be completed. No such file or directory"}
    11/28/14 10:13:09.565 AM Keynote[1075]: *** Error: __100-[TSPPackageWriteCoordinator createPackageMetadataWritingDatasWithPackageWriter:saveOperationState:]_block_i nvoke_2 TSPPackageWriteCoordinator.mm:1403 Failed to write data: st4.jpg
    11/28/14 10:15:55.815 AM Keynote[1075]: *** Error: +[TSPFileManager linkOrCopyURL:decryptionKey:toURL:encryptionKey:] TSPFileManager.m:56 Couldn't copy file:///Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A%20Document% 20Being%20Saved%20By%20Keynote%208)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16. jpg to file:///Volumes/Lower/Grade%202/2G/Sophia/Tomatoes%20to%20Ketchup.key.sb-621df9 a2-6DMdC1/Tomatoes%20to%20Ketchup.key/Data/st4-282.jpg: Error Domain=NSCocoaErrorDomain Code=260 "The file “st4-16.jpg” couldn’t be opened because there is no such file." UserInfo=0x6000016759c0 {NSFilePath=/Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A Document Being Saved By Keynote 8)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16.jpg, NSUnderlyingError=0x6000012518b0 "The operation couldn’t be completed. No such file or directory"}
    11/28/14 10:15:55.815 AM Keynote[1075]: *** Error: __100-[TSPPackageWriteCoordinator createPackageMetadataWritingDatasWithPackageWriter:saveOperationState:]_block_i nvoke_2 TSPPackageWriteCoordinator.mm:1403 Failed to write data: st4.jpg
    11/28/14 10:20:11.352 AM Console[1818]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    11/28/14 10:20:12.584 AM Keynote[1075]: *** Error: +[TSPFileManager linkOrCopyURL:decryptionKey:toURL:encryptionKey:] TSPFileManager.m:56 Couldn't copy file:///Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A%20Document% 20Being%20Saved%20By%20Keynote%208)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16. jpg to file:///Volumes/Lower/Grade%202/2G/Sophia/Tomatoes%20to%20Ketchup.key.sb-621df9 a2-pbIR2V/Tomatoes%20to%20Ketchup.key/Data/st4-282.jpg: Error Domain=NSCocoaErrorDomain Code=260 "The file “st4-16.jpg” couldn’t be opened because there is no such file." UserInfo=0x6000014702c0 {NSFilePath=/Volumes/Lower/.TemporaryItems/folders.502/TemporaryItems/(A Document Being Saved By Keynote 8)/843BEF70-2229-41E5-8B55-6E92D539934A/st4-16.jpg, NSUnderlyingError=0x600001a52e70 "The operation couldn’t be completed. No such file or directory"}
    11/28/14 10:20:12.584 AM Keynote[1075]: *** Error: __100-[TSPPackageWriteCoordinator createPackageMetadataWritingDatasWithPackageWriter:saveOperationState:]_block_i nvoke_2 TSPPackageWriteCoordinator.mm:1403 Failed to write data: st4.jpg
    Please advise...
    Lower is  AFP File server just mounted on all computers
    Thanks
    Huzz

    Very well. Try this with your Mac:
    Open "new.psd" in Preview
    File > Save
    new.psd becomes new.png  If the extension was correct, Preview would not have changed it.
    it now opens in Photoshop  You can download it here.  ("Save image As...)
    Simply put, you had the wrong extension.

  • Auto clearing of documents posted through VF11

    Hello Experts
    We'r working on ECC 6.0.
    I'am not able to understand that while billing is being cancelled, both the original billing & excise documents are getting cleared automatically with their reversals while doing VF11.
    We've not executed even auto clearing (F.13).
    We dont want them to get cleared automatically.
    Where is the configuration for that?
    Regards
    Kapil

    Hi kapil
    If you are reversing the billing document & excise documents using VF11  then automatically the original billing document & excise document also get cleared . because those billing & excise documents are the reference documents to the Accounting document and that is the reason it cancels the original documents and the reversal document number will be generated .
    Even after cancellation also an accounting document will be getting generated. So you have to do changes in the accounting document in OBA7. with the help of  FI consultant
    But it is advisable not to make any changes in the accounting documents
    Regards
    Srinath

  • Auto Classification of documents not working

    Hi all,
    i have created a query based taxanomy,i have choosed auto classification.
    but the documents are not getting classified.
    i trained the folders even.
    but if i add a new document its not getting classified.
    Where am i wrong..
    help me..

    I thought it had to be an 'example based classification'  for this to work?
    Did you RE-INDEX after you did the training?

  • Auto-generating word documents from word templates

    How would one go about generating a word document based off of a word template (.dot)? For example, I have a simple JSP form which has a field "Last Name". When submitted, the "Last Name" is plugged into a corresponding bookmark in a .dot file. Then the .dot file is saved as a .doc file and presented to the user for download. So, breaking it down:
    1. User fills out a jsp form with "Last Name" and hits the submit button
    2. The submit button triggers a routine to:
    a. open a .dot file on the server (static location)
    b. find the bookmark where the last name should be plugged in
    c. plugs the value of last name
    d. saves the .dot as a word document
    e. presents to the user for download
    Has anyone done a similar thing before? Any pointers?

    There's a lot of templating projects around that are usable in Java. I'm not aware of any that use closed proprietary technology like Word and I wouldn't base my design on that either. If you're stuck with that idea then I don't have any suggestions.

  • Auto generation of documents program (mail merge)

    hi everyone
    i wanted to write a program to allow user to create a particular letter just by clicking a button,
    now this file is first store in xml form, when user initiates the document generation the program will get xml element from the database and transform the xml to xsl and then finally to rtf.
    what would be the best parser for this,
    i seen a lot of xml example files and they are all relatively small, i'm wondering is it not a good idea to write an xml file of two or three pages long consisting a relatively small xml element but has great deal of text in it.
    lastly i take that for formatting purposes i still have to convert the xml to xsl then only rtf?
    thanks in advance

    I interpret "best" as "most convenient" since you haven't provided any other useful meaning for the term. In other words, the best parser is the one you already have when you installed Java 1.4.

  • Auto cancel billing document

    If a billing document is cancelled, both the original billing document & the
    cancellation document appear as open in Accounts receivable. Status of
    both these documents is indicated as in process. 
    How should the invoice & cancellation
    document  be automatically cleared and status of these documents
    should be indicated as completed
    Do i need to setup in SPRO, thanks

    you can only select billing document to cancel, how to
       cancel document flows to accounting? another t-code?
    I presume you are not familiar in SD process.  If you dont want to generate an accounting document for cancelled billing document, then you should make a tick against the field "Posting Block" in VOFA for your billing type.  Besides this, at the time of cancellation, against that billing document, accounting document should not have been generated.  In this case, it is quite possible.
    On the other hand, for the original billing document, if an accounting document already generated, then at the time of cancellation, system will automatically create a cancellation FI document in the background.  You cannot and should not deviate this as otherwise, accounting problem will happen.
    Last but not least, please let me know why you want such a requirement.
    thanks
    G. Lakshmipathi

  • Auto Open New Document Maximised

    Hay all, I am using Photoshop CS2 (9.0.2) on Windows XP (SP2). Whenever I open an image file using PS, the document window constrains itself to the dimensions of the image (IE: if the image file is 20cm X 15cm, the document window opens to 20cm X 15cm dimensions). Can I change it so whenever I open a new document it will automatically maximise the document window?
    Thanks everyone.
    David

    You need to create an action which contains the menu item "View/Fit On Screen". (Use the "Insert Menu Item" option from the actions pallet control menu).
    Once you have the action created and saved, you then need to go to File/Scripts/Script Events Manager.
    In that dialogue you can tell Photoshop to run the action you created every time you open a file.

  • Auto-opening linked documents in Safari

    I visit a lot of sites on the PC and whenever I come across a link to a microsoft word document, I can just click on it and Word opens up and I can see it. On the Mac however, when I click on the link to the word document, it downloads to my (cluttered) desktop and I then have to find the darn thing and double-click on it to see the document, and then later trash it. Can this all be made to work as seamlessly as it does on the PC?
    Thanks.

    Hi,
    PCs with Internet Explorer are effectively opening Word within the browser using a Windows-only technology called OLE.
    There is a Word plugin but it's not a full featured Word document viewer.
    There are a couple of things that can be done to make life easier though. The simplest thing is that you can double click the icon in the Safari downloads window to launch the file, so there's no need to hunt down the file on your Desktop.
    Another more technical thing that can be done is to attach a Folder Action to your Desktop to instruct the Finder to automatically launch Word files as they are created there. I use the same idea to launch certain files from a work website.

  • Please share Auto View Installation Documents

    Hi all,
    I found only one verion in site for 30 trial. Is it 32 bit or 64 bit?.
    Please share any configuration documents after installation.,
    Thanks
    nag

    As of AutoVue 20.2, we have Desktop Deployment evaluation (demo) version avaialble and it is a 32bit Windows application.
    Documentations are available at http://www.oracle.com/technetwork/documentation/autovue-091442.html
    Edited by: kiuautovue on Jul 10, 2012 7:06 AM

  • Auto deletion of document

    Dear friends,
    Is it possible to configure, that the uploaded document should get delete automatically after some specific reason like after some specific date, if the document not used for some specific days. etc.
    plz reply me
    thanx in advance
    Lakshmikantha

    Hi Lakshmikantha,
    > schedular task belongs to OS level. is it so?
    No, it belongs to the KM framework. Search for "Scheduler Task" within SDN forums and see Did you know you can schedule jobs in portal using KM's Scheduler Task? for further details.
    > I prefer Repository Service instead
    As having said, this is not alternatively in the scenario give, but additively.
    Hope it helps
    Detlev
    PS: Please consider rewarding points...

Maybe you are looking for