How correct posted  COPA Values

hi friends,
i  have a issue   how to correct posted  COPA Values
please give me your input in this regard.
Thanks
Prasad

Hi,
I am explaining you the question-
Scenario is, i posted wrong co-pa values in the month of April.
Now i want to correct that COPA values in the month of August.
Is it possible. If yes then How?(please tell the whole procedure including T codes).
Thanks in advance.

Similar Messages

  • How to post null values from h:inputText?

    Hello,
    I have a form made of h:inputText fields that map to an entity class as the backing bean. Whenever I post the form from a web page, all the fields that I did not fill out and that are mapped to String fields in the entity class are set to "" (empty string) instead of null.
    However, I would like to post null values to my entity, because that would indicate that the user did not fill out the field. In other contexts (outside of the web app) it is possible to set the fields to empty strings, but from the web app it should always be null. How can I get JSF to do this correctly?
    Also, when reading entitys with null values from the database, these are converted to empty h:inputText fields, so this direction works as expected.
    Ulrich

    I haven't seen a solution for this as far.
    This is how I do it:
    public void action() {
        if (isEmpty(inputValue)) {
            // do your thing
        } else {
            // do your thing
    public static boolean isEmpty(Object value) {
        if (value == null) {
            return true;
        if (value instanceof String && ((String) value).trim().length() == 0) {
            return true;
        if (value instanceof Collection && ((Collection) value).size() == 0) {
            return true;
        // And go so on .. make it an utility method.
        return false;
    }

  • How to post a set of records

    i want to post a set of records and get it
    say some 5 records of size 6 fields.
    how to post these values and get it to insert into database
    it is like transaction entries
    pls help

    Can you be more specific.
    One of the solutions : In your HTML form you define alll the records you want to post to another page and give them names somethiong like this:
    <form>
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    <input type="text" name="record()" value="" />
    </form>
    Now let say that you did this and you submited your form. What you get on target script is PHP array called $record. this areay consists of 5 elements (from 0 to 4). element 0 coresponds to first input in yout HTML form. Element 4 coresponds to your last input in your HTML form.
    You can always traverse through $_POST variable and see what is comming to the page through post.
    Is this the answert to your question?
    skodman

  • How to correct a double value to two decimal places

    hi,
    How to correct a double value to two decimal places
    eg.
    double tt=100.100032
    i want to correct to 2 decimal places
    ie tt=100.10
    regards,
    jagan

    Check my other reply on the other thread. Please don't cross-post.

  • How can i post a value to an account and intercompany account

    Hi All
    i need to post a value to an account and inter company account in my script logic.
    For Ex:
    captures values:
    profitcentre     interco     account     amount
    12345             defualt      502400     2000
    now i need to post the same amount (2000) to an intercompany profitcentre to balance.
    when i run my logic it should look like this
    Interco    account   amount
    I_12345   502400   -2000
    how can i do the above things.
    thanks

    Hi Satish,
    You can use the *REC statement to post the amount. For example,
    *WHEN PROFITCENTRE
    *IS 12345
       *REC(FACTOR = -1, INTERCO = I_12345)
    *ENDWHEN
    The above code is static and will work only when the profitcentre is 12345.
    You must be having some relation between profitcentre and interco. Leverage on that.
    1. First fetch all the profitcentres.
    2. Fetch the interco based on above profitcentres.
    3. Run the above code for each of the profit centres with the help of a FOR loop.
    Hope this helps.

  • HTTP adapter as receiver to POST name-value pairs - How to?

    Hi,
    Scenario: HTTP Sender <> XI <> HTTP receiver (Sync throughout; no BPM)
    In this scenario, a HTTP channel is configured to the target URL to post data.
    The message mapping results in a XML. HTTP posts the same XML to the target URL.
    However,the target URL expects data Posted as name-value pairs.
    eg. eid=45678&zip=11011&ename=Tom%20Lee
    How can we configure HTTP adapter channel to post XML data as
    name-value pairs (as in standard HTTP Form Post)?
    Any pointers?
    thanx,
    Pops

    Hi Udo,
    I currently have a solution (simpler than having a BP), but do not expect it to be the right way of doing.
    I am using Java Mapping to convert the XML structure into Name-Value pair. So the output of Mapping is a string like how HTTP post is expected. So the interface mapping having multiple mappings - firstly, the original Message mapping, and then the Java mapping to do the conversion. So, with a small extension, the solution is still kept simple.
    However, I thought the POST requirement to HTTP URLs would be a common requirement, and expected the HTTP adapter doing this conversion. So, I am still looking for a straight solution (without any custom extensions).
    Any one else faced this situation?
    Can't this be handled by HTTP Adapter?
    -- Pops V

  • How to post sales quantity to COPA in sales order settlement?

    Hi All,
    I am facing one problem while sales order settlement. I am settling sales order to COPA (PSG) and while settlement I am not getting sales quantity in COPA.
    Other value fields like Revenue(ERLOS), Cost (VRPRS), Discount etc. are getting posted properly into the COPA.
    I have done the configuration in PA transfer structure for above settlement. Please advice if anyother setting is missing.
    Thanks & Regards,
    Yatin

    Thanks for reply,
    SD Qty.field 'FKIMG'(Invoiced Quantity) has been assiged to COPA value field 'ABSMG' (Sales quantity) in KE4M.
    Valuation strategy is also assiged to SAP standrad qty.field ABSMG(Sales quantity).
    I have also assigned value field ABSMG(Sales quantity) in PA transfer structure.
    Still I am not able to get the quantity field in sales order settlement to COPA.
    Please advice if anyother thing needs to check.
    Thanks & Regards,
    Yatin

  • How to create substituion for COPA value fields?

    Hi,
    In OBBH i cannot find a destination field for copa value fields. The destination fields are always from SAP standard tables like BKPF and so on.
    In this case how can i create a substitution to assign values to COPA value fields?

    Hi,
    I can see only the following entries in my OBBH user exit, so what is difference between COPA0002 and these :-
    SCO10
    SGJF1
    SGJA1
    SGJA2
    SGJA3

  • How copa values updated

    hello gurus
    in copa how the values are updated like how direct cost is taken by the system other than the sd billing document

    Hi,
    The values are updated to copa by assigning value fields..From sd we have to assign condition types (pr00,vprs,k004..etc) to copa value fields... The sales related expanses (frieght..etc)will come from FI through PA transfer structure...In PA tranfer str we have to assign source to value fields.then the values wiil come after postings made in FI.. From product costing the production order variances will come to copa through PA transfer structure.here we have to assign variance types to valuefields.... and cost center variances will come through Assessment.
    Thank u
    Srinivas

  • COPA value field not getting complete SD condition value

    Hi Gurus,
    I find a strange issue when a billing document is transferred to COPA (well basically, after a billing document is released to accounting, all the controlling docs and COPA docs are generated). The issue is, I have a SD pricing condition which has been assigned to COPA value field. I also have the transfer +/- sign checked on this value field. Now consider the following 2 scenarios:
    Scenario 1: In VKOA, two different G/l accounts have been assigned to the corresponding pricing condition account key. These 2 G/L accounts have been defined as cost elements with category '12' (its related to sales deduct). and fall under the same cost element group. When a billing doc is posted to accounting and hence to COPA, I see that there is no value in the value field and the corresponding condition type. Then I ran a simulation using KE4ST and found that I have two lines with the same pricing condition type and value field but one carries a positive value and the other one carries a negative value. Then I came to a conclusion that may be these two lines are netting out and hence there is no value being posted on the value field.
    Scenario 2: In VKOA, I have assigned two different G/L accounts which fall under different cost element group and one is defined as category 12 and the other as category 1. This time I see that only 1 line of value field is brought into COPA corresponding to the pricing condition and hence I see a value in COPA value field. But business doesn't want to go with scenario 2 as they don't want to use two cost elements in different cost element group. Also one is sales deduct and the other is primary cost/ cost reducing revenue. So there is a balance getting accumulated in the primary cost/cost reducing revenue element.
    How do I resolve this issue to post a value to the COPA value field using scenario 1?  I have also tried to uncheck the transfer +/- sign but I am unable to even release a billing doc to accounting as it is giving me a error message,: "correct the value field assignment for the condition type".
    Please help me !!
    Regards,
    Sony

    Version of SAP?

  • FEBA - How to post two or more transactions at the same time?

    Hi,
        one of our banks sends the statemets with many lines that belongs to the same transaction. We have to post partially one line, and afterwards the other line. Any of you know how to post two lines at the same time from the bank statement?
    Thank you in advance,
    Miguel

    Hi,
    I'm sorry for replying so late.
    The solution I reached was to change the a few things in the standard.
    Now I have a new "context menu item". I select two or more transactions and I right-click the mouse. I select that "context menu item" and the next part of the code adds the total amount of the transactions to look for the correct post for the first transaction. Once posted automatically, the next transaction is posted automatically by the system.
    I hope you understand my English. I've problem with technical FI terms.
    Here you are the code:
    First I added a new contextual menu item:
    CL_FEBAN_ALV_GRID=============CCIMP
    call method e_object->add_function
        EXPORTING
            fcode = 'BS_POST_ITEMS'
            text = text-002.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        call method e_object->add_function
            EXPORTING
                fcode = 'ZBS_POST_ITEMS'
                text = text-Z02.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        call method e_object->add_function
            EXPORTING
                fcode = 'BS_KILL_ADVICE'
                text = text-004.
    CL_FEBAN_ALV_GRID=============CCIMP
    when 'BS_POST_ITEMS'.
        call method cl_feban_propagator=>raise_event
            EXPORTING
                i_event = 'POST_ITEMS'
                i_ref_to_item = l_ref_to_item.
    *{ INSERT DHTK904078 2
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZBS_POST_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'ZPOST_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'BS_LOCK_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'LOCK_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    CL_FEBAN_PROPAGATOR===========CM001
        when 'POST_ITEMS'.
            raise event post_items
                exporting i_ref_to_item = i_ref_to_item.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZPOST_ITEMS'.
            data: zvalor(1) value '' .
                export zvalor from 'X' to memory ID 'ZFEBA01'.
                raise event post_items
                    exporting i_ref_to_item = i_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'LOCK_ITEMS'.
            raise event lock_items
                exporting i_ref_to_item = i_ref_to_item.
    Now, I proceed to calculate the total amount of the selected transactions to look for the correct one to post.
    LNEW_FEBAF01
    *     user parameter
            l_feban_position type c.
            field-symbols: <items> type item_tab_type.
    *{ INSERT DHTK904077 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zvalor(1) value '',
            zkwbtr type kwbtr,
            kwb type kwbtr.
        import zvalor to zvalor from memory ID 'ZFEBA01'.
        if ( zvalor is not initial ).
            if not i_ref_to_item is initial.
                assign i_ref_to_item->* to <items>.
                loop at <items> into h_item.
                    select single kwbtr
                        into kwb
                        from febep
                        where kukey = h_item-kukey and
                            esnum = h_item-esnum.
                            zkwbtr = zkwbtr + kwb.
                endloop.
            endif.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        refresh g_picked_items.
        if not i_ref_to_item is initial.
            assign i_ref_to_item->* to <items>.
            loop at <items> into h_item.
                move-corresponding h_item to h_picked_items.
                append h_picked_items to g_picked_items.
            endloop.
        endif.
        submit rfebbu00 and return
            user sy-uname
            with anwnd = r_doc->*-anwnd
            with s_kukey in s_kukey
            with s_esnum in s_esnum
            with buber = g_posting_area
            with mregel = '1'
            with function = 'C'
            with mode = g_mode
            with p_bupro = g_bupro.
    *{ INSERT DHTK904077 2
    *--> Miguel Estu00E9vez - 17/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        if ( zkwbtr is not initial ).
            select single kwbtr
                into kwb
                from febep
                where kukey = h_kukey-low and
                    esnum = h_esnum-low.
                    zkwbtr = zkwbtr - kwb.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 17/06/2008
    *} INSERT
        refresh s_kukey.
        refresh s_esnum.
        clear h_kukey.
        clear h_esnum.
    endloop. "loop over all picked items
    call function 'CUSTOMIZED_MESSAGE'
        EXPORTING
            i_arbgb = 'NEW_FEBA'
            i_dtype = '-'
            i_msgnr = '110'.
    RFEBBU00
    * original transaction currency provided and posting area = 2.
            ftclear-selvon = febep-fwbtr. "INSERT - mpEURO
        ENDIF. "INSERT - mpEURO
        CONDENSE ftclear-selvon NO-GAPS.
    *{ INSERT DHTK903977 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zkwbtr type kwbtr.
        import zkwbtr to zkwbtr from memory ID 'ZKWBTR'.
        if ( zkwbtr is not initial ).
            ftclear-selvon = zkwbtr.
            clear zkwbtr.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
    APPEND ftclear.
    ** Begin of comment C5053248
    * perform druck_buzei_ftclear using ftclear-agkon.

  • To Send POST Method Value in ProxyServer

    Hello
    I developed a ProxyServer. Problem is when i send post method value to server...data is not sending correctly. But i can get the value correctly form browser. How can send the post method values.
    My source code is
    * ServerThread.java
    * Created on May 15, 2001, 2:05 PM
    * @author  maniksanthosh
    * @version
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.io.BufferedInputStream;
    public class ServerThread extends java.lang.Thread {
        /** Creates new ServerThread */
        Socket client;
        public ServerThread(Socket client) {
            this.client = client;
        String SampleURL="";
        public void run() {
            try
            client.setKeepAlive(true);
            DataInputStream Sin = new DataInputStream(client.getInputStream());
            OutputStream Sout = client.getOutputStream();
            String request = Sin.readLine()+"\n";
           System.out.println(request);
            int fsp =  request.indexOf(' ');
            int nsp = request.indexOf(' ',fsp+1);
            int eol = request.indexOf('\n');
            String method = request.substring(0,fsp);
            System.out.println("Method Length :"+method.length());
            String SUrl = request.substring(fsp+1,nsp);
            String raw_mime_header = request.substring(eol+1);
            request = request.substring(0,eol);
           /* System.setProperty("proxySet","true");
            System.setProperty("proxyHost","132.132.64.244");
            System.setProperty("proxyPort","3128");*/
                System.out.println(SUrl);
             URL url = new URL(SUrl);
             HttpURLConnection urlc =(HttpURLConnection)url.openConnection();
             System.out.println("System Method :"+urlc.getRequestMethod());
             urlc.setDoOutput(true);
             System.out.println("URL: "+url);
             System.out.println("Method: "+method);
         //   System.out.println("Request Property :"+urlc.getRequestProperty("accept"));
             String data ="";
            if(method.equalsIgnoreCase("GET"))
              // urlc.setRequestMethod("GET");
               /*while((data = Sin.readLine())!=null)
                    if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                        URLout.writeBytes("\r\n\r\n");
                        URLout.flush();
                        break;
                    URLout.writeBytes(data+"\r\n");
                    URLout.flush();
             int ch =0;  
                InputStream URLin = urlc.getInputStream();
                while((ch=URLin.read())!=-1)
                    Sout.write(ch);
                    Sout.flush();
            }else
    if(method.equalsIgnoreCase("POST"))
              DataOutputStream URLout = new DataOutputStream(urlc.getOutputStream());
              System.out.println("Request Method : "+urlc.getRequestMethod());
              System.out.println("Instance Follow Redirects : "+urlc.getResponseCode());
              urlc.setInstanceFollowRedirects(true);
         //     urlc.setDoInput(true);
                while((data=Sin.readLine())!=null)
                     if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                        URLout.writeBytes("\r\n");
                        int postch = 0;
                        int total = Sin.available();
                        System.out.println("Total :"+total);
                        for(int l=0;l<total;l++)
                           postch=Sin.read();
                           URLout.write(postch);
                        System.out.print((char)postch);
                        //   URLout.flush();
                        URLout.writeBytes("\r\n");
                      // URLout.flush();
                        break;
                     urlc.setDefaultRequestProperty("POST",postch);
                     URLout.writeBytes(data+"\r\n");
                    URLout.flush();                                 
                int ch =0;  
                InputStream URLin = urlc.getInputStream();
                while((ch=URLin.read())!=-1)
                    Sout.write(ch);
                    Sout.flush();
                URLin.close();
                URLout.close();
                   Sout.flush();
             Sin.close();
             Sout.close();
             Sin.close();
            }catch(Exception e){System.out.println("Inside Run Method in Server Thread "+e);}
        private String getPostValue(InputStream in) //throws IOException
         /*byte buf[] = new byte[8192];
         int pos = 0;
         int c;
         while((c=in.read())!=-1)
            System.out.print((char)c);
                switch(c)
                    case '\r' :
                        break;
                    case '\n':
                     if(buf[pos-1]==c)
                            return new String(buf,0,pos);
                     default:
                         buf[pos++] = (byte) c;
          return null; */
            /*DataInputStream data = new DataInputStream(in);
            String postStr ="";
            while((postStr=data.readLine())!=null)
                System.out.println(postStr);
            return postStr;*/
            return null;
       private String  getRawRequest(InputStream in) throws IOException
            byte buf[] = new byte[8192];
            int pos=0;
            int c;
            while((c=in.read())!= -1)
                System.out.print((char)c);
                switch(c)
                    case '\r' :
                        SampleURL+="/r";
                        break;
                    case '\n':
                        SampleURL+="/n";
                     if(buf[pos-1]==c)
                            return new String(buf,0,pos);
                     default:
                         buf[pos++] = (byte) c;
                         SampleURL+=(char)c;
            return null;
    }

    I can read all the value from browser ..but i couldn't send that to server. I changed ("\r\n\r\n") to ("\r\n"). Still the value is not going correct.
    Whether I have to use setDefautRequestProperty(). if i have cookies..how can i send that value to browser from Server or from Server to browser.
    Regards
    Santhosh

  • How to post actual COGS to PA

    Dear all,
    When we create billing document, revenue and COGS(cost of goods sold) will be posted to PA. This COGS is standard cost which got from condition type VPRS, however, it is not actual cost now. After we run material ledger, actual cost is calculated, my question is how to adjust COGS according to the actual cost in the system? this means we should post a variance to COPA.
    Would anyone help me ?
    Rgds,
    Ben

    Hi Ben,
    Like I said, you'll have to force the posting of the Actual Costs to COPA.
    For this, create a Costing Key for the transfer of Actual Cost using the following menu path:
    SPRO --> ... --> Profitability Analysis --> Master Data --> Valuation --> Setup Valuation using Material Cost Estimate --> Define Access to Actual Costing / Material Ledger.
    In this screen, you need to select the Val View "Legal" and the Type of Valuation as option 2 or 3 (the option should include transfer of Total Cost).
    Leave the Time reference as Period according to line item and set the radio button "Leave line item plant as cost est plant" for the plant value.
    Once done, click "Val Field allocation ... MAP" in the lefthand window and key the VF you wish to post the MAP value to.
    Now assign this Costing Key to any combination of values for which you wish to transfer actual costs. Make sure the Point of Val is 02 for Actual Costs transfer.
    Save and run KE27 now. The system should post the value(s) to the mentioned value field(s).
    Cheers.

  • How to select XML value for a namespace when multiple namespaces

    Hi,
    I'm a beginner with this, but I'm doing well with your help from this forum in a recent post selecting out all the detail from my xml
    out into my oracle relational tables. Stumped, though, on how to select a value for xml tag value referenced by a defined namespace.
    Version, XML, what I want to select, and attempted sql is below. Thanks in advance!
    select * from V$VERSION
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    drop table TRANSCRIPT;
    create table TRANSCRIPT (
    CONTENT xmltype
    <?xml version="1.0" encoding="UTF-8"?>
    <arb:AcademicRecordBatch xmlns:arb="urn:org:pesc:message:AcademicRecordBatch:v1.0.0">
      <hst:HighSchoolTranscript xmlns:hst="urn:org:pesc:message:HighSchoolTranscript:v1.0.0" xmlns:ct="http://ct.transcriptcenter.com">
       <TransmissionData>
          <DocumentID>2013-01-02T09:06:15|D123456789</DocumentID>
       </TransmissionData>
       <Student>
                <Person>
                    <Name>
                        <FirstName>John</FirstName>
                        <LastName>Doe</LastName>                   
                    </Name>
                </Person>
                <AcademicRecord> 
                    <AcademicSession>
                        <Course>
                            <CourseTitle>KEYBOARD 101</CourseTitle>
                            <UserDefinedExtensions>
                              <ct:TranscriptExtensions>
                                 <NCESCode>01001E010456</NCESCode>
                                 <CourseRigor>1</CourseRigor>
                              </ct:TranscriptExtensions>
                          </UserDefinedExtensions>
                        </Course>
                        <Course>
                            <CourseTitle>SCIENCE 101</CourseTitle>
                            <UserDefinedExtensions>
                              <ct:TranscriptExtensions>
                                 <NCESCode>01001E010457</NCESCode>
                                 <CourseRigor>2</CourseRigor>
                              </ct:TranscriptExtensions>
                          </UserDefinedExtensions>                       
                        </Course>
                    </AcademicSession>
                    <AcademicSession>
                        <Course>
                            <CourseTitle>MATH 201</CourseTitle>
                            <UserDefinedExtensions>
                              <ct:TranscriptExtensions>
                                 <NCESCode>01001E010458</NCESCode>
                                 <CourseRigor>2</CourseRigor>
                              </ct:TranscriptExtensions>
                          </UserDefinedExtensions>                                 
                        </Course>
                    </AcademicSession>
             </AcademicRecord>
       </Student>
      </hst:HighSchoolTranscript>
    </arb:AcademicRecordBatch>I want to be able to select the NESCODE associated to each coursetitle (01001E010456, 01001E010457, 01001E010458), with NESCode defined by namespace, but getting out NULL.
    DOCUMENTID     LASTNAME     COURSETITLE     NCESCODE
    2013-01-02T09:06:15|D123456789     Doe     KEYBOARD 101     
    2013-01-02T09:06:15|D123456789     Doe     SCIENCE 101     
    2013-01-02T09:06:15|D123456789     Doe     MATH 201     
    My SQL is below. You'll see where I commented out a couple failed alternatives too. Thanks again in advance for any guidance.
       select x0.DocumentID
             ,x1.LastName
             , x3.CourseTitle
             ,x3.NCESCode
      from TRANSCRIPT t
         , xmltable(                                                                                   
             xmlnamespaces(
               'urn:org:pesc:message:AcademicRecordBatch:v1.0.0' as "ns0"
             , 'urn:org:pesc:message:HighSchoolTranscript:v1.0.0' as "ns1"
            --, 'http://ct.transcriptcenter.com'                               as "ns1b" 
          , '/ns0:AcademicRecordBatch/ns1:HighSchoolTranscript' 
            passing t.content
            columns DocumentID       varchar2(40) path 'TransmissionData/DocumentID'
                       , Student xmltype      path 'Student'     
          ) x0
       , xmltable(
            '/Student'
            passing x0.Student
            columns LastName varchar2(20) path 'Person/Name/LastName'                       
                        ,AcademicRecord   xmltype      path 'AcademicRecord' 
          ) x1          
       , xmltable(
            '/AcademicRecord/AcademicSession' 
            passing x1.AcademicRecord
            columns GradeLevel varchar2(20) path 'StudentLevel/StudentLevelCode'
                  , Courses      xmltype      path 'Course'
          ) x2
              , xmltable(
              xmlnamespaces('http://ct.transcriptcenter.com'  as "ns2b")
              , '/Course'
            passing x2.Courses
            columns CourseTitle varchar2(40) path 'CourseTitle'
                         ,NCESCode  varchar2(20) path 'UserDefinedExtensions/ns2b:ct/NCESCode'
                         --,NCESCode  varchar2(20) path 'UserDefinedExtensions/ns2b:ct/TranscriptExtensions/NCESCode'                     
          ) x3
               

    <<I'm assuming there is more to your XML than you showed, since
    StudentLevel/StudentLevelCode
    is not in the XML, but is in your query. >>
    Yes, to simplify, I left out some of the additional XML data, which is typically present, sorry for any confusion. I should have removed those references to that data in my example which was failing to retrieve the NCESCode data which was denoted by that namespace.
    Thank you very much! Your correction worked. I was not understanding until your correction how to properly reference in the XPATH for that namespace value. I'm a newbie at this, and this is my second post. But I've been able to populate quite a few relational tables and that was the first of several namespace tags I will have to deal with next, and with that help, I should be good with that syntax now.
    Thanks again for your help on this.

  • COPA values mismatch between KE24 and KE30

    Hello,
           Background: After recent implementation because of wrong configuration, June and July has wrong COPA values (documents). I have been assigned to reverse these documents and We have been given the documents(with excel file all the values in it) we need to reverse and adjust with new values. I was able to reverse successfully using SCAT(for KE21N). We got exact result what we expected with KE24 report but KE30 is not reflecting same result. However in KE24 report is matching penny by penny after reversal.  We just wanted to know the steps we are following is correct or Is there any other efficient method to resolve this issue. Why KE30 report is not in sync with KE24? Is KE30 is reading from different tables. Please advise ASAP. 
    Thanks,
    Pravin & Vishwa

    Hi shivaji,
    What is the reason for the difference in the amount. you may have to manually clear the documents using transaction F-03 or F-32 and post the difference manually.
    Regards
    Mahendra
    Assign points if this helps

Maybe you are looking for

  • Why does my Macbook Pro keep freezing with the spinning beach ball?

    Hi, This issue started yesterday. Every minute or so or less, my Mac will freeze up and I cant do anything, and then the beach ball will pop up for 5-60 seconds before going away, my machine unfreezes, and it happens again pretty quickly. EtreCheck v

  • Nike+ runs won't update to Nike+ site from itunes and won't show on itunes

    ok. I have read through many posts that have had similar issues but not quite the same. I have run and synced 18 workouts before this annoyance but all before i updated to itunes 9.2 I have two workouts that I can see in my ipod nano. i go to sync an

  • Gross profit on sales credit memo of service type

    Gross profit on sales credit memo of service type When AR Credit memo of service type is created, should Gross Profit be calculated? My client has recently upgraded from 2007 to 8.8 and says that in 2007 GP did calculate and shown on sales analysis f

  • Why Is Query Against XMLTYPE Table ACME_CUST Doing A Full Table Scan?

    On our Oracle Database 11g Enterprise Edition Release 11.2.0.1.0, we have a query against against a 25,214 record XMLTYPE ACME_CUST table. SELECT rownum   AS seq,       EID  AS eid,       SUBSTR(CUST_ID, 1, INSTR(CUST_ID, '|')-1) AS tgt_acme_customer

  • Help with regex. How to escape "|"

    Hi, this is my code: String line = "00001740 00 a 01 able 0 003 = 04866033 n 0000 = 05262099 n 0000 ! 00002062 a 0101 | (usually followed by `to') having the necessary means or skill or know-how or authority to do something; "able to swim"; "she was