Fill the blank detail section with dates
Hello,
I'm using Crystal reports X1. I have group by "Ticket Number". In the detail section of the ticket number I have a field that stores a date called "SevDate"
This is how it looks like
Ticket Number SevDate
IM44-0023546
IM44-0023546 03/20/2010
IM44-0023546
IM44-0023546
IM44-0023546
What I'm trying to do is get this date repeated or filled in the next detail section of the Ticket Number.
so, basically I'm trying to see the report like this and this should be in a date format so I can do some other calculation.
Ticket Number SevDate
IM44-0023546
IM44-0023546 03/20/2010
IM44-0023546 03/20/2010
IM44-0023546 03/20/2010
IM44-0023546 03/20/2010
How can I achieve this task? Please assist...
Thank you
Angel
Let me count the ways...
1) If you want the same date for all records for a given ticket number (which actually is not what's shown), then you could group on ticket number and use Maximum(, ) as the field displayed.
2) If you want the last non-null SevDate (apparently), you could use a formula like (basic syntax):
global sevDate as date
if Not isNull({SevDate}) then
sevDate = {SevDate}
end if
formula = sevDate
3) You could change the generation of the data set (use an SQL Command) to return the date you want in each record.
Which one to use will depend on your requirements...
HTH,
Carl
Similar Messages
-
Detail section with a subreport in it will not suppress when blank
Hi all,
I think this is an easy one because I did it before but cant get it done this time for some reason.
I have a Detail section with a sub report in it. %99 of the time it is blank... I have Suppress Blank Section checked but the section still shows up just taking up space.
What did i forget to do please?
Thanks
Timalaugh
Edited by: Timalaugh on Feb 10, 2012 5:04 PMmade changes to the sub report itself.
... every section checked as suppress Blank Section. -
Blank space in the report detail section
Hi ,
I have data for ten columns and after that i am getting a blank space, so my report is scrolling to right side without any data.How shall i remove the blank space.Any suggestions.For one more i am getting this only at the second page (Detail section)
Regards,
RajasekarThanks James for the reply,but i am not getting it correctly.
I have a year column which is the last column in my detail section.If i don't get any value for that year column then i am not getting these blank space at the right side of my report.If i have value for the year column then i am getting blank space double the times to my report detail section.
Any suggestions
Regards,
Rajasekar -
Setting the height of detail section with RAS SDK
Hi, all,
is it possible to locate a section (CrystalDecisions.ReportAppServer.ReportDefModel.Section) in a reportk you and set its maximum height?
When I find a detail section in question like so section = reportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[counter];
it just gives me the height of one row.
Is there a way to set a maximum size of it?
Thank you!Hi Jelena,
see the below sample to add a new section to the report.
http://scn.sap.com/docs/DOC-6025
in the sample, see below code how the section properties are set.
//Set the properties for the section
boSection.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;
boSection.Name = "Detail2";
boSection.Height = 1000;
boSection.Width = 11520;
Refer to above sample and write your own code to identify the section and then set the properties.
Othe RAS SDk samples are here.
http://scn.sap.com/docs/DOC-28646
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications. -
Blank form fields with data?
I've created a form in Acrobat and sent it to a few people to test. When they send it back to me, some people say even though they saved their data, when it's previewed in their browser (email) it looks blank. When I receive forms sent back to me, the form appears blank, but when I click in the field, the answer appears.
How can I fix the form so that no one is confused by a blank form after they fill it out? I'm not concerned about receiving the blank forms since there is data, I'm more concerned that a customer will see a blank form after they've filled it out and get frustrated.
BTW, we've tried opening the forms returned to us in MAC and PC, same problem.
Thanks,
DThe problem occurs when the Preview application on a Mac is used to fill-in the forms. It is well known the Preview corrupts PDFs in a number of ways and it should be absolutely avoided when using PDF forms. The damage it does to a document cannot be repaired, but you can open the corrupted form in Acrobat, export the form data (to an FDF or XFDF file), and import it back into a blank form. Then inform your users to use Adobe Reader and not Preview.
Also, some PDF viewers (e.g., iOS's built-in viewer) have no support for PDF forms at all, so forms will appear blank when opened. The fix for this is to have them open the form in Adobe Reader. This is assuming the form was not corrupted with Preview. -
Problem with filling nodes of a context with data
hi,
i've got the following problem with filling a controller context:
the context of the controller looks like:
Context
|-Node1 0..n singleton
|-Subnode1 0..n singleton
| |-SubVal1.1
| |-SubVal1.2
|-Subnode2 0..n singleton
| |-Subval2.1
| |-Subval2.2
|-Val1.1
|-Val1.2
that means every Element of Node1 should have its own Subnode-Elements & Val1-Values
in wdDoInit() of the controller I fill the context like this:
Collection Node1, SubNode1, SubNode2
for (Iterator iter = Node1.iterator(); iter.hasNext;) {
newNode1NodeElement = wdContext.createNode1Element();
newNode1NodeElement.set... //setting the values
wdContext.nodeNode1().addElement(newNode1NodeElement);
for (Iterator iter2=Subnode1.iterator(); iter2.hasNext;) {
newSubnode1NodeElement = wdContext.createSubnode1Element();
newSubNode1NodeElement.set... // setting the SubVal1.x
wdContext.nodeSubnode1.addElement(newSubnode1NodeElement);
for (Iterator iter3=SubNode2.iterator(); iter3.hasNext;) {
newSubnode2NodeElement = wdContext.createSubnode2Element();
newSubNode2NodeElement.set... // setting the SubVal2.x
wdContext.nodeSubnode2.addElement(newSubnode2NodeElement);
i've got the impression, that <b>all</b> my SubNodes are filled in the <b>first</b> Node1-Element. is there an error in the code above? because in the first place, i see every values in the first Element of Node1-views and if i navigate to the next Element of Node1, every views are empty.
for every Node (Node1, Subnode1, Subnode2) i've got an own view, that maps its context to the corresponding Node of the controller context, e.g for the SubNode1-View:
Context Context
| ....
|- ViewNode ---> ..|- Subnode1
|- SubVal1.1 ---> .. |-SubVal1.1
|- SubVal1.2 ---> .. |-SubVal1.2
in these views, i navigate through the nodes via
wdContext.nodeViewNode().move...()
in the SubNode1-View i see the SubVal1.1, SubVal1.2 (that's what i want) <b>and</b> additional SubVal2.1, SubVal2.2 (that's what I don't want...)
kind regards, achim
ps: i've studied the Master/Detail-Tutorial and i think the choice for cardinality 0..n and type singleton is correct in my case.hmm, let's look at the code:
for (Iteration Node1) {
newNode1NodeElement = wdContext.createNode1Element();
wdContext.nodeNode1().addElement(newNode1NodeElement);
for (Iteration SubNode1) {
newSubNode1NodeElement = wdContext.createSubNodeXElement();
newNode1NodeElement.nodeSubNode1().addElement(newSubNode1NodeElement);
for (Iteration SubNode1.1) {
newSubNode1.1NodeElement = <b>wdContext</b>.createSubNode1.1Element();
newSubNode1NodeElement.nodeSubNode1.1.addElement(newSubNode1.1NodeElement);
for (Iteration SubNode2) {
newSubNode2NodeElement = wdContext.createSubNode2Element();
newNode1NodeElement.nodeSubNode2.addElement(newSubNode2NodeElement);
is there an error in creating the SubNode1.1-Node (bold line)?
if the code is correct, perhaps it's only a viewing problem:
i use views that point on every node and display the values in that node. if i move in the view for Node1 to another node, the values for SubNode1 point to the correct values too, but the values for SubNode1.1 still stay on the old values. is the move of a grandfather node not correctly propagated to his first child?
kr, achim -
Where should I fill the bank details of customer while getting the incoming payment ?
Hi all
Can any one advise me where I can fill the information of customer bank detail while creating incoming payment by Check ?
User want to update the customer bank detail when we get the check from customer
Thanks
RiniHi,
By bank detail do you mean the Bank Name, Branch and Account? These information can be set in the business master data. In the Payment Terms tab there is a portion about Business Partner Bank.
There you can add the bank details.
See this help file for more information:
http://help.sap.com/saphelp_sbo882/helpdata/en/1d/bbc2e2c0704b308577aabbae3ac25b/content.htm?frameset=/en/44/f3e883c4b80…
once it is added by the time the payment means is selected the bank detail/s of the customer can be selected.
hope this helps -
How can I fill the blank space in the example below?
I have to fill using sql statement the blank space with the same description that appears below that belong to the same STTCKT. I
am using a temporary table.There is no need in ROW_NUMBER. You can use simple query like below sample which cost 6% relative to the use of ROW_NUMBER which cost 94% (sort is havy operation with no index).
DDL+DML:
CREATE TABLE test( [STBK#] varchar(50), STTCKT int)
truncate table test
Insert into test values
(null, 48035)
,('First Two Truck', 48035)
,(null, 48039)
,('First Two Truck', 48039)
,(null, 48046)
,('First Two Truck', 48046)
,(null, 48054)
,('KLS LOGISTIC, INC.', 48054)
GO
select * from test
GO
If all you need is SELECT with FILL then check this:
select
--[STBK#] ,
STTCKT, [Fixed_STBK#]
from test T1
Cross APPLY (SELECT TOP 1 T.[STBK#] FROM test T WHERE T.STTCKT = T1.STTCKT and T.STBK# IS NOT NULL) T2 ([Fixed_STBK#])
And you can use this query as well without CROSS APPLY
select
--T1.[STBK#] ,
T1.STTCKT, T2.[Fixed_STBK#]
from test T1
LEFT JOIN (SELECT T.STTCKT,MAX(T.[STBK#]) [Fixed_STBK#] FROM test T GROUP BY T.STTCKT) T2 ON T1.STTCKT = T2.STTCKT
If you are looking for update the original table please check this:
UPDATE test
SET [STBK#] = T2.[Fixed_STBK#]
FROM test T1
Cross APPLY (SELECT TOP 1 T.[STBK#] FROM test T WHERE T.STTCKT = T1.STTCKT and T.[STBK#] IS NOT NULL) T2 ([Fixed_STBK#])
WHERE T1.[STBK#] IS NULL
GO
I hope this is helpful and answer your need, If not please try to clrify your needs and post your DDL+DML
[Personal Site] [Blog] [Facebook] -
How to compare Date in the TextField or DateTime with Date/Time field?
Hi All,
I am facing an issue with respect Date comparinson. I tried to look into entire discussions but failed to get the answer.
My issue is: I wanted to comparet Date/time field value with Date value which is in TextField.
The functionality of my form is:
I have dropdown list which lists the registered customer ids binded to XML Datasource. On selection of the customer id from the dropdown I am displaying customer registration date in the TextField or say Date/Time field as below code in dropdown change event.
RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value; (this is TextField control)
In form I have an Date/Time field in which use will select the date of item purchase. In the validation part I want to make sure that, the purchase date selected in Date/Time field must be greater than the Customer Registraiton Date. I able to compare if the customer selects the date from two different Date/Time fields. But how to compare the dates which one is in Date/Time field and Date is in TextField?
I have tried using Num2Date and Date2Num with "YYYY-MM-DD" format to compare but not succeed!
Can you guys help me in this? Thanks in advance
Regards.Hi,
Yes, I am able to display the date which I have assigned to the text box. In the message box it show the value as '31/05/2009', since in this format i am assigining the date in the text box.
Here is the code which I am assigning the value:
RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value;
Do I need to change the format while assigning value in text box?
You have told that, you have attached your test form, nothing is the reply. Can you repost the file?
Regards. -
How to fill the blanks after field content?
Hi,
I have a problem about ABAP programming. As follow:
data: txt char(20) type c.
txt = 'text_vol '.
Now I excute these codes in SAP abap workbench. The result is: txt
= 'text_vol'. The blanks follow the 'tex_vol' is condense by system.
How can I perform the function that make the system don't condense the
blanks automaticlly?
best regards!
andyHi Andy,
If you use MOVE statement, then it will have blank spaces at the end.
eg.
data : l_temp(25) type c.
Move 'Sample' to l_temp.
write :/ l_temp.
In above case, l_temp has only 6 words in a variable which can store 25 words.
So the remaining space is blank. i.e. 19 blank spaces after word Sample.
Best regards,
Prashant -
Improving the LabVIEW Help: Working with Data Types
Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working with data. What would you like to see? What would be helpful? Have you ever given up on a particular data type because it didn't work? Have you ever created a replacement data type because you preferred not to use a LabVIEW data type?
Lacy Klosterman Rohre | Marketing Editor | National Instruments | 512.683.6376 | ni.com/newsletterI've been programming LabVIEW since around 3.1 / 4.0. Over the years and versions, I've found it necessary to approach a lot of the new datatypes and algorithms with some healthy skepticism because I don't think we're usually given a "fair and balanced" overview. Some of the things that are highly promoted that bring "ease of use" for beginners (and I *do* understand the importance of that when you're growing your LabVIEW user base) can carry significant performance penalties that are mentioned in more of a whisper, if at all. I'd just like a more full disclosure of the tradeoffs -- the good, the bad, and the ugly.
Waveforms -- very rarely use them, unless required for analysis functions. I have a vague notion (between a belief and a memory) that they used to carry a significant performance penalty compared to arrays, but that the gap is now much smaller. Still, I'm most comfortable with my old habit of using data arrays. Some of this came about because a lot of my work uses counters where I may have a variable "dt" value or where my AI is clocked by a counter and the "dt" isn't internally generated.
Dynamic signals -- have never used them. Have no clear idea what good they're supposed to be, and they seem to be tied in primarily with Express VI's, which I have also studiously avoided.
Variants -- Use them only slightly. Performance issues are a question mark. Exception: have learned that the implementation of Variant properties allows their use as an efficient way to create associates for string lookup tables.
Digital Waveform -- have typically avoided it except when graphing digital data during debug. Haven't found any compelling reasons to use it. I do like the notion of a compress/expand capability for sparse digital data, but haven't exercised it enough to trust the implementation.
Recap: I don't need more simple "how-to's" in the help. I need a LOT more "why bother's" that include both pros and cons.
-Kevin P. -
Rename a file at the reciver without mapping with date/timestamp_filename
Hi Friends,
I have a scenario in which I have to rename the file if its exisiting at the reciever end with date/timestamp_filename in a file to file scenario without mapping.
Thanks,
--Sonalchk this (using adapter modules)
http://wiki.sdn.sap.com/wiki/display/Snippets/DynamicfilenameinaFiletoFilepassthroughscenario -
Show graphs before the report detail section
Post Author: Dan4sure
CA Forum: Charts and Graphs
I have a report where I have graphs in the report footer and the report details in a subreport. Is the a way to produce the same report without a subreport. I.e. is there a way to show the graphs in the report header or before the detail section?
Thanks, DanPost Author: Dan4sure
CA Forum: Charts and Graphs
I figured out what to do by looking into the sample reports. I can place graphs in the report header.
Thanks, Dan -
Migrate the complete solution along with data from BW 2.x to BW 7.x
Dear Experts,
There is a scenario in which SAP BW 2.0 have been upgraded to 7.0 version, while the BW flow and the custom models that exists are still in 2.X version
We acquired separate SAP BW 7.4 powered by Hana , We would like to migrate the older version of BW i.e 7.0 with mentioned content and models into this new system with data and going forward our organization would like to have only one system and dismantle the old system . Please let us know the process in the form of steps as to how it can be achieved . Need your expert input on this .
Thx,The below is my Proposed Solution
•Identify the list of Models & Objects which is required Migration eg: out of 100 Cubes only in Use 70 Cubes & Reports 150
•Migrate the models in System 1 (Old BW System)
•Create RFC from System 1 to System 2(New BW System)
•Transport Objects to System2
• Load the data from System 1 to system 2 using Open Hub/datamart
–If you have any Full load from ECC , Non SAP or Excel, no need to load the data from System 1 to System 2, you can load directly from source to system 2.
PLease Advise......... -
Filling the background layer quickly with the bucket tool
I really need help with this but its kinda hard to explain, heres what i want to do. (I am a noob btw)
I was making a background layer (the line is a hill):
The problem is, how do i fill the hill green and the sky blue without drawing a border around the edge?
When i use the bucket tool it just doesn't work.
Please help!No need for a border. Just click with the bucket tool.
Maybe you are looking for
-
Hiding variables in WebI report
Hi, We have generated an Universe based on a BW query which has 5 user entry variables with user exit logic coded for each one. Based on this Universe we wish to create 2 WebI reports. However, for the both the reports all the 5 variables are display
-
I am merely trying to reinstall my old Adobe Premier Pro. I can't seem to find where I can do this without having to pay any extra money. Also, to get the new Premier Pro CC from my old CS6 program, what would this entail?
-
Many of us use Pluraleyes to sync DSLR and 2nd audio WAV files using waveforms. (No timecode.) The ability to sync in Premiere Pro CC was mentioned in several feature lists, but I only see the ability to sync one clip at a time. Is there no way to li
-
MacBook Pro running at a snail pace
Hello, Few days back i intalled "Parallels" to be able to run Windows 8 along side Mac. However, installing Prallels made my mac very slow and thus i removed it. But removing it also did not help improve the mac & it is still running slow. Below is t
-
HT1339 update ipod software from 3.1.3
how do you or can you update an older ipod touch software from a 3.1.3 to anything higher