How to insert a Grpahics logo in Classical report?
Hi Experts,
I need to insert a graphics logo in a classical report without using split screen or graphics control. The size of the logo is normal Company logo we use in Smartform. The difference here is : I need to print the logo in a classical report.
Regards,
Anid
Reward Points Guaranteed.
Hi..
It is possbile only when u create ALV report. In normal report we cannot insert Logos.
In case of ALV:
Inserting Logo:
In the transaction OAOR, you should be able to insert your company Logo.
GOTO - OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
<b>Reward if Helpful.</b>
Similar Messages
-
HI ,
Is it possible to display the logo in classical basic) reports.
if possible tell me how to doHi,
I have inserted a picture in my classical report. According to the position where you want can be adjusted. If you know how to upload Logo in SMW0 then upload and just copy paste the code that i have shown will display the image.
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i.
END OF DO NOT CHANGE----------------------*
FORMAT HOTSPOT ON.
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: A(4) DEFAULT '4' .
PARAMETERS: B(4) DEFAULT '5' .
DATA: ANSWER TYPE I.
ANSWER = A + B.
WRITE:/ ANSWER.
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
PERFORM show_pic1.
START-OF-SELECTION.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 90
left = 40
top = 30
width = 190.
CHANGE POSITION AND SIZE ABOVE****************
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
CHANGE IMAGE NAME BELOW UPLOADED IN SWO0*****************
query_table-value = 'YREDDY'. "name which u have given in SMW0
APPEND query_table.
query_table-value = 'YLOGO'.
APPEND query_table.
*FORMAT HOTSPOT ON.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
FORMAT HOTSPOT OFF.
ENDFORM.
INSERT PICTURE IN SMW0 TXCODE.
Cheers!!
VEnk@
Edited by: Venkat Reddy on Oct 29, 2008 1:16 PM -
Print Logo in Classic Report (Write Method,Not ALV)
Hi All,
I'm currently doing conversion of the All the Classic Report with addition of Header with 'LOGO'.
I'm willing to find out that Function (CALL FUNCTION 'WWW_GET_MIME_OBJECT') is only able for display but not show out during printing.
Is that any method, I can do it(Print with Logo) without conversion to SAP Script or Smartform that was exhausted.
*Please take note is Classic Report with Write Method (Line by Line), Not ALV.
Thank you all in advance
Regards,
Trevor Wong.Hi,
It is possible to include logo in classical report but its not possible to print logo in classical report. It can be done in ALV's.
Write the code in Top-of-page event in ALV.
The following is the code for inserting the logo in ALV.
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM.
Regards
Purnand -
Print LOGO in classical report printout
Hi GURUS,
Is it possible to take print of logo in classical report.refer this link:[click|http://tinyurl.com/5s22vp]
the code is copied from that link.
Make the changes in the code as given below.
REPORT zgb_prog06.
* START OF DO NOT CHANGE***********************************
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i.
* END OF DO NOT CHANGE*************************************
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT. "Remove this event
START-OF-SELECTION.
write 'Testing picture printing in classic report'.
PERFORM show_pic. "Add it here
end-of-selection.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>DISPLAY_MODE_FIT.
CALL METHOD picture_control_1->set_position "change positions
EXPORTING
height = 70
left = 800
top = 20
width = 190.
*CHANGE POSITION AND SIZE ABOVE***************************
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
*CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
query_table-value = 'ZLOGO'.
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
*Syntax for URL
*url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
*url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
ENDFORM. "show_pic -
How to fix Width of column in classic report.
Dear Friends
i am using Apex 3.2.
i have created Clasic Report and i have summary column in my report that column have description of issue so i want to fix width of that column nn Classic report .
i have try some code in html expression
<span>style="width: 480px; display: block; white-space: normal; font-size: 11px;">#ACTIVITY_SUMMARY#</span>
{code
after apply abovemention code that display me in my summary like this and not manage width of column.
style="width: 480px; display: block; white-space: normal; font-size: 11px;">Dear Cherryl, Greetings !! Thank you very much for the new query and we are pleased to confirm the availability of one single cabin in all the three categories of cabin on M.V. Mahabaahu. We would like to inform you that both the departures 15th Oct 2013 & 29th Oct 2013 (Golden triangle with Cruise) are operational and attached are the prices for your kind consideration. As a special promotion for the 15th Oct 2013 departure only, we are offering USD 100 per person reduction on the Golden triangle portion combined with the cruise. Kindly review and advise us to block the accommodation accordingly. Regards...pankaj
How to fix Width of column in classic report.
ThanksHi,
I'm working an example in APEX 4.2 so YMMV (your milage may vary!).
For Classic Reports, where the Column Attributes "Display As" is set to Display as Text (escape special characters ...:
1) I find that Column width and Element Width setting have no effect to make the column smaller or larger.
2) Here is one way that works:
- In the Region's Region Definition, under Attributes give the Static ID a name (no spaces), say, class-report.
- In the columns you want to affect, place "<div>#ENAME#</div>" in the columns Column Formatting "HTML Expression". Where "ENAME" here is the actual column name.
I'm using the EMP table as an example.
- Finally, in the page's HTML Header put, for example
<style>
#classic-report td.data[headers="ENAME"] div {
width: 200px;
color: blue;
#classic-report td.data[headers="JOB"] div {
width: 50px;
white-space: nowrap;
word-wrap: break-word;
</style>This makes the ENAME column wider and the JOB column smaller and wraps it.
Much more could be said. If you tweak you will find you can also affect spacing above, below and right/left of the data.
#classic-report .report-standard th.header {
border-left: #9fa0a0 1px solid;
padding: 2px 3px 4px 5px; /* top right bottom left margins */
font-size: 11px;
font-weight: bold;
vertical-align: bottom;
#classic-report .report-standard td.data {
border-left: #9fa0a0 1px solid;
padding: 3px 4px 5px 6px;
font-size: 9px;
}Does this help?
Howard -
How to Link column header only in classic Report in APEX 4.1
Hello Everybody,
Probably there is a simpler way to do this, but I am not sure. I want a link on column header in Report on a specific column. The link will take me to new region or a page.
How to achieve this in APEX 4.1
Theme : Blue 2
Database 11g
I see there is a column link opiton, but that creates link for every row in that column on a specific icon, I just want link on a title of the column in Classic Report.
For Example,
if there are two columns Name and Client ID, which has 10 records to display on a classic report. I wan the link on Client ID on header only not on the records.
Can anybody provide some simple solution for this.
Thanks,
--CP
Edited by: cpora007 on Jun 22, 2012 10:38 AMHello,
I didn't understand, what do you mean by default it is going to sort popup. I have a classic report based on SQL, which generates a report with static header, there is no sort or any other link on that.
I added a link in column header name with an anchor. It works and takes to the new page.
But it is not a proper solution. A solution based on Jquery dynamic action is preferable. Also the preferred option is that the link opens a hidden region of the same page at the same location of the report and the report gets hidden. after the procession on the form region and submitting the update/ insert process. the report region shows up with the change data.
Moving on to new page is 2nd option, if the first do not work.
In the JavaScript, put: apex.submit("GO_TO_MY_OTHER_PAGE");
On the page, create a Branch to the Second page. Set the condition to Request=Expression 1. Set the request to "GO_TO_MY_OTHER_PAGE"
On which page I need to create a branch?, Is it on the report page or the form page.
Thanks a lot for the response. I appreciate your kind efforts in this regard.
--CP -
How to set default company logo in bex report(analyzer)?
hi,
i have a requirement that i need to create default template for my queries in bex analyzer. whenever i execute my query in analyzer the company logo should be on top of the query. i know how to do it in workbook but could you explain me how to set the default company logo in bex reports?
thanks
vadlamudiSee the following document on creating a workbook template with an image: [http://www.researchsummary.ca/bw/Sample_Ch10.pdf]
In BW, there is a table that stores the default workbook. The following snippet of code allows you to identify a custom workbook template as the default template for all end users.
*& Report Z_SET_BEX_USER_TEMPLATE *
*& Program to update all user's default template *
REPORT Z_SET_BEX_USER_TEMPLATE.
TABLES: rsrwbtemplate,
usr01.
PARAMETER: wbid LIKE rsrwbindex-workbookid.
SELECT
FROM
usr01.
MOVE: usr01-bname TO rsrwbtemplate-templateuser,
wbid TO rsrwbtemplate-workbookid = wbid.
UPDATE
rsrwbtemplate.
IF sy-subrc 0.
INSERT
rsrwbtemplate.
ENDIF.
ENDSELECT. -
How to get add/edit button in classic report
Hi,
Iam trying to built a classic report,but here i need to have add/edit button.How can i achieve this in classic reports?
I know this add/edit button with a pencil on note will come through the interactive report.
But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page.Here he created a classic report with alternating rows but has an add/edit button to it.How could that be achieved??
Can Anyone help me in this regard to built the My orders page including the add/edit navigation getting to order for items.How can tat sample application of My orders built?
TIA,
Regards,
Kranthi.
Edited by: Kranthi.K on Sep 29, 2009 12:38 AMOne more doubt is
But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page and when we hit add/edit image it directs us to the My orders info and order items.
How can we build that page of My orders info and order items.Can anyone guide me through the steps the sample is created.
I tried many times with master detail,but dint achieve what the default Sample Application has been done.
Thanks in Advance
Edited by: Kranthi.K on Sep 29, 2009 4:54 AM -
How to insert a dynamic image in a report
Hi,
I want to insert the image of a student in a report toghether with all other student's data. The image's file name is in a field of the students' table and the file is stored in a directory of the web application. I am using Visual studio 2010 and the reports are prepared with Crystal Reports 2008 (full product). At design time, when I try to insert an image on the report, it immediately asks for an image file on the computer, so I cant figure out how to insert an image whose path and file name come from a data source.
Thank youHi Don,
As I said, when I insert any field in the report, say for instance the Student ID, and then link it to a database field containing the name of the image file to display (I have to concatenate the path to this file name as well), it first shows the report with the Student ID. If I click on it, because of the hyperlink defined at design time, it opens the file (an image in this case) in Internet Explorer, not on the report.
The same happens if I put an image as an object on the report at design time. In this case as soon as I put the image object on the report it forces me to select an initial image to show on the report. Anyway, I define an hyperlink for this image, pointing it to the image file of the Student, using the database field containing the image file name. When I show the report I see the initial image I was forced to use and when I click it, the hyperlink takes me to the right student image, but even in this case it shows me the right image opening an Internet Explorer session and not on the report. On the report the initial image is still there and never changes.
What I actually need is a way to put the student's image on the report as soon as it shows the other student's data, as the name, age, ***, and so on, without having to click somewhere to show the student's image.
Thanks -
How to display the text in a classical report before top-of-page?
Hi all,
I am developing a classical report with top-of-page because i want to display the texts of cloumns even users scroll down the output.
But here the problem is i have to display a text and selection screen values in the ouput ,Before this top-of-page. But i couldn't find the way to do it.
Please help me on solving this problem?
Thanks,
Vamshi.Hi Vamsi,
whenever there is write statement and you are going to display some thing the system checks for the TOP-OF-PAGE and we are helpless here
so declare your heading in the TOP-OF-PAGE only
THIS is SAP provided way of the SYSTEM bahaviour
Regards
ramchander Rao.k -
How to insert a new field in the Report Designer
Hi all.
I have a query and a report, but the query evolve.
We have a new key figure (inside rows).
In the report designer, I check the data provider.
The new key figure is added in the catalog field.
Now, I would like to insert the new field in the report.
I add a new row in the report structure but it isnt what I want.
In this case, I add a second row inside an another keys figures block.
I want to create a new block for my new key figure
Thanks for your help
CélineYes, key figures is in the field catalog.
But When I do that " Insert a row ", Report designer create a " row 2 " below another key figures.
And it isn't what I want. I want a new block .
For exemple in the tab report structure (My new key figure is "Margin")
I do that
Group Level 1 : key figures
Detail Area
Sales Amount
row1
cell1
cell2
Cost
row1
cell1
cell2
row2 ( the new row added)
cell1
cell2
But I want that:
Group Level 1 : key figures
Detail Area
Sales Amount
row1
cell1
cell2
Cost
row1
cell1
cell2
Margin
row1
cell1
cell2
Thanks for your help -
How to insert serial Number in BI Publisher Report
Hi All,
I want to insert serial numbers in BI Publisher report.
For Example:
SNO
1
2
3
4
I tried below code in XML file...but i confused where i need to add these code in XML file
<?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+1)?>
<?xdoxslt:get_variable($_XDOCTX, 'var')?>
Can anybody explain detail steps........
Regards,
Nagaraju MUse <?position()?> in your RTF template when you display your records..
I believe if you search for posts on this forum, you will find several threads with similar requirement.
Thanks,
Bipuser -
How to display special characters in APEX Classic Report column
Ref: Thread: How to display newline characters as new lines
Version: APEX 3.2
Hi,
I have created an classic SQL Report with one of the columns being a decode that gives a value 'Post'(the value should be highlighted in Red) on one condition and 'Pre' on another. I have followed the advice given in the page (URL provided above) , i.e. I have changed Strip HTML to 'No', changed Display as to 'Display as text (escape special characters, does not save state)'. I have also passed this value back to the same page to be stored in a page item each time a link (another column in report) in report is clicked. I have tried passing it as #DEADLINE# and \#DEADLINE#\. The issue I face is, instead of the value being highlighted in Red, it gets passed back as a string holding the value 'Post'. Is there any way I can get this to display as it should without the Strip HTML being changed to 'Yes'.
Thanks very much.
Rohi
Edited by: Rohi on 18-Jul-2012 04:21876651 wrote:
Hi,
Thanks for your response.
I am trying to display a page item that is derived from a report column based on a click on the URL link (*view >*>)
This page item (here, it is Manager_ID) should ideally be highlighted when a particular condition is satisfied (achieved using a DECODE in the report).
But it is not displayed like it should be.
I do not want the value to be displayed along with the html tags as a string.
I want the html tags to take effect and highlight the value within it.
Initially, I had set Strip HTML to Yes and the value was returned without any highlighting .
So I changed it to 'No' and and it contained the html tags.
I am not sure what setting in APEX Report Attributes can help me achieve that effect I want.None of the report settings are relevant. They affect the rendering of the report and none of the columns you were changing the properties of were actually rendered.
You can't pass HTML and CSS around in URL parameters.
I suggest you pass *2* values in the column link: the MGR ID and a simple class or colour value computed by the DECODE in the report. I've suppressed the first version of the report and created a new one that does this:
decode(dept.deptno, '30', 'c00', '000') highlight The link column now passes the MGR ID and the HIGHLIGHT colour (red when the condition is satisfied and black when it is not).
I created another hidden and protected page item <tt>P0_HIGHLIGHT</tt> as the target for the highlight value, and used the Pre/Post Element Text properties of the <tt>P0_G_MGR</tt> to wrap it in a <tt>span</tt> whose colour is changed using the <tt>P0_HIGHLIGHT</tt> value as a subtitution string:
<span style="color: #&P0_HIGHLIGHT.;">Having done that, I still don't really get the requirement here. I'm sure that given the full picture I'd be using a completely different approach... -
How to get updated fields in a classical report
Hi,
After displaying the report using Write, multiple fields are editable. I used INPUT ON for this. My problem is, how does the program recognize the new entered values in all the editable fields? I can not use AT LINE-SELECTION because only the current line that the cursor has focus on is being retrieved.
I've also researched about DYNPRO_FIELD_GET but i requires a DYNPRO. When I checked the report, it doesn't have a screen number?
Kindly Help.Hi,
You can do that in AT USER-COMMAND
Check this program...
*" Field string declarations...........................................
* Field string declaration to hold computation values with operator *
data:
begin of fs_comp,
operand1(10) type c, " Operand1
operator(2) type c, " Operator
operand2(10) type c, " Operand2
result(30) type c, " Result
end of fs_comp.
* Internal table to hold computation values including operator *
data:
t_comp like
standard table
of fs_comp.
*" Data declarations...................................................
* Work variables *
data:
w_operand1(10) type c, " Operand1
w_operator(2) type c, " Operator
w_operand2(10) type c, " Operand2
w_result(30) type n, " Result
w_flag type i. " Temporary Flag
* END-OF-SELECTION EVENT *
end-of-selection.
sy-title = ' '.
perform operations.
* AT-LINE-SELECTION EVENT *
at line-selection.
if sy-lsind ne 1.
message e000(yh1152).
else.
w_flag = 0.
perform display_input.
endif. " IF SY-LSIND NE 1
* AT PF<nn> *
at pf05.
set user-command 'CALC'.
* AT USER-COMMAND EVENT *
at user-command.
if sy-lsind eq 1.
message e008(yh1152).
else.
if w_flag eq 0.
perform calculations.
else.
message e007(yh1152).
endif. " IF W_FLAG EQ 0
endif. " IF SY-LSIND EQ 1
*& Form operations
*This subroutine displays the operations to be performed on basic list
* No interface parameters
form operations .
write:
/10 'Select a line'(008).
skip 2.
format hotspot on.
write:
/10 'ADDITION : +'(002),
/10 'SUBTRACTION : -'(003),
/10 'MULTIPLICATION : *'(004),
/10 'DIVISION : /'(005),
/10 'POWER : ** '(006).
endform. " operations
*& Form calculations
* This subroutine performs the calculation part of detail list
* No interface parameters
form calculations .
data:
lw_line type i value 4, " No of Lines
lw_str type string. " Exception text
data:
lw_ref type ref to cx_root. " Reference Variable
refresh t_comp.
do 3 times.
clear:
w_operand1,
w_operator,
w_operand2.
read line lw_line field value
w_operand1 into w_operand1
w_operator into w_operator
w_operand2 into w_operand2.
fs_comp-operand1 = w_operand1.
fs_comp-operator = w_operator.
fs_comp-operand2 = w_operand2.
try.
case w_operator.
when '+'.
fs_comp-result = fs_comp-operand1 + fs_comp-operand2.
when '-'.
fs_comp-result = fs_comp-operand1 - fs_comp-operand2.
when '*'.
fs_comp-result = fs_comp-operand1 * fs_comp-operand2.
when '/'.
fs_comp-result = fs_comp-operand1 / fs_comp-operand2.
when '**'.
w_result = fs_comp-operand1 ** fs_comp-operand2.
fs_comp-result = w_result.
clear w_result.
endcase. " CASE W_OPERATOR
catch cx_root into lw_ref.
fs_comp-result = 'Cannot Compute'(007).
lw_str = lw_ref->get_text( ).
message lw_str type 'I'.
endtry.
append fs_comp to t_comp.
clear fs_comp.
add 2 to lw_line.
enddo. " DO 3 TIMES
add 1 to w_flag.
perform result.
endform. " calculations
*& Form DISPLAY_INPUT
* This subroutine displays the input on basic list for operations
* No interface parameters
form display_input .
sy-lsind = 1.
clear:
w_operand1,
w_operand2.
case sy-lilli.
when '4'.
w_operator = '+'.
when '5'.
w_operator = '-'.
when '6'.
w_operator = '*'.
when '7'.
w_operator = '/'.
when '8'.
w_operator = '**'.
when others.
stop.
endcase. " CASE SY-LILLI
write:
/10 'Enter values and press F5 to calculate'(009).
skip 2.
do 3 times.
write:
10 w_operand1 no-zero input on color 1,
25 w_operator intensified on color 2,
30 w_operand2 no-zero input on,
45 ' = ' ,
w_result no-zero input off.
skip.
enddo. " D0 3 TIMES.
endform. " DISPLAY_INPUT
*& Form RESULT
* This subroutine displays the caculated result for selected operator
* No interface parameters
form result .
sy-lsind = 1.
write: /08 'The result of operation processed is'(001).
skip 2.
do 3 times.
read table t_comp into fs_comp index sy-index.
write:
10 fs_comp-operand1 no-zero input off color 1,
fs_comp-operator no-zero intensified on color 7.
if fs_comp-operand2 eq '' or fs_comp-operand2 eq '0'.
write: fs_comp-operand2 no-zero input off color 6.
else.
write: fs_comp-operand2 no-zero input off color 1.
endif. " IF FS_COMP-OPERAND2 NE 0
write:' = ' color 3.
write:
fs_comp-result no-zero intensified on input off color 5.
skip.
enddo. " DO 3 TIMES
endform. " RESULT
* End Of Program *
Execute the above program and run in debugging mode after selecting a line in the basic list.
Hope this would help you.
Regards
Narin Nandivada -
How to insert a conditional image into a report
Hi
I am fairly new to HTML DB, but I have managed to create my first application.
I need a little help with one report.
One of the columns in the report contains Y, N or R. The customer wants me to display a different coloured image depending on the value (ie a red button for N, green for Y or amber for R).
I have can add a static image to a report via "Column Formatting" -> "HTML Expression", but I have no idea how to make it conditional.
Any ideas?
Many thanks in advance.
RakGreat, that works!!!!
Thanks very much.
For completeness (incase anyone else reads this), there was one typo, in your solution, you omitted the opening '<' in the image source HTML tag
select loanno, itemid,
decode (returned, 'N', '<img src="#IMAGE_PREFIX#bullet_red.gif" border="0" alt="Loaned">',
'Y', '<img src="#IMAGE_PREFIX#bullet_green.gif" border="0" alt="In Library">',
'R', '<img src="#IMAGE_PREFIX#bullet_orange.gif" border="0" alt="Returned">'
) as status
from loans
Thanks for your help,...
Rak
Maybe you are looking for
-
SAP Business One 8.8 Preview Program
Hi All, Anybody has Idea about the latest status for starting of SAP Business One 8.8 Preview Program ? Today I see on the SAP BUSINESS ONE 8.8 CENTRAL INFORMATION page on SAP SMP site, there it is mentioned that SAP Business One 8.8 Preview Program
-
Importing a .xls tab delimited file into number
Hi there... I downloaded a .xls document from the internet and attempted to open it in Numbers. The following import problem presented itself: Import Warning - This is a tab delimited document, not a valid Excel document. The data might look differen
-
This 'MooV' file is damaged or unsupported
I know this is a common issue that is happening with a lot of people. I have mov files that show this moov file is damaged or unsupported when I try to play them on after effects. The problem is that it works when I use it on another computer at scho
-
Apple's in-store priority list
hey, so i signed up for the priority list on monday at my local store here in NJ for the iPhone 4 and have yet to hear anything back. has anyone had any luck with said priority list? i can't get a straight answer out of anyone re:if the phones are ev
-
An onchange event for a Lightroom SDK popup_menu
In my plugin I have a popup_menu that I would like to implement an onchange event for (as one would be able to do for such a dropdown menu in Javascript). But in carefully looking over the SDK documentation, I see no way to do this. Does anyone hav