FM to get IDOC number of the created IDOC

I am creating the idoc using FM -- >MASTER_IDOC_DISTRIBUTE
If Idoc is created successfully I get sy-subrc = 0.
If sy-subrc is 0 .... I need to fetch the Idoc number...
I need a FM that will return the appropriate idoc number...
thanks
Warm regards,
Karen

Hello,
try this FM "IDOC_INBOUND_SINGLE", this returns the IDoc number.
Regards,
Sachinkumar Mehta

Similar Messages

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

  • Finding out Idoc number of the Invoice List

    Hi!
    how to find out Idoc numberr if I have number of Invoice List?
    For example, I have number of Invoice List for checking it in tcode VF22, but how to get Idoc number of the Invoice List in order to check it in WE02?
    Will reward,
    Mindaugas

    Hi,
         Use NAST with the invoice to get the latest record for that output type..
    use the table CMFP to get the IDOC number..The combination is
    NAST-CMFPNR = CMFP-NR..
    Then in the column CMFP-MSGV1 you can find the idoc number
    <b>Reward points</b>
    Regards

  • HT3702 I have a ipod 4th generation and on my itunes it keeps asking me for my security cards # but i dont have it is there a way i can get that number without the card itself

    i have a ipod 4th generation; and on my itunes it keeps asking me for my itunes security card # but i dont have it. Is there a way i can get that number without the card itself?

    So I tryed to download it on the apple website but it keeps saying that there is an error.
    What does the error message say? (Precise text, please.)

  • How to get personnel number of the user in the wd java code in Leave reques

    Hi all,
    we are using the standard Leave Request Applicatin ESS.
    can any one please tell me how to get the personnel number of the user in the WD java code?
    cause i have pass the pernr number to a bapi and get the details.
    please help me its urgent.
    thanks in advance.

    Hi Madhu,
    Create a model for the particular bapi in wd java and acess it in your component. Then pernr parameter will be available in the context and u can pass value for the parameter (pernr) to the model and get the output.
    If you hav any doubt, please let me know.
    Regards,
    Jithin

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • How to get row number in the fetch row itself in Sql Query ?

    Hi,
    i am fetching some rows from a sql query . Is there any way to get row number as well in each row while all rows are fetched ?
    like this :
    RowNum data1 data2
    1 abc ere
    2 bnh ioi

    Hello
    Ofcourse you can get the rownum inside a query, just keep in mind that the rownum is the number of order in which the records were fetched from the table, so if you do an order by, the rownum will not be sequential, unless you query the information in a subquery first.
    SELECT rown, col1, col1
    FROM table
    Or
    SELECT rownum, col1, col2
    FROM (SELECT col_1, col_2 FROM table ORDER BY col1)
    Regards
    Johan

  • Function module for getting ASCII number of the character

    I need to know the ASCII number of the appropriate character. Which function module can I use? Thank you

    hi,
    U can use this code below
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    OR try FM LIST_TO_ASCII
    Sri

  • Getting error on clicking the create button in apps which is working fine

    Hi All.
    We had created an application using OAF technology which is working fine in Jdeveloper.
    Basically the application consists of 3 pages.
    1) MainPG
    2) CreatePG
    3) UpdatePG.
    Now after deploying all the required files in apps environment,i am able to open the pages individually.
    Now after opening the MainPG i clicked on the create button which directs to CreatePG,but CreatePG is not opening instead its giving below error.(Individually if i click on CreatePG,UpdatePG pages are opening),where as the CreatePG and UpdatePG working fine in Jdeveloper.
    Below is the error i am receiving.PLease Help.
    oracle.apps.fnd.framework.OAException: No data found for region (/oracle/apps/ar/VOAM/webui/CreatePG).
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:529)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1006)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:94)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/ar/VOAM/webui/CreatePG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1006)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:94)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/ar/VOAM/webui/CreatePG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1006)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:94)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

    Hi gaurav,
    After your update i remember that the path should be uploaded one.i had imported the PG with the below command.
    import f:\p4045639_11i_GENERIC\jdevbin\Tutorial\jdev\myprojects\oracle\apps\ar\VOAM\webui\UpdatePG.xml -rootdir f:\p4045639_11i_GENERIC\jdevbin\Tutorial\jdev\myprojects -userId vramana -rootPackage /oracle/apps/ar/VOAM/webui -username apps -password testmunim -dbconnection "(description = (address_list =(address = (community=tcp.world)(protocol = tcp)(host =)(port = )))(connect_data = (sid =TEST)))"
    which has give imported page as /oracle/apps/ar/VOAM/webui/oracle/apps/ar/VOAM/webui/UpdatePG.I need to give this path in jdeveloper which i had forgotten,instead i have given as /oracle/apps/ar/VOAM/webui/UpdatePG.
    My issue is resolved.
    Thanks a lot gaurav and all the people who participated in this thread.
    Regards

  • Saving IDOC Number from control_record_out before IDOC goes out.

    Hi,
    How would I save the IDOC number so that I can maintain a table with
    Idocnumber
    Document Number
    Date
    Etc
    The IDOC num is not populated until the system finally does save the idoc and send it? Right?
    Need that IDOC number via an exit or something.
    thanks.

    Use function SREL_GET_NEXT_RELATIONS to rather get the link after the IDOC has gone out.
    Any better/easier ways?
    regards

  • Master IDOC but not the communication IDOC

    Hi
    what is master IDOC and the communication IDOC
    what is the diff?
    i have installed sap gui in my system and how to connect the sapserver through internet?

    HI SAPABAP,
    1>Master idoc is only created but it won't be stored in database,where as communication idoc is stored in database.
    2>Data is transferred via communication idoc not by master idoc.
    Regards,
    Nagaraj

  • How to get document number in user  created form?

    Hi All,
             I am creating a form.In that i want to maintain Document number for each form(each order)(like in sales order form (Document  No. field)).
                   Please help me to maintain the document number either manually or by system generated.If u have code example   please send.
            I tried for Manage series and all.But i couldn't get.
    Expecting ur reply soon
    Thanks
    V.Rangarajan

    Hi V.Rangarajan,
    I haven't used this code yet, but herewith an extract from the SBO SDK Training material which I think is related to your problem.
    // create a combo box for the series oItem=oForm.Items.Add("SeriesName",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
    // fill the combo with relevant series
    oComboBox.ValidValues.FillWithSeries(True, False, 0) new method
    oComboBox.DataBind.SetBound(True, "@MATH", "Series")
    // edit text to hold the numbering of the series
    oItem = oForm.Items.Add("SrValue", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oEditText.DataBind.SetBound(True, "@MATH", "DocNum")
    // get the next series number in add mode
    lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
      oEditText = oForm.Items.Item("SrValue").Specific()
       oEditText.String = lNum
    I don't know if this will solve your problem, but hopefully it will put you on the right track.
    Hope it helps,
    Adele

  • Populating serial number in the Inbound IDOC WMMBID01

    I have the requirement in my project to populate Serial number via incoming idoc WMMBID01. I have created an extended idoc with a Z segment added to IDOC WMMBID01. Could anybody please let me know what would be the posting logic for this serial number.
    Thanks,
    Chenni.

    Hi,     
    Maintain partner profile (Transaction code WE20) for the message type you defined in WE81 and put your process code in partner profile and check your logical system settings also in transaction SALE.
    Thanks
    Rahul

  • Getting error in using the create Reservation API in OM

    Hi All,
    we want to reserve the item while creating the orders from interface tables.
    We are using the INV_RESERVATION_PUB.Create_Reservation for creating the reservation based upon the Lot numbers.
    We have first written the declare block(Anonymous) and reserved the quantity that was working fine using the batch is, orig reference (source order number) etc.
    But when we are using the same code to create a procedure it is giving us the following two errors.
    INV_RSV_SR_DETAIL
    Invalid Serial Number.
    We have checked that these errors are in the validate_serials proc in inv_reservation_validate_pvt Package.
    Can any of you please help us here so that we can overcome this issue.
    Thanks
    -Shivdeep Singh
    We got the error ... we are using a tbl type var for serial nos and initializing it from 0. Now are initializing it with 1. Everything is working fine now.
    Thanks
    -Shivdeep Singh
    Edited by: user1054040 on Apr 25, 2012 11:10 PM

    Hello Aditya,
    Thanks for showing interest in my question.
    To answer your question of what I am trying to do, I hope this can shed some light.
    I was given a PO number and an Outbound delivery number to work with.
    We have created a custom (module) program that handles transactions regarding outbound deliveries, and one feature of this program is to do a reversal of Outbound deliveries already posted.
    When using this reversal feature using the given PO as reference, the error message which I mentioned in my previous post, is displayed on screen.
    The user is curious why this happens and yet the posted outbound delivery involved is reversed.
    Additional info:
    • VL02n > Post Goods Issues - to process(?) given Outbound delivery
    • Custom program - to do the reversal process
    • VL02n does Mvt 641 while the reversal does Mvt 642.
    I apologize as to not being so clear but I am not so well versed with MM and its workings.
    Thanks.
    ~ ric

  • Evaluation path to get personnel number all the org unit and subordinates

    Dear all,
    I have OM issue to ask.This is the scenario:
    Staff A  belong to  org 1. Under Org  1, I  have org unit 1-A, 1-B and org unit 1-C.
    Issue 1 :
    I want to run report(RHSTRU00) to  to generate all the staff number in org 1 (Include 1-A, 1-B, and 1-C).
    Issue 2 :
    I  want to run report for 1-A, only staff belongs in org 1-A appear.The others not appear.
    I was understanding I have to play around with evaluation path. Until now I can't find the suitable evaluation_path. I need your help.tq

    Hi,
    Not sure why you want to reinvent the wheel.  The standard report RHXSTRU02 will give you people by Org Unit.  Just enter the Org Unit ID number and you will get the employees as output.
    If you still want to use RHSTRU00, you can use O-P or O-S-P to get the employees and the positions.
    Paul

Maybe you are looking for

  • Error while calling the webservice from XML spy

    HI , I hve imported the wsdl file into the xml spy and not trying to send a SOAP message to it . its asking for a user authentication . I am using the XIAPPLUSER for it and once i send the soap request . I am getting the error <b>HTTP operation 'POST

  • VGA vs S-video - quality differences?

    We're thinking of buying a MacMini to connect to our 640x480p plasma screen. It would be easy for us to connect it via S-video. It'd be a bit of work to get a VGA cable setup, but doable. Anyone have any experience and opinions on the difference in q

  • Not able to Parse

    Hello Any one knows how to parse the following xml file using SAX parser. <Table> <cell> (a+b) </cell> <cell> (a<b) </cell> <cell> (a>b) </cell> </Table>

  • Lens Profile missing in LR5

    Hi Since I upgraded from LR4 to 5.4 I seem to have lost some lens profiles. In particular I'm looking for a Nikon profile for my 28-300 lens, working in RAW mode. Nor can I see the lens profile in the list of profiles available when using the Adobe L

  • What happens to my purchase items ?

    Hi there, I'm using iTune on my PC, And I decide to buy a mac in a nearly future. What happens to my purchase items and my libralary. What can I do before I start to moving from PC to a new Mac. I'm using iPad 2 and iPhone 4. Thanks every body