Biiling with reference to external documents

Is it possible to create invoice with reference to the external documents (from SAP Real Estate) automatically in SD?  Please advise.
Thanks,
ak

If you want to preserve the xml exactly as is, then store it as varbinary(max).  This will of course mean you can't use the features of the xml datatype.
USE tempdb
GO
DROP TABLE [dbo].[XmlTest]
GO
CREATE TABLE [dbo].[XmlTest] ( xml XML, vbin VARBINARY(MAX) )
GO
DECLARE @xml NVARCHAR(MAX);
SET @xml = '<!DOCTYPE R [<!ELEMENT R (#PCDATA)> <!ENTITY ndash SYSTEM "http://localhost/ExEnt.ent">]><R>&ndash;</R>';
INSERT INTO [dbo].[XmlTest] VALUES(CONVERT(XML, @xml, 3), CONVERT(VARBINARY(MAX),@xml));
GO
SELECT *, CAST( VBIN AS nvarchar(MAX))
FROM [dbo].[XmlTest]
Is that an option for you?

Similar Messages

  • With reference to which document Delivery is created in Sub contract

    Hi Friends
    With Reference to  which document delivery document is created in subcontract process .
    through which T code I can see this reference  document .
    Suppose , there are 10 quantity in delivery document , where can I see this 10 numbers  are from in delivery document .
    In delivery ,in subcontract process , from which document , delivery quantities are  copied from . And what should I do in order to avoid over delivery in subcontract process .
    Pala

    Hi,
    Delivery is created with reference to Purchase order for subcontracting, to view  the delivery check  in purchase order history it displays the delivery double click on the delivery.Check in VL02N.
    Delivery quantity are copied from Purchase order,
    To avoid over delivery in subcontract process in material master purchasing view there field called purchase value key which controls this.
    Regards
    Ravi Shankar.

  • Collective posting of Inbound Delivery with reference to External ID

    Hi,
    I have created few Inbound Delivery (for different PO) with same External ID reference.
    Now when I try to process these Inbound Delivery through T. Code: VL06IG with reference to External ID, system doesnot consider any Inbound Delivery.
    The External Identification Type used is "Free usage".
    I have checked in the Inbound delivery all the informations are correctly copied. for e.g. the storage location, etc. Also the Storage location is WM activated
    Can you please help me if I am missing any settings.

    First of all I want to clarify this transaction will pick deliveries which are ready for goods receipt.Tat means pick and confirmation should be completed.Now you have to check all your inbound deliveries which has same external id Picking and confirmation completed ?.If yes are you entering same test external id which is in delivery in report.Just copy test in delivery and paste the text in report.System will pick those deliveries.Text is case sensitive.so you should type text correctly.I have tested your scenario and it is working fine.

  • Creation of Purchase requisition with reference to Contract documents

    Dear All
    I am not able to create the Purchase requisition with reference to Contract documents, in outline agreement field if I enter the contract document number which is already existing it is not copying the details, again I have to enter all the details like Plant, Material, document type, Qty etc.  Even after selecting the PR document type as RV for outline agreement also it is not coping. Kindly let me know that can we not able to give reference of Contract number in this outline agreement field to create Purchase requisition.
    regards
    Dhanu

    1.Logistics--Materials Management--Purchasing ---Purchase Requisition --Follow-on functions --- Assign and Process
    2.ME57
    3.Select the Assigned Purchase Requisitions checkbox if you also want to see requisitions already assigned, and choose Execute.
    4.On the Assign and Process Purchase Requisitions screen, select the requisition lines for your material.
    5.Choose Assign Manually if the info record already exists.
    6.On the pop-up Assign Source of Supply Manually dialog box, make the following entries:
    Agreement     46XXXXX            Agmt item     10          
    7.Choose Assign Source of Supply.
    For assign the source of supply, you can also choose Assign Automatically (only if not already assigned by MRP due to existing source list). If more than one source exists, select the contract in the Source Overview for Purchase Requisition 100XXXXX window and confirm with Enter.
    When assigning a source, make sure to select the contract.
    8.Choose Save.
    9.Select the line item, and then choose Assignments Overview (SHIFT+F5).
    10.On the Assign and Process Requisitions: Overview of Assignments screen, select the line below Vendor (you can only select one at a time), then choose Process Assignment.
    11.On the Process Assignment: Create PO window, check and make sure the Order Type (NB), Purchasing Group and Purch. Organization fields then choose Continue (Enter) to confirm.
    12.On the Create Purchase Order screen, select the requisition in the Document Overview section and choose Adopt in the left part of the Document Overview screen.
    13.Choose Save.

  • Credit Memo request with reference to Billing Document number via IDoc

    Hi,
    I want to create credit memo request with reference to billing document number via IDocs.
    I have tried through ORDERS05, but when I process I saw that it is only processing with reference to contract  number or quotation.
    So is any other way of creating credit memo request creation with reference to Billing document number via IDocs?
    Thank you in advance.
    Regards,
    Santhi

    Please Help... it is Urgent...  Thank you

  • Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER

    Hi,
    How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
    Thanks in advance,
    Alejandro.

    I have to create sales order with reference to existing billing document. I have tried to following bapis.
    1. BAPI_SALESORDER_CREATEed
    I have successfully created document with following details.
    -->ORDER_HEADER_IN:
    DOC_TYPE =                  ZRK
    SALES_ORG =              3000
    DISTR_CHAN   =            00
    DIVISION =                    00
    ORD_REASON =            100
    SD_DOC_CAT   =          L
    CURRENCY       =         EUR
    REF_DOC          =         100000028
    REF_DOC_CA    =         M
    -->ORDER_ITEMS_IN:
    ITM_NUMBER    =           000010
    MATERIAL          =          701791
    TARGET_QTY     =          0000000001000
    CURRENCY        =          EUR
    REF_DOC           =          100000028
    REF_DOC_CA     =          M
    -->ORDER_PARTNERS:
    PARTN_ROLE      =          SP
    PARTN_NUMB      =         W12001
    COUNTRY             =         NL
    by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in  ORDER_ITEMS_IN
    COND_TYPE          =        PNET
    COND_VALUE        =        14,56
    COND_D_UNT        =         PC.
    folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
    is it something related to configuration problem?
    2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
    I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
    Unpermitted combination of business object BUS2032 and sales doc. category L.

  • Goods Issue with reference to Material document

    Hello,
    I would like to create Goods Issue with reference to material document (Transfer Posting document) , but the following message appears :
    "Selected material document does not correspond with action to be executed".
    Is it possible to create Goods Issue with reference to Transfer Posting (mov.type 311 - from stor.loc. to stor.loc.)  ?
    Thanks

    Thanks,
    probably I'll have to find another way to solve this business requirement of copying the transfer document data in GI.
    We have an auto created transfer postings via interface from another system and the main idea was to use already entered fields in transfer posting document such as material , quantity , text , goods recepient , etc. and not to enter them twice when GI should be created. In our case (it's a case for certain materials) it's always 1:1 relationship, so the idea was to facilitate the job of creating the GI, because GI should contain the same data as in transfer posting document.

  • Credit/Debit Memo Request with reference to Billing document via IDoc

    Hello Experts,
    It seems SAP doesn't support Credit/Debit Memo Request with reference to Billing document via IDoc. Via IDoc, we can create sales document only with reference to contract or quotation but not with reference to billing/invoice document.
    Wanted to check if anybody came across such requirement and what would be the best way to acheive (Other than custom program using BAPI).
    Additional Information: Its ECC 6.0 Environment with AFS 6.03
    Appreciate your help.
    Thanks,
    Shekhar.

    Please Help... it is Urgent...  Thank you

  • Posting MIRO with reference to MIGO document number

    Hi,
    Is there any way of posting a vendor invoice in MIRO, taking MIGO document number as the reference instead of PO or Delivery Note reference?
    Muru

    Hi,
    In MIGO you mention the delivery note in the header part.
    There is a drop down in MIRO transaction where we enter PO number, please check and you will find the "Delivery Note" option in the drop down list.
    you can do the MIRO with reference to this Delivery Note number from this option.
    (Just make sure, that you have selected the "GR based IR" indicator in the PO line item.)
    Doiong MIRO with reference to material document number of MIGO is not possible in standatd SAP.
    Regards,
    Gaurav

  • Invoice verification with reference to billing document in cross company

    Hi Gurus,
    We need to do "Invoice verification with reference to billing document in cross company code scenarios".
    At present I am processing through MIRO by calling the PO.
    What is the alternative for this and how to do it?
    Thnx

    Hi
    It is not possible to do the invoice with reference to billing document.
    You can create the Invoice referncing the PO used for STO or the delivery note (as mentioned in the Material document) or directly on the vendor.
    Thanks & Regards
    Kishore

  • Credit Memo request with reference to billing document

    Dear all,
    I am having a requirement to create credit memo request with reference to Billing document. But the issue is, I have separate pricing procedure for normal sales to billing, and different pricing procedure for CMR to Credit memo.
    When I am creating CMR with reference to Billing document it copies the pricing procedure, Please suggest how to block pricing procedure to get copied. (please note that B: redetermine pricing, is not working in this case)
    Suitable points for valuable answers guerenteed.
    Regards
    Bidhu

    Hi,
    In VTAF maintain the folowing parameters,
    HEADER
    053,103 and 03 in the Data T in this order from top to bottom,maintain 021 in the billing header box and check the copy item number box.
    ITEM
    153,104,004 in the Data T in this order from top to bottom,maintain 303 in the copying requirements box and pricing type E.
    This should resolve your issue.

  • Create with reference where original document is incomplete

    Hi Guys
    We use variant configuration as part of our sales order process. Within the VC we have 'discontinued' validation i.e. a component of the configuration may be discontinued and therefore unavailable. In this case, we would want to lock the configuration, reject the order item and create a new order item for a different component. We do not wish to delete the order item because of the effect this has on BI sales reporting.
    However, if we later wish to create another document (such as a FOC replacement) with reference to this document we receive an error message to the effect that the document being referenced is incomplete and cannot be used as a reference.
    Does anyone know of a way of being able to copy complete items only during create with reference or being able to set the status of an incomplete ('being processed') item to complete.

    "Incomplete" and "being processed" are two different things. If document is "incomplete", there are some fields that are required and must be filled in before the document may be processed any further. As correctly pointed out above, such fields will appear in the incompletion log.
    There is no way to work around the incompletion procedure. If you need to make the field required only in certain situations, you might want to take it out of the incompletion procedure and add a user exit instead.
    If an order is displayed as "being processed", this means that one of the statuses (see Status tab on header and item level) is "partially processed". Normally setting the rejection reason updates the overall item's status (not to be confused with the header's status) to "complete", but I've heard of some cases when for some reason this does not happen. Unfortunately, I don't recall if there was any solution.
    Hope this helps.

  • Copy of attachement in Post with reference and recurring documents

    Hi Gurus,
    While using Post with reference and recurring documents, can we also copy the attachment from the source document?
    Please revert asap
    Thank You

    Hi,
    How you been able to create attachments for a recurring document at all?
    I  could not create any attachment.
    Miroslav

  • XML document in CLOB with reference to external DTD

    If you place the xml document in clob using dbms_lob and the document has reference to external (system) DTD then it gives an error 'Error opening external DTD'. Whats the work around. See example below...
    declare
    xmlstring CLOB;
    xmlstring1 CLOB;
    os_file BFILE := bfilename('BFILE_DIR','family.xml');
    > > > rowsp INTEGER; > > > errnum NUMBER; > > > errmsg VARCHAR2(2000);
    > > > time VARCHAR2(20); > > > begin
    > > > select to_char(sysdate,'MM/DD/YYYY HH24:MI:SS')
    > > > into time from dual; > > > dbms_output.put_line(time);
    > > > dbms_lob.createtemporary(xmlstring, true, > > > dbms_lob.session);
    > > > dbms_lob.fileopen(os_file, > > dbms_lob.file_readonly);
    > > > dbms_lob.loadfromfile(xmlstring, os_file,
    > > > dbms_lob.getlength(os_file));
    > > > select to_char(sysdate,'MM/DD/YYYY HH24:MI:SS')
    > > > into time from dual; > > > dbms_output.put_line(time);
    > > > xmlgen.resetOptions; > > > xmlgen.setRowTag('family');
    > > > --xmlgen.setIgnoreTagCase(xmlgen.IGNORE_CASE);
    > > > rowsp := xmlgen.insertXML('family',xmlString);
    > > > dbms_output.put_line(' Rows processed = '&#0124; &#0124; > > > TO_CHAR(rowsp));
    > > > dbms_lob.freetemporary(xmlstring);
    > > > dbms_lob.fileclose(os_file); > > > commit; > > > exception
    > > > when no_data_found then > > > rollback;
    > > > dbms_lob.freetemporary(xmlstring);
    > > > dbms_lob.fileclose(os_file); > > > errnum := abs(SQLCODE);
    > > > errmsg := SQLERRM;
    > > > dbms_output.put_line(errnum&#0124; &#0124;'----'&#0124; &#0124;errmsg); > > > when others then
    > > > rollback; > > > dbms_lob.freetemporary(xmlstring);
    > > > dbms_lob.fileclose(os_file); > > > errnum := abs(SQLCODE);
    > > > errmsg := SQLERRM;
    > > > dbms_output.put_line(errnum&#0124; &#0124;'----'&#0124; &#0124;errmsg); > > > end;

    Can be one of two problems.
    One
    Your database user does not have
    privileges to open a socket inside
    the database. This will prevent
    the XML parser running inside the DB
    from retrieving the DTD which it must
    do to properly parse the document.
    Two
    you are sitting behind a corporate
    firewall and need to properly set
    the Proxy Server host and port to
    properly retrieve the DTD.
    From looking at your code it would appear
    that your job can more easily be done by
    using the OracleXML putXML command line
    utility outside the database.
    You can specify the -D options to your
    JavaVM to set the System properties for
    the proxy server if need be like this:
    java -DproxySet=true -DproxyHost=yourproxyserver OracleXML putXML

  • Creating a Credit memo with reference to Billing document

    Hi All,
    I am creating a Credit memo say CM by with reference to a Billing document say B.The Billing document has been created from a Contract say C.
    Now while creating the CM the contract dates need to be copied from C to the contract data screen of CM.
    I have used Copying control Billing Document to Sales Document for achieving this.
    I have edited the VEDA(Contract data) in the routines 302,303,402 etc. but its not reflecting in Contract data of CM screen neither at header level nor item level.
    Please help me in resolving this.
    Replies appreciated.
    Thanks and Regards,
    Blessy

    Dear Rupak,
    Your price / Quantity is copying correctly from Billing means your Copy Control settings are proper.
    Now while creating Credit Memo Request, after you change Quantity you are currently selecting Update & "B" - i.e. Carry out new pricing.
    Here instead of "B" select "A".
    A means - Copy price components and redetermine scales.
    Here the system:
    1. does not determine any new condition types
    2. and only redetermines the scale prices for changed quantities
    I guess this will definitely solve your problem.
    Hope this helps...
    Thanks,
    Jignesh Mehta

Maybe you are looking for

  • HT4356 AirPrint issue

    I have a HP LaserJet Pro 100 color MFP M175nw that worked fine for over a year.  Now when I try to print from an iPhone or iPad I get a message 'No AirPrint printer found'. I can print wirelessly from my iMac and email to the printer through HP.

  • I just recieved a new ipod and i cant get it to work on tv

    I recently recieved an ipod 5th generation, and inside the case it came with the audio adapter for the tv, but the other end that connects to the ipod is a small usb adapter. my ipod only comes with the big charging connector on the bottom. the only

  • Getting back to NW.

    Hello to all, For the past few years I have been away from administering NW.. The last time I was responsible for NW, it was NW 5.1 with no Zen.. So I am now just getting back to administering a NW 6.5, which has zen included.. Here is what I would l

  • Using the Teststand API to create a .tpj file

    Hello, I'm looking for an example on how to create a teststand project file with the API. I cannot find a methode or property to create it, and add the project file(s) to a workspace. I've tried with PropertyObjectFile (Classe) without success. Let m

  • I am thinking of updating my iMac (OSX v10.6.8) to 10.9...

    But I do not have a portable hard-drive to save all my data separately. As my iMac is 1TB, its quite hard to find a reliable portable hard-drive that's both durable and reliable. I really would like to update to 10.9. To my knowledge, I have absolute