Get GUID of follow up document !!

Hello,
I need to get the guid of the follow-up document.
I tried using FM crm_order_read, i know i can find something in ET_DOC_FLOW.
However this FM does not give me the guid of the follow-up, it gives me relation_id and other details.
With these details available, how can i get the GUID of Follow-up ??
Usefull answer will be rewarded !!!
Regards,
Anand.

In ET_DOCFLOW has a fields called OBJECTKEY_A and OBJECTKEY_B.
OBJECTKEY_A defines the source document GUID
OBJECTKEY_B defines the Follow up document GUID
REF_GUID defines the GUID of current document. It cuiold be Source document or Follow up document depending on which Document's Document flow you are reading.
Using these thrree fields your problem will be solved
Kindly reward with points in case helpful
Sharif

Similar Messages

  • Valid from and Valid to are not getting copied to follow up document.

    Hi Experts,
    I am creating job quote as a follow up document from master quote.All are getting copied from the master quote to job quote,but valid from and valid to dates are not getting copied from master quote,instead it is calculating the date from date profile rules.
    But I need to transport the dates from Master Quote to Job Quote.
    Please advice.
    Thanks,
    Adi.

    Hi,
    You need to implement CRM_COPY_BADY for that. Please refer to:
    Re: create a new follow up complaint to the earlier completed complaint
    Regards,
    Nicolas.

  • More than one Follow On documents for a single shopping cart

    Hi All,
    How can we determine if there will be more than one follow on document created for a single shopping cart.
    One reason could be if shopping cart items have different source of supply.
    What could be the other reasons. Also is there any way by which we can debug and find out the number of follow on documents created for a single shoppining cart.
    Thanking you all in advance.
    Thanks and Regards
    Manoj

    Hi  Manoj,
    <i>"Also is there any way by which we can debug and find out the number of follow on documents created for a single shoppining cart."</i>
    There's a FM to get all the follow on documents related to the SC and all the relations per item... use <b>BBP_PD_SC_GETDETAIL</b> and retrieve the <b>E_HEADER_REL</b> for the SC relations, and the <b>E_ITMLIM_REL</b> for each <b>item relations</b>.. there you will see:
    OBJECT_ID_A -> OBJECT_ID_B
    what it means is the relation between a SC and the PO, or the SC with a BID... you can identify the object types by taking a look in the 'BUS...'
    OBJTYPE_A -> OBJECTTYPE_B
    SC -> BUS2121
    PO-> BUS2201
    BID-> BUS2200
    etc...
    I hope this can help you to retrieve what you need....
    BR,
    Gerardo....
    PS: reward points please....

  • How to get Follow on documents

    Hi All,
    I need to find follow on documents for sales orders, e.g, I need to find all accounting documents created for a sales order. I know we have document numbers for Invoices and Credit Memos in VBFA but how do we link them to accounting tables like BKPF and BSEG. Does anyone know how to link them or if there is any Function Module availavle for this. I have tried FM  RV_ORDER_FLOW_INFORMATION and BAPI_ACC_DOCUMENTS_RECORD but they only seem to give whatever is in VBFA and not the accounting documents posted in FI.
    Any ideas/suggestions will be greatly appreciated.

    Try to plug in the SD document number into <b>BKPF-XBLNR</b>. This works for me.
    <i><b>Points are always welcome!!</b></i>

  • Xchange Rate type changed in the follow on document getting posted from MM

    Hi,
    There is an issue while the follow on document posts from MM module to FI module.
    The rate of exchange captured is M-CL while creation of the Purchase order. On posting the MIGO/ MIRO, the exchange rate type is correct viz M_CL .
    But when the follow on document in the FI module is generated, the Exchange rate type is changed to M.
    Can any one please tell me as to what can be the possible issue and wht are the configuration details be checked in the system or whether there is any special configuration of the Exchange rate type maintenence at country level and at transaction code level.
    Thanks  in Advance.
    Manish

    Hi Amam,
    Have checked in the system the tocdes and the table as mentioned by you.
    The issue here is that the system is picking the default M as the exchange rate type defined is blank . I want to specify the exchange rate type for a particular (country chile) for a particular document type.
    Is there any setting to set the exchange rate ype at country / company code level for a particular document type .
    Thanks in advance
    Manish

  • Details of Follow-up documents at Table level

    Dear All,
    I want to know if there is any table(s) which contains the follow-up documents numbers that gets generated in CRM.
    For example,
    1. first IC ticket will be generated,
    2. then product complaint will be generated as a follow up transaction of IC ticket.
    3. Compensation request transaction will be generated as a follow up of product complaint.
    I am already able to get this follow up using BAPI but I want to know how to get this at Database level so as to make report to perform faster.
    regards,
    Amey Mogare

    Hi Amey,
    one possibility is to read doc flow using FM 'CRM_DOC_FLOW_READ_DB'.
    If you really want to use the tables, here's the description:
    1. Table 'SRRELROLES' with OBJKEY = GUID of order --> get the ROLE_ID
    2. With ROLE_ID go to table 'CRMD_BINREL' field ROLE_A / B (depends on predecessor / successor)
    3. With the other role ( ROLE_A / B) you can go back to table 'SRRELROLES' and get the GUID by the OBJKEY.
    Hope, this is useful.
    Best regards,
    Claudia

  • I1112 status of Shopping cart- Need to create a follow on document

    Hello Experts,
    I have one issue in which enduser had created a shopping cart and header status is approved but no follow on document is generated. at line item level the status is Error in Process.
    When i ran the report BBP_ALERT_SB_NOTTRANSFERED. then my Shopping cart status changed from I1111(item in transfer)  to I1112"error in transmission'..
    In Applicaiton monitor : the message is Not transferred to backend and Shopping cart 3100001911: Follow-on document(s)  not transferred. we are using Extended Classic Scenario and i dont know why we are getting this issue, we are getting this same issue only for 2 Shopping carts.
    Please guide me how i can repost the document so that follow on document will get generated.
    I am in ECS scenario with SRM 7.0
    Help will be appriciated.
    smriti

    Hi,
    If it is only the problem with only few carts, Check if any Short dumps are occuring in SRM as Well as in R/3.
    We faced a simialr situation and observed that it was resulting in a short dump due to bad coding in one BADI.
    regards,
    MRao

  • Unable to create follow-up document in Portal

    Hi,
    We are using NetWeaver Portal 7.0 and it is at the latest SP(SP10).
    When we are trying to create a follow-up document for an opportunity all the fields are getting grayed out and we are unable to create any follow-up document.But from GUI we are able to create it successfully.
    Also we are unable to create any sub-opportunity for the existing opportunity
    Both the above were possible when the portal was on lower SP(SP8)
    Does this issue have anything to do with the SP upgrade or could there be any other reason.
    Any inputs on the above issue would be of great help.
    Thanks and Regards,
    Vijaya Sai.

    Hi Chen,
    The problem the you are facing mostly occurs due to incorrect assignment of roles. The user id that is used in the EP needs to be present in the CRM backend system as well. The CRM Backend user has to be assigned to the corresponding single role.
    Portal user needs to be assigned to a Portal Role.
    Kindly have a look at the following document which will give more
    information on the role configuration.
    Please find the related documentation under:
    -> http://service.sap.com/crm-inst
    -> People-Centric CRM Inst. a. Config. Guides (on the left side tree)
    Kindly have a look at the guide for CRM 5.0
    This will give a clear picture on how to set up follow ups. Hope this helps. Please let us know incase you need more information on the same.
    Regards,
    Hemanth

  • Delete  follow up  document recursive

    Hi folks,
    I' writing a report in order to delete orders but before deleteing these orders i have to delete the follow-up documents. in some cases follow-up document also have another follow up, so before delete the first on i have to delete the last one and the the Order. i wrote loop at lt_doc_flow into ls_doc_flow.
    lv_objects_to_delete = ls_doc_flow-REF_GUID.
    insert ls_doc_flow-REF_GUID into table lt_objects_to_delete.
    endloop.
    and the call function'crm-order_delete.
    in order to delte all  docflow, but it doesn't work.
    do u have any idea , how i can delete it recursive?
    thanks .

    Hello Liliane
    You have to define a recursive function in order to delete your documents.
    The following sample reports shows how to do that:
    *& Report  ZUS_SDN_RECURSIVE_CALLS
    REPORT  zus_sdn_recursive_calls.
    TYPE-POOLS: abap.
    TYPES: BEGIN OF ty_s_doc.
    TYPES:   guid(3)        TYPE n.
    TYPES:   ref_guid(3)    TYPE n.
    TYPES:   text(50)       TYPE c.
    TYPES:   deleted        TYPE abap_bool.
    TYPES: END OF ty_s_doc.
    TYPES: ty_t_doc    TYPE STANDARD TABLE OF ty_s_doc
                       WITH DEFAULT KEY.
    DATA:
      gs_doc    TYPE ty_s_doc,
      gt_doc    TYPE ty_t_doc.
    START-OF-SELECTION.
      PERFORM fill_docs.
      SORT gt_doc BY guid ref_guid.
      WRITE: / 'Flow of Documents:'.
      PERFORM write_docs.
      WRITE: / 'Deleted Documents:'.
      LOOP AT gt_doc INTO gs_doc
                     WHERE ( deleted = abap_false ).
        PERFORM delete_doc
                       USING gs_doc.
      ENDLOOP.
      write: / syst-uline.
      SKIP 2.
      " Reset delete flag
      gs_doc-deleted = abap_false.
      MODIFY gt_doc FROM gs_doc
          TRANSPORTING deleted
        WHERE ( deleted = abap_true ).
      " Change sorting
      SORT gt_doc BY ref_guid.
      WRITE: / 'Flow of Documents:'.
      PERFORM write_docs.
      WRITE: / 'Deleted Documents:'.
      LOOP AT gt_doc INTO gs_doc
                     WHERE ( deleted = abap_false ).
        PERFORM delete_doc
                       USING gs_doc.
      ENDLOOP.
    END-OF-SELECTION.
    *&      Form  FILL_DOCS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_docs .
    * define local data
      DATA:
        ls_doc    TYPE ty_s_doc.
      " Example: Doc_001 -> referenced by Doc_011 -> referenced by Doc_101
      "          Doc_002 -> Doc_012, Doc_013      -> Doc_112, Doc_113
      "          Doc_003 -> not referenced
      CLEAR: ls_doc.
      ls_doc-guid     = '001'.
      ls_doc-ref_guid = '000'. " no reference to other document
      ls_doc-text     = 'Document 001'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '011'.
      ls_doc-ref_guid = '001'.
      ls_doc-text     = 'Document 011'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '101'.
      ls_doc-ref_guid = '011'.
      ls_doc-text     = 'Document 101'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '002'.
      ls_doc-ref_guid = '000'. " no reference to other document
      ls_doc-text     = 'Document 002'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '012'.
      ls_doc-ref_guid = '002'.
      ls_doc-text     = 'Document 012'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '013'.
      ls_doc-ref_guid = '002'.
      ls_doc-text     = 'Document 013'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '112'.
      ls_doc-ref_guid = '012'.
      ls_doc-text     = 'Document 112'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '113'.
      ls_doc-ref_guid = '013'.
      ls_doc-text     = 'Document 113'.
      APPEND ls_doc TO gt_doc.
      CLEAR: ls_doc.
      ls_doc-guid     = '004'.
      ls_doc-ref_guid = '000'.  " no reference to other document
      ls_doc-text     = 'Document 004'.
      APPEND ls_doc TO gt_doc.
    ENDFORM.                    " FILL_DOCS
    *&      Form  delete_doc
    *       text
    *      -->P_GS_DOC_GUID  text
    FORM delete_doc
                USING
                   value(us_doc)  TYPE ty_s_doc.
    * define local data
      DATA:
        ls_doc    TYPE ty_s_doc.
      LOOP AT gt_doc INTO ls_doc
                     WHERE ( ref_guid = us_doc-guid )
                     AND   ( deleted = abap_false ).
        PERFORM delete_doc
                       USING ls_doc.
      ENDLOOP.
      IF ( syst-subrc NE 0 ).
        us_doc-deleted = abap_true.
        MODIFY gt_doc FROM us_doc
            TRANSPORTING deleted
          WHERE ( guid = us_doc-guid ).
        WRITE: / us_doc-guid, us_doc-text+0(15), us_doc-ref_guid.
      ENDIF.
    ENDFORM.                    " delete_doc
    *&      Form  WRITE_DOCS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM write_docs .
    * define local data
      DATA:
        ls_doc    TYPE ty_s_doc.
      LOOP AT gt_doc INTO ls_doc.
        WRITE: / ls_doc-guid, ls_doc-text+0(15), ls_doc-ref_guid.
      ENDLOOP.
      SKIP.
    ENDFORM.                    " WRITE_DOCS
    Regards
      Uwe

  • Creating follow-up document  in actions

    Hello all,
                   I need to create a followup document in actions with specific process_type (transaction type) and channel type (category example: in-call , email..)
                  Now, I am able to pass my transaction type as an import parameter but not the channel type. Does anyone know how to create followup document with specific transaction type and channel type.
    thanks in advance
    ark

    Hi Ark,
    you can copy the BAdI implementation COPY_DOCUMENT. In action customizing assign your copied implementation (don't forget to activate it) in the processing details of you action. There you will also find a button for maintaining processing parameters. Add one parameter for the transaction type and one for your channel type and set the values for them.
    In the BAdI implementation add the following parameter:
    data: lv_new_header type crmt_object_guid.
    copy document
      CALL METHOD lc_action_execute->copy_document
        EXPORTING
          io_appl_object     = io_appl_object
          ip_application_log = ip_application_log
          ip_action          = ip_action
          ip_preview         = ip_preview
          ii_container       = ii_container
          iv_actiontext      = lv_actiontext
        IMPORTING
          EV_NEW_HEADER_GUID = lv_new_header   <==========
          rp_status          = rp_status.
    Now you have the GUID of the copied document. The table lt_container contains your channel type. Read it out of the internal table and then call the function module crm_order_maintain in order to set the channel type.
    Hope you are a bit familiar with crm programming, otherwise this might become sligthly complicated.
    Cheers, Ralf

  • Sending manual Email creates a follow up document of type Complaint.

    Here are the steps which I have followed:
    1. I login to IC WebClient and create a complaint. Close the Browser.
    2. Login back to the ICWebClient. Click on Inbox and open the last created complaint. Click on Email (On the NavBar) and manually send an email to any user. Click on End button and close the browser.
    3. Login back to the ICWebClient. Click on Inbox and do a search.
    You see there is another complaint document created which is actually a follow up document for the complaint which I have created. And this follow up document stores the email sent. <i>The problem is that two documents of type ‘complaint’ are getting created. One a main document and the other follow up document which stores the email sent.</i>
    What we want is if the agent sends an email for a complaint, then we want all the emails to be stored as part of that complaint transaction document.
    Am I missing any setting or is this is the standard behavior of SAP.
    Message was edited by:
            Rakesh Jain

    Hi Rakesh,
    Check this SDN post:
    FM or Sample program to send email
    Hope it will help
    Thanks,
    Arjun
    Pl. Reward points........................

  • When I try to save a form as "Reader Extended PDF" in Acrobat Pro, I get an error message "This document could not be reader enabled".

    Hello,
    When I try to save a form as “Reader Extended PDF” in Acrobat Pro, I get an error message “This document could not be reader enabled”.
    The steps I’m following are described below:
    1.    Insert electronic signatures
    - In Tasks, click on “Add New Field -> Digital Signature”.
    - Move the square to the place where you want to put the signature and click.
    - Fill in the “field name” with the name of the person who has to sign here.
    - When it is done, click anywhere on the screen.
    - In Tasks, click on “Close Form editing”.
    - Go to menu “File -> Save as -> Reader Extended PDF ->Enable additional features”, click on “Save now”.
    - Fill in the file name and click on “Save”.
    2.    Save the Form
    - In Tasks, click on “Close Form editing”.
    - Go to menu “File -> Save as -> Reader Extended PDF ->Enable additional features”, click on “Save now”.
    - Fill in the file name and click on “Save”.
    I am using Adobe Acrobat Pro 10.0.0 on a W7 workstation
    Here's a screenshot of the problem.
    Thanks a lot.
    Gael

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • Deleting Limit Items on PO even though follow on documents exist

    Dear SRM Experts
    I am hoping someone can explain the below behaviour:
    Where PO's have follows on documents i.e. confirmation and /or invoice you cannot delete PO's items on a PO. This makes sense.
    However we also have PO's with Limit items(created via limit type shopping carts) and even though the PO's have been confirmed and invoiced we can still delete the items on the PO. Is this standard behavior or a bug?
    Why then can you not delete normal items but can delete limit type items where follow on documents have been posted for a PO?
    Thanks
    Nishad.

    Hi
    Which SRM version are you using ?
    Incase of Limit Items, it is a bug.
    We have raised a similar issue with SAP some time back and still waiting for SAP to get back on this.
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Follow-on documents are not visible in MIRO in TEST server, awsys = PRD300.

    Dear Experts ,
    The Test Server was refreshed around mid-June 2011 with data of
    Production Server. The follow-on documents are not visible for the
    invoice documents in MIRO in TEST server due to value in tables
    BKPF,RBKP : field : AWSYS = PRD300 .
    The newly created Purchase Orders after the refresh, the accounting
    documents can be seen for the Goods Receipt (MIGO_GR-display) and
    Invoice documents (MIRO).
    we had already raised this issue in March & got the feedback from SAP
    as shown below.
    accordingly we have developed & run the program "zzlogsys2" which
    updates the Logsys/Awsys field from PRD300 ( of production server ) to
    that of the current server i.e. TST300 as required.
    after which the FI documents for the material documents are visible in
    MIGO,but follow-on documents are not visible for the invoice documents
    in MIRO.
    we have Checked notes 781498 and 28958 to see if the logical system is
    correctly assigned , where we found that in table RBKP after entering document number, Fiscal Year , the
    Field AWSYS is "PRD300" & not "TST300" as it should be. We will take up the activity of updating table RBKP
    also as we are currently doing for tables MKPF & BKPF.
    But to have clear picture as to what we are doing is correct , pl
    advise about the following :
    1) Is it a correct process done by our SAP-Basis team , that every time
    any Server ( e.g. Test or Quality ) is refreshed with Production server
    data, the Field AWSYS in various transaction tables gets value as
    "PRD300" which then is required to replaced by running program such as
    ZZlogsys.
    REPORT ZZLOGSYS.
    TABLES: T000, MKPF.
    DATA: NEW_SYS LIKE MKPF-AWSYS.
    PARAMETER: OLD_SYS LIKE MKPF-AWSYS.
    SELECT SINGLE * FROM T000 WHERE MANDT EQ SY-MANDT.
    NEW_SYS = T000-LOGSYS.
    CHECK NOT NEW_SYS IS INITIAL.
    UPDATE MKPF SET AWSYS = NEW_SYS
    WHERE AWSYS = OLD_SYS.
    WRITE:/ 'Number of updates: ', SY-DBCNT.
    2) if the above process is correct & normal , then which are the other
    tables in a particular server ,apart from tables MKPF,BKPF,RBKP , which
    needs to be updated the value of field "AWSYS" in the same way
    replacing value "PRD300".
    3) if the process in point no. 1 is not correct , then what is the
    correct process that the Basis team can do while refreshing any target
    server with production data so that target server retains its value in
    Field AWSYS & not showing "PRD300".
    With 3 servers TEST,DEV & Quality , recently refreshed with production
    server to bring all servers in Sync for a HR patch application, we have
    this situation now in all 3 servers .
    Thanks in advance ,
    Anil Shanbhag

    It is appropriate to move this thread from ERP-MM to [Enterprise Resource Planning (ERP)|Enterprise Resource Planning (SAP ERP);
    Edited by: Jeyakanthan A on Jul 7, 2011 4:56 PM

  • Creation of a follow-up document

    Dear experts,
    In the Web IC, I would like to create an activity as a follow-up document of another contact.
    In the "Follow-up" block, I select my transaction type and then click on the "Follow-up" button.
    Then I can access my new contact by clicking on the link In the "Activity Clipboard.
    But I'd like to access my new activity directly when I click the "Follow-up" button. The click should launch the creation of the activity.
    Does anybody know how to customize this?
    Thanks a lot for your helpfull information.
    Pascale

    Hello Pascale,
    "Follow-up" button is present to enable a quick creation of follow up.
    That is end user can just input those limited fields, and click on this button to create the document without going into the detail.
    And at the same time, standard IC do provides another link to the detailed follow up documents to enable user add more detail.
    The link "Follow-up Details" can realize such purpose and should be the one you are asking for.
    The steps are:
    - select the transaction type in the drop down;
    - click on "Follow-up Details" link, this lead to another page of the detailed activity creating, only at this time the activity is being created;
    - click on the Back button without save, you will return to the previous screen, and get the link in Activity Clipboard for future access;
    Hope I have understood your requirement correctly!
    Hongyan

Maybe you are looking for

  • Goods Return can't copy to AP Credit Memo

    Hi, We had customer who is operating in computer gadget. The store keeper is returning stock to supplier by issuing Goods Return with old unit price. When suppliers issues AP credit memo to the customer, the unit price differs. Customer is copying Go

  • Errors and slow performance copying lots of files between large hard drives

    After upgrading to Snow Leopard, I have VERY slow file transfer speed with external eSATA drives. While trying to upgrade from a 1.5TB drive to a new 2TB drive, the copy took almost 24 hours and then failed on a large Fusion virtual OS file. So I rem

  • What should I convert my .mod file into to edit in imovie hd 5. ?

    I have a JVC Everio GZ-MG505(japanese model)the ultra fine setting records at 720*576 pixels, 8.5 Mbps with 48kHz, 384 kbps audio The .mod files stored on the hard drive is some kind of Mpeg-2 with Dolby(2 ch) annoyance! I have freeware called 'steam

  • How to audit every form in the system

    Hello World, I have an idea to create a table to keep all the transactions history for all the tables like insert,update and delete. and to keep the form name and who did the transction too. anyone have this? or any idea to do this ? regards,

  • Removing Attachments in iChat Transcripts

    I am using iChat to save transcripts of my conversations. I got a 150MB file transfer from a friend today, and I would like to keep the conversation without the file attachment. I don't mind hand editing the file if it comes to that, but I want to ge