Reference Document Functionality - Complaints

Hi
I am working in CRM 4.0
We want the reference document functionality in PCUI when creating complaints.
When we create complaints directly it gives a warning in PCUI "You have not specified a Reference document"
Is there any standard way to go about it.
What we have thought is that we will add a field in header section which will have the R/3 invoice number.(we have done this part)
Throught this R/3 invoice number we have built a function module than can retrieve the product info for this invoice number(this has also bee done)
How do i populate the product info in item level tab in complaints (header level and item level are in different class).
Secondly how do i add the copy button functionality where i can chosse one or more of existing products in the created invoice.
Am i  following the correct approach or is their an easier way to go about it.
Regards
Asad

Hi,
You can do it in  IMG configuration---MM>Logistics Invoice Verification>Incoming Invoice>Number Assignment>Maintain Number Assignments for Accounting Documents>Document type>Select the document type your using for MIRO>Click on detail>Check Reference number Or   you can use t code  OBA7.
Hope this helps.
Thanks
Kiran
P.S   Pls award points if the answer is helpful.

Similar Messages

  • Search Reference document UI not showing up during complaint creation

    Hello Gurus,
    I am trying to create a Follow Up Complaint from a service request, but when I select my follow up complaint transaction type I am directly navigated to Complaint creation overview page Instead my requirement is I should be navigated to "Search Reference document" UI screen because we wanted to search for ERP Sales Transaction to add items into CRM Complaints.
    I know that it can be achieved from Item assignment block of Complaint transaction but I wanted to the ERP Sales order Search option available.
    for the same Complaint transaction type when I try to create it by clicking on work center "Complaint", I get the "Search Reference document" UI Screen, I want similar screen when I create the complaint as follow up to CRM Service Request as well.
    how do I achieve this?
    Thanks
    Chandu

    Hello Hari,
    Sorry for the delayed Response, will check this BADI and if it helps then I will update this thread
    Thanks
    Chandu

  • Using document function in xsl template - not working in BI Publisher

    Hi,
    I have a requirement where I need to display the data in one xml file based on the contents of a second xml. I am using Oracle BI Publisher 10.1.3.4.1 and template used for report generation is xsl-fo.
    1) ReportData.xml - contains the data xml
    2) ReportFilter.xml - contains the display information.
    I need to display the tags in the ReportData.xml based on the presence , absence of different tags in ReportFiler.xml
    I guess one of the option is to declare 2 datasource as use concatenated datasources. However , I am trying to use the "Document" function that is available in xsl transformation to reference the display xml.
    I have tried the different options for using the document function
    *1) <xsl:variable name="filterCheck" select="document('ReportFilter.xml')"/>*
    Errors out saying : XML-22021: (Error) Error parsing external document: 'Access not allowed : file:/
    C:/OracleBI/oc4j_bi/bin/ReportFilter.xml '.
    *2) <xsl:variable name="filterCheck" select="document('file:///C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
    Errors out saying ; Caused by: oracle.xdo.parser.v2.XPathException: Access not allowed : file:/C:/Or
    acleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml
    *3) <xsl:variable name="filterCheck" select="document('C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
    Errors out saying : Caused by: java.net.MalformedURLException: unknown protocol: c
    at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:153
    *4)<xsl:variable name="filterCheck" select="document('file:/C:/OracleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml')" />*
    Errors out syaying : Caused by: oracle.xdo.parser.v2.XPathException: Access not allowed : file:/C:/Or
    acleBI/xmlp/XMLP/DemoFiles/ReportFilter.xml
    I have placed the document I need to access in all the 3 locations mentioned above
    ie in my
    *1) C folder*
    *2) C:/OracleBI/oc4j_bi/bin*
    *3) C:/OracleBI/xmlp/XMLP/DemoFiles*
    Is there any special permissions that I need to grant to enable access to these files?
    Please let me know if anyone has successfully made the document function to reference other xml documents in BI Publisher.
    Regards
    Sujith
    Edited by: user10979469 on Dec 8, 2009 11:48 AM

    Tim,
    Thanks a lot for the reply. Set the option to enable external document access and it works perfectly.
    Just for other who are looking at this post.
    Go to the Report in BI Publisher
    Click on Configure link on the top right
    Go to the Section FO Processing
    Disable external references - Server value is "True" . Set it to "False".
    Apply changes.
    Restarted the oc4j, just to be on safer side (not sure if this is required)
    The document function will open documents from any location on your machine.
    Thanks again Tim
    Regards
    Sujith

  • Creation of Reference Object in Complaints

    Hi,
    I want to create Ibase component as reference object for Complaint . I debugged through the Order_maintain and tried to fill as like that.
    Please find the  code :
    DATA: lt_refobj_com TYPE  crmt_srv_refobj_comt.
    DATA: ls_refobj_com TYPE crmt_srv_refobj_com.
    DATA: lt_input_field  TYPE  crmt_input_field_tab.
    DATA: ls_input_field TYPE crmt_input_field.
    DATA: lt_field_names  TYPE crmt_input_field_names_tab.
    DATA: ls_field_names TYPE crmt_input_field_names.
    DATA: lt_service_os TYPE  crmt_srv_osset_comt,
          ls_service_os TYPE  crmt_srv_osset_com.
    DATA: lt_crmt_srv_osset_comt1 TYPE crmt_srv_osset_comt1,
          ls_crmt_srv_osset_com1 TYPE crmt_srv_osset_com1.
    DATA: lv_guid_16  TYPE  guid_16.
    **ls_refobj_com-ref_guid  =  '4C43086918AE56A9E1000000AC1447B6' .
    **ls_refobj_com-ref_kind  = 'A' .
    *ls_refobj_com-ib_instance = '566' .
    **ls_refobj_com-ext_refobj = '10000608'.
    **ls_refobj_com-profile_type = 'A'.
    *ls_refobj_com-product_id = '10000608'.
    **ls_refobj_com-guid =  '4C43086918AE56A9E1000000AC1447B6' .
    *ls_refobj_com-mode = 'A' .
    *APPEND ls_refobj_com TO lt_refobj_com.
    ls_service_os-ref_handle = '0000000000' .
    ls_service_os-ref_guid  =  '4C43086918AE56A9E1000000AC1447B6' . ....
    ls_service_os-ref_kind  = 'A' .
    *ls_service_os-mode = 'C' .
    ls_crmt_srv_osset_com1-ref_handle = '0000000000' .
    ls_crmt_srv_osset_com1-ref_guid = '4C4308AF18AE56A9E1000000AC1447B6'.........
    ls_crmt_srv_osset_com1-subject_profile = 'ZSRVCAL'.
    ls_crmt_srv_osset_com1-profile_type = 'A' .
    *ls_crmt_srv_osset_com1-mode = 'C' .
    CALL FUNCTION 'GUID_CREATE'   " *is it necessary? else what guid needs to giv here*
    IMPORTING
       ev_guid_16       = lv_guid_16
    *   EV_GUID_22       =
    *   EV_GUID_32       =
    ls_refobj_com-ref_handle = '0000000000' .
    ls_refobj_com-ref_guid  =  lv_guid_16 .  " 4C56A479560967D6E1000000AC1447B6' .
    *ls_refobj_com-ref_kind  = 'A' .
    ls_refobj_com-ib_instance = '566' .
    *ls_refobj_com-ext_refobj = '10000608'.
    *ls_refobj_com-profile_type = 'A'.
    *ls_refobj_com-product_id = '10000608'.
    *ls_refobj_com-guid =  '4C43086918AE56A9E1000000AC1447B6' .
    ls_refobj_com-mode = 'A' .
    ls_refobj_com-main_object = 'X' .
    APPEND ls_refobj_com TO lt_refobj_com.
    ls_crmt_srv_osset_com1-refobject  = lt_refobj_com.
    APPEND ls_crmt_srv_osset_com1 TO lt_crmt_srv_osset_comt1.
    ls_service_os-osset = lt_crmt_srv_osset_comt1.
    APPEND ls_service_os TO lt_service_os.
    ls_input_field-ref_handle = '0000000000' .
    ls_input_field-ref_guid   = '4C43086918AE56A9E1000000AC1447B6' .
    ls_input_field-ref_kind  = 'A' .
    ls_input_field-objectname = 'SERVICE_OS' .
    ls_field_names-fieldname = 'IB_INSTANCE' .
    APPEND ls_field_names TO lt_field_names.
    APPEND ls_input_field TO lt_input_field.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
        it_service_os   = lt_service_os
      CHANGING
        ct_input_fields = lt_input_field.
    *CALL FUNCTION 'CRM_REFOBJ_MAINTAIN_OW'
    *  EXPORTING
    *    it_refobj_com          = lt_refobj_com
    **   IV_EXTERNAL_CALL       = FALSE
    *  CHANGING
    *    ct_input_field         = lt_input_field
    ** EXCEPTIONS
    **   ERROR_OCCURRED         = 1
    **   OTHERS                 = 2
    *IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    DATA: lt_obj TYPE crmt_object_guid_tab,
          lv_obj TYPE crmt_object_guid.
    lv_obj = '4C43086918AE56A9E1000000AC1447B6' .
    APPEND lv_obj TO lt_obj.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save         = lt_obj
    *   IV_UPDATE_TASK_LOCAL       = FALSE
    *   IV_SAVE_FRAME_LOG          = FALSE
    *   IV_NO_BDOC_SEND            = FALSE
    *   IT_ACTIVE_SWITCH           =
    * IMPORTING
    *   ET_SAVED_OBJECTS           =
    *   ET_EXCEPTION               =
    *   ET_OBJECTS_NOT_SAVED       =
    * CHANGING
    *   CV_LOG_HANDLE              =
    * EXCEPTIONS
    *   DOCUMENT_NOT_SAVED         = 1
    *   OTHERS                     = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    COMMIT WORK.
    Please let me know, where I made mistake?
    Sushant
    Edited by: Sushantbm on Aug 9, 2010 8:15 AM
    Edited by: Sushantbm on Aug 9, 2010 8:17 AM

    has anybody worked on adding referene objects to compliants programmatically?
    Thanks,
    Sushant

  • MIRO - Vendor not changed after change Reference Document Category option

    Hi,
    When are doing MIRO, under PO referance tab --> Reference Document Category --> select Purchase order / Schedulling Agreement option and enter PO number there, then it's line item shows. Other thing is that Vendor of that PO (XYZ) should show in the screen.
    My problem is that when we are changing the Purchase order / Schedulling Agreement option to Delivery Note, the vendor remains same...means same as PO Vendor (XYZ).
    Note: - Same problem in the changing the Delivery Note option to Purchase order / Schedulling Agreement.
    please help...
    Regards...

    We are using ECC 6.0 and we have this functionality.
    I want to clear you that this is happening is some cases not in all.. Most of the cases, it automatically changed the Vendor data...
    plz. tell now...
    Edited by: @ABAP@ on Aug 27, 2009 4:18 PM

  • How to use xsl document() function with LiveCycle XSLT processor

    Hello,
    I would like to use LiveCycle XSLT processor to merge xml documents by using the xsl document() function.
    However, I have not, yet, found  clear reference information on the specifics of how to accomplish in LC. For instance if you have
    a transformation that does merging using a standalone xml editor (such as Oxygen), than what is required to accomplish the same
    using the LiveCycle XSLT service.  How do you specify the URI of the XML document that is specified as an input in the xsl document() function. Your insight is appreciated.   Regards

    Hello Steve,
    I checked the reference that you cited (XSLT Transformation).   The reference omits discussing how to use xlst document() function within a stylesheet.  I think that probably means that feature of xslt technology is not directly available through LiveCycle.  When I find a workaround, I'll post an update...for the user community that might encounter the same issue.  Thank you for your response and insight.  Regards, jb1809

  • Confusion in the reference document in QM03

    Hello,
    I have a Quality Notification the status is NOCO complete and deletion flag is set, with this QN in the reference document. the user had indicated a Purchase order with material document in place. and also they also add Inspection Lot. when i check the inspection lot it has no UD code as of far but reviewing its material document it is different with the same reference purchase order material document in this QN. with two different material document inclosed as reference with this QN can this be a factor why i cannot post the stock amount in this QN which is in QI stock in MMBE to Unrestricted use? how can i will resolve this?
    Guys any solution for this? need help badly.
    I must rephrase my problem, have question what is the function of the Reference document portion in QM01?
    please.
    Thank you
    Ryan
    Edited by: Ryan Lazaro on Jul 31, 2008 8:23 AM
    Edited by: Ryan Lazaro on Jul 31, 2008 10:02 AM
    Edited by: Ryan Lazaro on Aug 1, 2008 5:17 AM

    Dear Ryan lazaro,
    Go to QM02
    1] In the Menu Notification>Function>Deletion Flag>Deslect and save
    Then you see the status Notification in Process.
    2] Reference Notification is only for your reference while creating notification.
    Ex: If youwant to create Q2 Notification, you can put the same type of notification number and you can copy the fields where you can save the time.
    If Inspection Lot is mentioned in the notification with reference notification means it has not created automatically.
    If RR carried means, you have to process the Notification.
    then do the UD.
    Regards
    Hanamanta

  • Reference Document required

    Hello,
    I am looking for a standard Reference document suggested by SAP on
    "How to create a custom application for e-service CR_B2B (Complaints and Returns)".
    I already referred How_To_Create_Custom_App_ECO5200.pdf document and created custom application which of no help. It returned some errors. 
    Just wanted to check if there is any document specific to e-service CR_B2B (complaints and returns).
    Please help.
    Thanks.

    Hi,
    Did you implement PS module in your system?  How were your project stocks reserved?
    Cheers,
    HT

  • Use document() function in xslt

    Hi I want to use the xslt function document() to import a data file into the transformation.
    However I don't seem to be able to import the xml file onto the osb. can this be done ?
    Basically can you use the document() function?
    I've tried googling and searching the docs but i think i'm missing something basic :-)
    Thanks in advance

    Not an answer to the particular point but i've got round the issue by adding a stage which inserts the data xml into the xml document being transformed.
    I then supress the data injected from being copied to the output tree and use a variable which references the data nodes rather than a variable referencing
    an external doc variable name="myvar" select="//injecteddatanode" /> rather than <variable name="myvar" select="document("path/doc.xml")
    The question still stands though : how do you import an xml doc which can then be used by the document function in a transform

  • Secondary XML source via document() function

    Has anyone used the XSLT document function in an XSL-FO template where the file is an URL. We are trying to do this to get extra information for the PO output in an EBS installation without horrible customisations
    eg
    <xsl:text>Person : <xsl:value-of select="document('http://dbsdev11.uk.baa.com:8031/OA_HTML/test.xml')/xxpo:PO_DATA/xxpo:PERSON_ID"/></xsl:text>
    where test.xml is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xxpo:PO_DATA xmlns:xxpo="http://uk.baa.com/oracle/apps/po/info">
    <xxpo:PERSON_ID>120</xxpo:PERSON_ID>
    <xxpo:SERVER_PORT>8031</xxpo:SERVER_PORT>
    </xxpo:PO_DATA>
    and the URL http://dbsdev11.uk.baa.com:8031/OA_HTML/test.xml resolves quite happily when pasted into a browser.
    But nothing comes back when previewing the template in EBS. PDF is produced but Person value is not populated.
    Is the document function supported??
    Rgds
    James M

    Hi Jame
    Document() is supported but what you are trying to do with it is not, i.e.
    document('http://dbsdev11.uk.baa.com:8031/OA_HTML/test.xml')/xxpo:PO_DATA/xxpo:PERSON_ID"/
    will not work. You need to load the doc to a variable and then reference the PERSON_ID element.
    Something like:
    Variable Declaration
    ==================
    <xsl:variable name="news" select="document('http://rss.news.yahoo.com/rss/topstories')"/>
    Value
    ========================
    <?$news/rss/channel/title?>
    regards
    Tim

  • Resolving url after document() function has been called by the xslt

    I am having problems resolving a URI when document() function in my xslt is called. The xml document that is being called has a reference to a dtd that is in another location of the webserver. When document() is called it downloads the xml document then tries to download the referenced dtd from the same location. I get an error kinda like this.
    file:///C:/dev.xsl; Line 15; Column 62; Can not load requested doc: File "http://dev.server.com/templatedata/lhj/story/data/dcr4.5.dtd" not found.
    The DTD is in a different location on the server and that is why it can not find it. I have tried resolving the URL but have been unsucessfull. See my java solution that does not work. How can I fix this? Any assistance will be greatly appreciated
    Java solution
    try {
    TransformerFactory tFactory = TransformerFactory.newInstance();
    tFactory.setURIResolver(new XMLURIResolver());
    Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
    File f = new File(xmlFile);
    FileReader fr = new FileReader(f);
    InputSource inputSource = new InputSource(fr);
    transformer.transform(new SAXSource(inputSource),
    new StreamResult(new FileOutputStream(outPutPath)));
    Vince.

    here is the resolver. The if in never excuted.
    public class XMLURIResolver implements URIResolver{
    public static final String DTD_HREF = "dcr4.5.dtd";
    public Source resolve(String s, String s1) throws TransformerException{
    System.out.println("s = "+ s);
    System.out.println("s1 = " + s1);
    InputStreamReader isr = null;
    try{
    if (s.indexOf(DTD_HREF) != -1){
    System.out.println("Fetching DTD....");
    URL url = new URL("http://mydomain/xml/validation/dcr4.5.dtd");
    isr= new InputStreamReader(url.openStream());
    return new SAXSource(new InputSource(isr));
    }catch(MalformedURLException mue){
    System.out.println(mue);
    }catch(IOException ioe){
    System.out.println(ioe);
    return null;
    }

  • Reference Document

    Is there some kind of reference document available listing
    available functions?
    Thanks,
    Rahul Jain

    Kin,
    Yeah, I'm anxiously awaiting the reference document too. But
    kudos on the excellent data framework overview document that really
    does an excellent job of showing how things work.
    Suggestion for the reference document. Please include
    information for what psuedo elements, like ds_RowNumber, correspond
    to for their javascript equivalent.
    Thanks

  • Utility of XBLNR - Reference document number

    I wanted to understand what exactly is the significance of the field:
    Table - DFKKKO
    XBLNR     XBLNR_KK     CHAR     16     0     Reference document number
    The field value is used in the transaction FPE3 - Display document item "REFERENCE".
    Technical/Functional Utility.
    Relvant answers will be awarded accordingly.

    Hi Rajendra,
    Thanks for the reply.
    The XBLNR is the invoice number. So for all the posting there should be an invoice number sooner or later.
    Invoicing of a lot of FICA documents can be done together so can they have the same number in the XBLNR field.
    Both technical and functional aspect i want to understand:
    Like why and where this field is being used for different scenarios.
    Regards,
    Himansu Roy

  • HTMLB reference document

    Hi,
    Has anybody seen or have a reference document for the HTML business functions developed by SAP i.e. the SAP_Field function. I'm not looking the for standard html business function but those that are used when a template file is generated. Specifically using the HTML Business generation style.
    I'm specifically looking to add a onchange event to a listbox within the standard SAP_field call.
    thanks in advance

    I guess what Gavin was looking for is HTMLBusiness Language Reference for ITS
    and the same can be found here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/5f/1fb05e4aee11d189740000e8322d00/frameset.htm
    the link given by Eddy is for BSPs and the link given by Eyal is for java (for EP).
    Regards
    Raja

  • Free item reference document number not populated in MIGO item screen

    Hi
    I have a requirement where in I would need to populate the reference document number in the MIGO item when I am cancelling a goods receipt in case of free items.
    In standard SAP system we know that it would only be populated when GRbased IV is ticked in PO but in free item PO this is not ticked . So was enquiring if any body knows how we could populate the reference document number at GR cancellation in MIGO item level for free items .

    Hi,
    If you mean the field MSEG-SMBLN, then it is always populated at cancellation, no matter the GR-based IV flag.
    BR
    Raf

Maybe you are looking for

  • How to store the content of a file in oracle table.

    Hello, I have a .xml file in unix , how can i upload the content of that file into a column of a table in oracle?

  • Need help with google search..wont hold a cursor unless I hold down my mouse in English

    search bar will not hold cursor,cannot type any more letters without using the mouse..what is causing this and how can I dtop it..very annoying

  • ABAP centered role assignment not working

    I have been trying to implement ABAP centered role assignment for our users but not really having much luck in gettng it to work. I've been trying to make sense of it by using [the help guide|http://help.sap.com/saphelp_nwmobile71/helpdata/en/d2/3e38

  • Ora-4031 after reducing the max sga

    Oracle 10g R2 and Baan 5c on AIX 5.3 L (p550, 3792M , 4 lcpu) After I reduced the max_sga_size (so to avoid the paging), now I see more ora-4031 (out of shared memory loading library cache object) warnings in the udump trc file, not in alert file. In

  • How do we?

    Hello, I want to identify the elements defined in XML schema. I have XML tables in XML DB (Oracle 9i). I tried to expand the XML tables using sqlplus Desc command. It is going in indeninete level, due to type definition for each XML elements. Do we h