IT
How to read data from application server to internal table in ABAP/4
Normally, when you want to read the file from application server, you will have 5 steps:
- Open file in application server by statement:
OPEN DATASET file_name FOR INPUT IN TEXT MODE.
- Checking the file is opened sucessfully by SY-SUBRC = 0
- After checking, you can read data from file by statement:
READ DATASET file_name INTO itab.
Note: This statement should be in DO statement - Append data to internal table
- Close file by statement:
CLOSE DATASET file_name
Example
- thitima's blog
- 1 comment
- Read more
- 7555 reads
Windows has wireless hole
Hackers open the champers
By Nick Farrell
THE US hacker conference, hmooCon, was all a buzz with news of a vulnerability in Windows’ wireless laptop software.Delegates were pointed to the hole by Mark Loveless, a senior security researcher for Vernier Threat Labs and self-confessed hacker.
Loveless revealed that he had managed to exploit the vulnerability on airline flights to gain access to Windows machines that other passengers were using.
As far as vulnerabilities go, it is not the strongest. It requires the laptop to be using a Windows XP or Windows 2000 laptop that is unprotected by a firewall.
Not good if you want to target a specific machine, unless you know the lap-top has not got a firewall, but great if you are bored on a long distance flight and want to read other people’s computers.
The flaw is based on how Vole’s wireless capabilities are configured to search for any available wireless connections on start up. When no wireless link is found then the software establishes an ad-hoc link to a local address.
Vole says that it knows of this particular problem and will have a patch ready in the next service pack.
More here
- thitima's blog
- Add new comment
- Read more
- 644 reads
What Percentage Does Google Make from AdSense?
Whenever a visitor clicks on a Google ad that a webmaster displays on his site, Google gets a percentage of the revenue the webmaster makes. So how big is the piece of pie Google takes for itself? Google doesn’t really tell so far, but according to the New York Times today, it’s about 78.5%:
“Google.com and the company’s foreign search sites contribute more to Google’s bottom line than AdSense, because for every dollar the company brings in through AdSense and other places that distribute its ads, it pays roughly 78.5 cents back to sites like Digital Point that display the ads.”
- thitima's blog
- Add new comment
- 1138 reads
How to apply function module 'DATE_COMPUTE_DAY' in ABAP/4
The function module "DATE_COMPUTE_DAY" will return the day by 1...7 when you input date. If the date have day:
- Monday : System will return value = 1
- Tuesday : System will return value = 2
- Wednesday : System will return value = 3
- Thursday : System will return value = 4
- Friday : System will return value = 5
- Saturday : System will return value = 6
- Sunday : System will return value = 7
Example
CALL FUNCTION ’DATE_COMPUTE_DAY’
EXPORTING
date = l_date1
IMPORTING
DAY = l_day. "Return Value
- thitima's blog
- Add new comment
- Read more
- 2440 reads
How to upload PC file to internal table in ABAP/4
When you want to upload PC file to internal table in ABAP/4, you can apply function module "WS_UPLOAD".
Example
call function ’WS_UPLOAD’
exporting
filename = lv_name
filetype = lv_type
tables
data_tab = li_tab
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
others = 5.
- thitima's blog
- Add new comment
- Read more
- 1004 reads
How to download internal table to PC file in ABAP/4
When you want to download internal table to PC file in ABAP/4, you can apply function module "WS_DOWNLOAD".
Example
CALL FUNCTION ’WS_DOWNLOAD’
EXPORTING
FILENAME = LV_TEXT "PC File Name and Location
FILETYPE = ’DAT’
TABLES
DATA_TAB = I_MESG "Internal Table
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
- thitima's blog
- Add new comment
- Read more
- 977 reads
Recent comments
3 years 4 weeks ago
3 years 9 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 10 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 13 weeks ago
3 years 13 weeks ago