XML file to B1 Sales Quotaion

hello,
I am trying to insert a sales quotation in XML file format into SAP B1.
In the message log i get an error : Value too long in property 'CardCode' of 'Document'
every time i use an Item code or a card code containing Hebrew characters , i get garbage in the message:
i defind the B1 sender system language to Hebrew and i don't see the reason for the problem.
thanks, udi

Hi Eddy,
I only get the error message in hebrew.
i tried a sales quotation where the customer code and item code were in english and it loaded succesfully.
thanks, udi

Similar Messages

  • Regarding xml file sequence and sales order sequence not equal

    Hi frnds,
                                     The XML File generates after sorting the line items, the sorting is done alphabetically on material master codes but the when the program converts the XML to Sales orders, the line item numbers does not matches with the line item of the XML File, like to understand how the XML conversion happens and is it possible to keep the same sequence of the XML file?
    Regards,
    Jaya.

    And This is a xml details to read
    <ENV:Envelope TransactionID="234567" xmlns:ENV="schemas-hiwg-org-au:EnvelopeV1.0">
         <ENV:SenderID>ABC</ENV:SenderID>
           <ENV:RecipientID>XYZ</ENV:RecipientID>
           <ENV:DocumentCount>1</ENV:DocumentCount>
         <Documents>
              <PurchaseOrder RecordType="10" xmlns="schemas-hiwg-org-au:PurchaseOrderV2.0">
                     <TradingPartnerID>C42000</TradingPartnerID>
                     <MessageType>ORDERS</MessageType>
                     <VersionControlNo>2.0</VersionControlNo>
                     <DocumentType>220</DocumentType>
                </PurchaseOrder>
           </Documents>     
           <Document_Lines>
              <row>
                   <ItemCode>Nylon Black</ItemCode>
                   <Quantity>2</Quantity>
              </row>
              <row>
                   <ItemCode>Nylon White</ItemCode>
                   <Quantity>3</Quantity>
              </row>
         </Document_Lines>
      </ENV:Envelope>
    But this event is fileted with this result message
    "Mapping from LocalObjectType Envelope to object Type failed."
    I've tried to use ENV:Envelope logical objecttype instead of Envelope. But result is same.
    I hope someone can help me
    Thanks

  • Xml file to B1 Sales Order

    Hi,
    I'd like to read xml file which is not standard B1 xml file and created new sales order.
    Thi is a data mapping xsl tempate
    <xsl:template match="b1im:B1IMessage/b1im:Body/b1im:Payload[./@ObjectTypeId=&apos;Z.F.AnySystem_FileIn&apos;]">
      <BOM>
        <BO>
           <AdmInfo>
              <Object>17</Object>
             <Version>2</Version>
          </AdmInfo>
         <Documents>
           <row>
              <DocDate>20100617</DocDate>
             <DocDueDate>20100617</DocDueDate>
            <CardCode><xsl:value-of select="Envelope/Documents/PurchaseOrder/TradingPartnerID"></xsl:value-of></CardCode>
         </row>
       </Documents>  
       <Document_Lines>
         <row>
         <xsl:for-each select="Envelope/Document_Lines/row">
         <ItemCode><xsl:value-of select="ItemCode"></xsl:value-of></ItemCode>
         <Quantity><xsl:value-of select="Quantity"></xsl:value-of></Quantity>
         <Currency>USD</Currency>
            <Rate>1</Rate>
                                  <TaxCode>0</TaxCode>
                             </xsl:for-each>
                             </row>
                        </Document_Lines>
                   </BO>
              </BOM>
         </xsl:template>

    And This is a xml details to read
    <ENV:Envelope TransactionID="234567" xmlns:ENV="schemas-hiwg-org-au:EnvelopeV1.0">
         <ENV:SenderID>ABC</ENV:SenderID>
           <ENV:RecipientID>XYZ</ENV:RecipientID>
           <ENV:DocumentCount>1</ENV:DocumentCount>
         <Documents>
              <PurchaseOrder RecordType="10" xmlns="schemas-hiwg-org-au:PurchaseOrderV2.0">
                     <TradingPartnerID>C42000</TradingPartnerID>
                     <MessageType>ORDERS</MessageType>
                     <VersionControlNo>2.0</VersionControlNo>
                     <DocumentType>220</DocumentType>
                </PurchaseOrder>
           </Documents>     
           <Document_Lines>
              <row>
                   <ItemCode>Nylon Black</ItemCode>
                   <Quantity>2</Quantity>
              </row>
              <row>
                   <ItemCode>Nylon White</ItemCode>
                   <Quantity>3</Quantity>
              </row>
         </Document_Lines>
      </ENV:Envelope>
    But this event is fileted with this result message
    "Mapping from LocalObjectType Envelope to object Type failed."
    I've tried to use ENV:Envelope logical objecttype instead of Envelope. But result is same.
    I hope someone can help me
    Thanks

  • Using a Global Session to find data in an XML file in Repository

    Ok, here is the scenario:
    1. We issue a company iPhone to each Field Sales Rep
    2. Each Sales Rep has an assigned Sales Support Rep in the Contact Center.
    3. When a Sales Rep calls the Contact Center from their company phone, we try to route them to their designated Sales Support Agent (if that Rep is available, if not they go to the Queue and wait for next available Sales Support Agent).
    At first we had all entries in 1 xml file but our Sales Force soon grew larger than we could accomodate in one xml file (my testing found a lookup limit of 121 rows in the xmfl file).
    I changed the script logic to first look at the area code and then do a lookup into one of 3 xml files based on the area code. For example, the first file contained all phones with area codes up to 350, the 2nd file for numbers with area codes from 351 to 700, the 3rd file for numbers with area codes from 701 to 999.
    The problem is that the script utilizes the Create XML Document function to search the xml files. This has resulted in the following condition:
    Error: It is not recommended to update the application as
    Engine heap memory usage exceeded configured threshold
    Do I create a global session for each xml file to hold that file's data?
    Do I just replace the "Create XML Document step with a subflow step to the appropriate global session for each xml file?
    Thanks in advance for help and or clarification.
    The recommended solution is to utilize global session variables to store the contents of the xml files.
    I found the following thread discussing just such a situation:
    https://supportforums.cisco.com/thread/2047722
    I have downloaded Anthony Holloway's global session subscript but I am still unclear exactly how I utilize it in my base script.

    Ok, I just noticed that my initial post comes up somewhat out of sequence. The very last questions I had (after the included graphic) ended up before the graphic. Here are the questions I had:
    Do I create a global session for each xml file to hold that file's data?
    Do I just replace the "Create XML Document" step with a subflow step to the appropriate global session for each xml file?
    Thanks in advance for help and or clarification.

  • Regarding sales order not created in xml file format

    Hi Friends,
                       I have the xml file,I sort the xml file alphabetically on material master codes, WHen program try to create the sales order by using this xml file through call transaction method, the line item numbers does not matches with the line items of xml file.
    I want same sequence.Please suggest me..
    Best Regards,
    SHialpa.

    HI Divya,
    Have u uninstalled Acrobt Reader from your system???
    Regards
    Manoj S

  • 2 or more Sales Quotatons in one XML file

    Hi,
    i wanted to know if i can tranfer 2 or more sales quotations to SB1 using only one XML file or do i have to split so that every sales quotation will have a seperate XML file?
    Thanks, udi

    The person just opened some additional window using Window > New window. Perhaps to have different Views of the file and not having to scroll all the time.
    You can easily fix it by just closing the windows. It does no harm to the file. When you save with only one window open, next time you open will also be one window.

  • Howto transform a Sales Order (idoc) into xml file and download it?

    I need to tranform a Sales order into an xml file such that I could download the file onto my disk. I try to transform an IDOC.
    I do the following from an example and I get an xml document on screen but I do get get any file downloaded:
    DATA: document TYPE REF TO if_ixml_document.
      document = g_ixml->create_document( ).
      DATA: ostream TYPE REF TO if_ixml_ostream.
    ostream = g_stream_factory->create_ostream_uri(
      system_id = 'file://C:\test.xml' ).
      DATA: renderer TYPE REF TO if_ixml_renderer, rc TYPE i.
    renderer = g_ixml->create_renderer( ostream  = ostream
                                          document = document ).
      rc = renderer->render( ).
      document->render( ostream = ostream  recursive = ' ').
    Is there something else I should do? Is there another approach for transforming a sales order to an xml file.
    The R/3 4.6 system is used.
    Thank you
    -eglese-

    Hi Eglese,
    Another option could be to use XML port configured for the IDOC and use the XML files generated be extracted from Web Dynpro using a file download UI element.
    Thanks and Regards,
    Sam Mathew

  • EC SALES LIST - Belgique: XML file: Content not accepted in prolog

    Hy tou you all,
    We've implemented all Ec sales list note oss for Belgium but at the upload in the delcaration vat system the xml file is not accepted : "Content not accepte in prolog"; Did this message encured to you ?
    Thanks,
    TF

    HI,
    I hope you are asking about below legal changes
    http://www.minfin.fgov.be/portail2/fr/e-services/intervat/calendrier.html
    and SAP DS colleagues are working on same and they are planning to release the note
    within soon.
    For same information will check the service market place.
    Thank you.
    Regards
    Madhu M

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • XML Files in %TEMP% folder when CONNTRANS is ran in Mobile Sales

    Hello Mobile gurus...
    Hope someone can help, I have had a couple of users who are not getting data they should be, for example Opportunities:
    When I have investigated their client it appears that there are a number of OPPORTUNITY_WRITE****************.XML files in the local users\Temp folder, these files contain the information that should have gon einto the IDES database and be viewed on the client.  I have not come across this before...
    I have re-extracted the subscription after deleting these but some, not all, re-appear and don't sync into the client database.
    I have alos uninstalled and re-installed the client software SQL etc.
    Can someone shed some light on what these files are and what is going on...???
    This is not only Opportunities but also Customers/Contacts and Activities - all listed as XML files
    Kind Regards
    Barry Dixon

    Hello Barry,
    In your registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\MSA\MW\TL check if you have these settings :
    TL_TRACE = 1
    TL_SOAP = 3, helps in formation of <BDoc_GUID>.xml files
    SPT_IMPORT = -1 , This entry ascertains that if there are errors in BDoc processing by Conntrans, it would stop.
    RCV_TRACE = 1
    Maintain these settings and do an extract and run conntrans again. I feel the import phase of conntrans causes issues, so you can check the log file TL_TRACE.dat.
    Another thing you can check is with the RootConfig.cfg file in Bin.Net. Just make sure that the first application mentioned in this config file with tags 
    <Application>
          <Name>MSA</Name>
          <Path>C:\Program Files\SAP\Mobile\App.Net\MSA</Path>
    </Application>
    is proper and runs perfectly. Verify the path names as well.
    Thanks,
    Rohit

  • How to retrieve elements from 3 different xml file in one url

    Hi all,
    Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
    i just can only do it with one file only, any help would very appreciate.
    Thank in advance
    Jim

    Hi Philip
    Thanks for replying me.
    I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
    SELECT
    {[Measures].[Internet Sales Amount] } ON 0,
    NON EMPTY
    {[Customer].[Gender].allmembers } ON 1 -- Used
    FROM
    [Adventure Works]
    WHERE
    [Customer].[Gender].&[M]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].&[XL]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].&[Australia]
    Can you provide alternate ways to get resolved.
    Thanks in advance

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • How-to use Excel for the XML file input?

    Hello all,
    Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
    In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
    However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
    What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
    The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
    The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
    Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
    <?xml version="1.0" encoding="UTF-8"?>
    <p:MySalesOrderUploadedIntegrationInputRequest xmlns:p="http://001365xxx-one-off.sap.com/YUUD0G3OY_" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MessageHeader>
        <CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
    </MessageHeader>
        <List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
        </List>
    </p:MySalesOrderUploadedIntegrationInputRequest>
    Thank you all for your attention.
    Best regards.
    Jacques-Antoine Ollier

    Hello Jacques-Antoine,
    I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
    But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
    Best regards,
    Leonid Granatstein

  • Reading XML file into Dynamic Node and Display its output as Table.

    Hi All,
    Following is the output of XML file:
       <Company>
         <Employee>
              <Name>John</Name>
              <Age>23</Age>
              <***>Male</***>
              <Location>Frankfurt</Location>
         </Employee>
         <Employee>
              <Name>Tina</Name>
              <Age>21</Age>
              <***>Female</***>
              <Location>Boston</Location>
         </Employee>
         <Department>
              <Name>Sales</Name>
              <HQ>Chicago</HQ>
              <Emplyoees>2300</Employees>
         </Department>     
    I'm able to read the output through DOM parser. But How do I convert this into dynamic node and display this in Web dynpro as Table?
    Any pointers in this regard will be great help?
    Thanks
    Srikant

    Hi Maksim,
    I've used your example and its now helping as there is kind of agreement on that I'll be knowing the structure of Xml and I can fill the nodes.
    But suppose if you have Xml has following structure :
    <?xml version="1.0" encoding="utf-8"?><DATA>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CONTRACT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CREDIT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">EMPRESS</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PAYMENT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PRICE</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    </DATA>
    How we will do in this case?
    Can we have something similar using DOM? Also what is the best method for displaying data being sent in form of XML. And generalize it for cases like this.
    Thanks
    Srikant

Maybe you are looking for