Problems with the selected item in a JList
Hi,
I am using a JList with a JTextPane as renderer, when I select an item in the list the foreground color is black instead of being white and when I go up in the list the foreground color of the items under the selected one is white (they are not visible anymore).
Does anyone know why this list behaves like that and what I should do to prevent this?
Thanks in advance
Here's the code of the renderer (I suppose this is the place where the problems are):
public class TextPaneListRenderer extends JTextPane implements ListCellRenderer
public TextPaneListRenderer()
setOpaque(true);
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
this.setText(value.toString());
if (cellHasFocus)
setBackground(list.getSelectionBackground());
setForeground(list.getSelectionForeground());
else
setBackground(list.getBackground());
setForeground(list.getForeground());
return this;
getListCellRendererComponent() not yet implemented.");
}
Hi,
i would use isSelected:
if (isSelected)
setBackground(list.getSelectionBackground());
setForeground(list.getSelectionForeground());
else
setBackground(list.getBackground());
setForeground(list.getForeground());
It might help, just give it a try.
Similar Messages
-
Function module based generic extractor - Problem with the selection
Hi all
The following is my code in the function module. I am able to get the entire data if i dont give any selections and the number of records is also correct. But when i select a MATNR value, it returns 0 records where as it needs to return 3 records. If i give selection based on bukrs, werks, lgort its working fine. But if i give selection based on MATNR, then it is not working.... I think there is a problem in the bold part of my code. If i debug, LS_MATNR is having the correct value which indicates that there is no problem with the value being passed to LS_MATNR from my selection screen of my datasource in RSA3. Even GT_WERKS is also having data. Please help.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT MARA~MANDT
MARA~MATNR
MARC~WERKS
MARD~LGORT
MARA~MEINS
MARD~LABST
MARD~EINME
MARD~SPEME
MARD~RETME
MARD~INSME
MARD~UMLME
MARD~VMLAB
MARD~VMEIN
MARD~VMSPE
MARD~VMRET
MARD~VMINS
MARD~VMUML
MARC~XCHPF
MARD~KLABS
MARD~KEINM
MARD~KSPEM
MARD~KINSM
from MARA inner join MARC on
MARAMANDT = MARCMANDT AND
MARAMATNR = MARCMATNR
inner join MARD on
MARAMANDT = MARDMANDT AND
MARAMATNR = MARDMATNR
AND MARCWERKS = MARDWERKS
for all entries in gt_werks
where MARC~werks EQ gt_werks-werks
AND MARA~MATNR in LS_MATNR.
ENDIF. "First data package ?
Fetch records into interface table.
named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.try this
select marc~matnr MARC~WERKS into t_marc for all entries in gt_werks
where werks EQ gt_werks-werks and lvorm = space.
if t_marc is not initial.
select MARD~LGORT MARD~WERKS MARA~MEINS MARD~LABST MARD~EINME
MARD~SPEME MARD~RETME MARD~INSME MARD~UMLME
MARD~VMLAB MARD~VMEIN MARD~VMSPE MARD~VMRET
MARD~VMINS MARD~VMUML MARC~XCHPF MARD~KLABS
MARD~KEINM MARD~KSPEM MARD~KINSM MARA~MEINS from
mard inner join MARA on mard~matnr = mara~matnr
for all entries in t_marc where mard~matnr = t_marc-matnr and mard-werks = t_marc-matnr
and mard~lvorm = space. -
Problem with the selection screen in submit program
Hi Friends,
i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
I have implemented the code same as below.
submit ztest with tknum =p_tknum and return.
Can you pleaes help me how to avoid the submit program selection screen.
Thanks,
CharanHi Charan,
You have to give the selection screen values when you submit a job.
Press F1 on submit and you will see more details.
Here is an example from ABAP Documentation.
Program accessed
REPORT report1.
DATA text(10) TYPE c.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text(10) TYPE c,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards,
Jovito. -
Problems with the selection of text or objects
dear fireworks community!
unfortunately i have problems with my running version fireworks (CS6) and i can't find any solution or even get help via the customer support.
i can't switch between objects with a click, when i've choosen one already. i also can't cancel the entire selection. the only way (to select a new item) is to click on an empty space, hold it and pull the selection over a new item.
another thing is that i cant select a textfield with a doubleclick or switch beteween choosen tools within the usage of a shortcut …
what i already tried:
updating, deinstalling, re-storing preferences, "cleaning" the libraries, installing (this entire scenario for at least three times)
i hope someone of you can help me!
thanks in advance!incredible!
thank you so much! -
How can i use index in select query.. facing problem with the select query.
Hi Friends,
I am facing a serious problem in one of the select query. It is taking a lot of time to fetch data in Production Scenario.
Here is the query:
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelat LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelatrprctr
WHERE rldnr = c_telstra_accounting
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
And rzzlstar in r_lstar
AND rpmax = c_max_period.
There are 5 indices present for Table ZTFTELAT.
Indices of ZTFTELAT:
Name Description
0 Primary key( RCLNT,RLDNR,RRCTY,RVERS,RYEAR,ROBJNR,SOBJNR,RTCUR,RUNIT,DRCRK,RPMAX)
005 Profit (RCLNT,RPRCTR)
1 Ledger, company code, account (RLDNR,RBUKRS, RACCT)
2 Ledger, company code, cost center (RLDNR, RBUKRS,RCNTR)
3 Account, cost center (RACCT,RCNTR)
4 RCLNT/RLDNR/RRCTY/RVERS/RYEAR/RZZAUFNR
Z01 Activity Type, Account (RZZLSTAR,RACCT)
Z02 RYEAR-RBUKRS- RZZZBER-RLDNR
Can anyone help me out why it is taking so much time and how we can reduce it ? and also tell me if I want to use index number 1 then how can I use?
Thanks in advance.Hi Shiva,
I am using two more select queries with the same manner ....
here are the other two select query :
***************1************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelpt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelptrprctr
WHERE rldnr = c_telstra_projects
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
and the second one is
*************************2************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
FROM ztftelnt LEFT JOIN ztfzberep
ON ztfzberep~gjahr = st_input-gjahr
AND ztfzberep~poper = st_input-poper
AND ztfzberepcntr = ztftelntrprctr
WHERE rldnr = c_telstra_networks
AND rrcty = c_actual
AND rvers = c_ver_001
AND rbukrs = st_input-bukrs
AND racct = st_input-saknr
AND ryear = st_input-gjahr
and rzzlstar in r_lstar
AND rpmax = c_max_period.
for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables. if i will not use it will delete all the data fetched earlier.
Thanks on advanced......
Sourabh -
Validation problem with the selected Month-Year and Days in the Month.
Hi,
I am unable to figure out the logic for the below senario.
There are two fields Period and Date
If Users sets the Period to FEB-11
and User has to select the Dates of the February Month only and if he selects any other month It should throw an error.
How could I restrict the user to not enter any other date from the selected period.
Please suggest.
Thanks,
KrishnaHi Gyan,
Thanks for the update.
I am just tring to copare the values
able to get the period value and unable to compare to the date format.
just look at the below code with the output of sop
OAMessageTextInputBean mtb =
(OAMessageTextInputBean)webBean.findIndexedChildRecursive("item1");
OAMessageDateFieldBean mtb1 =
(OAMessageDateFieldBean)webBean.findIndexedChildRecursive("item2");
String period = (String)mtb.getValue(pageContext);
System.out.println("Value of Period:::"+period); // FEB-11 is the out put
Date date = (Date)mtb1.getValue(pageContext);
System.out.println("Value of Period:::"+date); // 2011-02-09 is the output
// Converting the date to string using SimpleDateFormat
DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
String date1 = df.format(date);
System.out.println("String Date::"+date1);
String date2 = date1.substring(3,5);
System.out.println("SubString::"+date2);
// 02 is the out put I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the
// month as FEB is there any converter.
String date3 = date1.substring(8,10);
System.out.println("SubString2::"+date3);
//11 is the out put
if (period.equalsIgnoreCase(date2.concat(date3)) )
// after concatinating the format is 02-11 so its going to exception
System.out.println("Date in the same Period");
else {
throw new OAException ("Date Selected is out of range::");
}I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the month as FEB is there any converter.
The logic is working fine but the month is not getting converted.
Thanks,
Krishna -
Problems with the selection formulas in CR
Hi Experts! I need help...
I made a report using Crystal Reports, the problem is when I run it on Crystal Reports, it shows me some information, but when I make a preview in SAP Business One or import it to SAP Business One , some information dissapear, I think it´s because of the Selection formulas but I don't know how to solve it ...
The report come from a view in SQL and this is my selection formula:
if month({vwComisiones.Fechafactura})=month({vwComisiones.FechaPago}) then
({?fechaini}<= {vwComisiones.Fechafactura} and {vwComisiones.Fechafactura}<={?fechafin})
-- I just need the Invoices that have been paid on the same month --
Any ideas?Hi,
Have you tried omit IF like below:
month({vwComisiones.Fechafactura})=month({vwComisiones.FechaPago}) and {?fechaini}<= {vwComisiones.Fechafactura} and {vwComisiones.Fechafactura}<={?fechafin}
Thanks,
Gordon -
Problem with the selection screen
Hi All,
In my program i have given the input in selection screen , Its process something and a msg was displayed , and user confirm it to continue , the program take us back to the selection screen - in this case i have to clear all the values from the selection parameters.
I tried lot , but i didn't get this result.
I know this is the standard functionality , But anything is there to clear the selection parameters.
Regards,
S.C.KHi All,
In my program i have given the input in selection screen , Its process something and a msg was displayed , and user confirm it to continue , the program take us back to the selection screen - in this case i have to clear all the values from the selection parameters.
I tried lot , but i didn't get this result.
I know this is the standard functionality , But anything is there to clear the selection parameters.
Regards,
S.C.K
I didn't go through the long list of replies nor I don't know if you gave it a thought, but you can try this,
create a [system variant|http://help.sap.com/saphelp_nw04/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm] (variant name starts with CUS& eg: CUS&BLANK) with the entire selection screen fields blanks and use the following function module to call that variant after msg is displayed.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = sy-repid
variant = 'CUS&BLANK'
EXCEPTIONS
variant_not_existent = 01
variant_obsolete = 02.
You can hide the variant by checking the box "Only display in catalog". -
JComboBox selection and highlight problem of the selected item
Hi,
I have a question how can I make my newly added item to the combo-box selectable and highlighted. I am adding new items to my custom comboBox dynamically and I want whatever item I add to be selected by default. I am using my own custom ComboBoxModel that extends AbstractListModel and implements ComboBoxModel and TreeModelListener, and my custom Renderer that extends JLabel and implements ListCellRenderer. Because I am trying to get a tree structure in my comboBox model and that's why I have my own custom model and renderer. Now when I add a new node or item to my comboBox it is being added and shown in the combo-box textField, but as soon I pull down the combo-box my parent directory is selected though my current selection is the last node added. That's how I am adding new nodes and making it selectable
treeModel.insertNodeInto(tempNode, (DefaultMutableTreeNode)nodeCollection.lastElement(), 0);
int nodeTotal =((CMRGlobals.myTreeGlobals).getModel()).getSize();
Object lastNode = CMRGlobals.myTreeGlobals).getModel()).getElementAt(nodeTotal - 1);
((CMRGlobals.myTreeGlobals).getModel()).setSelectedItem(lastNode);
when I do this my node is added under my parentNode and is shown in the comboBox but when I try to pull down the combo my parent node is high lighted and when I move out of the combo-box my parent node gets selected and show in the combo-box though I haven't selected it,and the contents of my last node are shown. I am just writing my own custom model that simulates the effect of JTree. I am using these......
DefaultMutableTreeNode and
DefaultTreeModel
and in my JComboBox I am setting my model as
this.setModel(new myModel(treemodel));
this.setRenderer(new myRenderer());
I am building my own FileDialog that just works like FileDialog I have all the functionality except this problem.Thanks for any help. I know I have posted this same thread yesterday but I didn't get any response hoping now may somebody can help me.Thanks againnever mind I got it
Thanks -
I have a user on an iMac 10.6 connected to our domain. She uses Outlook web access for email on our exchange server. Last week she received the following message which is randomly preventing her from sending emails. She claims no attachment was involved in the original email when this all started. I have not been able to look at her account as she is out of the office but maybe someone else dealt with this issue. I realize this may not be Mac related but thought I'd give it a try. She did say it occurred once over two days while working on a PC but it continued over the past weekend.
If an internal user tries to send a message with infected attachment using Outlook Web Access, it may report the following error message: The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, contact technical support for your organization.
This is because F-Secure Anti-Virus for Microsoft Exchange has detected a virus in the attachment. If the user tries to send the message again, the message will be sent but without the attachment. At the same time a blank message with an attachment named "Attachment_information.txt" will remain in the user's Drafts folder. The "Attachment_information.txt" will contain information about the virus detected in the message.PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!! -
I am having problems with the Preview application. When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it. Any ideas on how to resolve this problem? Thanks for any help
Can you open the Preview program without loading a file, like by itself?
If it doesn't load then I suspect a corrupt Preview preference file.
Deleting the System Preference or other .plist file
Can you open other files with Preview, like jpg's and images?
How about other PDFs? or is it just that one you have downloaded?
Run through this list of fixes
Step by Step to fix your Mac -
Problem with the item in complaint
Hello everyone,
We are facing a problem with the customizing of item category in CRM,
Our issue is, we are doing a complaint with items, those items have column where we can see the value, description, quantityu2026
Here is our thing we need to have these columns active or deactivate (grey) depending on the product.
We are not sure if it is possible by customizing of item or customizing of material, or we need a development in order to achieve this requirement.
Any help?
Thank you in advance.Hi,
If you are having products with different item category groups then you can create different item categories for them.
Then depending on the item category you can do the development to grey out the fields.
But if the product have nothing to differentiate then it would be difficult to carry out the development also.
Regards,
PP
Edited by: PePe on Apr 7, 2010 2:08 PM -
Problems with the items (control) in forms 9i (Re)
Hello,
I write this problem in a other post and but don't have any feedback about it(So I will give another try:-) )
The problem that I will describe don't happen all the time and is very rare but I want to know if it's a normal bug of forms or something more special of our PL/SQL code...
So here we are.
Is there others developpers here that have problems with the mouse cursor of the user that seems to be "jammed"(blocked, trapped) in a text item (or another control, like a list item). When this problems happen, the user can't go on another field of the forms with his mouse cursor(Mouse click), the only thing that can resolve that is to refresh the page with Internet Explorer, and after that, he is free to go on another field of the forms.
This problem is very rare but happens sometimes.
Thanx in advance!Hi,
This problem is due to failuer of navigation of mouse cursore. For more specific solution can you give the error message and error code, So that we can have exact picture. Waiting for error code...... -
Problems moving an object with the selection tool
Im working on CS2 and since last week I have a problem moving objects with the selection tool: To move the object I am obligate to select the object first, and then click at the edge/stroke of the object to drag it. Before that I could move the objects just by selecting somewhere in the object and then just drag it to some other place in one step. I think I maybe changed something in the general preferences....
Ho thanks a lot Kurt!!!!! Indeed, that was the problem!!! Finally I can work normally again.... (the joker was me...but not on purpose)
Thanks again! -
Problem with the default selection screen condition
hi guys,
I have got some problem with the default screen given by the PNP logical database, P0000 infotype automatically populated according to the condition given in default screen.
Reg,
HariharanDon know what u r trying to acheive.
1) when u have specified PNP in the logical databse field of attributes of program, the SAP wil proivde u default PNP screen and here u can also add ur paramters if u want.
2) in the program u have to declare like
INFOTYPES: 0000,0001. "Etc
for all the infotypes u want to use in the program.
3) it is the GET PERNR event which wil fil all the p0000 and p0001 (internal tables for al the infotypes declared via INFOTYPES syntax as shown above)
4) after tht get pernr, u now have data in P tables and u can use it for further reporting.
5) refer below dummy code -
REPORT ZPPL_PREVEMPLOYERS message-id rp
line-size 250
line-count 65.
*Program logic :- This Report is used to Download all the Previous
* Employer (IT0023) records of the employees
*eject
*& Tables and Infotypes *
tables: pernr.
infotypes: 0000,
0001,
0002,
0023.
*eject
*& Constants *
constants: c_1(1) type c value '1' ,
c_3(1) type c value '3' ,
c_i(1) type c value 'I' ,
c_x(1) type c value 'X' ,
c_eq(2) type c value 'EQ' ,
c_pl03 like p0001-werks value 'PL03'.
*eject
*& Selection-Screen *
parameters: p_file like rlgrap-filename default 'C:TempABC.xls',
p_test as checkbox default c_x .
*eject
*& Internal tables *
* Internal Table for Output
data: begin of t_output occurs 0 ,
pernr like pernr-pernr ,
nachn like p0002-nachn ,
vorna like p0002-vorna ,
orgeh_stext like p1000-stext ,
plans_stext like p1000-stext ,
begda like p0023-begda ,
endda like p0023-endda ,
land1 like p0023-land1 ,
arbgb like p0023-arbgb ,
ort01 like p0023-ort01 .
data: end of t_output .
*eject
*& Variables *
data: o_stext like p1000-stext,
p_stext like p1000-stext.
*eject
*& Initialization *
Initialization.
* Initialize Selection-Screen values
perform init_selction_screen.
*eject
*& AT Selection-screen *
at selection-screen .
* Check if Test run selected, download file name should be entered
if p_test is initial. "
if p_file is initial.
message e016 with 'Please enter file name'
'specifying complete path'.
endif.
endif.
*eject
*& Start-of Selection *
Start-of-selection.
get pernr.
clear t_output.
* Read Infotype 0
rp-provide-from-last p0000 space pn-begda pn-endda.
check pnp-sw-found eq c_1.
* Check if employee is active
check p0000-stat2 in pnpstat2. "pernr Active
* Read Infotype 1
rp-provide-from-last p0001 space pn-begda pn-endda.
check pnp-sw-found eq c_1.
* check if employee belongs to PL03
check p0001-werks in pnpwerks. "belongs to PL03
* Check if emp belongs to Active Group
check p0001-persg in pnppersg.
* Read Infotype 2
rp-provide-from-last p0002 space pn-begda pn-endda.
check pnp-sw-found eq c_1.
* Read Org Unit Text.
CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
EXPORTING
OTYPE = 'O'
objid = p0001-orgeh
begda = p0001-begda
endda = p0001-endda
reference_date = p0001-begda
IMPORTING
object_text = o_stext
EXCEPTIONS
nothing_found = 1
wrong_objecttype = 2
missing_costcenter_data = 3
missing_object_id = 4
OTHERS = 5.
*Read Position Text.
CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
EXPORTING
OTYPE = 'S'
objid = p0001-plans
begda = p0001-begda
endda = p0001-endda
reference_date = p0001-begda
IMPORTING
object_text = p_stext
EXCEPTIONS
nothing_found = 1
wrong_objecttype = 2
missing_costcenter_data = 3
missing_object_id = 4
OTHERS = 5.
* Gather all the required information related to the emp
move: pernr-pernr to t_output-pernr,
o_stext to t_output-orgeh_stext,
p_stext to t_output-plans_stext,
p0002-nachn to t_output-nachn,
p0002-vorna to t_output-vorna.
* Gather previous Employee details
loop at p0023.
move-corresponding p0023 to t_output.
append t_output.
endloop.
*eject
*& End-of Selection *
end-of-selection.
perform print_report.
* Downlaod the file
if not t_output[] is initial.
if p_test eq space.
perform download_file.
endif.
else.
write: 'No records selected' color col_negative.
endif.
*eject
*& Top-of-page *
Top-of-page.
* Print Header
perform print_header.
*eject
*& Form download_file
* Description :
FORM download_file .
DATA: full_file_name TYPE string,
z_akt_filesize TYPE i .
full_file_name = p_file.
* download table into file on presentation server
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = full_file_name
filetype = 'DAT'
NO_AUTH_CHECK = c_x
codepage = '1160'
IMPORTING
FILELENGTH = z_akt_filesize
CHANGING
data_tab = t_output[]
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc NE 0.
MESSAGE e016 WITH 'Download-Error; RC:' sy-subrc.
ENDIF.
ENDFORM. " download_file
*eject
*& Form print_report
*Description:
FORM print_report .
data: i type i,
w_count type i.
sort t_output.
* Print the report
loop at t_output.
i = sy-tabix mod 2.
if i eq 0.
format color col_normal intensified on.
else.
format color col_normal intensified off.
endif.
write:/1 t_output-pernr ,
10 t_output-vorna(25) ,
35 t_output-nachn(25) ,
61 t_output-orgeh_stext ,
102 t_output-plans_stext ,
143 t_output-begda ,
154 t_output-endda ,
168 t_output-land1 ,
178 t_output-arbgb(40) ,
219 t_output-ort01 ,
249 space .
endloop.
uline.
Describe table t_output lines w_count.
Skip 2.
Write:/ 'Total No of Records Downloaded: ' color col_total,
w_count.
ENDFORM. " print_report
*eject
*& Form print_header
*Description:
FORM print_header .
skip 1.
Uline.
format Intensified on color col_heading.
write:/1 'Pers. #' ,
10 'Last Name' ,
35 'First Name' ,
61 'Org Unit' ,
102 'Position' ,
143 'Beg Date' ,
154 'End Date' ,
168 'Cntry Key' ,
178 'Prev Employer' ,
219 'City' ,
249 space .
format intensified off color off.
uline.
ENDFORM. " print_header
*eject
*& Form init_selction_screen
*Description:
FORM init_selction_screen .
refresh: pnpwerks,
pnppersg,
pnpstat2.
clear: pnpwerks,
pnppersg,
pnpstat2.
pnpwerks-sign = c_i.
pnpwerks-option = c_EQ.
pnpwerks-low = c_pl03.
append pnpwerks.
pnppersg-sign = c_i.
pnppersg-option = c_EQ.
pnppersg-low = c_1.
append pnppersg.
pnpstat2-sign = c_i.
pnpstat2-option = c_EQ.
pnpstat2-low = c_3.
append pnpstat2.
ENDFORM. " init_selction_screen
Maybe you are looking for
-
LoginWindow WindowServer crash while using old Carbon software?
I have 10.6.0 on a white Intel Core2Duo iMac. Whether I have no other software running, or Safari this event happens intermittently. When I do a search/replace with BBEdit 7.1.4 (yes I know it is old), the WindowServer or LoginWindow is crashing, and
-
Changing monitor identities?
Normally I only have my monitor connected to my PC (via DVI), but occasionally I like to enable my TV (via DVI->HDMI adapter) as a secondary monitor to watch films or play games. Weird thing is, whenever I connect my TV, Windows likes to think it's a
-
Does anyone have a working config of an i810 driver for Dual Monitors mode?
-
Saving wireless connection with hex password as new location
My iBook doesn't remember the settings of my wireless connection, so I must enter them again every time I wake up from sleep or turn it on. I do it by clicking on the Airport icon in the menu bar, choosing "Other connection" and entering the network
-
I have an IPAQ 3800 with Insignia's Jeode. I am able to run both examples programs (PrimTest and Quasar). However, I am not able to run any java programs that I have written. I tried a basic applet that just says "hello world" attempting to run it th