ALV in New format
Hello All,
i need to create a ALV report , in that report i need to create header at first column position.(means i need vertical header instead of horizontal header). and basis of column and row i need to make them editable , non-editable and check box.
plz check the below example.
Y Header/ X header Attr x1 Attr x2 Attr x3 Attr x4
Attr y1
Attr y2 Editable Non-editable Checkbox
Attr y3 Non-editable Checkbox Editable
Please provide some solution
thanks in advance.
Hi, not easy to be answered. If you use the Class CL_GUI_ALV_GRID you can use the structure lvc_s_layo to manipulate a lot of settings. Best to look for some examples.Succes.
Similar Messages
-
How can I convert a report/ ALV in PDF format?
Can you tell me how can I convert a report or ALV in PDF format?
Regards,
Subhasishhi ,
check this..
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
regards,
venkat. -
I just downloaded the newest versionof itunes. Now when I plug in my ipod, I can no longer see my playlists (listed on the left hand side). The new format is very confusing! How do I drag and drop songs into specific playlists I have? Is there a way to revert back to the old itunes?
I had the same question. Someone answered perfectly here post https://discussions.apple.com/message/20575126#20575126
The answer was click View > Show sidebar. Devices and playlists will display in the left sidebar once again. -
Aaa New format configuation on IOS and Nexus-OS based devices ?
Dear all,
I have been working on an assignment to get our TACACs servers standardized and to change the old format aaa configs to the new standard before the old format gets deprecated.
I have many multiple IOS based model devices such as 2350, 2821, 3650, Firewalls, Nexus based 3048s 3064s and 7010s
However, I have tried the new format on both the IOS based 2350s and also on the Nexus based 3048s which has error on both cases
our plan is to move to the new style of aaa configuration and at least to have one standard format configuration for IOS based devices and one other standard format for Nexus based devices.
•Our tacacs appliances are crashing on AD authentication on a fairly regular basis. And I was wondering as to where to get resource on Cisco.com to see if we are on the latest version. Can you point me resource where I can find the latest version so that I will be able to compare it with what we have
Also if you have a forum recommendation for me to get help on this and other related staff that will be a huge help.
probably we might need to upgrade our IOS for example the below new aaa config format didn’t work? when I tried it on 2350 based on flash:/c2350-lanlite-mz.122-46.EY/c2350-lanlite-mz.122-46 version any suggestion here?
I have attached the sample config I have been trying to use-- If you have a better configuration suggestion let me know? Thanks a million for the help!
Abe
With Regards,
AbeYes, the focus with ML is certainly on trying to get people who have iOS devices to switch to using Apple computers.
For long-time devotees of OS X like us, there's not much in it. Snow Leopard was still a far more versatile and more widely compatible OS than either 10.7 or 10.8. If you're on 10.6.8. I would think twice about upgrading.
However, I think if you're on 10.7 already, it's worth upgrading to 10.8, simply because ML seems to be more stable and more refined. They have fixed some of the annoying things in Lion (like you can now put Devices back to the top of the Finder sidebar, Resume is turned off by default, 'Save As' has been resurrected, Launchpad actually has a filter bar etc etc.). Some of the apps are better too - some nice new features in Preview for editing and Safari has an all-in-one address/search bar).
More features are advertised explained here: http://www.apple.com/osx/whats-new/features.html -
Recently downloaded mavericks to my imac, to update OS X 10.9.2., everything went good except would like to revert to the previous format for mail.....new format does not separate inboxes etc. I hear it can be done, any ideas how to do that?
Hi bhcozzie,
Welcome to the Support Communities!
You can change the preferences for Mail in the Viewing tab to Use classic layout if that layout is more familiar to you.
Mail (Mavericks): Viewing preferences
http://support.apple.com/kb/PH14871
Cheers,
- Judy -
In Pages 5.0, new Format Panel sidebar keeps resizing my page.
After new Format or Setup Panel sidebar slides back to the right as expected, that part of the page is gone, hiding the text on the right of the page. I am forced to resize my document back to its original size, so I can see my full text again. However, sidebar does not misbehave when my page is full-screen or with Numbers application. Is there any fix available, please?
As it is, I am forced to keep the sidebar on all the time, but I'd rather see it only when I need it. For me, it is really important to have as much screen space as possible for texts only, keeping everything else out of sight. Please, help me.This is a problem with using Pages 5 with its fixed sidebar.
Have you thought of just using Pages '09 which should still be in your Applications/iWork folder?
Peter -
New Format for creating Attribute Sets.
Hi,
In SAP CRM webclient ui 7.0 there is a new format for creating Attribute Sets. The format is 'value table'.
On selecting Format=Value Table the field 'Table' comes up.
There is a message: Here you can enter a table that contains all the values you want to use. This is particularly useful for attributes with a lot of values or if you want to enter multiple attributes with the same values. The table must be a check table with a search help.
Do I need to create a table with all the fields in in marketing attribute assignment block with search help on attributes field.
Can you please guide as to how I should go about this issue.
Regards,
John.Hi John,
The Attribute Set of Format type 'Value Table' is for the Mutiple Attribute Sets. These can be either a Single Attribute Set with Multiple values or the Multiple Attribute Sets with One value.
You can include all such marketing attributes into one table which is a check table with search help. and use this as the Value Table.
Hope this helps you out!
Regards
Veena. -
How to define a new format of report in TestStand?
Hi,
The report autogeneration by TestStand is not suitable to print to my situation.
So I want to define a new format of HTML report by myself. But I do not know how to get a new blank one.
Thank for help.For a staring point, you should learn how TestStand creates the report at all. Please read this article.
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Problem with new format type in spool
Hi All,
I have created new format type with 65 pages & 140 columns size. I have assigned it to corresponding device type which is copied from standard device type. Then i have assigned to output device type.
But when i print using this new format type its printing in half of the page width. What should be dont if i want print in whole paper width.
When i use standard format type x_65_132 , its printing in whole page width of 132 columns. But with my new format type its printing all line content , but its printing in very small font within half of the page width. It should print in whole page. Please help me to print in whole page width with bigger font as in 132 column options.
Thanks in adavance.
VishalNorman,
Thanks for ur reply.
I have gone through all the stpes for creating new format.
I don't know what is printer initialization string and the other escape sequences, how to get modified these please let me know.
new format is working, but problem is its printing in half of the page width, i need to print in whole page width. Thanks. -
Mac mail/creating new format style
Hi all,
I sometimes send emails with a good amount of copy ( I have my compose preference set to RTF). I notice that the default format style for macmail is Left aligned, Spacing 1.0x. (no leading or 'set solid'). I'd like to create a new 'favorite style' that includes the basic type 'Geneva' and flush left alignment but with more leading, maybe '2.0' so that the copy is more readable. I go to the menu Format-->Style-->Styles. A styles info box comes up:
Can anyone tell me how to create a new format style with greater leading than the
default style then add it to favorites? Will a person who receives my email who is using a different email client necessarily receive the formatting I am sending?
I hope I'm not missing something obvious. lol.
Also, if anyone knows the html code that would center my image in this email, please pass that along as well. I tried the <center> tags but they didn't work.
Thanks in advance for any input.
Regards,
DennisReplying to myself to add some more information, and ask some additional questions:
Poking around, I have found some information -- a few years old, unfortunately -- that seems to indicate that you cannot create aliases to associate with a mac.com account. What I may have to do is add an address in the primary account, in the Email Address field of the Account Information tab, where she currently has this:
[email protected], [email protected]
If that works, that'll be great, but one flaw in this method is that you can't specify a different sender name. Her customers at "herdomain.com" will still just see her name, Jane Doe, when what she really wants in the sender field for that e-mail address is "Jane Doe, Director, Her Domain Inc."
Can anyone verify if I am finally understanding this correctly? Or if there is something else I can do to get her that alternate identity on her mac.com account?
Thanks. -
does anyone else wish that apple would stop reinventing the wheel and leave a good thing alone?
i used to solve every problem thru the great posts on this site. now i cant find anything.
this new format is the most user unfriendly i have ever experienced. if i have to scroll through one more interminable lists of iphone or itunes topic i am going to scream.
i feel like it's catering to kids now. going to start using macforum or other sites until applegets it together...anyone have this experience? maybe they'll listen to a bunch of us.amy
Why not narrow the search?
Click on the 'More Options links and you can refine the search to a specific forum, specific, specific poster even.
Regards
TD -
The new format is just harder to use
The new format, imho, is just harder to use. You need to click all over the place after logging in to see changes to the discussions you've contributed to, to locate discussion groups, etc. The old site was just more user friendly, though not as pretty.
I for one would like the option to use and see the old interface.
Eddie OHi, Marlinespike -
I can't find my last posts or my last questions. I don't have a clue as to how to find anything.
Copy/pasting a reply I gave to someone else a couple of days ago here, with modifications...
If you go to the main page of this site (https://discussions.apple.com/index.jspa) and then the Your View (personalize) tab—which you should set as the default—you can set yourself up to watch pretty much anything you're interested in, including all of the topics you're participating in.
To watch your own topics, choose the Watch A User widget and drag that widget down into the body of the page, placing it wherever you like.
Once you've placed the widget, click the disclosure triangle in the upper right and choose 'Edit this widget.'
Next, enter your name in the Username field. (It defaults to Yourself.)
Give your widget a custom title, select which categories of your content you'd like to appear in the widget, and enter how many results you'd like to appear in the widget (max is 100)...
Click Save Properties, and voilà...
Finally, look back at the top of the page, and click Publish Layout, and you're done.
(Note that for all of the available information to appear in this widget, you have to choose a layout for your home page that includes at least one column that's half the width of the page or larger....) -
Hi,
Environment: XP Pro sp3, Acrobat 6.0, Acrobat Reader 9.1, Internet Explorer 7.0
Eventhough I have my Reader v.9.1 set up as default application for PDF files in the file association setup, if I click on a PDF link in Internet Explorer, it wants to open it with the full version of Acrobat v6.0 and I get this popup message:
"The file appears to use a new format that this version of Acrobat does not support.
It may not open or display correctly. Adobe recommends that you upgrade to the latest version of our Acrobat products…."
I am puzzled why Internet Explorer ignores the file association setup in Windows Explorer.
Can someone assist me to figure this out? if the solution involves messing with the registry, or registering/deregistering dll files, that's fine with me.
GezaThe problem is that those applications share resources and will fight over them.
It is not recommended or supported to have both on a Windows machine. -
New format, mark B Marks, doesn't work, get old One Back
when I go to " Book Mark this page" a new format appears, that
I can't use. A Box with an arrow pointing to the "star" in the
address box. I am unable to navigate this format, and unable to
bring up a new FOLDER to enter the Bookmark into.
What happened to the old Firefox Bookmark Format?Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
* Help > Restart with Add-ons Disabled
* Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
I have the latest version of Itunes on my Mac Air but it is in the old format. How can i get it to show the new format
I don't know what you mean by old and new format.
Select "Show Sidebar" from the View menu.
Maybe you are looking for
-
ORA-00600: internal error code, arguments: [ktsircinfo_num1]
While taking export of a table received EXP error and while dropping/selecting the same gor ora-600 errors. . . exporting table TEST4 EXP-00003: no storage definition found for segment(29, 371385) SQL >Drop table test4 cascade; ORA-00600: internal er
-
Connecting a 2nd iPod to my computer
I have the iPod Nano already connected to my computer. I bought my husband the same one. Can we have both iPod's connected to the same computer?
-
Hi, I was wondering if anyone knew if there was a client install for 10g reports. Basically I need to run rwclient from a server to submit reports jobs but was hoping to avoid installing the whole IDS10g install on the server. Thanks, Brian
-
Available capacity is incorrect (videos are not counted)
I recenly bought an iPod Video 60GB black. The capacity is 55,6 GB. When putting on pictures and songs the available capacity is decreasing as it should. In my case, I have 754 songs and 7907 JPEG picures - a total of approx. 10GB. After that, I put
-
Hello, I have iPhone 3GS iOS 4, I can synchronize my calendar with Outlook, but can not synchronize the birthdays calendar. what can I do?