Want to break down a date into 4 lines in one field
Hi all,
In report 10g , when a date value mask is like 'DY. MON. DD,YYYY' in a field,
it will be display whole date 'Mon. Apr.14,2008' in one line
but in the report i want it shows like below in one field (break in every word, four lines) because the filed honrizontal width is limited
Mon.
Apr.
14,
2008
how can i reach this in format trigger, i already use srw.set_value(0, to_char(sysdate))
but doesn't work.
Thanks for your help!
appcat
Try this
select to_char(hiredate, 'Dy.') || chr(10) || to_char(hiredate, 'Mon.') || chr(10) || to_char(hiredate, 'dd,') || chr(10) || to_char(hiredate, 'yyyy') cdate
from emp
It was just an example. Use chr(10) for carriage return, whereever it is needed.
Similar Messages
-
BW reporting question (want to break down the data for 13 weeks)
Hi All,
I am building one report in BEx and in that report I need to calculate the data for last 13 weeks.
What I want here is to breakdown the OTD to CT2R% and Average delta for 13 weeks. I mean I want to repeat the same calculation for 13 weeks.
How can I repeat this calculation and how can I restrict per week.
OTD to CT2R (On time delivery to Cycle time to replenish)
See below the template of my report.
week 1 week 2
Item OTD to CT2R% Average delta OTD to CT2R% Average delta
x x x
Thanks,
Kamhi, usaully production system will be non changeable for all objects.. but as far as SAP BW is concerned we can make certain objects changeable by setting as follows..
in production go to RSA1 - Transport Connection, select Object changeability button from tool bar, here you will find a list of objects which can be made changeable in a closed system.. just click on required objects and set it to Everything Changeable..
Reg,
Pradhiba
<REMOVED> -
Breaking down Spry Data Repeat
Hi,
I'm trying to create a spry data set in a table from a XML data file. I have done that in below are the codings I obtained from Spry tool.
<div spry:region="KomtarETA">
<table>
<tr class="TableHeader">
<td width="100">Route</td>
<td width="1266">Current</td>
<td width="1366">Destination</td>
<td width="1266">Next</td>
<td width="100">Lane</td>
</tr>
<tr class="TableContent" spry:repeat="KomtarETA">
<td>{route}</td>
<td>{desitnation</td>
<td>{current}</td>
<td>{next}</td>
<td>>{lane}</td>
I have some individual codings need to be done on each individual data field. I need to seperate all the spry data into each individual column.
My question is how I can control these data individually when it's in the table ? Is there any codings changes need to be done ?
Please advise.
Thanks.Hi,
Actually what I mean by breaking down the data and not by means of filtering.
I still want to display every single data but I wan it to be individualised.
Here's the link to the test site.
http://www.pcsb.my/test/KomtarETA.html
What I need is that some column will be static and some will be dynamic. The actual external XML data will be dynamic as there will be a live server feeding and overwritting it.
If you look at the Spry table portion coding inside the HTML file, it's actually a Spry repeat and I don't have much control over each individual data I want to manipulate the codings.
Please take a look at it.
Thanks. -
creating form - want to adjust font style and size in more than one field at a time - HOW??
Select the fields with the mouse, right-click one of them, go to Properties
and set the settings you'd like them all to have.
On Wed, Jan 21, 2015 at 8:51 PM, chuckm38840797 <[email protected]> -
How to break range of dates into different months in mm/yyyy format
See the following eg:
MaterialNo Validfrom ValidTo RecordNo Value
A100 01.01.2007 13.05.2007 1000 1150/-
14.05.2007 24.08.2007 1001 1550/-
Now I want to break these dates into mm/yyyy format based on a condition. If the date(day) 15th lies in the range of dates
then it should pick that Value.
The output should be in this format.
MaterialNo Validfrom ValidTo Date RecordNo Value
A100 01.01.2007 13.05.2007 012007 1000 1150/-
022007 1000 1150/-
032007 1000 1150/-
042007 1000 1150/-
A100 14.05.2007 24.08.2007 052007 1001 1550/-
062007 1001 1550/-
072007 1001 1550/-
082007 1001 1550/-Hi Shiva,
In your Report Program, you can define the field of type sy-datum. And then fill the fields with the date. And then you can extract the rest of it manually by this small and simple lines of code. Once you have the date extracting logic then you can output the date in any manner according to your wish.
data : lv_date TYPE sy-datum.
data : lv_month TYPE c LENGTH 2.
data : lv_year TYPE c LENGTH 4.
data : lv_month_year TYPE c LENGTH 6.
lv_date = sy-datum.
lv_month = lv_date+4(2).
lv_year = lv_date+0(4).
CONCATENATE lv_month lv_year INTO lv_month_year.
Hope this helps.
Thanks,
Samantak. -
Break the page name into two lines..
Hi,
I am trying to break the page neme into lines.For example Knowledge Management is the name of a page in Detailed Navigation and I want it to be displayed linke Knowledge and Management in two lines.I was just adding the break statement within the page name but was not successful.Any Ideas ??
Thanks.I think you'll need to write your own detailed navigation to do this. There are a set of tags to make this easier...
Cheers -
How to put 58 columns of data into an array in one shot?
I have a set of data with 58 columns and 5000 rows. However, I need to find offset for all the elements in this 5000x58 set of data. Is there an easier way to put all the data (offset) into an array in one shot other than using build array function? This is because if I use the build array function, I will need to separate all the data into 58 columns by indexing them. This is too time consuming.
Thanks for the suggestion! Have a good day!VanessaWen wrote:
I have a set of data with 58 columns and 5000 rows. However, I need to find offset for all the elements in this 5000x58 set of data. Is there an easier way to put all the data (offset) into an array in one shot other than using build array function? This is because if I use the build array function, I will need to separate all the data into 58 columns by indexing them. This is too time consuming.
You need to explain in much more detail, because your problem is not clear.
Is this a 2D array with 58 columns and 5000 rows?
What is your definition of "offset"?
Where does the offset value come from?
Is "offset" it the same for each row (or column) or does it depend on the data?
What is the definition of "one shot"?
Why would you need to seperate all the data into columns in order to use build array?
It it "too time consuming" to write the program or is the execution slower than expected?
Is the final output a 1D or 2D array or something else?
Please attach a VI containing a small 2D array diagram constant with typical data, then show us what kind of output you would expect after applying the described operation.
LabVIEW Champion . Do more with less code and in less time . -
Local File - Downloads Data into 1 line in Excel 2007
Hello
When I have the option to download a spreadsheet into excel, the data is downloaded correctly. When I have information in a table format and I have to use the local file to download into excel all of my data is exported into 1 line.
Can anyone help?
Thanks!
JoeHello
Request you to please search for notes further in the Service Place. There is a note which I have found might help you. It is
1010935.
Hope it helps you.
Rgds -
Saving data into two tables "in one transaction"
Hello everybody!
My scenario is the following: SAP PI receives message containing some data (header and MULTIPLE details data in one message) and has to transfere this data to a database.
In the database there are two tables for storing the data contained in the message: one for HEADER data and one for DETAILS data. I need to save all the data (header and MULTIPLE details data) into these two tables "in one transaction" and roll back saving of HEADER data and DETAILS data if saving of some DETAILS data has failed.
I am going to use receiver JDBC adapter for this purpose.
My questions are:
1. How can I save all the data "in one transaction"? Will it work if I transform the source message into the target message which looks something like this?
<root>
<StatementName1>
<dbTableName action=u201CUPDATE_INSERTu201D>
<table>HEADER_table</table>
<access>
<col1>val1</col1>
<col2>val2</col2>
</access>
<key1>
<col1>val1</col1>
</key1>
</dbTableName>
</StatementName1>
<StatementName2>
<dbTableName action=u201CUPDATE_INSERTu201D>
<table>DETAILS_table</table>
<access>
<col1>val1</col1>
<col2>val3</col2>
</access>
<key1>
<col1>val1</col1>
</key1>
</dbTableName>
</StatementName2>
<StatementName3>
<dbTableName action=u201CUPDATE_INSERTu201D>
<table>DETAILS_table</table>
<access>
<col1>val1</col1>
<col2>val4</col2>
</access>
<key1>
<col1>val1</col1>
</key1>
</dbTableName>
</StatementName3>
</root>
2. How to roll back saving of HEADER data in the case of saving of DETAILS data has failed?
3. What will be the response structure returned by database look like in the case of success?
Thanks,
VikaI guess the response in my case will be something as following?
<response>
<Statement1_response>
<row>
<update_count>1</update_count>
<insert_count>0</insert_count>
</row>
</Statement1_response>
<Statement2_response>
<row>
<update_count>0</update_count>
<insert_count>1</insert_count>
</row>
<row>
<update_count>0</update_count>
<insert_count>1</insert_count>
</row>
</Statement2_response>
</response>
Vika -
ALV grid - how to break a long string into several lines?
I have a ALV grid, where one of the fields contains a textstring that is typically 100 characters long.
Is it possible to break this long string into shorter strings on multiple rows?
Kind of like in Excel, when using row break...Thats not possible in ALV
-
Uplaod data into transpotation lines /sapapo/tl1
Dear All,
I have to upload the data into the transaction /sapapo/tl1, i tryed for direct input through LSMW but there is no chance, i tryed with recording mode, i given all the required and nessasary fields. i able to create a session. while i running the session it's not caling the sub screen. so the transaction not working.
if any one has come accress this, please let me know by witch method i can upload the data.
it's very urgent for me,
thanks in advance.
u can put cc : [email protected]
Thanks in advace,
Ravi.also check this reply from Somenath for a similiar query
Hi Mitesh,
You can use APO Loader Tool. Report FUNCTION_LOADER_INLAY can be used to access APO Loader tool from with SCM system. The tool uses BAPIs to extract and/or load master and transaction data to APO.
Hope this helps.
Thanks,
Somnath -
Problem while down loading data into Excel
Hi friend's,
I am getting a error while down loading header
internal table to excel.
since in my header internal table there is no p
type field..but i am getting this error..
Only flat, character-type data objects are supported at the argument
position "dest" for the statement
"WRITE src TO dest".
In this case, the operand "dest" has the non-character-type or deep type
"P". The current program is flagged as a Unicode program. In the Unicode
context, type X fields are seen as non-character-type, as are
structures that contain non-character-type components.
i have coded like this
REPORT ZACG_CCA_EXCEL .
Tables : zacg_cca.
data: P_file like RLGRAP-FILENAME.
Data: Begin of it_header occurs 0,
ccode(10) ,
mat_cd(12) ,
ingr_desc(30),
con(10),
quan(10),
percqty(10),
DATE(10),
rsamnos(10),
flag(5),
end of it_header.
Data : begin of it_final occurs 0,
ccode type zacg_cca-ccode,
mat_cd type zacg_cca-mat_cd,
ingr_desc type zacg_cca-ingr_desc,
conc type zacg_cca-conc,
quantity type zacg_cca-quantity,
percqty type zacg_cca-percqty,
APP_DATE type zacg_cca-app_date,
rsamnos type zacg_cca-rsamnos,
flag ,
end of it_final.
SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-000.
select-options : s_Date for zacg_cca-app_date.
SELECTION-SCREEN : END OF BLOCK blk.
it_header-ccode = 'Samp_code'.
it_header-mat_cd = 'Mat_code'.
it_header-ingr_desc = 'Ingr_Desc'.
it_header-con = 'Conc'.
it_header-quan = 'Quantity'.
it_header-percqty = 'Perc'.
it_header-date = 'Date'.
it_header-rsamnos = 'Rsamnos'.
it_header-flag = 'Flag'.
Append it_header.
select ccode mat_cd ingr_desc conc quantity percqty
app_date rsamnos from zacg_cca into corresponding
fields of table
it_final where zacg_cca~app_date in s_date.
loop at it_final.
it_final-flag = 'T'.
modify it_final.
it_final-quantity = it_final-quantity * 2 .
Modify it_final.
endloop.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
FILE_NAME = 'C:\amol\p_file'
CREATE_PIVOT = 0
DATA_SHEET_NAME = ' '
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
PIVOT_FIELD_TAB =
DATA_TAB = it_final
FIELDNAMES = it_header
EXCEPTIONS
FILE_NOT_EXIST = 1
FILENAME_EXPECTED = 2
COMMUNICATION_ERROR = 3
OLE_OBJECT_METHOD_ERROR = 4
OLE_OBJECT_PROPERTY_ERROR = 5
INVALID_PIVOT_FIELDS = 6
DOWNLOAD_PROBLEM = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
can any one....hii
for title this FM have some restriction as it can not take value if its more then 10 length so you need to give length as 10 only for every string then append it with FIELDNAMES = it_header
regards
twinkal -
Breaking Down an Image into Tiles- CS3
Hello! It's been a while since I've done anything more complicated than a wavy line in Illustrator, and I have a project in mind that's a little above my head.
I would like to draw an image freehand in PS, import it to Illustrator, and break it down into 5"x5" numbered tiles that I can then print out and reassemble on a large scale. I'm only assuming that Illustrator would be the program to accomplish this in, so if I'm mistaken, please correct me. Any suggestions? Thanks!I'm sorry if I was unclear. I do not know how to tile an image in any program. For some reason, my version of Adobe Reader will not allow me to tile or scale my image in printing. Even if it did, does Adobe allow you to set the size of the tiles? They need to be 5x5".
The only information I can find on this in my Google searches relates to the slice tool in PS for making webpages. Do you know of somewhere that would explain the "dedicated page tiling options" in Illustrator you mentioned? -
Breaking down SQL table into Multiple tables on the web using struts
I have a SQL table with business names and products. I am trying to display tables on a webpage for each individual business and their products. So one table is for each business and each business table lists all the products for that business. I'm not really sure how to do this. I sorted by the business names so all the related records are next to each other. I did try two nested iterate statements but received an error about missing a getter. Any suggestions would be helpful. I am writing this code in a JSP file and can use most struts commands (bean, html, nested commands). Sorry if this topics isn't very related to JSP but couldn't really find a better spot.Thanks
You are missing the position parameter:
set echo on
drop table t1;
drop table t2;
drop table t3;
create table t1 (fld1 varchar2(5), fld2 varchar2(10), fld3 varchar2(10),
fld4 varchar2(10) );
create table t2 (fld1 varchar2(5), fld2 varchar2(10), fld3 varchar2(10),
fld4 number );
create table t3 (fld1 varchar2(5), fld2 varchar2(10), fld3 varchar2(10),
fld4 varchar2(10), fld5 varchar2(10) );
load data
infile *
append
into table mpowel01.t1
when (fld1 = 'T1' )
( fld1 terminated by ',',
fld2 terminated by ',',
fld3 terminated by ',',
fld4 terminated by whitespace)
into table mpowel01.t2
when (fld1 = 'T2' )
( fld1 position(1) terminated by ',',
fld2 terminated by ',',
fld3 terminated by ',',
fld4 terminated by whitespace)
into table mpowel01.t3
when (fld1 = 'T3' )
TRAILING NULLCOLS
( fld1 position(1) terminated by ',',
fld2 terminated by ',',
fld3 terminated by ',',
fld4 terminated by ',',
fld5 terminated by whitespace)
BEGINDATA
T1,one,one,one
T2,two,two,2
T3,three,three,three,three
UT1 > select * from t3;
FLD1 FLD2 FLD3 FLD4 FLD5
T3 three three three three
UT1 > select * from t2;
FLD1 FLD2 FLD3 FLD4
T2 two two 2
UT1 > select * from t1;
FLD1 FLD2 FLD3 FLD4
T1 one one one
HTH -- Mark D Powell -- -
Dynpro - how to convert a FLTP data into a nice numeric one ?
Hi,
I have a fltp data entered in my dynpro via a search help, into a decimal data .
i would want it to be of format ___,_ ( 6 positions, 1 decimal).
thus i have declared it in the screen element list : decimal length 6, with a mask such as ____,_
But the fltp is like '5,700000000000000E+00', and when selected is like ' 5,700'. So i am blocked by the following anomaly "Input should be in the form ____,_ "
What should i do to correct this anomaly ? create or convert my data in an exit in the search help ? or is there a more simple solution ?
Thanks
Sabinemy solution :
Data dynpro_data_from_help(22) type c VALUE '4.500000000000000E+01'.
DATA wl_FLTP TYPE F . " DATA wl_PD TYPE P DECIMALS 1.
REPLACE ',' WITH '.' INTO dynpro_data_from_help.
wl_fltp = dynpro_data_from_help.
wl_PD = wl_fltp.
write wl_PD to dynpro_data_from_help.
shift dynpro_data_from_help right deleting trailing '0'.
Maybe you are looking for
-
Hi I have set up a local update server for my CS 5.5 Suite using IIS 7 on a 2K8 R2 server. Followed all the steps in the AUSST technotes. After running the Adobe Application manager which has been pointed at my locally set up website, I receive the e
-
Hello! I'm working on a Flash CS3 file (with Actionscript 3.0) and I'm trying to create a slideshow with an audio track. I have 12 slide images and a 12 minute long audio presentation. I want to pause the images for variable times during the presenta
-
/var/lib/pacman/local empty
Hello all, I've been using Arch for a few years, but I obviously haven't learn't anything in the process as I've done a very silly thing. I wanted to empty the pacman cache at /var/cache/pacman/pkg, but instead I did 'sudo rm -r /var/lib/pacman/local
-
I wrote a LabVIEW code to control GPIB, DAQ and Serial port. Then I built an installer including runtime engine. Everything works fine at the PC with the LabVIEW. I copy this installer folder to another computer without LabVIEW. I had no problem to i
-
Want to carry data from one standard program to another program in run time
dear friends, how to Want to carry data from one standard program to another program in run time