How do I add column headings to an output file?
Hi,
I have an internal table that is created in my program and I send that table out as a data file attachment on an email.
I have a request to include column heading on the data file going out.
Does anyone have any ideas as to how I can include a heading line as the first line of the output file?
I'm an ABAP newbie and I don't know the best way to accomplish this?
Thanks for your help!
Andy
Hi,
While Building the attachement just add the field description refer following code
Append header line to download data
CONCATENATE 'Company Code'(004)
'State'(007)
'Store'(010)
'Tax Type'(013)
'Purchase'(015)
'Tax Rate'(017)
'Gross Tax Due'(021)
'Discount'(023)
'Net Tax Due'(025)
INTO ls_download-data
SEPARATED BY lc_tab.
APPEND ls_download TO gt_download.
CLEAR : ls_download.
LOOP AT gt_error_log INTO ls_error_log.
CONCATENATE ls_error_log-bukrs
ls_error_log-budat
ls_error_log-monat
ls_error_log-gjahr
ls_error_log-xblnr
ls_error_log-bschl
ls_error_log-waers
ls_error_log-hkont
ls_error_log-wrbtr
ls_error_log-prctr
ls_error_log-kostl
ls_error_log-message
INTO ls_attach-line SEPARATED BY lc_tab.
CONCATENATE lc_cret ls_attach-line INTO ls_attach-line.
Append Error log data to attachment Table
APPEND ls_attach TO lt_objbin.
ENDLOOP.
Call the function module to convert the data into Hex
CALL FUNCTION 'SO_RAW_TO_RTF'
TABLES
objcont_old = lt_objbin
objcont_new = lt_objbin.
Append converted hex data to attachment table
LOOP AT lt_objbin INTO lv_line.
ls_conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
Call lmethod to add the data to the output buffer sequentially.
CALL METHOD ls_conv->write( data = lv_line ).
lv_buffer = ls_conv->get_buffer( ).
MOVE lv_buffer TO lv_hexa.
MOVE lv_hexa TO ls_hex-line.
Append converted hex data to attachment table
APPEND ls_hex TO gt_attach.
ENDLOOP.
Regards,
Prashant
Similar Messages
-
How do I restore column headings in Response table after accidently deleting them? Undo doesn't work (only seems to go back one level). I also have so many headings I won't be able to type them in manually!
With the help of information from user, ptressel, in [https://support.mozilla.org/en-US/questions/1032154#answer-673322 a post here about the existence of sessionstore.js when version 33 was released], I was able to easily recover my tabs and tab groups as follows:
# close Firefox and, perhaps, allow a few seconds (30s?) for any final closing of files;
# check to see if you have a sessionstore.js file in your profile folder, named like the one I documented in my original post above;
# if it is not timestamped prior to the discovery of your problem, open the sessionstore-backups folder;
# check if the recovery.js file is suitably timestamped and, if not, the recovery.bak.
# At this point, you are likely to find that none of them are prior to your problem occuring. If so, open your backups of this folder and go through steps 2-4 to find a file prior to your problem occuring.
# When you find a file, copy it to the root of your current profile folder and name it, "sessionstore.js"
# Open Firefox. Mine opened up as desired.
This is a Windows solution. Sorry I can't comment on other platforms, but I'd bet that as this is just a file copy and renaming, it is likely the same.
For Windows users, you may find you need to sign out and login as an administrator in order to access the backups. You need not logoff your standard account, but do have Firefox closed as described above.
Hope that helps. -
Hi folks,
Plz tell me if u know how can i add column dynamically
in oracle content management SDK webstarterapp.I am stucked here for quite sometimes.plz tell me ASAP.
Regards
PrasenjitTake a look at:
http://download-east.oracle.com/docs/html/B12187_02/toc.htm
You should use OMBALTER TABLE command.
Regards,
Marcos -
I have digitized several old vinyls as WAV files and have them in my MacBook Pro in an iTunes playlist. I have arranged the list under the column headings of "Grouping", "Name", "Time", "Artist", "Album" and "Genre". When I copy the files to a flash drive by drag-and-drop, none of the headings except "Name" show up. How to preserve all of the column headings when copying the file to an external device? Thanks - RC@gnv.
I have the same issue when trying to sync from iTunes 11 on my MacBook to my iPhone 4 iOS6.1. I blindly did the iOS upgrade to 6.1 (more fool me) and since then have not been able to use my phone as an iPod.
I have tried restoreing it, I ve tried restoring it to a new phone but it hasn't worked for me.
The sync starts and the capacity bar in iTunes shows capacity including and music or films etc that are to be included in the sync and then iTunes stops the sync and nothing has been transfered. As with your experience the music is shown in iTunes under Music, under Devices as greyed out with the syncing icon (dotted circle) to the left of it.
When I try to include photos in the sync, I also get an error msg stating the connection to the iPhone has been lost. I am trying to do the sync vis USB, so I dont why I get this error.
I can of course download any music I've bought from Apple from my iCloud to my phone but I want to be able to put any music I want on to it like I could before on iOS5. -
How can I add a password to my PDF file ?
I'd like to know How can I add a password to my PDF file ?
Regards,Acrobat Help | Securing PDFs with passwords
-
How do you add a watermark to a protected file?
How do you add a watermark to a protected file?
Hi whobrew,
Without the Document Permissions password, you won't be able to add a watermark to the PDF.
Please let us know if you have additional questions.
Best,
Sara -
How do we add trap-recipients to the acl file?
How do we add trap-recipients to the acl file?
Any examples.Here's some documentation I am working on for my place of work - hope this helps:
There are two Sun-provided configuration files of note that must be maintained and provided to the SNMP agent program as command line arguments when it runs. They are:
X.acl (subagent access control file, where X is your agent name)
X.reg (subagent registration file, where X is your agent name)
Note: For more information on either of these files, read the Solstice Enterprise Agents User Guide found on the Sun website, but don't expect too much.
The reg file specifies the subagent name and OID tree it is responsible for, among other things.
The acl file contains a list of communities that will be sent traps. This file will need to be periodically updated with the IP addresses of any entity that wants to receive traps from the X subagent. The file looks in part like this:
acl = {
communities = public, private
access = read-write
managers = dv, localhost
trap = {
trap-community = SNMP-trap
hosts = dv, localhost
enterprise="Xenterprise"
trap-num = 1-5
Where "dv" and "localhost" are configured in the /etc/hosts file as IP addresses to send traps to and "Xenterprise" is an enterprise that must be registered EXACTLY as is shown in the /etc/snmp/conf/enterprises.oid file. (Note: Some of the enterprises in this file have spaces within their name. This WILL NOT WORK. So if for some reason, an enterprise you were going to use is "MY Enterprise" you must changes this file because your MIB will not compile with an enterprise with spaces in the TRAP-TYPE declaration.
So, to add a new community, add an argument to the "managers" and "hosts" line in the .acl file and ensure that this reference has its IP address listed in the /etc/hosts file.
Furthermore, in /etc/snmp/conf/snmpdx.acl a comparable entry needs to be added as well. The snmpdx executable is the master agent that the subagent communicates with. It also has an entry in its .acl file as follows:
trap = {
trap-community = SNMP-trap
hosts = dv, localhost
enterprise="Xenterprise"
trap-num = 1-5 -
How to display the column headings in Script
Hi Experts,
I am getting the script output like as follows.
000001 aaaaaaa
000002 bbbbbbb
but I want to maintain the column headings for these like
Material description
000001 aaaaaaa
000002 bbbbbbb
Please tell me how to maintain the headings for script ouput.
Thanks & Regards,
Nagaraju C.In the main window,
/E Item Header
HD Material,, Description
/E Item Line
HD &ITAB-MATNR&,, &ITAB-MAKTX&
HD is the paragraph format for which you have to maintain the tabs, margins etc.,
Thanks,
Srinivas -
How to manipulate Webi column headings?
I am achieving the webi output result as shown in First picture in attachment
Fiscal Quarter Sales Doc Item Total revenue revenue1 revenue2 revenue3 revenue4
2010-Q1 75465476 12 5000 1000 1000 1500 1500
2010-Q1 76545765 22 8000 3000 2000 1500 1500
2010-Q1 78344644 17 9000 2500 1500 4000 1000
2010-Q2 97656744 20 7000 2000 2000 1500 1500
2010-Q2 86467453 19 6000 1500 1500 1500 1500
2010-Q3 84545633 18 4000 1000 1000 1000 1000
2010-Q3 97664333 14 6000 2000 1000 1500 1500
2010-Q4 97865080 25 5000 1000 1000 1500 1500
2010-Q4 95786785 29 8000 2000 2000 2500 1500
2010-Q4 86785446 28 8000 1500 1500 2500 2500
2010-Q4 97789675 10 9000 1000 1000 1500 5500
The column Headings are
Fiscal Quarter; Sales Document; Item; Total revenue; revenue1; revenue2; revenue3; revenue4
Now I am placing 'Prompt Variable' for Fiscal quarter.
So when I enter 2010-Q1 in the prompt,the row with Fiscal quarter 2010-Q1 will be filtered and also I should be able to change the heading of columns (revenue1; revenue2; revenue3; revenue4) as 2010-Q1;2010-Q2, 2010-Q3; 2010-Q4 respectively.
The revenue1 column should contain the prompt value entered and the subsequent columns revenue2; revenue3; revenue4 should increase by a quarter each.
Fiscal Quarter Sales Doc Item Total revenue 2010-Q1 2010-Q2 2010-Q3 2010-Q4
2010-Q1 75465476 12 5000 1000 1000 1500 1500
2010-Q1 76545765 22 8000 3000 2000 1500 1500
2010-Q1 78344644 17 9000 2500 1500 4000 1000
Similarly when I enter 2010-Q3 in the prompt,the row with Fiscal quarter 2010-Q3 will be filtered and also I should be able to change the heading of columns (revenue1; revenue2; revenue3; revenue4) as 2010-Q3;2010-Q4, 2011-Q1; 2011-Q2 respectively.
Fiscal Quarter Sales Doc Item Total revenue 2010-Q3 2010-Q4 2011-Q1 2011-Q2
2010-Q3 84545633 18 4000 1000 1000 1000 1000
2010-Q3 97664333 14 6000 2000 1000 1500 1500
How can the desired results be achieved?For the first quarter column create a formula for column heading
=UserResponse("Enter Fiscal Quarter:")
Next-> create a variable for this formula suppose var1 and use this as input formula for second column which is as follows
=If(ToNumber(Substr([Var1];7;1))+1)=5 Then (FormatNumber((ToNumber(Substr([Var1];1;4))+1);"####")+"-Q"+"1") Else ((FormatNumber(ToNumber(Substr([Var1];1;4));"####"))
now again create variable from this craeted formula as var2 and use this varible in the input for formula for third column
=If(ToNumber(Substr([Var2];7;1))+1)=5 Then (FormatNumber((ToNumber(Substr([Var2];1;4))+1);"####")+"-Q"+"1") Else ((FormatNumber(ToNumber(Substr([Var2];1;4));"####"))+"-Q"+(ToNumber(Substr([Var2];7;1))+1))
and so on..
there is no need to display variables as columns. Since only the headings of the columns are manipulated, there is not performance issue. -
How do I add columns individually in a 2D array?
hi! i am reading out a CCD chip and generating 2D .txt files of the data. Howeverm I need to add up all the values from column 1,and write that value to a new file (starting a new column in a new .txt file). then i must add all of the val's from col. 2, and append that result to the new file etc etc until all the columns are added, and the results written to that new .txt file,which is then saved- How do I do the addition :-S
Cheers!
Johnjohn-
you said you already have the 2D data in a text file, i guess some comma delimeted spreadsheet compatible file? labview has a "Read From Spreadsheet File" vi, and it should import your data right into a 2D labview array. then to sum up the columns, first you probably want to transpose that array, then wire it to a single FOR loop, enabling indexing.
the value that gets passed inside will be a 1D array that is a slice of the 2D array. wire that to a "Sum 1D Array" vi from the math menu, then wire the output to the other edge of the FOR loop, and make sure indexing is enabled. then wire that output to a "Write To Spreadsheet File" using the 1D array input. it should process very fast, and you just have to wire up some stuff like the file path and deli
meters and stuff. did that explain it well enough?
micah -
How can I add a line to my CSS file to have all TextArea fields show PRE
Hi,
I would like all my TextAreas to show the text as it was inserted into the database... with the new lines, tabs, etc...
I would like to add a line to my CSS file to do this if possible.
Thanks, Bill :>)Thanks for all the input!
Fab. You have been talking about a report the whole time... I have been talking about one Database ITEM that is "Displayed as Text".
In a report the replace() always works in all browsers I believe... and I had no problem.
BUT, in a text ITEM I wasn't able to get anything to work..
So, I created a report region and retieved this one column (item) and selected a borderless region and it is fine...
select replace(LAST_ACTION,chr(10),'<BR>') "LAST_ACTION"
from "HT_ISSUES" "HT_ISSUES"
where issue_id = :P7_ISSUE_ID
I still would like to know how to Display as Text - as it is in the DB.
When have a Dispay as Text Item and I view Source when running the page.. it is correct in the source delivered to the browser but displays all one line.
(I save a SQL statement to the field)
[tr>[td colspan="6" rowspan="6" align="left">[span class="t3NoLabel">Last Action Item[/span> [br>Maintenance Issue - SELECT *
FROM (SELECT ROWNUM row_num, empno, ename, job, mgr,
hiredate, sal, comm, deptno
FROM emp)
WHERE row_num BETWEEN NVL (:p7_row_from, 1)
AND NVL (:p7_row_to, 1000000) -
How do I add to "properties" of an MP3 file in Windows so iPod will accept?
I posted a problem yesterday, which I was clueless about. Today I know what the problem is, but don't know how to fix it.
I have 30 MP3 files in a playlist, all from an identical album. I can play every file on my computer through iTunes with no problems. HOWEVER.... my iPod only "recognises" 23 of the 30 files and won't accept the remaining 7.
I have updated the "info" part of the tags, made it a compilation etc. THat didn't work. THe problem is the the amount of detail in the "properties" section of each file. The 23 that the iPod will accept have many details in the properties section ... eg. artist, title, duration, audio etc etc .. the 7 that will not migrate across only have two details - "type" and "size"...
SOOO my question is: How do I add to the "properties" of the MP3 files in Windows so the iPod will accept them?
Would really appreciate some help here, its drivin me nutz!!Hi,
As it didn't work in iTunes, I'm not sure completing the id3 fields for your 7 files through another app will correct the problem. But in any case, one program I use to edit id3 tags is ID3-TagIT. It's freeware.
http://www.id3-tagit.de/
Good luck. -
How do I add leading zero(s) to exported files' names?
I'm using Lightroom 1.4 on an iMac, with OS X 10.4. When I export a batch of photos, they get numbered automatically. For example, if they're pictures of my dog, I'll specify "Dog" as the name to be used and 1 as the starting number. Lightroom will then export them as "Dog-1.tif" and "Dog-2.tif" and so on.
The problem is that when I then load these files into another application, it thinks that "Dog -1.tif" should be followed by "Dog-11.tif," then "Dog-12.tif," and so on to "Dog-19.tif" and then "Dog-2.tif," "Dog-20.tif," "Dog-21.tif," etc.
One solution to this would be to have them numbered as 01, 02, 03. . . 09, 10, 11, etc. Rather than add those leading zeros to the file names manually, I'd like to have Lightroom put them in when it exports the files, but I can't figure out how to do that. I've tried entering 01 as the starting number in the "Export" dialogue box, but that doesn't do the trick.
Can anybody tell me how to get Lightroom to add a leading zero (or zeros, when I export more than 99 files at a time) to the file names?>What if I just wanted to name the images 0001, 0002, 0003, etc? Can't seem to figure that out.
In the Filename Template Editor, simply insert the [Sequence # (0001)] token as the only entry in the template field. -
OLE2 how to set a column width of an excel file i'm creating?
how can i set the column width in an excel file i'm creating with ole?
or even, haw can i set the auto-fix properties?Hallo !
SORRY MY ENGLISH is very BAD.
I tried to set page header and footer in Excel sheet with abap ole
DATA : BEGIN OF enter,
x(1) TYPE x VALUE '0D',
END OF enter.
DATA : format(255) TYPE c.
FORM set_page_sheet.
CALL METHOD OF excel 'ActiveSheet' = sheet.
CALL METHOD OF sheet 'PageSetup' = pagesetup.
SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
CLEAR format.
ERROR
CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
ERROR
SET PROPERTY OF pagesetup 'RightHeader' = format.
CLEAR format.
CONCATENATE ' Text 1 ' enter-x 'Text 2'
enter-x 'Text 3 ' INTO format.
SET PROPERTY OF pagesetup 'RightFooter' = format.
FREE OBJECT pagesetup.
ENDFORM. " set_page_sheet
Activate report -
ERROR - The enter-x must by data type c or another then data type x
Thanks for answer. -
How do you add a controller to a SWF file?
I am a newbie.
How would I add a controller for play and pause to a SWF
file? I want to put several SWF files up on a website but want to
be able to control them. Instead they all play once the web page
loads.
Please help.
Thanks> What is need is a %LinksDir% variable.
I have no client available with links redirected, but basically, this
should result in a registry value containing the new path. Simply
regedit and search for your "links" redirection path.
Then use Item Level targeting "registry value" to store this path in a
temporary variable that you can use in the target path for your shortcut.
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :))
Maybe you are looking for
-
I have had this issue ever since Flash CS3, but I now see it has persisted in Flash CS4 as well and I would like to see it resolved. When drawing with the brush tool, using a Cintiq 21UX, and also on a Tablet PC, under WinXP, I have been experiencing
-
Error executing the Query after deploying and executing the application in WLS 6.1 SP3
Hi, We are trying to run a application by deploying a war file on Web Logic Server 6.1 SP3. After deploying and at the time of execution of the application, the server console displays this error message java.sql.SQLException: ORA-00600: internal err
-
Unable to expand table (or 'any' object) node - permissions issue?
I am the dba for a database and hence have access to the system user. When I connect to the db through SQL Developer, I can expand the table node under any user and list tables. As I can with any object node. I now want to create an admin user that h
-
Management of Trial Period for Billing Plan !!
Hello SAP folks, I have a real time business requirement where we essentially have Rental Contract which are being created from Sales Order and there is a billing plan defined for this Rental Contract. With new introduction of some Marketting strateg
-
DB: Oracle 10.2.0.4.0 APEX: 3.2.1.00.10 My APEX app will be accessed from a non-APEX app, which already has authenticated the user. Since the user doesn't need to be presented with a login page again, I'm assuming that I need to create a Public page