Problem in displaying Columns 'TaxSum'
Hi Experts,
I am having some problem in displaying a Columns 'TaxSum's' values , this Query Should returns two Rows for two Different Items for the same Vendor with their 'TaxSums' , If i display the query without 'TaxSum's' Columns then it display the data with two different rows but If i display 'TaxSums ' Columns (Amount of their Rates) also then
it is not displaying the data, it gives an error
" Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
This is the query...
SELECT DISTINCT ORPC.DocEntry, ORPC.DocNum AS 'Debit Note No.', ORPC.CardName AS 'Name', ORPC.CardCode AS 'code', ORPC.NumAtCard AS 'Supplier Ref.',
OCTG.PymntGroup AS 'Payment Terms', OSHP.TrnspName AS 'Shipping type', RPC1.Dscription AS 'Description of Goods', ORPC.Address,
RPC1.Quantity, RPC1.Price AS 'Rate', RPC1.LineTotal AS 'Amount', ORPC.DocDate,
(SELECT DISTINCT TaxRate FROM RPC4
WHERE (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'Basic Excise Duty BED@10 %',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_8
WHERE (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'Education Cess @2%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_7
WHERE (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'Secondary Education Cess @1%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_6
WHERE (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)@2%',
(SELECT DISTINCT TaxRate FROM PCH4
WHERE (staType = 4) AND (StaCode = 'CST12.5') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)@12.5%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_5
WHERE (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'Input VAT@5%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_4
WHERE (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS 'Input [email protected]%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'Addtional Tax@1%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add1S') AND (DocEntry = RPC1.DocEntry)) AS 'Addtional Tax@1%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'BedAmount@10%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'EcessAmount@2%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'SecCessAmount@1%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'CSTAmount@2%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_5
WHERE (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'VATAmount@5%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_4
WHERE (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS '[email protected]%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'AddTaxAmount@1%(for VAT@4)',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_3
WHERE (StcCode = 'VAT12.5') AND (staType = 18) AND (StaCode = 'Add1S') AND (DocEntry = RPC1.DocEntry)) AS 'AddTaxAmount@1%([email protected])',
(SELECT DISTINCT TaxSum FROM PCH4
WHERE (StcCode = 'B10C125P') AND (TaxRate = 12.500000) AND (staType = 4) AND (StaCode = 'CST12.5') AND (DocEntry = RPC1.DocEntry)) AS '[email protected]%'
FROM ORPC INNER JOIN
RPC1 ON ORPC.DocEntry = RPC1.DocEntry INNER JOIN
OSHP ON ORPC.TrnspCode = OSHP.TrnspCode INNER JOIN
OCTG ON ORPC.GroupNum = OCTG.GroupNum
WHERE (ORPC.CardCode = 'V00522') AND (ORPC.DocNum = '9220005')
Kindly tell me the solution....
Regards
Rahul
Edited by: 118Rahul on Sep 17, 2011 2:31 PM
Edited by: 118Rahul on Sep 17, 2011 3:18 PM
Hi Rahul......
Just try this......
SELECT SUBSTRING((CONVERT(VARCHAR(11),T0.DOCDATE,106)),4,11), T0.[DocNum], T0.[DocDate], Sum(T1.[Quantity]) 'Quantity', Sum(T1.[LineTotal]) 'Amount', T0.[TotalExpns] 'Pack/Forw.',
t0.doctotal-t0.vatsum as 'Mat.Value',
T3.PymntGroup AS 'Payment Terms', T2.TrnspName AS 'Shipping type',
(isnull((SELECT SUM((case when upper(t4.staType) =-90 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_Cenvat 10%',
(isnull((SELECT SUM((case when upper(t4.STAType)=-60 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_Edu. Cess 2%',
(isnull((SELECT SUM((case when upper(t4.staType) =-55 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_S&H Cess 1%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=4 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_VAT4%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=12.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_VAT12.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=1 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_AVAT1%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=2.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_AVAT2.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=2 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_CST2%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=12.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0),0)) 'Rate_CST12.5%',
(isnull((SELECT SUM((case when upper(t4.staType) =-90 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_Cenvat 10%',
(isnull((SELECT SUM((case when upper(t4.STAType)=-60 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_Edu. Cess 2%',
(isnull((SELECT SUM((case when upper(t4.staType) =-55 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_S&H Cess 1%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_VAT4%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_VAT12.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=1 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_AVAT1%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=2.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_AVAT2.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_CST2%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum),0)) 'Amt_CST12.5%'
FROM ORPC T0 INNER JOIN RPC1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN
OSHP T2 ON T0.TrnspCode = T2.TrnspCode LEFT JOIN
OCTG T3 ON T0.GroupNum = T3.GroupNum
Where (T0.CardCode = 'V00522') AND (T0.DocNum = '9220005')
Group By T0.[DocNum], T0.[DocDate], T0.[TotalExpns], t0.doctotal, t0.vatsum, T0.DocEntry, T1.LineNum,
T3.PymntGroup, T2.TrnspName
Order By T0.[DocDate]
Regards,
Rahul
Similar Messages
-
Problem in displaying Column Heading using JTable
I am using JTable component in my applet. I am trying to retrieve records from a database and want to display the same in the table using JTable component. In that procees my data is shown in the table but I am not able to display the column heading.
Please suggest.you could user JScrollPane to show the column's head.
if you don't want to use JScrollPane ,you should use the getTableHeader() method and add the header into the pane -
Problem in displaying the TaxRate columns .
Hi Experts,
I am having a problem in displaying the 'TaxRate', in this Query there are some different Taxrate's columns like- ' 'Basic Excise Duty BED@10 %', ' Education ces@2% ' , 'Secondary Education Cess @1%', etc. only 4 -5 tax's value should display at a time and rest of the TaxRate's columns whose value is NULL should not display.
So, I want to display only those TaxRate's columns whose value is not NULL and If there is no value for any taxrate's column in the data, then it should Display only 'Excempt' column.
This is my query...
SELECT DISTINCT OSTA.Code , ORPC.DocNum AS 'Debit Note No.', ORPC.CardName AS 'Name', ORPC.CardCode AS 'code', ORPC.NumAtCard AS 'Supplier Ref.' ,
RPC1.Dscription AS 'Description of Goods', ORPC.Address, RPC1.Quantity, RPC1.Price AS 'Rate', RPC1.LineTotal AS 'Amount', ORPC.DocDate,
(SELECT DISTINCT TaxRate
FROM RPC4
WHERE (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'Basic Excise Duty BED@10 %',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_8
WHERE (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'Education Cess @2%',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_7
WHERE (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'Secondary Education Cess @1%',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_6
WHERE (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_5
WHERE (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'Input VAT@5%',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_4
WHERE (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS 'VAT12.5%',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'ADD Tax 1%',
(SELECT DISTINCT TaxRate
FROM RPC4 AS RPC4_2
WHERE (staType = 7) AND (DocEntry = RPC1.DocEntry)) AS 'Excempt'
FROM OSTA INNER JOIN
RPC4 AS RPC4_1 ON OSTA.Code = RPC4_1.StaCode CROSS JOIN
ORPC INNER JOIN
RPC1 ON ORPC.DocEntry = RPC1.DocEntry
WHERE (OSTA.Code IN ('BED@10','eCess 2%','HeCess 1%','CST')) AND (ORPC.CardCode = 'V00308') AND (ORPC.DocNum = '9220004')
Kindly help me to solve this problem
Regards
RahulHi rahul,
Try this:
SELECT DISTINCT T0.DocNum AS 'Debit Note No.', T0.CardName AS 'Name', T0.CardCode AS 'code', T0.NumAtCard AS 'Supplier Ref.'
,T1.Dscription AS 'Description of Goods', T0.Address, T1.Quantity, T1.Price AS 'Rate', T1.LineTotal AS 'Amount', T0.DocDate,
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0)FROM RPC4 WHERE RPC4.StaType = -90 AND RPC4.DocEntry = T0.DocEntry) AS 'Basic Excise Duty BED@10 %',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -60 AND RPC4.DocEntry = T0.DocEntry) AS 'Education Cess @2%',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = -55 AND RPC4.DocEntry = T0.DocEntry) AS 'Secondary Education Cess @1%',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 4 AND RPC4.StaCode = 'CST2' AND RPC4.DocEntry = T0.DocEntry) AS 'Central Sales Tax(CST)',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1 AND RPC4.StaCode = 'VAT4'AND RPC4.DocEntry = T0.DocEntry) AS 'Input VAT@5%',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 1 AND RPC4.StaCode = 'VAT12.5'AND RPC4.DocEntry = T0.DocEntry) AS 'VAT12.5%',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 18 AND RPC4.StaCode = 'Add2'AND RPC4.DocEntry = T0.DocEntry) AS 'ADD Tax 1%',
(SELECT DISTINCT ISNULL (SUM(RPC4.TaxRate),0) FROM RPC4 WHERE RPC4.StaType = 7 AND RPC4.DocEntry = T0.DocEntry) AS 'Excempt'
FROM ORPC T0
INNER JOIN RPC1 T1 ON T0.DocEntry = T1.DocEntry
WHERE (T0.CardCode = 'V00308') AND (T0.DocNum = '9220004')
FOR BROWSE
Thanks,
Neetu -
display :column attribute autolink="true" problem
Hi,
I am using <display:column property="contactEmail" sortable="true" titleKey="varianceReport.contactEmail" style="text-align:left" autolink="true"/> for display a Contact Email column and it should have a link to send mail.
But if i use this autolink="true" iam getting below html tags in exported excel sheet Contact Email column.
[email protected]
[email protected]
Please provide any help for this. Advanced Thanks.Then just accordingly rewrite the code which exports the Excel file? If it is not your code, then just contact the authors of that code. Go to the homepage of that 3rd party API and check if there isn't a forum or a mailinglist.
-
Problem in displaying multiple column values using Narrative View
Hi All,
I have a requirement where in I need to display column 1 of an Answers report as a header and all values of column 2 below tht.
There are multiple values from column 2 for every value in column 1
Example:
Group:
Grp (This is column 1)
Activity:
Act1
Act2
Act3 (These are values from column 2)
I have used narrative view for this which looks like:
Group: @1
Activity:@2[br/]
But this displays the value of column1 along with every value of column 2. I want column 1 value to be displayed only once.
Thanks in advance
RadhikaHi see this link it may helpful
Re: Narrative view not showing up in the report
Re: how to transpose columns to rows in OBIEE
Regards
Naresh -
Problem with display of Buttons in ADF
Hi All,
I had a strange problem in display of the ADF Page in one of the server.I had two buttons inside ToolBars, The UI was coming fine in the two WLS, But when I deployed the application in third WLS, I was seeing that Buttons are coming in the top of screen,
Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<af:panelStretchLayout id="psl1">
<f:facet name="center">
<af:panelGroupLayout id="pgl1">
<af:panelBox text="Service Request#: #{bindings.srNumber.inputValue}" id="pb1">
<af:spacer width="10" height="10" id="s1"/>
<af:outputText value="Service Request#: #{bindings.srNumber.inputValue}"
id="ot18" inlineStyle="font-weight:bold;"
rendered="false"/>
<af:spacer width="15" height="10" id="s2"/>
<af:separator id="s3" rendered="false"/>
<af:panelFormLayout id="pfl1">
<af:inputText value="#{bindings.subject.inputValue}" label="Summary"
required="true" columns="100" maximumLength="100" id="it3" showRequired="true">
<f:validator binding="#{bindings.subject.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.description.inputValue}"
label="Description" required="true" columns="100"
maximumLength="1999" id="it2"
rows="7" showRequired="true">
<f:validator binding="#{bindings.description.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:separator id="s4" rendered="false"/>
</af:panelBox>
<af:toolbar id="tb1">
<af:group id="g1">
<af:commandButton text="#{pageFlowScope.MySRBean.reopenSrBackButtonLabel}" id="cb2"
action="backtodetails" accessKey="G"
immediate="true" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
<af:commandButton text="#{pageFlowScope.MySRBean.reopenSrConfirmReopenButtonLabel}" id="cb3"
action="success"
actionListener="#{pageFlowScope.MySRBean.reOpenSR}"
accessKey="C" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
</af:group>
</af:toolbar>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
</jsp:root>
thanks
KrishnaveniUser, please always tell us your jdev version.
The interesting part is what you did not tell us.
Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
Timo -
Problem with display tags (not accepting inner tags)
Hi guys ,
I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
<display:column title="Row_Id" >
' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
</display:column>
here i got the exception:
The value of attribute "href" associated with an element type "a" must not contain the '<' character.
here if jstl is not used then how to put my value in anchor tag
please help me.Can you use EL directly:
<a href="example.jsp?id=${row.id"/"></a> -
Problem to display a negative number in XML Publisher output in excel
Hi All,
I am facing problem in displaying a negative number in XML Publisher output in excel.
My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to display it as (123).
I have put these brackets using a formula column in the RDF, but it is the default functionality of excel that whenever there is a number in brackets then it automatically displays that as a negative value.
Can anyone please help me how I can display this negative number within brackets and not as a negative digit. Is there any special tag or is there any formula which can be used to convert this into text and written in the Help text of RTF template.
This is very urgent. If someone knows please reply asap.
Regards,
ShrutiThis is very urgent. If someone knows please reply asap.We are all volunteers here, so no ones questions are more urgent then other ones.
If its that urgent it would have helped if you had chosen the correct forum to ask your question BI Publisher -
Problem while displaying top of page in list display
Hi,
M facing problem in displaying top of page in list .
M using following methods:-
lr_outer_grid TYPE REF TO cl_salv_form_layout_grid,
lr_inner_grid TYPE REF TO cl_salv_form_layout_grid,
lr_label TYPE REF TO cl_salv_form_label,
lr_text TYPE REF TO cl_salv_form_text.
For displaying the top of page m using event TOP_OF_PAGE.
CREATE OBJECT lr_outer_grid.
*Outer grid
lr_inner_grid = lr_outer_grid->create_grid(
row = 1
column = 1 ).
*... create lable information in inner_grid
User ID
lr_label = lr_inner_grid->create_label(
row = 1
column = 1
text = text-h03 ).
*... create text information in inner_grid
lr_text = lr_inner_grid->create_text(
row = 1
column = 2
text = sy-uname ).
*... set label for text
lr_label->set_label_for( lr_text ).
But while m going to do same coding for second parameter its not intializing length so adding extra spaces while displaying second row.
e.g
USERID abcdefghjik
PLANT jhk to hjk
I want that output should look like
USERID abcdefghjik
PLANT jhk to hjk
Please tell me the solution what should i do for avoiding extra spaceHi Neelema,
You could try this sample code.
[http://sap-img.com/fu037.htm]
[http://sap-img.com/abap/sample-alv-heading-in-alv.htm]
Regards,
Amit. -
Problem in Displaying text Variable
Hi All,
I have problem in Displaying text Variable in the column header.
My requirement is as follows.
Column Level:
0Calmonth/Year
Key figures
Keyfigure1 - Current Month - Text Variable1
Keyfigure2 - Previous Month - Text Variable2
Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
So based on each 0Calmonth/year these three keygirues should display in Header section like.
Selection screen
0Calmonth/Year - 03.2005 - 06.2005
Result should be for each month.
0Calmonth/Year
03.2005 04.2005 05.2005
03.2005 | 02.2005 | 02.20005 04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
I have created two text variable with Customer exit.But not able to show exact months in the header section.
For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
I have tried to code, but not successfull.
Please help me how to go about this.
Will assign full points.
Regards,
Vijayhi
Check here........
Re: Customer Exist for "From Current Date To Month End"
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
Cal month
it might helpful for you
assign points if helpful -
Urgent : Problem in displaying 0fiscper as dynamic data col.
Hi SEM gurus,
I have a problem in displaying 0FISCPER in data columns. Say, in my planning level I have restricted 0FISCPER to 0001.2005 to 012.2005. and I did selected in data column, Dynamic for 0fiscper.
Now when I run my lay out for keyfig. 0Amount the lay out is like this
Customer Amount Amount Amount
Xxxxxx 10 20 30
Its not displaying the month what I want in the lay out should be like this
001.2004 002.2004 003.2004
Customer Amount Amount Amount Amount
Xxxxxx 10 20 30 40 .........
Can any one Please help me out to fix this ???
Thanks a bunch in advance
Rohith.
Message was edited by: rohith gentle
Message was edited by: rohith gentleRohith,
change HEADING column in the 2nd screen of the layout design to "0FISCPER Amount".
I think, current HEADING is named as only "Amount".
This will give layout as
Customer 001.2004Amount 002.2004Amount 003.2004Amount
hope that helps.
Hari Immadi
http://immadi.com
SEM BW Analyst -
Problem with displaying chart data
Hello everybody,
I have problem with displaying chart data correctly. I'm using a cartesian chart with DateTimeAxis. The stockdata I'm using is for half a year and
with ticks for every day. The problem is, that Flex displays the data of february in march together with the data of march. I have added a picture
to show the result. The second column of the grid is for february and the third for march.
Could anybody help me with this problem. Thanks in advance.
ThomasHi Chris,
thanks for your reply. Here you get the source code:
The following method creates the LineChart:
public function init():void
model.upperChart = this;
model.upperChartStyle.setChartViewStyle(this);
this.hAxis = new MyDateTimeAxis();
model.upperChartData.configureHAxis(this.hAxis);
this.vAxis = new LinearAxis();
model.upperChartData.configureVAxis(this.vAxis);
this.vAxisTitle = new Label();
this.vAxisTitle.text = model.upperChartData.getVAxisTitle();
model.upperChartStyle.setVAxisTitleLabelStyle(this.vAxisTitle);
this.vAxisTitle.x = 10
this.vAxisTitle.y = 0;
this.addChild(this.vAxisTitle);
this.myChart = new CartesianChart();
//remove default datatip
this.myChart.showDataTips = false;
this.myChart.x = 10;
this.myChart.y = 0;
this.myChart.width = 768;
this.myChart.height = 196;
model.upperChartStyle.setChartStyle(this.myChart);
this.addChild(this.myChart);
//Remove line shadow
this.myChart.seriesFilters = null;
this.myChart.horizontalAxis = this.hAxis;
this.myChart.verticalAxis = this.vAxis;
this.hAxisRenderer = new AxisRenderer();
model.upperChartData.configureHAxisRenderer(this.hAxisRenderer);
this.hAxisRenderer.axis = this.hAxis;
model.upperChartStyle.setHAxisRendererStyle(this.hAxisRenderer);
this.myChart.horizontalAxisRenderers.push(this.hAxisRenderer);
this.vAxisRenderer = new AxisRenderer();
model.upperChartData.configureVAxisRenderer(this.vAxisRenderer);
this.vAxisRenderer.axis = this.vAxis;
model.upperChartStyle.setVAxisRendererStyle(this.vAxisRenderer);
this.myChart.verticalAxisRenderers.push(this.vAxisRenderer);
model.upperChartStyle.setVAxisDataLabelStyle(this.vAxisMinLabel);
this.addChild(this.vAxisMinLabel);
model.upperChartStyle.setSeriesStyle(model.upperChartData.series, model.upperChartData.shares);
this.myChart.dataProvider = model.upperChartData.dataProvider;
this.myChart.series = model.upperChartData.series;
The data for dataprovider and series you can see in attached file dataprovider.xml.
xfield is equivalent to timestamp
yfield is equivalent to absolute
I think the problem could be the configuration of the datetimeaxis. The following method shows the parameter for the datetimeaxis:
public function configureHAxis(axis:MyDateTimeAxis):void
axis.parseFunction = UtilityClass.parseYYYYMMDDHHNNSSString2Date;
axis.dataUnits = "days";
axis.dataInterval = 1;
axis.title = "";
axis.minimum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-01-07 00:00:00").time);
axis.maximum = new Date(UtilityClass.parseYYYYMMDDHHNNSSString2Date("2009-07-06 00:00:00").time);
And finally you get the function, that I'm using for string to date conversion:
public static function parseYYYYMMDDHHNNSSString2Date(input:String):Date
var result:Date = new Date();
var year:Number = Number(input.substring(0,4));
var month:Number = Number(input.substring(5,7));
var date:Number = Number(input.substring(8,10));
var hours:Number = Number(input.substring(11,13));
var minutes:Number = Number(input.substring(14,16));
var seconds:Number = Number(input.substring(17,19));
result.setUTCFullYear(year);
result.setUTCMonth(month-1);
result.setUTCDate(date);
result.setUTCHours(hours);
result.setUTCMinutes(minutes);
result.setUTCSeconds(seconds);
return result;
I hope that will help to locate the reason for the wrong chart visualization.
Thanks for any help. -
Problem in Displaying Transport code in Words
Hi Experts,
I am having some problem in displaying the 'shipping type' in words , i am applying this concept
(CASE WHEN ORPC.TrnspCode=16 then ' By Sea '
Else
CASE WHEN ORPC.TrnspCode=27 then ' BY SPEED POST '
else 0
END END ) as 'Shipping type',
I want if Trnspcode =16 then it should display 'By Sea' in the Column or if it is 27 then it should display ' BY SPEED POST' in the Column 'Shipping type'.
but it is showing an error -
' Conversion failed when converting the varchar value 'BY SPEED POST ' to data type int '.
Kindly tell me ,how can i solve this problem
Regards
RahulHi Rahul,
Try inserting this into your FMS
if $[ORPC.TrnspCode] = '16'
Select 'By sea'
Else
if $[ORPC.TrnspCode] = '27'
select 'By Speed Post'
Else
if $[ORPC.TrnspCode] = ''
Select 0
Hope this will help you.
Best Regards,
Darius Gragasin -
Problem in displaying total text in total line
Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
code is as follows:
ls_layout TYPE slis_layout_alv .
ls_layout-totals_text = 'TOTAL'.
ls_layout-colwidth_optimize = 'X'.
ls_layout-no_vline = 'X'.
ls_layout-no_hline = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid " Report ID
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = ls_layout
it_fieldcat = gt_fieldcat " Field Catlog
TABLES
t_outtab = gt_cost_output " Output Tablehi me to i have the same problem
FORM create_layout .
data: text(20) TYPE c.
it_layout-window_titlebar = text.
it_layout-colwidth_optimize = 'X'.
it_layout-totals_text = text-013."'Totals'(013).
it_layout-cell_merge = 'X'.
it_layout-zebra = 'X'.
ENDFORM.
but no output total in alv
also i had another broplem i had unit i wanna show it in total line and calc value in header -
Sql Devloper 4.0.0.13 - problems with displaying user data types
Hi,
I have installed new version of sqldeveloper and have discovered some problems with displaying user data types. The data that is described as VARCHAR2 are displayed with ‘???’.
The problem persist in table view, script output and exported files.
My type is described as follows:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
when make select column from table that contains this type I get next results:
CASE 1:
SQLDeveloper Version 3.2.20.09; Build MAIN-09.87; JDK 1.6.0_43; Windows 7 64 bit
Select:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'TRAIK','TURBE','BABANA','3452','0',NULL)
END CASE 1;
CASE 2:
SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_40; Windows 7 64 bit
Select1:
select id, adresalokacija
from dptr_saglasnosti
where id = 1;
Result1:
ID ADRESALOKACIJA
1 COMP.DPTY_ADRESA(124,4913,'???','???','???','???','???',NULL)
But if I select one element it is displayed normal.
Select2:
select id, a.adresalokacija.opcina
from dptr_saglasnosti a
where id = 1;
Result2:
ID ADRESALOKACIJA.OPCINA
1 TRAVNIK
END CASE 2;
I have tried this scenario on three different pc with same output.
Pleas help me to get rid of the '???' in result.
Best Regards,
OmerI tried on SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_45; Windows 7 64 bit; NLS setting is default
all data can show,No ??? in result
Test step as following:
create or replace TYPE "DPTY_ADRESA" AS OBJECT
ID_DPSF_OPCINE NUMBER,
ID_DPSF_MJESTA NUMBER,
OPCINA VARCHAR2(100),
MJESTO VARCHAR2(100),
ULICA VARCHAR2(200),
BROJ VARCHAR2(20),
SPRAT VARCHAR2(20),
OSTALO VARCHAR2(100),
CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
alter TYPE "DPTY_ADRESA" add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
CREATE TABLE dptr_saglasnosti (
adresalokacija DPTY_ADRESA,
id number);
INSERT INTO dptr_saglasnosti VALUES (
DPTY_ADRESA (65,225,'Vrinda Mills', '1-800-555-4412','sss','aaaa','eeeee','attta'),1 );
select id, adresalokacija from dptr_saglasnosti where id = 1;
ID ADRESALOKACIJA
1 HRCP.DPTY_ADRESA(65,225,'Vrinda Mills','1-800-555-4412','sss','aaaa','eeeee','attta')
Maybe you are looking for
-
hi there i have a strange problem with my nokia n8...every time i put my phone to offline mode and change it back to general mode my contacts list dissapear and i have to restart the phone to see my cantact list...is there a solution for this bug???e
-
Oracle 9i Lite for Linux, which Distribution ??
Hi, which Linux distribution can you recommend running 9i Lite ? I tried SuSE 7.3, and finally succeeded in running the mobile server after quite some problem. However failed to run the mobile server as apache module. So which distribution works with
-
HI i am narrating the scenario first and is as below. After the payment run program(FPY1) has been executed and approved by the finance dept, the cheque processor executes the payment medium program SAPLFKGV, transaction code FPCH1. this program crea
-
hi Here is my html file <html> <body> <applet codebase = "Coorclasses/" code = "CoordinateConverterApplet.class" archive = "FITSWCS.jar" width=380 height=400></applet> </body> </html> It works fine.In the above case my ".class" file (CoordinateConver
-
In this episode I'll show Photoshop Beginners the 10 things they want to learn how to do first. Photoshop offers a ton of capabilities, but if you're just starting out there are some things that you're probably wanting to know how to do right off the