Capturing Idocs created by BAPI Created Documents

Hi guys,
I have a big problem that i could really need some help, i use a BAPI:
BAPI_ACC_DOCUMENT_POST to create documents, in same cases depending on the accounts used there are some CO documents created and their equivalent idocs.
I searched everywhere but i didn't find any way to get the number of the idoc generated by the CO document that is created, does anyone have any suggestions on what to do ???
In regular Documents i use this Function:
SREL_GET_NEXT_RELATIONS
but in this case it doesn't work even after many trials !
I would really aprecciate the help !

Hi
If you are trying to find the idoc number that created a document, there is a way you can find it out.
Note down the important field details of the document that would help you identify the idoc that created it.
Go to transaction WE05. Using the date range the document got posted, pull up a list of idocs.
Then click on the List Specific segment, put in the segment name of the idoc and click continue.
It will bring up a table of table. You can find the row that contains the field information you have and by that approach find the idoc that created the document.
Hope this helps
Deepa

Similar Messages

  • Need to create Idoc using with BAPI in BP

    Hi Experts,
    Business Partners are created/changed in SAP either directly by using transaction BP or indirectly created from DTI or using the BAPIBUSISM007_CREATEFROMDATA BAPI for new customers and BAPIBUSISM007_CHANGE to change customers. When a business partner is created or changed via transaction BP an IDOC is generated when the create or change is saved. This IDOC is then sent to the appropriate DTI (Third party) clients to ensure the customers remain in sync.
       Now issue is that creates and changes made using a BAPI do not generate an IDOC. Therefore, new customers and customer changes made by DTI clients do update ECC but are not being passed on to Ad Sales since an IDOC is not created. The same is true when a customer is created/changed by Ad Sales. The change is made in ECC via the BAPI but since no IDOC is generated the create/change doesn’t get moved to the DTI clients.
      what the IDOC triggering mechanism is for generating IDOCS from the BAPIBUSISM007_CREATEFROMDATA BAPI and the BAPIBUSISM007_CHANGE BAPI. This mechanism should be some type of ALE Message that can be used in the partner profile setup to automatically generate the IDOC.
    Any inputs about my issue.
    Thanks,
    Anji

    Hi Experts,
    Any updates or suggestions on this issue.
    Thanks,
    Anji

  • Create a  BAPI for T-Code FBV0(Post Parking Document)

    Hello Experts,
    I need to create a BAPI for the T-code FBV0(Post Parking Document). Please help me with a sample code.
    Thanks,
    Suma

    Hello There.
    I would like to suggest my opinion,
    To know the Function module for a particular Transaction,
    1. Table TSTC gives the Program name for a particular transaction.
    There are includes which contain (say) "Global data" and "Function modules".
    2. To get BAPI function modules, Transaction BAPI is the most powerfull solution for any module.
    One more thing, to be kept in mind while creating a BAPI is to create a function module and make it RFC enabled.
    BAPIs are nothing but RFC enabled function modules.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • IDOC to create a shipment cost document

    Hallo all,
    i am looking for an IDOC to create a shipment cost document. Do you know is there an IDOC which is suitable for this? I haven't found one.....
    Many thanks for any advise,
    Hannes

    Hi
    Refer below it may helps u
    <a href="http://help.sap.com/saphelp_45b/helpdata/de/1a/0e3869539911d1898b0000e8322d00/content.htm">shipment</a>
    http://help.sap.com/saphelp_45b/helpdata/en/b5/9c48b8fc6f11d1bf5a0000e8a7386f/content.htm

  • BAPI creating incorrect Item Texts

    Hi all
    I've got a problem where sales orders and credit notes get created via BAPIs but sometimes an item text from the previously created record appears on the following record.
    Background
    The process is as follows:
    1. XI creates a bunch of IDocs containing a mixture of sales order and credit memo doc types
    2. These are all processed in one go within a custom function module
    3. For Credit notes the BAPI 'BAPI_SALESDOCU_CREATEFROMDATA' is used, if this is successful then the item texts are processed which basically involves adding an item text to the last item. This is done using the SAVE_TEXT function. If there is more than one item the first to penultimate items do not have texts.
    4. For other doc types (standard orders, forward orders, paid), function 'SD_SALESDOCUMENT_CREATE' is run in test mode so that a credit check can be performed in advance of creating the document - the sales_text table is populated. If the credit check passes then the order is created using BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'. The texts are created vai the BAPI by populating the order_text table.
    5. The next Idoc is then processed.
    Five times since this went live (about 18 months ago) a Credit Note has been created where the first item on it has the item text from the previous sales order
    What I've done so far
    1. I've reviewed the code to make sure variables are being cleared - they are
    2. I've run data through the system and stepped through it in debug mode - it works fine
    3. Our QAS box was restored from PRD recently so contains some of these incorrect documents. I've re-run the exact same batch that casued the incorrect documents - they are all created correctly
    4. I've trawled through SAP Notes and this forum
    The fact that the problem is not replicable suggests to me that both the data coming in and the bespoke function module are OK. I'm not sure why the different methods have been used for the different doc types but I wonder if this is what's causing the problem, maybe memory is not being cleared or something.
    Any pointers, thoughts, solutions or other genreal musings would be greatly appreciated!
    Thanks
    Andy

    Hi Andy
    Although you have mentioned that, you have checked whether variables are cleared, but from the issue it looks like there must be some variable that does not gets cleared.....i would suggest you to debug once again and check this out.....it might help.
    regards
    Lokesh

  • Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2

    Hi experts,
    I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
    I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these  documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
    I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
    "Tables
    data: it_doc like bapi_doc_draw2,
          it_return like bapiret2,
          it_files like bapi_doc_files2 occurs 0 with header line,
          it_objs like bapi_doc_drad occurs 0 with header line.
    "Variables
    data: wl_doctype like bapi_doc_draw2-documenttype,
          wl_docnumber like bapi_doc_draw2-documentnumber,
          wl_docpart like bapi_doc_draw2-documentpart,
          wl_docversion like bapi_doc_draw2-documentversion.
    it_doc-documenttype = 'ZC1'.
    it_doc-documentpart = '200'.
    it_doc-documentversion = '00'.
    it_doc-description = 'Test of documents creation via BAPI'.
    it_doc-username = sy-uname.
    it_doc-statusextern = 'FR'.
    it_doc-authoritygroup = '0002'.
    refresh it_files[].
    clear it_files.
    it_files-originaltype = '1'.
    it_files-storagecategory = 'Cofre DMS1'.
    it_files-wsapplication = 'PDF'.
    it_files-docfile = 'c:\110307.pdf'.
    it_files-description = 'Test file'.
    append it_files.
    refresh it_objs[].
    clear it_objs.
    it_objs-objecttype = 'EKPO'.
    it_objs-objectkey = '47000497600010'.
    append it_objs.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata = it_doc
      IMPORTING
        documenttype = wl_doctype
        documentnumber = wl_docnumber
        documentpart = wl_docpart
        documentversion = wl_docversion
        return = it_return
      TABLES
        objectlinks = it_objs
        documentfiles = it_files.
    After execute the BAPI process I got the following error:
    E26 087 - Data carrier COFRE DMS1 not defined
    Does anybody have a sugestion to help me, please?
    Thks
    David
    Edited by: David Tsutsui on Mar 18, 2010 10:52 AM

    Please refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
    Data Carriers for Storage the Originals of DMS

  • Error in function call BAPI_0050_CREATE. Create FM Budgeting Entry document

    Hi guys,
    I've got runtime error in BAPI-function call BAPI_0050_CREATE for create\release budgeting entry document:
    "Number range 01 not found for object BULI_DOCNR in fiscal year 2007"
    Function parameters below:
    CALL FUNCTION 'BAPI_0050_CREATE'
    EXPORTING
    header_data = l_wa_header
    testrun = ' '
    TABLES
    item_data = g_it_item_data
    return = g_it_return.
    l_wa_header-FM_AREA = '2500'
    l_wa_header-VERSION = '000'.
    l_wa_header-DOCSTATE = '1'.
    l_wa_header-PROCESS = 'ENTR'.
    l_wa_header-DOCTYPE = '0001'.
    l_wa_item_data-BUDTYPE = 'DEBL'.
    l_wa_item_data-BUDCAT = '9F'.
    l_wa_item_data-ITEM_NUM = '01'.
    l_wa_item_data-FISC_YEAR = 2007.
    l_wa_item_data-FUNDS_CTR = '2000'.
    l_wa_item_data-CMMT_ITEM = 'R10101010'.
    l_wa_item_data-TOTAL_AMOUNT = 20000.
    l_wa_item_data-DISTKEY = '0'.
    l_wa_item_data-TRANS_CURR = 'RUB'.
    l_wa_item_data-VALTYPE = 'R1'.
    Interval 01 was already created in SPRO-tran for customizing option for FM module (Budgeting)
    (000000001 &#1076;&#1086; 99999999) - Create Number Range Interval for Entry Document
    Does anybody know correct parameters for BAPI-call or customizing option for Budjeting (FM) ?
    ps Sorry, I am not expert in FI-FM-module
    Thnx in advance,
    Dmitry

    It works !
    I've performed  this function in workbench and got additional help guide for error resolving.
    You're right - i've missed initial interval 05 for number ranges 5000000000 to 599999999 for budjeting docs.
    But i've got new error message
    'Release and budget amounts are inconsistent'

  • How to create custom BAPI for a project on Agentry?

    As I am very new to BAPI creation, I would like to get some helpful pdf documents or links for creating custom BAPIs, which would fetch data for an Agentry Project to be build.
    Tags edited by: Michael Appleby

    Rajkamal,
    I would recommend you work through the following tutorial on how to build an Agentry application from scratch.  It covers creating a BAPI to retrieve data from the SAP backend to Agentry.
    Part 1 - http://scn.sap.com/docs/DOC-47550
    Part 2 - http://scn.sap.com/docs/DOC-47651
    --Bill

  • BAPI: Create INQUIRY/QUOTATION/SALESORDER- (from data2)

    Hi ALL...
    We can create
    INQUIRY/QUOTATION/SALESORDER
    using BAPI (Create from data2)........
    there are some stuctures/tables as parameters like:
    ORDER_HEADER_INX
    ORDER_ITEMS_INX
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_INX
    what is use of these structures/tables and what is effect?...
    and where i can get detailed documentation of all these Structures/tables

    Go to Documentation in the Function module. You will see the description of all the paramters there, and how they would need to be filled.
    On the segments you asked, those denote the change indicator
    The following entries are available:
    ' ':   Create a new sales document item
    I:     Create a new sales document item
    U:     Change an existing sales document item
    D:     Delete an existing sales document item

  • How to create a BAPI based on R/3 report?

    Hi,
    I have a requirement to create a BAPI based on an R/3 report. the selection screen elements shold be the parameters that we pass to the BAPI and output of the report will be the output for the BAPI.
    I have issue creating the bapi structure for select-options parameters of the report. suppose order type is defined as SELECT-OPTIONS: s_auart FOR vbak-auart. How this need to be converted into a BAPI structure? Please let me know if you have any questions.
    Thank you,
    Surya

    Hi,
    U can declare AU_LOW and AU_HIGH as two import paramters in BAPI.
    and then u can add it to ranges in the source code by these import values.
    So that u can pass the range of values.
    Thanks and Regards,
    Krishna Chaitanya G

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How can I create a new Numbers Document through AppleScript?

    How can I create a new Numbers Document through AppleScript?
    I try this:
    tell application "Numbers"
    make new document with properties {template name:"blank"}
    end tell
    But don't work.
    Where can I find documentation about it?
    Thanks

    If you try to invent your own syntax, you are starting on very wrong basis.
    The required syntax is defined by the Numbers AppleScript's dictionary.
    This one doesn't know what is a template.
    This is why, in the link posted by badunit, I use an other scheme to create a new document.
    I know that it's awful but it's the only one available at this time.
    Yvan KOENIG (VALLAURIS, France) samedi 4 juin 2011 11:25:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Problem in creating a bapi for bom

    hai all,
    i am trying to create a bapi for bom using csap_mat_bom_create, but it am getting sy-subrc value as 1.
    and displaying error message as the function module name itself.
    is there any solution dor it.

    Hello,
    Try to use that bapi :
    BAPI_MATERIAL_BOM_GROUP_CREATE
    Thierry

  • Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Apples iworks would do that

  • Error while creating Inter-company billing document

    Hi All,
    Help me to solve below error while creating inter-company billing document with ref to delivery document.
    " 1190984113 000000 Company code is not defined"
    Thanks for your help.

    Hi
    Please check wheather Customer has been extended to both company codes.Also check wheather 1190984113 is a G/L account.If it is a G/L account please check wheather it has been maintained in the company code or not.If it is not maintianed then kindly maintain the G/L account and then create the Intercompany billing document
    Regards
    Srinath

Maybe you are looking for

  • URGENT: Monitor choice for New G5s (Nov 2005)

    Sorry bout the "Urgent" but I need to decide on following before purchasing new G5 (Quad or Dual-Core 2.3) and Apple Monitors only have 3 year warranty if purchased with the computer. SITUATION: I plan to go with either the default NVidia Geforce 660

  • File chooser on applet

    Dear Sir, I use the following coding on jdk1.4 it works well that is, while pressing the button it will work (display file chooser) perfectly on applet. while convert this coding into applet(executing in browser) the file chooser not visible on explo

  • What or where do i go to fix my ipod screen becasue its cracked

    i have dropped my ipod and now the screen is cracked and is no longer working, i have no idea where to go or what do to about it...

  • Porting Solaris on Intel machines

    Is there any site/book available regarding porting code from Solaris Sun Workstations running Ultras to Solaris on Intel platforms? Any information would be higly appreciated. I am looking for solaris 2.6. Thanks, Deepthy

  • Stopping EEM/TCL script

    How can I stop a pending EEM/TCL script?  I have a Catalyst 4506 version 12.2(40)SG.  The command 'event manager scheduler clear' isn't available.  The output of 'show event manager policy pending' shows: No.  Time of Event             Event Type