Problems fecthing with xmltable using xmlnamespaces

Hi, I've the following XML save in a table in a XMLTYE field
<ORU_R01 xmlns="urn:hl7-org:v2xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MSH>
<MSH.1>|</MSH.1>
<MSH.7>
<TS.1>200804090000</TS.1>
</MSH.7>
</MSH>
</ORU_RO1>
When I've tried to retrive it using the SQL statment below, it doesn't fetch any record
select m.*
from HA.Hl7_Messages h,
xmlTable
( XmlNamespaces('urn:hl7-org:v2xml' AS xmlns),
'/ORU_R01'
passing h.msg
Columns
CA VARCHAR2(10) Path 'MSH/MSH.1',
CB VARCHAR2(30) Path 'MSH/MSH.7/TS.1',
) m
I used xmlTable WITHOUT namespaces and works fine, but here I think that is a namespace problem. I've tried adding the namespace (eg,/xmlns:ORU_RO1) in different ways but nothings happens.
Any idea?

<ORU_R01 xmlns="urn:hl7-org:v2xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Your document is namespaced indeed, and you chose to define your namespace as the "default" namespace in the document, but don't confused xmlns to be your namespace prefix. It's not.
select m.*
from HA.Hl7_Messages h,
xmlTable
( XmlNamespaces('urn:hl7-org:v2xml' AS xmlns),
'/ORU_R01'
passing h.msg
Columns
CA VARCHAR2(10) Path 'MSH/MSH.1',
CB VARCHAR2(30) Path 'MSH/MSH.7/TS.1',
) mI'm not familiar with XmlTable, but http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/img_text/xml_namespaces_clause.htm shows it should be zero or more "string AS prefix", and an optional "DEFAULT string" part. xmlns is not a valid namespace prefix (it's part of the XML Namespace Spec), so use another prefix (and use it in your XPath's), or try the DEFAULT expression, which sounds like it allows declaring the default namespace for the query.
So try either: elect m.*
from HA.Hl7_Messages h,
xmlTable
( XmlNamespaces('urn:hl7-org:v2xml' AS hv2),
'/hv2:ORU_R01'
passing h.msg
Columns
CA VARCHAR2(10) Path 'hv2:MSH/hv2:MSH.1',
CB VARCHAR2(30) Path 'hv2:MSH/hv2:MSH.7/hv2:TS.1',
) mor elect m.*
from HA.Hl7_Messages h,
xmlTable
( XmlNamespaces(DEFAULT 'urn:hl7-org:v2xml'),
'/ORU_R01'
passing h.msg
Columns
CA VARCHAR2(10) Path 'MSH/MSH.1',
CB VARCHAR2(30) Path 'MSH/MSH.7/TS.1',
) mNote that I'm making guesses here, as I haven't tried these. I hope this might help put you in the right direction though. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Problem printing with Lightroom using Vista

    I just recently upgraded my XP system to a Vista 64 bit system. I print
    digital photos using Adobe Lightroom 1.4. With my XP system, I had a
    good match between my calibrated monitor (NEC 2690) and my printer (HP
    B9180) working in the ProPhoto RGB color space using LR. I use ICC profiles (mostly HP Advanced Photo Paper) and let the Lightroom application manage the color. With Vista, I've lost my match. Skin tones look great on my monitor and now print with a red tint. A blue sky prints with a purple cast. I tried Lightroom Beta 2 but no difference. I'm using NEC's SpectraView II calibration software which is 64 bit compatible.
    My workflow is to import the raw file into LR. After initial editing I then external edit the file in CS3 as a TIFF. If I print this TIFF file from CS3, it does match my monitor. If I print this same TIFF file from LR (my preference because of the print templates), skin tones look sunburned. If I export the TIFF file from LR as a JPG and print from CS3, it also matches my monitor. I reviewed my color management settings many times and can't find what's causing this problem.

    I had the 'opposite' problem when I installed Vista 64. I had a perfect match with XP, Samsung SyncMaster 225BW, and B9180 printer. The monitor profile was created using Spyder 2 Pro. With Vista 64 my prints were desaturated. By increasing saturation by about +30 I had a reasonable but still not 'perfect' match.
    I found and installed the Photoshop CS3 patch for the 64bit B9180 driver thinking it might be a solution, but that didn't change anything WRT the printer/monitor match when using Lightroom. I then tried printing from CS3 but had exactly the same mismatch. I then fell back to the first 'old standby', I uninstalled all of the HP printer software and then re-installed the printer software and the Photoshop CS3 patch. Problem solved. YMMV

  • Problem synchronising with G5 using OSx 10.3.9

    Can't seem to synchronise new i phone with either my laptop or G5. It automatically launches iphotos and not itunes. Currently using operating software 10.3.9. Have downloaded latest version of itunes but on the G5 I got a message saying that I must have 10.4.10 or greater. Can anyone tell me if this is true?

    If you look at the iPhone box, the system requirement is 10.4.x or greater.

  • How to use bind variables with XMLTABLE?

    I tried to use bind variables with xmltable statment. Here, my testcase:
    create or replace function wsdltest return xmltype as
    l_dummy xmltype;
    l_stt clob;
    l_name varchar2(500);
    l_xml clob;
    BEGIN
    l_xml :=
    '<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>';
    -- OK
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name="SVARCHAR2-F1Input"]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml;
    -- ERROR ORA-01006
    l_name := '"SVARCHAR2-F1Input"';
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name=:2]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml, l_name;
    return l_dummy;
    END;
    Any idea ?
    Thanks in advance
    Cyryl

    Why are you using dynamic SQL statements? Why not just use something like this instead in your PL/SQL. I also replaced the leading // in your Xpath with just / since you start from the root node.
    select *
      INTO l_dummy
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                    '/definitions/types/XSD:schema/XSD:element'
                    passing xmltype(l_xml)
                    columns
                    ab xmltype path '.' ) t;Also, the above returns two rows, which I suspect is not what you want. Here is the pure SQL version for you to debug.
    select *
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                   '/definitions/types/XSD:schema/XSD:element'
                   passing xmltype('<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>'
                   columns
                   ab xmltype path '.' ) t

  • Problem with XMLTABLE and LEFT OUTER JOIN

    Hi all.
    I have one problem with XMLTABLE and LEFT OUTER JOIN, in 11g it returns correct result but in 10g it doesn't, it is trated as INNER JOIN.
    SELECT * FROM v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE     11.2.0.1.0     Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    --test for 11g
    CREATE TABLE XML_TEST(
         ID NUMBER(2,0),
         XML XMLTYPE
    INSERT INTO XML_TEST
    VALUES
         1,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g1</id>
                             <dat>data1</dat>
                        </fields>
                   </data>
              </msg>
    INSERT INTO XML_TEST
    VALUES
         2,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g2</id>
                             <dat>data2</dat>
                        </fields>
                   </data>
              </msg>
    INSERT INTO XML_TEST
    VALUES
         3,
         XMLTYPE
              <msg>
                   <data>
                        <fields>
                             <id>g3</id>
                             <dat>data3</dat>
                        </fields>
                        <fields>
                             <id>g4</id>
                             <dat>data4</dat>
                        </fields>
                        <fields>
                             <dat>data5</dat>
                        </fields>
                   </data>
              </msg>
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x LEFT OUTER JOIN
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )y ON 1=1
    ID     DAT     SEQNO     ID_REAL
    1     data1     1     g1
    2     data2     1     g2
    3     data3     1     g3
    3     data4     1     g4
    3     data5          Here's everything fine, now the problem:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for HPUX: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    --exactly the same environment as 11g (tables and rows)
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x LEFT OUTER JOIN
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )y ON 1=1
    ID     DAT     SEQNO     ID_REAL
    1     data1     1     g1
    2     data2     1     g2
    3     data3     1     g3
    3     data4     1     g4As you can see in 10g I don't have the last row, it seems that Oracle 10g doesn't recognize the LEFT OUTER JOIN.
    Is this a bug?, Metalink says that sometimes we can have an ORA-0600 but in this case there is no error returned, just incorrect results.
    Please help.
    Regards.

    Hi A_Non.
    Thanks a lot, I tried with this:
    SELECT
         t.id,
         x.dat,
         y.seqno,
         y.id_real
    FROM
         xml_test t,
         XMLTABLE
              '/msg/data/fields'
              passing t.xml
              columns
                   dat VARCHAR2(10) path 'dat',
                   id XMLTYPE path 'id'
         )x,
         XMLTABLE
              'id'
              passing x.id
              columns
                   seqno FOR ORDINALITY,
                   id_real VARCHAR2(30) PATH '.'
         )(+) y ;And is giving me the complete output.
    Thanks again.
    Regards.

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any availabl

    I used migration to send photos form my Mac Book to my I Mac now i get an error message "iPhoto can not be opened because of a problem"  Check with the developer to make sure iPhoto works with this version of Max OSX.  You may need to install any available updates or reinstall IPhoto.
    I tried installing Iphoto it said it was downloaded successfully. I still get the error messafe, and can not open any photos of program,  any suggestions?

    What version of iPhoto do you have on the Macbook and on the iMac? What systems are you running on the Macbook and on the iMac?
    Does the message only refer to "a problem" or does it specify what it is?
    Happy Holidays

  • I have lightroom 5 with 5.7 updated.   I use windows.  My problem is with the spot healer or remover.  It worked perfectly when I click on it it don't have the additional circle with a line attached to it where I can move it to another place for better sa

    I have lightroom 5 with 5.7 verson updated.  I use windows.  My problem is with the spot healer or remover in the develop.  It worked perfectly for a while and then suddenly the other circle with a line attached to it where you can move it to a better spot stopped showing up.  I uninstalled the software and re installed it again but it didn't fix the problem and its still the same.  Help please.

    Does the iPod work OK?
    Does it charge when connect to the computer?
    Does it appear in My Computer?
    Look at the dock connector on the iPod. Compare with the iPod that does work/connect.
    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • I just installed yosemite on my mcb pro mid 2012 and installed win8.1 with bootcamp. now i have the problem, when i'm using windows i don't see my mac partition in the "computer" window. there is only the "bootcamp (c;) partition? what's the problem?

    i just installed yosemite on my mcb pro mid 2012 with a clean install. so i only had the new os x yosemite running on my mac. everything went perfect. than i installed win8.1 with the bootcamp assistant and also everything went perfect.
    But here's the Problem:
    When i'm using Windows 8.1 and i go to the "Computer" window where i can find my hdd partition "Bootcamp (c;) there is only this Partition. the mac Partition is missing.
    so i am not able to read the files on my mac Partition.
    Before i installed yosemite and win8.1, i was running mavericks and win7 on my macbook pro and i haven't had this Problem. i was able to see and read my mac Partition also on Windows 8.1???
    is there any solution for this Problem???
    greez c

    "Before i installed yosemite and win8.1, i was running mavericks and win7 on my macbook pro and i haven't had this Problem. i was able to see and read my mac Partition also on Windows 8.1???"
    Sorry there's a mistake in the sentence!
    i mean:
    "Before i installed yosemite and win8.1, i was running mavericks and win7 on my macbook pro and i haven't had this Problem. i was able to see and read my mac Partition also on Windows 7???"

  • We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we

    after the last udpate I can no longer access gmail or youtube. the error message from gmail is: We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we suggest alerting your Internet Service Provider (ISP) that a proxy is failing to accept cookies on HTTP redirects.
    youtube just lists some generic issue regarding cookies, and my cookie settings are wide open. I can open both with safari so it is a firefox issue.

    Did you install any new add-ons lately? I see listed:
    AddThis 3.5.9 ({3e0e7d2a-070f-4a47-b019-91fe5385ba79})<br />
    Advertising Cookie Opt-out 1.5 ([email protected])<br />
    Flash Video Downloader 5.3.2 ([email protected])<br />
    Garmin Communicator 4.1.0 ({195A3098-0BD5-4e90-AE22-BA1C540AFD1E})<br />
    socialvest 0.5.5 ([email protected])<br />
    Troubleshooter 1.1a ([email protected])<br />
    eMusic Community Toolbar 3.21.0.1 ({9ee802e8-c931-47ab-b570-aa8f791598ca}) (Inactive)
    Are any of these new?

  • When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application." Using OS X 10.6.8

    When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X."
    I've run the software update several times. Pages is located in my iWork '09 folder in Applications. Using OS X 10.6.8

    Delete and reinstall it.
    (104030)

  • A problem occurred with this webpage so it was reloaded this is popping up when I use any forum using safari on my iPad and this is happening ever since I haven installed iOS 8 I have tried to reset all setting

    A Problem occured with this webpage so it was reloaded this is popping up when I open any forum using safari on my iPad mini this is been happening ever since I have downloaded iOS 8 I tried to reset all the settings and reset network settings but nothing helped please if anyone can help me .

    Its not necessarily freezing - just being slow to build.
    May have something to do with this being a secured site - I an giving Opera a test run & this part of the apple site does not go into compressed load - but the non-secure parts of the site do.  The issue may be that some sites like apples just have too much unimportant junk on the screen because the designers are on an internal network a few offices away from the server and never see all the issues that com up.

  • Problem with BAPI_CUSTOMER_CREATEFROMDATA1 using JCo on IDES

    sorry, wrong board - i opened a new post
    Problem with BAPI_CUSTOMER_CREATEFROMDATA1 using JCo on IDES
    Hello everyone,
    we are working on a student project and would like to create customers (debtors) in an SAP IDES system.
    Using the ref-customer to copy from, and some personal-data below, we get the error message
    'Internal error: External no.assignment for reference customer/customer'
    We also tried with BAPI_CUSTOMER_GETINTNUMBER, and ACCOUNTGROUP ZINT (New Internet Customer, others won't work?). But CREATEFROMDATA1 takes no CustomerNo created this way, nor it wants to create one 'internal'?
    Any suggestions? Thanks a lot for your help,
    Greetings,
    Tobias Schmidbauer
              inParams = function.getImportParameterList().getStructure(
                   "PI_COPYREFERENCE");
              inParams.setValue("0000001000", "REF_CUSTMR");
              inParams.setValue("1000", "SALESORG");
              inParams.setValue("10", "DISTR_CHAN");
              inParams.setValue("00", "DIVISION");
              inParams =function.getImportParameterList().getStructure(
                   "PI_PERSONALDATA");
              inParams.setValue("Simpson", "LASTNAME");
              inParams.setValue("Homer", "FIRSTNAME");
              inParams.setValue("Jay","MIDDLENAME");
              inParams.setValue("Springfield", "CITY");
              inParams.setValue("DE", "LANGU_P");
              inParams.setValue("DE", "LANGUP_ISO");
              inParams.setValue("DE", "COUNTRY");
              inParams.setValue("EUR", "CURRENCY");
              inParams.setValue("12345", "POSTL_COD1");
    Message was edited by: Tobias Schmidbauer

    Hello Brian,
    Thanks for your pointer. Actually The customer's reference number i was providing in the PI_COPYREFERENCE structure was a sold-to party customer and it uses external customer number assignment. When i used "New Internet Customer" (that doesnt use external assignment by default) as customer's account group, the customer was created successfully and assigned customer number was returned.
    I want to ask now how could we give a customer number in the BAPI as i am unable to find any such column in any of the tables. (Customer number is an "out" parameter so it can only return the number of created customer). Secondly, how to chnage the external assignment property of a particular account group (like sold-to party). i.e, how could we change the account group configurations through SAP GUI??
    - Umair

  • Problem in executing report using rwrun.sh with runtime/lexical parameters

    hi..
    My problem is as follows..
    I'm using SuSE8.0, with Oracle DS installed..
    I made a rep file to execute a report from command line using rwrun.sh.
    For the first time I got problems with single quotes and later I solved it by using \ as escape sequence and I can generate the report.
    I have 2 lexical parameters.
    1) atable --> for table names
    2) whereford --> for WHERE condition
    When I make the following command I execute it successfully and get the report .
    /opt/oracle/OraHome1/bin/rwrun.sh /opt/jakarta/webapps/ROOT/std-reports/DiagnoseProtokolle.rep userid=test/test@approxim batch=yes desname=/opt/jakarta/webapps/ROOT/kovi_361_Report.PDF destype=file desformat=PDF atable=\',SD_DIAGNOSESYSTEME\' whereford=\'\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'AIRBAG\'\ \)\)\ AND\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'ABS\'\ \)\)\ AND\' tracefile=/opt/jakarta/webapps/ROOT/trace/trace.log tracemode=TRACE_REPLACE
    ** In one line..
    If I don't use \ for escaping braces it doesn't work and also for spaces and single quotes.
    I use braces as I get sometimes mixed conditions..
    But when I make a condition like for eg: emp.emp_id = dept.emp_emp_id it is not executing..
    i mean primary key is referd to foreign key of another table.
    so in the same way the error prone command looks like this
    /opt/oracle/OraHome1/bin/rwrun.sh /opt/jakarta/webapps/ROOT/std-reports/DiagnoseProtokolle.rep userid=test/test@approxim batch=yes desname=/opt/jakarta/webapps/ROOT/kovi_361_Report.PDF destype=file desformat=PDF atable=\',MESSWERTE,SD_DIAGNOSESYSTEME\' whereford=\'\ \(\(\ MESSWERTE.mess_id\ =\ SD_DIAGNOSESYSTEME.mess_mess_id\ AND\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'AIRBAG\'\ \)\)\ AND\ \(\(\ SD_DIAGNOSESYSTEME.bezeichnung\ =\'ABS\'\ \)\)\ AND\' tracefile=/opt/jakarta/webapps/ROOT/trace/trace.log tracemode=TRACE_REPLACE
    when I had a look at the trace.log file I see that particular condition is transformed in to
    MESSWERTE.mess_id = 'SD_DIAGNOSESYSTEME.mess_mess_id'
    but this is completely awkward.
    Then I made a batch file and tested it on windows and i put the whole condition in double quotes and it worked always fine..
    It seems the problem is with the shell ..or ??
    In my rwrun.sh th elast line looks like this..
    $ORACLE_HOME/bin/rwrun $*
    I also tried to chaneg this to
    $ORACLE_HOME/bin/rwrun "$@" and also $ORACLE_HOME/bin/rwrun "$*"
    but no progress..
    If some one could help me it would be gratefull for me..
    Thanx in advance..
    regards
    Kovi

    Here's the relevant portion from the Bash manual:
    Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, and \. The characters $ and ` retain their special meaning within double quotes. The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or <newline>. A double quote may be quoted within double quotes by preceding it with a backslash.
    So basically stop escaping the single-quotes with a backslash, and instead enclose the entire argument value in double-quotes. Add the single-quotes only if you want them literally, don't escape the parentheses, etc. Let's know if it works for you.
    -Manish

Maybe you are looking for