How to get the final document number?

Hi,
How do I retrieve the document number of a document (e.g. delivery note) that is just added?
Currently, I use the following event listener:
[B1Listener(BoEventTypes.et_FORM_DATA_ADD, false)]
in which I retrieve the document number by reading out the text field on the form:
EditText text = (EditText)form.Items.Item("8").Specific;
string deliveryNoteNumber = text.Value;
This works perfect if only one person is adding documents.  But if two persons are posting a document, they both see the same (temporary) document number in the form while entering the data.  The latest person who finalizes his document, will get another number than the one that was displayed in the form (because the first person already used that number).  So, how can I retrieve the number of a document that is just finalized?
Thank you very much for your help.
Regards,
Pieter Verhaeghe

You can use the "ObjectKey" property of the BusinessObjectInfo object returned by the form_data_add.
Catcth the event with BeforeAction = false - after the add event has successfully happened. Then you will see the ObjectKey property of the BusinessObjectInfo object will have an XML string in it. Inside that XML you can find the DocEntry of the newly added document, you will just need to parse it properly!

Similar Messages

  • How to get the Material-Document-Number wie the delivery-Number+Position???

    Hi,
    we want to connect mseg and likp+lips.
    But therefore we need the Material-Document-number concerning this
    delivery and in likp+lips isn't a Material-Document-Number!
    Could anybody help me to connect likp+lips with mseg!

    ok, NICE!!! But how should I get with these information a unique Material-Document-Number for a delivery+deliveryposition?

  • How to get the change document Number.

    Hi,
    We have a scenario where the any customer master changes need to be send to the agent. I thought of using CDHDR,CDPOS.I've checked the FMS CHANGEDOCUMENT_READ and position header FMS too.even for these we need to provide the object class.
    But for them we need to have the document number and object class. They can be changed from any transactions. We have many Z transactions through which he can change the customer master data too,but finally master tables only get updated. Is there any FM to find the document numbers.
    Thanks,
    Bharathi.

    Hi Bharti,
    In such situation, you can create the event based on the CDHDR table entries. In fact, based on the object ID and object class, the recent change document can be picked up. If standard change object does not work, a Z change document can be created. This practice can help in picking the change in selected fields as the master tables can be updated in many fields which are not relevant for the requirement.
    Do let me know in case you need more help on it.
    Thanks,
    Jyoti

  • How to get the current month number

    Hi everyone,
    Does anybody know how to get the current month number in Oracle Discoverer Worksheet calculation?
    I try to use EUL_DATE_TRUNC(CURRENT_DATE, 'MM'), but instead I got 01-AUG-00.
    If I change the data display format to MM, it will give me "08" but if I use TO_NUMBER function to convert it to number I get error "invalid number"
    Is there anyway to get the current month value in number? Thanks

    Scott,
    Thank you so much! It works perfectly! :)
    Hope you have a great day ahead!
    Cheers,
    Angeline

  • How to get the unoccupied material number in a number range

    How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?

    Dear,
    You can get this information from Tcode SNUM or you can access database table NRIV.

  • How to get the 4 digit number associated with a SAP icon ( ICON_MAIL )

    Hi Friends,
                   Could anyone please tell me how to get the 4 digit number associated with a SAP icon ( ICON_MAIL ).
                   eg: - For ICON_GREEN_LIGHT the four digit id code is '@08@' (which you can get from ICON table )and the associated 4 digit number is'1003'.
                  Similarly I want to get the 4 digit number for ICON_MAIL(e-mail icon)
    <b><REMOVED BY MODERATOR></b>
    Ashiq
    Message was edited by:
            Alvaro Tejada Galindo

    You can use this report...It's not mine...
    REPORT zdummy_atg_2.
    TABLES: ICON.
    INCLUDE <ICON>.
    FIELD-SYMBOLS: <F>.
    SELECT * FROM ICON.
       ASSIGN (ICON-NAME) TO <F>.
       WRITE:   /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,
                ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,
                ICON-NAME.
    ENDSELECT.
    Greetings,
    Blag.

  • How to get the iphone serial number  in application?

    hello,  everyone
       i  really want to konw how to get the iphone serial number in aplication ?  As it's different from uniqueIdentifier ....
    thank you

    Michele is correct - sneep will help you get the serial from the running domain on the M3000 ,
    and it is a good idea to install STB on your machines.
    If that isn't possible for you, then sneep can be downloaded directly from [http://www.sun.com/sneep]
    I believe that on this platform, sneep gets the serial from the output of prtconf.
    There is a minor correction to be made :
    After installed SNEEP use "man sneep" for all technical details.The sneep man page is not linked into the shared man pages, so you need to use
    man -M /opt/SUNWsneep/man sneep
    with out going to OK prompt (Banner)It is worth noting that the serial shown in the OBP banner is not the product serial
    that you will find on the physical serial tag.
    The banner "serial" is the decimal equivalent of the host ID, which you normally get in hexadecimal from the "hostid" command.

  • How can I get the sales document number in CRM??

    Hello,everybody
    I want to create a document flow report in CRM.
    But I donnot know how to get the documen id which is in ERP (for example: Sales, Billing)
    Is there anyone who can give me some advice?
    Thanks.

    Do you have ERP documents in CRM ? I mean does ERP documents are getting replicated in CRM? or you want transaction no from ERP only ? Which version are you working on?
    Thanks,
    Nitin

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

  • How to populate the sales document number in FD10N or FBL5N report

    Hi Gurus,
    In the reports FBL5N and FD10N i am able to see the Billing document field(VBELN) populated with the number but The sales document number (AUBEL) is not populated with the number.
    How to get this number updated to the FBL5N or FD10N report.
    Thanks in advance.

    Hai
    Goto Settings Special Fields and add the required fields and save and come back and exceute again.
    Regards
    Raghavendra.M
    SAP-Practice

  • How to get a Reversal document number from Original Document Number ?

    Hi,
    Say I have a Original Document number. This document has been reversed.
    I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
    My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
    OR in simple words, Is there any possible way to find out if my original document has been reversed ?
    I need help to write a select query i.e the tables and fields.
    Please help.
    Thanks.

    Hello,
    Check the fields:
    BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
    BKPF-STBLG: Reverse Document Number.
    BR,
    Suhas

  • How to get the PO response number

    hi,
    i need to get the Purchase Order Response number for a given PO number and item.
    i have checked BBP_PD_PO_GETHISTORY FM, for few of po numbers i'm not able to find the POR number in this FM.
    can anyone suggest how to get the POresponse number.
    help me soon.
    thanks.

    hi all,
    thanks for the valuable info, now i'm able to get the POR number.
    could you please tell the DB table name, so that i can fetch directly and i can improve the performance.
    thanks,
    gupta.

  • How to get the PDF Document version when using Digital Signature

    Hi,
    I have a form which contains two signature fields.
    When i sign the form the pdf document is saved as a version which can be seen by clicking the Signature Panel.
    I need to get the binary of the versions stored in the form.
    Please suggest me the how to get the version data from the form.
    Regards,
    S.V.atish Kumar

    Hi Mithun:
    I think I have run into a similar issue and have not been able to find a resolution.
    I have been trying to place three groupings of data and limit them to 15 rows; additional rows would print on a void check on a next page using the rtf template.
    Earnings .............. Pre-Tax Deductions .........Taxes
    <line 1 earnings> <line 1 pre-tax deductions> <line 1 tax dedcutions>
    <line 2 earnings> <line 2 pre-tax deductions> <line 2 tax dedcutions>
    <line 3 earnings> <line 3 pre-tax deductions>
    <line 4 earnings> <line 4 pre-tax deductions>
    <line 5 earnings>
    <line 6 earnings>
    The template works fine with these lists as nested tables until I add in the restriction and filler for the 15 rows for the first table. The data in the 2nd two lists does not appear once the limitation is added.
    Check Writer (XML)  - Issues with payroll check stub in rtf
    As an alternative, I have been thinking adding the remaining line totals (over 15 rows) and adding a 16th row. However I have been running into an error when trying to use the code for-each-group.
    *** XML-22056: exactly one of four group attributes must be present in xsl:for-each-group
    Can you send me your template to review? My email is: Karen.Lacey(AT)paetec(DOT)com
    Thanks!
    Edited by: RedLacey on Dec 17, 2009 11:48 AM

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • How to get the spool request number ?

    Hi All,
    I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
    the transaction the print screen comes where I can do
    print preview or print.
    Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
    How do I get the spool request number ?
    Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
    Please let me know.
    Answers will be awarded...
    Tushar

    Hi,
    You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
    Regards,
    Gagan

Maybe you are looking for

  • Error while running DBMS_NETWORK_ACL_ADMIN

    Hi, I am completely new to APEX and trying out myself. While Apex 4.2.1 installation, and configuring Embedded PL/SQL Gateway. Topic: To grant connect privileges to any host for the APEX_040100 database user getting error while running DBMS_NETWORK_A

  • Transferring data from iPhone 3GS to iPhone4

    Apparenty my iphone 3GS is busted, now everything is gone.... My dad gave me his old iPhone4 (jailbroken... i seriously wanted to update to ios5). Since that I last backed up(or maybe synced data) from my old iPhone 3GS into my PC, i was thinking of

  • Po amendment report

    hi, is there a standard report which will give me no. of POs amended and the reason for it , e,g qty , rate etc. rgds

  • Menu ring for tab control

    Hi, I use a tab control which got in the meanwhile more tabs than could still all be displayed simultaneously. That's why I would like to use a menu ring instead of the tabs in order to control which tab will be displayed in the forefront. However, I

  • Does the Fill Workspace Background function still exist in any capacity in Photoshop Elements 12 (Mac version)?

    Does the Fill Workspace Background function still exist in any way? I could make it such that I could see my desktop (or whatever was open behind my file) when I was using Elements 6. Thanks and best. (Mac Version. Elements 12)