HTML code appearing in single cell of excel
Hi ,
My requirement was to mail the data in the an internal table as an attachment.
I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to do.
I am converting the data in the internal table into html format using WWW_ITAB_TO_HTML fm.
I am then passing this html data to the SO_NEW_DOCUMENT_ATT_SEND_API1.While doing so i am naming the attached as AAA .XLS.
The same code is present in the unicode and non-unicode systems.
When the user clicks on the mail attachment in non-unicode system, he is able to view the data in the html format in excel sheet.
In the non-unicode system, i observed that the entire HTML code sits in a single cell of the excel attachment.As a result i cannot see the data.
Also the first line of the html code is empty and the second line contains script. It does not contain an
Can someone provide some solution to the problem ?
Thanks,
Avanish Joshi
Hi Avanish ,
Thanks a lot for your response . It solved my problem .
We use BCS classes for this type of purposes .
Thanks & Regads
Nikhil
Similar Messages
-
Inserted HTML code appearing infront of a composition widget / Forms
Evening.
I seem to have a glitch with some inserted html code appearing infront (in IE and safari, firefox visible behind) of a composistion widget - http://www.thecallswarehouse.com/vacancies.html - if you click the newsletter option on the left hand side of the footer you should see what i mean. any suggestions? Move the composistion to another layer?
While talking about forms the inserted html code is actually another form that i had to create outside of muse as my client wanted a file attachment option. Is there any way to achieve that function with a muse form? (attach a file to the submitted email)
This might sound obvious but why can't you remove the 'required field' option from the name and email fields - My client doesnt want to force a user to submit an email address if they would prefer a phone call??
Any help appreciated.
Regards
AlanI call down blessings on you, you wonderful people! That worked, Zack! Now I just have to store that somewhere I can always find it and remember to use it! I can't say I understand it at all. My default browser is Firefox but I have no idea what browser (if any) Muse uses for previews, and Chrome is also on my PC although I seldom use it.
Furthermore, compare the first photo I posted of the HTML object in Design mode with this one
See the difference on the HTML object? This is also Design view, but instead of showing an anonymous black rectangle, it now has the video title and the start arrow - in Design mode!! Go figure. Now I'll try to finish up the site at last and see how everything works.
I'd cross my fingers -- but it makes it too hard to use the mouse.
Thanks again!
Karen -
HTML code appears corrupted - anyone run into this problem?
Using RH8 HTML - All of my topics have unusual spacing in the html code. This happens with a brand new project - starting right from the menu to select a new project. As soon as the project is created I go into the first topic and look at the html code and it looks something like this:
OK, even though it's hard to read, you can get the jist of it. This happens with old or new projects.
I am hoping I do not have to have our IT staff perform a uninstall/install. Any feedback is greatly appreciate.
RobJust want to add that the usual trick of restoring the default font to Courier at 100% does not work as the dropdown is blank when Robert accesses it.
Also this applies to any project Robert opens, including the samples.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Multiple ud code appearing for single purpose?
Hi all,
When i am doing usage decision for goods receipt, multiple UD code are appearing, with any code also UD is happening - for example - with A 01 also and YB01 01 also, can you please suggest me is there any different purpose for these codes and how do i enable a single code.
regards,
Sanjuif u want some specific ud codes should appear while taking ud
create selected in set in qs51 for that plant.
as said in above thread go to Quality Management > Quality Inspection > Inspection Lot Creation > Maintain Inspection Types > Detail of each inspection type -in selected set enter this newly created selected set and set indicator 'Selected set in same plant'.
only those codes will appear now
Regards -
A popup of mime or html code appears when I recieve an email
Hi, the attached image shows the screen that appears every time I download emails. It overlays all other screens, stays up for about 30 seconds and then goes. I would like someone to tell me how to stop this as it is very annoying.
Thanks
Helen
ETA I have tried uninstalling and reinstalling Thunderbird with no success.Application Basics
Name: Thunderbird
Version: 31.6.0
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
Profile Folder: Show Folder
(Local drive)
Application Build ID: 20150330093429
Enabled Plugins: about:plugins
Build Configuration: about:buildconfig
Memory Use: about:memory
Mail and News Accounts
account1:
INCOMING: account1, , (none) Local Folders, plain, passwordCleartext
account3:
INCOMING: account3, , (pop3) mail.waitrose.com:110, plain, passwordCleartext
OUTGOING: smtpmail.waitrose.com:25, plain, passwordCleartext, true
account5:
INCOMING: account5, , (nntp) news.mozilla.org:119, plain, passwordCleartext
OUTGOING: smtpmail.waitrose.com:25, plain, passwordCleartext, true
account7:
INCOMING: account7, , (pop3) mail.plus.net:110, plain, 0
OUTGOING: relay.plus.net:25, plain, none, true
Crash Reports
http://crash-stats.mozilla.com/report/index/bp-5c528001-1a71-4727-9199-87f8a2120618 (18/06/2012)
Extensions
Important Modified Preferences
Name: Value
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.display.background_color: #FFFFCC
extensions.lastAppVersion: 31.6.0
font.name.monospace.el: Consolas
font.name.monospace.tr: Consolas
font.name.monospace.x-baltic: Consolas
font.name.monospace.x-central-euro: Consolas
font.name.monospace.x-cyrillic: Consolas
font.name.monospace.x-unicode: Consolas
font.name.monospace.x-western: Consolas
font.name.sans-serif.el: Calibri
font.name.sans-serif.tr: Calibri
font.name.sans-serif.x-baltic: Calibri
font.name.sans-serif.x-central-euro: Calibri
font.name.sans-serif.x-cyrillic: Calibri
font.name.sans-serif.x-unicode: Calibri
font.name.sans-serif.x-western: Calibri
font.name.serif.el: Cambria
font.name.serif.tr: Cambria
font.name.serif.x-baltic: Cambria
font.name.serif.x-central-euro: Cambria
font.name.serif.x-cyrillic: Cambria
font.name.serif.x-unicode: Cambria
font.name.serif.x-western: Cambria
font.size.fixed.el: 14
font.size.fixed.tr: 14
font.size.fixed.x-baltic: 14
font.size.fixed.x-central-euro: 14
font.size.fixed.x-cyrillic: 14
font.size.fixed.x-unicode: 14
font.size.fixed.x-western: 14
font.size.variable.el: 17
font.size.variable.tr: 17
font.size.variable.x-baltic: 17
font.size.variable.x-central-euro: 17
font.size.variable.x-cyrillic: 17
font.size.variable.x-unicode: 17
font.size.variable.x-western: 17
gfx.direct3d.last_used_feature_level_idx: 1
mail.openMessageBehavior.version: 1
mail.winsearch.firstRunDone: true
mailnews.database.global.datastore.id: dae52f3f-9503-4d9a-82ab-8de44c7a095
network.cookie.lifetimePolicy: 2
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1428049122
places.history.expiration.transient_current_max_pages: 80519
plugin.importedState: true
plugins.update.notifyUser: true
print.print_printer: Epson Stylus Photo 810 (M)
print.printer_Epson_Stylus_Photo_810_(M).print_bgcolor: false
print.printer_Epson_Stylus_Photo_810_(M).print_bgimages: false
print.printer_Epson_Stylus_Photo_810_(M).print_command:
print.printer_Epson_Stylus_Photo_810_(M).print_downloadfonts: false
print.printer_Epson_Stylus_Photo_810_(M).print_edge_bottom: 0
print.printer_Epson_Stylus_Photo_810_(M).print_edge_left: 0
print.printer_Epson_Stylus_Photo_810_(M).print_edge_right: 0
print.printer_Epson_Stylus_Photo_810_(M).print_edge_top: 0
print.printer_Epson_Stylus_Photo_810_(M).print_evenpages: true
print.printer_Epson_Stylus_Photo_810_(M).print_footercenter:
print.printer_Epson_Stylus_Photo_810_(M).print_footerleft:
print.printer_Epson_Stylus_Photo_810_(M).print_footerright:
print.printer_Epson_Stylus_Photo_810_(M).print_headercenter:
print.printer_Epson_Stylus_Photo_810_(M).print_headerleft:
print.printer_Epson_Stylus_Photo_810_(M).print_headerright:
print.printer_Epson_Stylus_Photo_810_(M).print_in_color: true
print.printer_Epson_Stylus_Photo_810_(M).print_margin_bottom: 0.275694459676743
print.printer_Epson_Stylus_Photo_810_(M).print_margin_left: 0.275694459676743
print.printer_Epson_Stylus_Photo_810_(M).print_margin_right: 0.275694459676743
print.printer_Epson_Stylus_Photo_810_(M).print_margin_top: 0.275694459676743
print.printer_Epson_Stylus_Photo_810_(M).print_oddpages: true
print.printer_Epson_Stylus_Photo_810_(M).print_orientation: 0
print.printer_Epson_Stylus_Photo_810_(M).print_pagedelay: 500
print.printer_Epson_Stylus_Photo_810_(M).print_paper_data: 9
print.printer_Epson_Stylus_Photo_810_(M).print_paper_height: 11.00
print.printer_Epson_Stylus_Photo_810_(M).print_paper_size: 0
print.printer_Epson_Stylus_Photo_810_(M).print_paper_size_type: 0
print.printer_Epson_Stylus_Photo_810_(M).print_paper_size_unit: 1
print.printer_Epson_Stylus_Photo_810_(M).print_paper_width: 8.50
print.printer_Epson_Stylus_Photo_810_(M).print_reversed: false
print.printer_Epson_Stylus_Photo_810_(M).print_scaling: 1.00
print.printer_Epson_Stylus_Photo_810_(M).print_shrink_to_fit: true
print.printer_Epson_Stylus_Photo_810_(M).print_to_file: false
print.printer_Epson_Stylus_Photo_810_(M).print_unwriteable_margin_bottom: 0
print.printer_Epson_Stylus_Photo_810_(M).print_unwriteable_margin_left: 0
print.printer_Epson_Stylus_Photo_810_(M).print_unwriteable_margin_right: 0
print.printer_Epson_Stylus_Photo_810_(M).print_unwriteable_margin_top: 0
privacy.donottrackheader.enabled: true
Graphics
Adapter Description: NVIDIA GeForce GTS 250
Vendor ID: 0x10de
Device ID: 0x0615
Adapter RAM: 1024
Adapter Drivers: nvd3dum nvwgf2um,nvwgf2um
Driver Version: 9.18.13.4144
Driver Date: 2-3-2015
Direct2D Enabled: true
DirectWrite Enabled: true (6.2.9200.16492)
ClearType Parameters: ClearType parameters not found
WebGL Renderer: false
GPU Accelerated Windows: 1/1 Direct3D 10
AzureCanvasBackend: direct2d
AzureSkiaAccelerated: 0
AzureFallbackCanvasBackend: cairo
AzureContentBackend: direct2d
JavaScript
Incremental GC: 1
Accessibility
Activated: 0
Prevent Accessibility: 0
Library Versions
Expected minimum version
Version in use
NSPR
4.10.6
4.10.6
NSS
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC
NSS Util
3.16.2.3
3.16.2.3
NSS SSL
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC
NSS S/MIME
3.16.2.3 Basic ECC
3.16.2.3 Basic ECC -
In dreamweaver CS4, I can't make border for single cell
Hi folks,
Having given up trying to make a single cell border in the dreamweaver CS4 template, I reverted to an html page and put in my own header, 2 columns and footer as cells in the html table. I know there's html code for adding borders to single cell, but I can't find it. I hope someone can give me a sample line of html code for giving a cell a border on left side and on right side, including 1px solid color border. Anyone?Not sure if this is what you want, at least it will give you an example
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
body {width: 980px; margin: auto; background: #FEE49A;}
#header {height: 120px; background: #060;}
#article {height: 400px; width: 749px; float: right; background: #FFF; border-right: 1px solid #060;}
#aside {height: 400px; width: 228px; float: left; border-right: 1px solid #060; border-left: 1px solid #060; background: #CCC;}
#footer {height: 50px; background: #060; clear: both;}
</style>
</head>
<body>
<div id="header"></div>
<div id="aside"></div>
<div id="article"></div>
<div id="footer"></div>
</body>
</html>
Gramps -
I have no HTML code appearing at all in Business Catalyst using Yosemite OS X 2
Can anyone suggest a solution please.Newest Safari update (Version 7.1 (9537.85.10.17.1)) on Mavericks.
Errors such as the following are popping up:
WYSIWYG editor is broken. Everything's a mess. -
Some Mail messages show html code
I am using Mail 6.2 and Gmail IMAP. Some Mail that I move from my Inbox to another Mail folder part of the message appears in html code in the folder where I moved the message. The html code did not appera while the message was in my In Box. If I look at the message in Gmail, no html code appears and the message has the same lable as the Mail folder where I moved the message. If i look at the message on my iPad there is no html code. The problem only appears to happen within Apple Mail
By the way, also, the html code is interpreted correctly by the html tester on the following web site:
http://www.webtutorialplus.com/html-code-tester.aspx
So it seems that perhaps a simple edit should make it compatible with Mail App.
I have verified that all uninterpreted messages where all I see is html raw code, are interpreted and rendered beautifully by the tool at the link above. All I need do is to coy and paste the body of the message. So it seems that what is missing is something to trigger the interpretation in Mail App. Right? -
After add single signoff HTML code, Portal system can not login in Firefox
We implemented single singon between our Portal system and HCM system.
After we add the single signoff HTML code to the signout.html,expire.html, exception.html file of the web server of portal system, and we change the web profile:
Logout Page:signin.html to signout.html
Signon Page:signon.html to signout.html
We can not login the Portal system in Firefox browser, system display the following error information:
"You must have cookies enabled in order to sign in to your PeopleSoft application."
We can login in the Portal system in IE browser.
We can login the HCM login in FireFox.My HCM and Portal application is 9.0. PeopleToos is 8.49 for the same application.
The Firefox Browser is :3.0.1.
My App, Web and DB server for the HCM and Portal deployed on the same local machine, so the tow application have the same domain.
And the client browser is on the same machine with the server.
And when I remove all the pagelet from the portal homepage, the system report the same error information when login portal system in Firefox. Only when I stop the HCM web server, I can login in portal system in Firefox. -
On first search file:///center%3E,br%3E%3Cbr%3E appears in the search bar looks to be html code that has got in there somehow. How can I remove the unwanted code so that the browser returns to normal.
Clear the cache and the cookies from sites that cause problems.
* "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
* "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]] -
How to add a comment in a php file which has html code
Hi
I have a html file which I renamed .php after adding a form. I discovered that the html comment text I was using - <!--this is a comment --> - was affecting how the page rendered, particularly in IE9.
My question is, now that it is a php file do I need to change all the comments syntax? I started to do it using the "apply comment" button in CS5 i.e. syntax: <?php /*?>form<?php */?>.
Is this the right way to do it? It gives "php" icons in design view but appears to render ok.
ThanksPHP comments:
<?php
//This is a comment
This is
a php comment
block
?>
Use PHP comments inside PHP scripts/code.
HTML comments:
<!--comment-->
<!--this is
an html comment
block-->
Use HTML comments inside HTML code.
CSS Comments:
/*comment*/
/*this is
a css comment
block*/
Use CSS comments inside CSS code (either embedded or external).
JavaScript comments:
//this is a single line comment
//this is another single line comment
/*this is a multi-line
javascript
comment
Use JavaScript comments inside JavaScript code (either embedded or external).
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Robohelp HTML 9 hyperlinks in table cells help
Hi,
I'm creating a table in robohelp html 9 and adding hyperlinks in the table cells. If the hyperlink is the first word in that cell robohelp is adding styling code to the link eg <td><a href="#" style="color: #0000ff; text-decoration: underline; ">test</a></td>.
If I add a link to the second word in a table cell the styling does not appear or even if I add a space before the link the code does not appear eg <td> <a href="#">test</a> </td>.
The code appears when I flick between design and HTML views but it does not make any difference in which view I create the link.
No matter how many times I delete this code is keeps coming back. Can anyone please help me? Is there some default that gives this the styling code?Does anyone else get this issue?
A table with the different examples is below. It was created in design view by clicking table>insert table>OK. Links added by clicking the insert hyperlink button.
<table style="border-collapse: separate; border-collapse: separate;" cellspacing="0"
width="33.333%" border="1">
<col style="width: 100%;" />
<tr>
<td><a href="#" style="color: #0000ff; text-decoration: underline; ">test
that has the added code</a></td>
</tr>
<tr>
<td> <a href="#">test with space in front of link</a> </td>
</tr>
<tr>
<td><a href="#" style="color: #0000ff; text-decoration: underline; ">test</a></td>
</tr>
<tr>
<td>A <a href="#">test</a> </td>
</tr>
</table>
Thanks in advancedI have the same problem with those stupid links in tables - I've been working on this for HOURS and HOURS...... Based on previous experience, I assumed it must only be me and an ill-formed stylesheet. The table/link issue just came to my attention because I am in the process of changing styles/formats to a new company standard (new link color) and thought I really screwed my CSS up as I was changing things!
My only workaround thusfar has been to rewrite some data in the tables so that text will precede the link (yes, I did). And where I just couldn't do that, I resigned myself to the problem and forced a different color on the links (changing the #0000ff). One plus was that RH didn't rewrite the color code once it was changed manually..... but then I realized later that I didn't consider the hover color when I did this, so I now have to go back and correct them.
So glad to find your post...........
I played with the idea of adding hidden text, but was worried that the problem was really a result of an issue with my CSS and doing that wasn't the proper way to fix it. So, without guilt, I took Rick's suggestion and added an invisible dot/period at the beginning of every link in a table, when that link is the first or only content in the td. Did the trick! Now the links assume my declared css style!
I submitted a bug report.......
Thank you!!! -
Modifying single cell in ALV Grid via OO
Hi All,
Got a problem I hope someone can assist me with. I have a custom program generating an editable ALV grid. The users want to update a single cell in a row with value from a custom drop down. I've got the dropdown working, but I can't work out how to get the value back into the field. My attempts result in a 'GETWA_NOT_ASSIGNED' short dump.
I'm using the CL_GUI_ALV_GRID->get_selected_cells_id method to get the reference for the field to be modified, but I don't know where to go from here.
Any thoughts would be greatly appreciated. Btw, my knowledge of OO is passable, but not great, so any explanations of what the code is doing in a proposed solution would be greatly appreciated.
points will be rewarded.
Cheers,
StephenHello Stephen
Since your dropdown list restrict the already allowed values there should be no special need to validate the selected values.
Simply "grab" the data from the editable ALV into your internal itab in the ABAP report.
I have copied sample report BCALV_EDIT_07 into ZUS_SDN_BCALV_EDIT_07 and modified the report to show how to retrieve the dropdown values (which is simple). Please note that I added the GUI-function 'SAVE' to the GUI-status MAIN100.
* MODULE PAI INPUT *
MODULE pai INPUT.
save_ok = ok_code.
CLEAR ok_code.
"$TMP
g_grid->check_changed_data( ). " retrieve changes from editable grid
CASE save_ok.
WHEN 'EXIT'.
PERFORM exit_program.
"$TMP
WHEN 'SAVE'.
PERFORM save_data.
WHEN OTHERS.
* do nothing
ENDCASE.
ENDMODULE. "pai INPUT
*& Form SAVE_DATA
* text
FORM save_data. "$TMP
* define local data
data: ls_fcat type lvc_s_fcat,
lt_fcat type lvc_t_fcat.
lt_fcat = gt_fieldcat.
ls_fcat-edit = ' '.
modify lt_fcat from ls_fcat
TRANSPORTING edit
where ( edit = 'X' ). " display ALV should be not editable
" Simulate saving of data
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
* I_CALLBACK_PROGRAM = ' '
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'Display modified list data'
* I_GRID_SETTINGS =
* IS_LAYOUT_LVC =
IT_FIELDCAT_LVC = lt_fcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS_LVC =
* IT_SORT_LVC =
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
I_SCREEN_START_COLUMN = 5
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 20
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IT_EXCEPT_QINFO_LVC =
* IR_SALV_FULLSCREEN_ADAPTER =
TABLES
t_outtab = gt_outtab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "SAVE_DATA
And here is the entire coding: In order to find the modified parts of the coding simply search for $TMP.
PROGRAM zus_sdn_bcalv_edit_07.
* Purpose:
* ~~~~~~~~
* This example shows how to define dropdown listboxes for
* particular cells of your output table.
* To check program behavior
* ~~~~~~~~~~~~~~~~~~~~~~~~~
* Conceive that customers are only allowed to smoke in the
* first class. For this reason, if the customer is a smoker
* only the first class (F) can be chosen in column 'CLASS',
* otherwise all classes.
* Essential steps (search for '§')
* ~~~~~~~~~~~~~~~
* 1.Define an extra field in your output table
* 2.Define a dropdown table and pass it to ALV.
* 3.Set your dropdown field editable and assign the fieldname of the
* corresponding additional field to DRDN_FIELD of the fieldcatalog.
* 4.Set the handle of your additional field of your output
* table according to the listbox that shall be displayed.
DATA: ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm,
g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
gt_fieldcat TYPE lvc_t_fcat,
gs_layout TYPE lvc_s_layo,
g_max TYPE i VALUE 100.
*§1.Define an extra field in your output table
* for each column where you want to use drop down listboxes.
* (One additional field refers to cells of one column).
DATA: BEGIN OF gt_outtab OCCURS 0.
INCLUDE STRUCTURE sbook.
DATA: drop_down_handle TYPE int4.
DATA: END OF gt_outtab.
* MAIN *
END-OF-SELECTION.
CALL SCREEN 100.
* MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF g_custom_container IS INITIAL.
PERFORM create_and_init_alv CHANGING gt_outtab[]
gt_fieldcat.
ENDIF.
ENDMODULE. "pbo OUTPUT
* MODULE PAI INPUT *
MODULE pai INPUT.
save_ok = ok_code.
CLEAR ok_code.
"$TMP
g_grid->check_changed_data( ). " retrieve changes from editable grid
CASE save_ok.
WHEN 'EXIT'.
PERFORM exit_program.
"$TMP
WHEN 'SAVE'.
PERFORM save_data.
WHEN OTHERS.
* do nothing
ENDCASE.
ENDMODULE. "pai INPUT
* FORM EXIT_PROGRAM *
FORM exit_program.
LEAVE PROGRAM.
ENDFORM. "exit_program
*& Form SAVE_DATA
* text
FORM save_data. "$TMP
* define local data
data: ls_fcat type lvc_s_fcat,
lt_fcat type lvc_t_fcat.
lt_fcat = gt_fieldcat.
ls_fcat-edit = ' '.
modify lt_fcat from ls_fcat
TRANSPORTING edit
where ( edit = 'X' ). " display ALV should be not editable
" Simulate saving of data
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
* I_CALLBACK_PROGRAM = ' '
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'Display modified list data'
* I_GRID_SETTINGS =
* IS_LAYOUT_LVC =
IT_FIELDCAT_LVC = lt_fcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS_LVC =
* IT_SORT_LVC =
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
I_SCREEN_START_COLUMN = 5
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 20
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IT_EXCEPT_QINFO_LVC =
* IR_SALV_FULLSCREEN_ADAPTER =
TABLES
t_outtab = gt_outtab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "SAVE_DATA
*& Form BUILD_FIELDCAT
* text
* <--P_GT_FIELDCAT text
FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
DATA ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SBOOK'
CHANGING
ct_fieldcat = pt_fieldcat.
LOOP AT pt_fieldcat INTO ls_fcat.
* Exchange smoker field with invoice field - just to
* make the dependance between SMOKER and CLASS more transparent
* (Smoking is only allowed in the first class).
IF ls_fcat-fieldname EQ 'SMOKER'.
ls_fcat-col_pos = 11.
ls_fcat-outputlen = 10.
MODIFY pt_fieldcat FROM ls_fcat.
ELSEIF ls_fcat-fieldname EQ 'INVOICE'.
ls_fcat-col_pos = 7.
MODIFY pt_fieldcat FROM ls_fcat.
ELSEIF ls_fcat-fieldname EQ 'CLASS'.
*§3.Set your dropdown field editable and assign the fieldname of the
* corresponding additional field to DRDN_FIELD of the fieldcatalog.
ls_fcat-edit = 'X'.
ls_fcat-drdn_field = 'DROP_DOWN_HANDLE'.
ls_fcat-outputlen = 5.
* Field 'checktable' is set to avoid shortdumps that are caused
* by inconsistend data in check tables. You may comment this out
* when the test data of the flight model is consistent in your system.
ls_fcat-checktable = '!'. "do not check foreign keys
MODIFY pt_fieldcat FROM ls_fcat.
ENDIF.
ENDLOOP.
ENDFORM. "build_fieldcat
*& Form CREATE_AND_INIT_ALV
* text
* <--P_GT_OUTTAB text
* <--P_GT_FIELDCAT text
* <--P_GS_LAYOUT text
FORM create_and_init_alv CHANGING pt_outtab TYPE STANDARD TABLE
pt_fieldcat TYPE lvc_t_fcat.
DATA: lt_exclude TYPE ui_functions.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container.
CREATE OBJECT g_grid
EXPORTING
i_parent = g_custom_container.
PERFORM build_fieldcat CHANGING pt_fieldcat.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
PERFORM exclude_tb_functions CHANGING lt_exclude.
PERFORM set_drdn_table.
PERFORM build_data CHANGING pt_outtab.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
it_toolbar_excluding = lt_exclude
CHANGING
it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab[].
* Set editable cells to ready for input initially
CALL METHOD g_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ENDFORM. "CREATE_AND_INIT_ALV
*& Form EXCLUDE_TB_FUNCTIONS
* text
* <--P_LT_EXCLUDE text
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.
* Only allow to change data not to create new entries (exclude
* generic functions).
DATA ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
APPEND ls_exclude TO pt_exclude.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
*& Form set_drdn_table
* text
* --> p1 text
* <-- p2 text
FORM set_drdn_table.
*§2.Define a dropdown table and pass it to ALV.
* One listbox is referenced by a handle, e.g., '1'.
* For each entry that shall appear in this listbox
* you have to append a line to the dropdown table
* with handle '1'.
* This handle can be assigned to several columns
* of the output table using the field catalog.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
ls_dropdown-handle = '1'.
ls_dropdown-value = 'F'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = 'F'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = 'C'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = 'Y'.
APPEND ls_dropdown TO lt_dropdown.
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.
ENDFORM. " set_drdn_table
*& Form build_data
* text
* --> p1 text
* <-- p2 text
FORM build_data CHANGING pt_outtab TYPE STANDARD TABLE.
DATA: lt_sbook TYPE TABLE OF sbook,
ls_sbook TYPE sbook,
l_index TYPE i,
ls_outtab LIKE LINE OF gt_outtab.
SELECT * FROM sbook INTO TABLE lt_sbook UP TO g_max ROWS."#EC CI_NOWHERE
IF sy-subrc NE 0.
PERFORM generate_entries CHANGING lt_sbook.
ENDIF.
*§4.Set the handle of your additional field of your output
* table according to the listbox that shall be displayed.
LOOP AT lt_sbook INTO ls_sbook.
l_index = sy-tabix.
MOVE-CORRESPONDING ls_sbook TO ls_outtab.
CLEAR ls_outtab-class.
* Alternate between smoker and non smoker to make
* it more obvious what this example is about
l_index = l_index MOD 2.
IF l_index EQ 1.
ls_outtab-smoker = 'X'.
ELSE.
ls_outtab-smoker = ' '.
ENDIF.
IF ls_outtab-smoker EQ 'X'.
ls_outtab-drop_down_handle = '1'.
ELSE.
ls_outtab-drop_down_handle = '2'.
ENDIF.
APPEND ls_outtab TO pt_outtab.
ENDLOOP.
ENDFORM. " build_data
*& Form generate_entries
* text
* <--P_LT_SLFIGHT text
FORM generate_entries CHANGING pt_sbook TYPE STANDARD TABLE.
DATA: ls_sbook TYPE sbook,
l_month(2) TYPE c,
l_day(2) TYPE c,
l_date(8) TYPE c,
l_prebookid TYPE i.
ls_sbook-carrid = 'LH'.
ls_sbook-connid = '0400'.
ls_sbook-forcurkey = 'DEM'.
ls_sbook-loccurkey = 'USD'.
ls_sbook-custtype = 'B'.
DO 110 TIMES.
l_prebookid = sy-index.
ls_sbook-forcuram = sy-index * 10.
ls_sbook-loccuram = ls_sbook-loccuram * 2.
ls_sbook-customid = sy-index.
ls_sbook-counter = 18.
ls_sbook-agencynum = 11.
l_month = sy-index / 10 + 1.
DO 2 TIMES.
l_day = 3 + l_month + sy-index * 2.
l_date+0(4) = '2000'.
l_date+4(2) = l_month.
l_date+6(2) = l_day.
ls_sbook-fldate = l_date.
SUBTRACT 3 FROM l_day.
ls_sbook-order_date+0(6) = l_date+0(6).
ls_sbook-order_date+6(2) = l_day.
ls_sbook-bookid = l_prebookid * 2 + sy-index.
IF sy-index EQ 1.
ls_sbook-smoker = 'X'.
ELSE.
ls_sbook-smoker = space.
ENDIF.
ls_sbook-luggweight = l_prebookid * 10.
IF ls_sbook-luggweight GE 1000.
ls_sbook-wunit = 'G'.
ls_sbook-class = 'C'.
ELSE.
ls_sbook-wunit = 'KG'.
ls_sbook-class = 'Y'.
ENDIF.
IF ls_sbook-bookid > 40 AND ls_sbook-wunit EQ 'KG'.
ls_sbook-invoice = 'X'.
ENDIF.
IF ls_sbook-bookid EQ 2.
ls_sbook-cancelled = 'X'.
ls_sbook-class = 'F'.
ENDIF.
APPEND ls_sbook TO pt_sbook.
ENDDO.
ENDDO.
ENDFORM. " generate_entries
Regards
Uwe -
Concatenation of Data from 4 infoobjects into a single cell in Bex Report
Hi,
I have loaded ODS with the description data. The source system for loading the ODS is the flat file. The ODS data should be a replica of the flat file.
In the flat file, there is a description field corresponding to a particular ID. This Description is greater than the standard 60 char length. So, I had to split the description while loading the flat file using single line routine in the Transfer Structure.
So, while loading different the data, I split the description field data from the flat file into 4 infoobjects and the flat file data was loaded into the ODS.
Now, from the reporting point of view, I need to display the entire description data from the 4 info-objects into a single cell in the Bex report.
Please suggest a solution for this.
<b>****Points will be awarded***</b>Hi Vineet,
Thanks for the response.
Could you please help me out with the VBA script(code) that needs to be written in the macro.
Thanks in Advance.
<i><b>****Points will be awarded****</b></i>
Regards,
Hitesh Shetty. -
Unwanted source code appears in browser but not in Dreamweaver Code Window
I am using templates and css, and Dreamweaver to build a new website of about 20 pages. With the first several pages, everything was working well. Then as I continued to add pages, I started to notice some code appearing at the bottom of web pages (under the footer), and then, a page duplicating the footer, and then, the drop-down function on the index page not working (pulls down and pops right back up) while headers on other pages work fine. I viewed the source code in the browsers (IE and Firefox) and I see the extra code at the bottom. However, this code doesn't show up in Dreamweaver, or, when I open the files in Notepad.
Following is an example of the different bottom-most lines of code in the Firefox browser compared to what I see in Dreamweaver or Notepad (note the highlighted line that is not showing up in Notepad or Dreamweaver).
Firefox Browser:
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
</body>
<!-- InstanceEnd --></html>ript>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
</body>
<!-- InstanceEnd --></html>
Notepad or Dreamweaver code screen:
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
<script type="text/javascript" src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
</body>
<!-- InstanceEnd --></html>this answer is a bit late, but i think i have figured this problem out and it is probably still bugging someone out there.
i was having the same issues through many dreamweaver upgrades and kept running into the same problem (only on my Mac though - PC never gave me trouble). anyway, my hard drive recently died and i had a brand new one installed and then i installed a fresh version of CS5. started building a page and ran into the same problem. now that this is happening on a new drive with a fresh OS and reinstalled software, i needed to look elsewhere.
the problem is so simple you will more than likely cry at the amount of time you have wasted on it. more than likely if this is happening to you, you are working off of a network drive or a server. all my files are stored on a server locally, so when i make a change it is saving to the server. either a bad or slow connection to the server and/or a server going bad will cause this issue.
take the same file that you are having problems with and save down to your desktop - then preview in a browser. so the solution is to build the entire site on your local drive and then FTP up to the live site when complete.
hope this helps.
Maybe you are looking for
-
IMAP folders appear under Inbox
I am using Mail.app with 6 imap accounts. For two of the accounts (both on cyrus-imapd servers, I believe), all of the folders appear as subfolders of that accounts Inbox. I am able to successfully assign the Junk, Trash, Sent, etc. folders. Every un
-
Windows not recognizing iPod mini
When I connect my iPod mini to my computer, nothing happens. It is not recognized by iTunes or explorer. I can get the iPod to charge if I reset it while it's plugged in, but otherwise nothing happens. I tried plugging it in to an old laptop that I h
-
How to hide the mail message size
Suddenly, when writing a new email message I have a new field that appeared - Message Size. I have not found a way to hide this. Can it be hidden? Can the signature field be hidden too? Thanks
-
Slow Graphics in Reports 10g?
Hi we are currently building a massprinting engine based on the oracle 10 Reports server. Now we have the following problem: Building a normal report without any graphics on it takes under normal conditions not more than 2 seconds. Based on the same
-
I just have a question about the creative cloud interface. When I checked for updates to the applications today the CC (2014) version of the applications were available but it shows up as a "Try" not an "update" The only one that shows up as an updat