Column Name is not appear

Hi Experts,
I have using this query for generate XML File through Store Procedure
Store Procedure Runing Succesful. For using below query Execute whole Store Procedure
Problem Path is Generate but  Coloumn Name is not appear in it.
exec [dbo].[ICR_Rpt_Form2Rpt_XML] '20110722', '20110722'
Please help me out.
BR,
Manish Pandey

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[ICR_Rpt_Form2Rpt_xml]  @FrmDate  nvarchar(50) ,
@ToDate nvarchar(50)   AS
select OINV.Docentry, I.Linenum,
'0' as [Sr.],OINV.U_ICR_WHS as SeriesName,
SeriesName+' '+convert(varchar(50),OINV.Docnum)as [DocumentNo.],
I.Docdate as [Date],
I.ItemCode as ItemCode,
I.ItemName  as [ItemName] ,I.BatchNum as [BatchNo],
O.U_ICR_TFFNUM as [TarriffClass],V.Quantity as [Quantity] ,((O.U_ICR_BED/O.U_ICR_STOCK)* V.Quantity) as [Duty] ,
((O.U_ICR_ECESS/O.U_ICR_STOCK)* V.Quantity) as [Edu.Cess],((O.U_ICR_CESS/O.U_ICR_STOCK)* V.Quantity) as [S.H.Cess],
((O.U_ICR_AED/O.U_ICR_STOCK)* V.Quantity)  as [SplCVD],O.U_ICR_INVNODATE as [supplierNo.],
O.InDate as [Date1],O.CardName as [Manufacturer],U_ICR_STOCK as [Quantity1],
U_ICR_BED as [Duty1],U_ICR_ECESS as [Edu.Cess1],U_ICR_CESS as [S.H.Cess1] ,
U_ICR_AED as [SplCVD1],U_ICR_ETRYNOOE as [Ent.No.1], U_ICR_PAGEOE  as [P/ENo.1] 
from OIBT  O ,IBT1  I,OINV,NNM1 ,INV1 V ,DLN1 D where  D.LineNum=v.BaseLine and
D.TrgetEntry=v.DocEntry and D.ItemCode=v.ItemCode and I.BaseLinnum= D.LineNum and I.BaseEntry=D.DocEntry and
O.whscode=V.whscode  and O.U_ICR_STOCK>0  and U_ICR_MODVET ='Y'  and
( (I.bASEtYPE=13 and  (V.baseType=17  or V.baseType=-1 or V.baseType=23))   or (V.bASEtYPE=20 )) and
OINV.Docentry=V.DocEntry  and OINV.Docnum =I.BaseNum   and I.Direction=1  and
O.Itemcode=I.Itemcode and O.BatchNum=I.BatchNum   and NNM1.Series=OINV.Series  and I.DocDate between @FrmDate and @ToDate  and  OINV.docdate  between @FrmDate and @ToDate and  O.U_ICR_STOCK != 0  and oinv.docentry  not in (select baseentry from rin1 where basetype=13) group by OINV.U_ICR_WHS,O.U_ICR_STOCK, OINV.Docnum,OINV.Docentry, I.Linenum, OINV.Docentry,I.BaseNum ,O.U_ICR_INVNODATE,I.Docdate ,I.ItemCode ,I.ItemName  ,I.BatchNum ,U_ICR_TFFNUM,U_ICR_SUPPCODE,O.InDate,O.CardName,U_ICR_STOCK,U_ICR_BED,U_ICR_CESS,U_ICR_ECESS,U_ICR_ETRYNOOE ,U_ICR_PAGEOE,V.Quantity,I.LineNum,SeriesName ,U_ICR_AED  union select  OINV.Docentry, I.Linenum, '0' as [Sr.],OINV.U_ICR_WHS as SeriesName, SeriesName+' '+convert(varchar(50),OINV.Docnum) as [Document No.],I.Docdate as [Date],I.ItemCode as ItemCode,I.ItemName  as [ItemName] ,I.BatchNum as [BatchNo],O.U_ICR_TFFNUM as [Tarriff Class],V.Quantity as [Quantity], ((O.U_ICR_BED/O.U_ICR_STOCK)* V.Quantity) as [Duty] ,((O.U_ICR_ECESS/O.U_ICR_STOCK)* V.Quantity) as [Edu.Cess],((O.U_ICR_CESS/O.U_ICR_STOCK)* V.Quantity) as [S.H.Cess],((O.U_ICR_AED/O.U_ICR_STOCK)* V.Quantity)  as [Spl CVD],O.U_ICR_INVNODATE as [supplier No.],O.InDate as [Date1],O.CardName as [Manufacturer],U_ICR_STOCK as [Quantity1],U_ICR_BED as [Duty1],U_ICR_ECESS as [Edu.Cess1],U_ICR_CESS as [S.H.Cess1] ,U_ICR_AED as [SplCVD1],U_ICR_ETRYNOOE as [Ent.No.1], U_ICR_PAGEOE  as [P/ENo.1]
from OIBT  O ,IBT1  I,OINV,NNM1 ,INV1 V,DLN1 D where D.LineNum=v.BaseLine and D.TrgetEntry=v.DocEntry and D.ItemCode=v.ItemCode and I.BaseLinnum= D.LineNum and I.BaseEntry=D.DocEntry and U_ICR_MODVET ='Y' and ( (I.bASEtYPE=15 and V.baseType=15 ) ) and OINV.Docentry=V.DocEntry  and V.baseRef =I.BaseNum   and I.Direction=1  and O.Itemcode=I.Itemcode and O.BatchNum=I.BatchNum   and NNM1.Series=OINV.Series and O.WhsCode=V.WhsCode  and I.DocDate between @FrmDate and @ToDate and   OINV.docdate  between @FrmDate and @ToDate and  O.U_ICR_STOCK != 0 and oinv.docentry  not in (select baseentry from rin1 where basetype=13)  group by OINV.U_ICR_WHS,I.Linenum,OINV.Docentry,I.BaseNum ,O.U_ICR_INVNODATE,I.Docdate ,I.ItemCode ,I.ItemName  ,I.BatchNum ,U_ICR_TFFNUM,U_ICR_SUPPCODE,O.InDate,O.CardName,U_ICR_STOCK,U_ICR_BED,U_ICR_CESS,U_ICR_ECESS,U_ICR_ETRYNOOE ,U_ICR_PAGEOE,V.Quantity,I.LineNum,SeriesName ,U_ICR_AED,OINV.Docnum order by OINV.Docentry
for xml path('xml'),type
BR,
Manish Pandey

Similar Messages

  • Some of my contact names are not appearing when they text message me.  They are just showing up as their numbers. I have them saved in my phone so i am not really sure why their names aren't showing up when they message me?

    some of my contact names are not appearing when they text message me.  They are just showing up as their numbers. I have them saved in my phone so i am not really sure why their names aren't showing up when they message me?

    I have this identical problem.  For a while my group texts didnt show up on my ipad.  Then one day they did, maybe everyone in the group started using the same os version or something.  Ever since my first reply to the group there have been complaints of multiple threads.  I can not find a pattern for when my group text's decide they want to create a new thread. (it doesnt happen every time)  Everyone in the group has deleted the thread, we've all toggled imessage on/off etc.  There still hasn't been a solution.
    Any help would be appreciated.
    Thanks

  • Last Approver name in not appearing in the shopping basket

    Hi  SRM Gurus,
    We have Implemented N step Badi for our client .During Post Go Live we are facing this issue
    We have created a shopping basket and there are 3 approvers to approve. After the first approvers is approved the name is not appearing in the Shopping basket.
    We are in SRM 4.0
    Can you tell what could be the reasons
    G.Ganesh Kumar

    Hi Ganesh,
              How you fixed your problem ?  Actually i am facing same problem for Bid invitation.
    Regards
    Abhijeet

  • Contact name does not appear after upgrading to iOS 5

    I recently upgraded to iOS 5 and after doing so, contact name does not appear when someone calls; but text messages the name appears. I have saved all my contacts under +9 format. 

    This indicates that the phone was carrier locked and had been 'hacked' to unlock it. Updating the phone has re-locked it to the original carrier.
    ONLY the carrier it is locked to can authorize unlocking it. Not all do so. Contact the carrier and find out what their policy is.
    If it's locked to AT&T, you may as well sell it and buy a new phone. AT&T will not unlock iPhones for any reason.

  • Unknown Column Name "XYZ" not detemined untill runtime.Select query.

    Hi,
    I have written a query in ABAP.I am getting following error.Can some one help me resolve this.There is a column "LANDX" in standard table T005 of PI which i need to get values from. The problem is that the column is visible only at runtime and not otherwise.How can i fetch data from this coulmn writing a select query for this.
    Query written is:
    SELECT landx from T005 into table it_t005.
    Error:
    "Unknown column name "XYZ" not determined untill runtime,you cannot specify a field list."

    Hi Deepika u were right. that there is a landx field but it is included in that table.
    so u cant exactly get it.
    now u can get ur country name and iso code just like this.
    tables: t005t  , t005.
    data: BEGIN OF it OCCURS 100,
            landx like t005t-landx,
            intca like t005-intca,
            END OF it.
    SELECT t005t~landx t005~intca   into CORRESPONDING FIELDS OF TABLE it
      from T005t
      INNER JOIN t005 on ( t005t~land1 = t005~land1 ).
    it is fulfilling ur need.
    Edited by: Matt on Feb 3, 2009 7:49 AM - Please don't use txtspk

  • All my contacts are stored with country code for eg   233 244 123456. Contact names do not appear during incoming calls. Once the country code is removed , names appear. Please help

    All my contacts are stored with country code for eg   +233 244 123456. Contact names do not appear during incoming calls.
    Please help

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • CDs loaded, Artist name does not appear in ARTISTS list

    Among all the CDs I've loaded and songs purchased, I have 2 Carly Simon
    CDs on my video iPod. However, Carly Simon's name does not appear in my
    list of ARTISTS in the Music Menu.
    I did a sync with my iTunes list and the songs are indeed loaded.
    Why is her name missing from the list and how do I get it back?
    It used to be there!
    Thanks-

    I just found the answer on the discussion board.
    In my SETTINGS I had compilations turned on.
    When I switched it off, Carly Simon was back in my
    ARTISTS list.

  • Name dos not appear

    When i receive a call the name dos not appear because when i saved it in my contact list it has an Area code, and if remove the Area code then the message don’t have the contact name

    There are several threads about this. Search the others in case there has already been a solution of some sort

  • In query, turkish column name is not displayed correctly?

    In my characteristic and key figure infoobjects , i used turkish characters for explanation but in Bex they are displayed as illegal characters for column names.
    How can i correct this or where would i make a mistake?
    Thanks.

    Hi Tuncer,
    I am dealing with the same problem you had.
    Turkish characters in the column names, infocube names are not displayed although in BW turkish characters are displayed properly. Did you solve your problem about Turkish characters in column names.
    If you could solve, I would be glad to hear your solution.
    Thank you.
    Mehmet Cekdemir

  • Contact names do not appear when composing an email

    When I click to compose an email, names of my contacts do not appear when I start typing ...only email addresses...and they look shaded out.  I have gone into contacts and confirmed that names are all correct, and looked through other discussions, but usually this seems to happen with text messages.  I don't ahve a problem with the contact names appearing when I text...only when I try to compose a message.  Its very annoying because I don't always remember people's email - I'd like to just start typing their name and ahve the contact appear.  Iphone 5.

    Hi there basecampmason,
    I would recommend force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • When i tried to add new contact in my ip5, the keyboard to key in the name did not appear. Pls help.

    When someone called me, i tried to add his phone number into my contact, but the keyboard did not appear when i wanted to key in the names or other details.

    Hi, tenangaku. 
    Thank you for visiting Apple Support Communities. 
    I would recommend closing all applications in multitasking and power cycling the device.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Cheers,
    Jason H. 

  • Artist name does not appear in artist list but album name is in album list - Ipod Classic 160gb

    For an album I have imported onto my iPod from iTunes, the album name is in the Album list but the Artist name is not on the Artist list.  I have tried deleting the album from the iPod and re-adding from ITunes but the same result.  It is a single artist album, so the artist name is exactly the same for each track; all the tracks are there.  Big nuisance as I use artist name a lot to find specific albums.

    ecb31 wrote:
    this did not work for me,
    Possibly because your problem (you say) was the album name. The original post was about the artist name and is therefore a different problem.
    ecb31 wrote:
    ...I had to fill in the Album for each song, then it showed on my ipod, for ones I did ot know, I just put bloody apple.
    Huh?
    Let me get this right, you had lots of songs without the album name in them, so you filled in the album name yourself - if you knew the album name. If you didn't know the album name, you then entered the same text on all the rest of those songs. So now, you must have a lot of songs all on the same album, even though they're not meant to be - and - you've put text in to a lot of your songs that will remind you forevermore, of just how unhappy you are.
    Well! &
    My question to you is; where did you get the songs from, that they came without the correct information in them?
    If you imported them from a CD, iTunes will go and get the information for you.
    If you bought the songs from the iTunes Store, or another music retailer, the information is in the digital file that you purchased.
    How therefore, does so much of your music appear to be incomplete?
    Am I missing something, or have you simply failed to explain the porblem properly?

  • Substitution string used in custom Report column name does not display in PDF version of report

    I am using Apex 4.2.6.00.03, Apex Listener 2 via Glassfish4 and have set up all my applications and reports on this system.  We previously used Oracle 10.2, with Apache with a custom fopping document.
    My issue is that I have a report that has custom column headings using a substitution string to pull in the begin or end date for the report.  When the report is run and displayed, the column headings appropriately display the date.  However, when I try to set up the Print to PDF option, the column headings are not displaying correctly.
    Is it possible to use a substitution string in the column heading?  I am able to use the substitution string in the Page Header and Page Footer and those display correctly.
    In the Report Attributes setup I have set the "Strip HTML" to Yes and I have four columns that are using the &"ITEM NAME". string.  See below for actual display:
    The report column headings in APEX displays correctly (bold is the substitution detail): 
    Fund    Account Description          Balance 07/01/2014     Budget/Goal FY 14-15     YTD Actual 02/28/2015         Ending Balance 02/28/2015
    In the Print Attributes setup, when I get to the Report Columns section, the Heading column displays the headings as set up in the Report Attributes custom and I am not able to edit these names.  See below:
    In the version of the report that is Printed to PDF I get the following for display:
    Fund           Account Description           Balance %26amp;P347_BEGIN_DATE.     Budget/Goal %26amp;P347_FY.     YTD Actual %26amp;P347_END_DATE.     Ending Balance %26amp;P347_END_DATE.
    Any assistance would be greatly appreciated.
    Thanks,
    Pat

    First, the misspelled word is a test object and not data.
    Second, all data display correctly.
    Third, text object is displaying the old misspelled word.
    Fourth, I have eliminated the possibility that problems in of my pdf export routine cause this issue by exporting directly from Crystal Reports Viewer. I print the report to the crystal report viewer. The report looks good. The text object is spelled correctly. Then I click the Crystal Reports viewer's export button in the left upper corner and I export to both EXCEL and PDF. The excel export looks good. The pdf export is misspelled. All the export occurs internally in Crystal reports.
    Fifth, I found outthat all users who have this problem have the ADOBE PDF writer installed. I am just suspicious that ADOBE writer is interferring with Crystal export
    Sixth, I cannot recreate this problem on any of our development and test machines. It only happens on end-user laptops.
    Seventh, I changed the name of the report that had this problem and created a new version and installed on end-user laptop. The behaviour still persists. User saved the report as both RPT and PDF. RPT export looks good. PDF version has the spelling problem. Data on both reports is up-to-date and good. I copied the same RPT export to my PC and exported it to PDF, the pdf looks good. That is why I think something on the end-users laptops is causing the export to use some cached template.
    One more thing I did was to change the report name in VB.NET project, recreated a new package and installed on end-user's laptop. The same exact problem is still there.
    I have worked with Crystal Reports more than 15 years and I have never such a weird behaviour before. I know this sounds very weird. We are all baffled by what is happening.

  • Creating DOMDocument when column names are not known

    I want to make a DOMDocument from a table of which I do not know the column names.
    I already got pretty far: I could generate XML elements having the name of each of the columns.
    I still have a problem when trying to retrieve the cell values from the table.
    The code is below.
    The problem I have is situated after the line:
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    I do not know how to retrieve the value from the table but by hardcoding the column name (i.e. get_rows.label where label is a column name). What I want to use is the VALUE of the variable col_name as the column name.
    Many thanks in advance.
    The code:
    set serveroutput on
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    row_node xmldom.DOMNode;
    user_node xmldom.DOMNode;
    item_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    row_elmt xmldom.DOMElement;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    CURSOR DF_ROWS IS SELECT * FROM DF_COUNTRY;
    /* get the column names */
    CURSOR DF_COLUMNS IS SELECT COLUMN_NAME FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'DF_COUNTRY';
    col_name varchar(20);
    cell_value varchar(40);
    BEGIN
    /* OPEN DF_COLUMNS; */
    /* create a DOM document and append a root element */
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    root_elmt := xmldom.createElement(doc, 'ROOT');
    root_node := xmldom.appendChild(main_node, xmldom.makeNode(root_elmt));
    /* loop over the records */
    FOR get_rows IN DF_ROWS LOOP
    row_elmt := xmldom.createElement(doc, 'ROW');
    /* xmldom.setAttribute(item_elmt, 'num', get_users_rec.rownum); */
    row_node := xmldom.appendChild(root_node, xmldom.makeNode(row_elmt));
    /* Now loop over all the columns (cells) and create an element for each of them */
    FOR get_columns IN DF_COLUMNS LOOP
    col_name := get_columns.COLUMN_NAME;
    DBMS_OUTPUT.PUT_LINE(col_name);
    item_elmt := xmldom.createElement(doc, get_columns.COLUMN_NAME);
    item_node := xmldom.appendChild(row_node, xmldom.makeNode(item_elmt));
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    item_text := xmldom.createTextNode(doc, get_rows.label);
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    END LOOP;
    END LOOP;
    xmldom.writeToFile(doc, 'C:\ClinCapt\Output\test.xml');
    xmldom.freeDocument(doc);
    END;

    I needed to manipulate the XML afterwoods (i.e. combine it with queries to other tables in a single large XML document).Did you try to combine all these subsequent queries into one single query and pass it to the XML packages to generate the XML all at once (instead of doing it in stages).
    SQL> select dbms_xmlquery.getxml('select dname,
      2                              cursor(select empno, ename
      3                                     from scott.emp
      4                                     where rownum < 3) employees
      5                              from scott.dept where rownum < 3') from dual ;
    DBMS_XMLQUERY.GETXML('SELECTDNAME,CURSOR(SELECTEMPNO,ENAMEFROMSCOTT.EMPWHEREROWN
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DNAME>ACCOUNTING</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
       <ROW num="2">
          <DNAME>RESEARCH</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
    </ROWSET>
    SQL>                                                      

  • SMARTFORM Printing: Invoice header company name does not appear

    Hi Experts,
    I have a problem with the invoice SMARTFORMS whereas when the invoice exceeds more than 1 page, the company name at the left topmost part of the form doesn't appear. The window that contains this should only appear in the first page and when I'm printing an invoice of more than 1 page, the company name doesn't appear in the print-out.
    Any idea what would be the problem? or how to resolve this? Thanks in advance
    Best Regards,
    Kurtt

    Hi Experts,
    Thanks for taking time to help on this. Yes indeed it is appearing on the first page only. The problem is that the text element that contains the company name in that window doesn't appear if the invoice exceeds 1 page.
    Let say if the invoice to be printed has 2 pages then the company name doesn't appear.
    But if there's only 1 page to be printed, the company name appears.
    No condition specified in the text element nor in window.
    Any idea? Thanks!
    Best Regards,
    Kurtt

Maybe you are looking for