Open dataset - return code 8 - msg - Permission Denied
This is the first time this company has tried to write files to the application server. They are running under Windows. The network admin set up a folder and I am getting a return code of 8 on 'open dataset'. When I use this function to get more information I am getting
a run-time error that the ABAP is bad.
What is wrong with this function call?
pfilename =
saberdev\blacksmith\ftpout\bsproduct.txt
call function 'AUTHORITY_CHECK_DATASET'
EXPORTING
program = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'
activity = 'WRITE'
filename = pfilename
EXCEPTIONS
no_authority = 1
activity_unknown = 2
others = 3.
Thanks, Santosh, that helped.
Now I am getting sy-subrc = 0 on the function call but I am still getting a return code of 8 on the open dataset. Here is my code.
HELP!!
call function 'AUTHORITY_CHECK_DATASET'
EXPORTING
program = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'
activity = 'WRITE'
filename = '
saberdev\blacksmith\ftpout\bsproduct.txt'
EXCEPTIONS
no_authority = 1
activity_unknown = 2
others = 3.
check sy-subrc = 0.
data: MSG(100).
pfilename = '
saberdev\blacksmith\ftpout\bsproduct.txt'.
CLEAR MSG.
OPEN DATASET pfilename FOR OUTPUT IN TEXT MODE MESSAGE MSG.
IF SY-SUBRC <> 0.
CONCATENATE 'file error: ' MSG INTO MSG.
MESSAGE E208(00) WITH MSG.
ENDIF.
Similar Messages
-
Error opening dataset, return code: 8
Hi,
I'm passing the information from a txt to a transparente table. The problem is that it throws me the following message: Error opening dataset, return code: 8 .
When I debug it the first row of information enters to the internal table but after it this erro comes.
The code is the following:
DATA: BEGIN OF record,
data element: TABNAME
tablename_001(030),
data element: DESCR40
des_002(040),
data element: TYKLA
tipo_003(015),
data element: QUANTITY_I
quan_004(011),
data element: PRICE
precio_005(021),
data element: TOT01
total_006(017),
END OF record.
End generated data section ***
DATA:
BEGIN OF i_tabla OCCURS 0,
dest(40),
type(15),
quan(10),
precio(15),
tot(15),
END OF i_tabla.
PARAMETERS:
p_user LIKE apqi-userid OBLIGATORY DEFAULT sy-uname,
p_fich LIKE rlgrap-filename OBLIGATORY
DEFAULT: 'C:\Documents and Settings\lseri\My Documents\Book1.txt'.
START-OF-SELECTION.
CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = ' '
filename = p_fich
filetype = 'DAT'
TABLES
data_tab = i_tabla
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
PERFORM open_dataset USING dataset.
PERFORM open_group.
LOOP AT i_tabla FROM 2.
PERFORM bdc_dynpro USING 'SAPLSETB' '0230'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DATABROWSE-TABLENAME'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANLE'.
PERFORM bdc_field USING 'DATABROWSE-TABLENAME'
record-tablename_001.
PERFORM bdc_dynpro USING '/1BCDWB/DBZSTOCK_TEST' '0101'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ZSTOCK_TEST-TOTAL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SAVE'.
PERFORM bdc_field USING 'ZSTOCK_TEST-DES'
record-des_002.
PERFORM bdc_field USING 'ZSTOCK_TEST-TIPO'
record-tipo_003.
PERFORM bdc_field USING 'ZSTOCK_TEST-QUAN'
record-quan_004.
PERFORM bdc_field USING 'ZSTOCK_TEST-PRECIO'
record-precio_005.
PERFORM bdc_field USING 'ZSTOCK_TEST-TOTAL'
record-total_006.
PERFORM bdc_dynpro USING '/1BCDWB/DBZSTOCK_TEST' '0101'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ZSTOCK_TEST-DES'.
PERFORM bdc_dynpro USING 'SAPLSETB' '0230'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DATABROWSE-TABLENAME'.
PERFORM bdc_transaction USING 'SE16'.
ENDLOOP.
PERFORM close_group.
PERFORM close_dataset USING dataset.
Please help me!
Thanksopen dataset *
FORM OPEN_DATASET USING P_DATASET.
OPEN DATASET P_DATASET
FOR INPUT IN TEXT MODE
ENCODING DEFAULT.
IF SY-SUBRC <> 0.
WRITE: / TEXT-E00, SY-SUBRC.
STOP.
ENDIF.
ENDFORM.
create batchinput session *
(not for call transaction using...) *
FORM OPEN_GROUP.
IF SESSION = 'X'.
SKIP.
WRITE: /(20) 'Create group'(I01), GROUP.
SKIP.
open batchinput group
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING CLIENT = SY-MANDT
GROUP = GROUP
USER = USER
KEEP = KEEP
HOLDDATE = HOLDDATE.
WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
(12) 'returncode:'(I05),
SY-SUBRC.
ENDIF.
ENDFORM.
I'm using these performs because they appeared automatically when the recording became a program. -
I am getting sy-subrc = 0 on the function call but I am still getting a return code of 8 (permission denied) on the open dataset. Here is my code.
HELP!!
call function 'AUTHORITY_CHECK_DATASET'
EXPORTING
program = 'ZBS_PRODUCT_OUTBOUND_INTERFACE'
activity = 'WRITE'
filename = '
saberdev\blacksmith\ftpout\bsproduct.txt'
EXCEPTIONS
no_authority = 1
activity_unknown = 2
others = 3.
check sy-subrc = 0.
data: MSG(100).
pfilename = '
saberdev\blacksmith\ftpout\bsproduct.txt'.
CLEAR MSG.
OPEN DATASET pfilename FOR OUTPUT IN TEXT MODE MESSAGE MSG.
IF SY-SUBRC <> 0.
CONCATENATE 'file error: ' MSG INTO MSG.
MESSAGE E208(00) WITH MSG.
ENDIF.Janet - Might be worth it to check the permissions/owner on the directory. You might be able to use function module SUBST_GET_FILE_LIST and trans SE37 to do this.
Regards,
Lawrence Schmit
Message was edited by: Lawrence Schmit
Keep in mind that the authority check only verifies your authorization level --> it doesn't verify that the drive/path/filename is valid. Also, it looks as if you're attempting to write to a network drive (assumed because of the back-slashes "
"). If you're writing to a Unix directory, use forward slashes '/'. -
I get this error msg - Permission denied for to webpage get property XPCComponents.classes
A couple of days ago I started geting the error msg -Permission denied for to <webpage> get property XPCComponents.classes. It happens with every webpage I visit. If I hit the x in the upper righthand corner I can then access the page. This doesn't have in IE. Any ideas how I could fix this and why it started happening?
Try the Firefox SafeMode to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
* You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''Don't select anything right now, just use "Continue in SafeMode."''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
'''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''
If you look in the Error Console for that '''XPCComponents.classes''' error, there should be a '''Source file: chrome://''' address which might give us information related to which extension is causing that message.
Firefox button > Web Developer -> Error Console or just use {Ctrl + Shft + J} from the keyboard -
Unable to open USB port device file: Permission denied
I have an up-to-date system (full "pacman -Syu" yesterday), I am in a "lp" group and the printer (Canon Pixma MP270) started to give "Unable to open USB port device file: Permission denied" error, although in the past it worked and still works in Windows. Doesn't anybody have a similar problem?
Thanks for reply.
CUPS worked, I could use CUPS-PDF and localhost:631 was accessible and working.
Today I managed to print again. I did "pacman -Rcsn cups" and reinstalled it again.
My printer is Canon Pixma MP270 and so far it wasn't the best choice for Arch Linux—scanning works fine but it's like throwing a coin when it comes to printing. I've written a simple PKGBUILD for installing its printing driver as a regular package, but I don't know what to set as a license.
pkgname=mp270-printer
pkgver=3.20
pkgrel=1
pkgdesc="Canon Pixma MP270 printer driver"
arch=('i686')
url="http://software.canon-europe.com/products/0010753.asp"
license=('unknown')
depends=('libpng12' 'gtk2' 'popt')
makedepends=('deb2targz')
source=(http://files.canon-europe.com/files/soft37268/software/MP270_debian_driver_pack.tar)
md5sums=('d26c36e2d1799ddc09e644dc7765f0a3')
build() {
cd $srcdir
tar xzf cnijfilter-mp270series-$pkgver-1-i386-deb.tar.gz
cd cnijfilter-mp270series-$pkgver-1-i386-deb/packages
deb2targz *
tar xzf cnijfilter-common_$pkgver-1_i386.tar.gz
tar xzf cnijfilter-mp270series_$pkgver-1_i386.tar.gz
ln -s /usr/lib/libtiff.so usr/lib/libtiff.so.4
package () {
cd $srcdir/cnijfilter-mp270series-$pkgver-1-i386-deb/packages
cp -r usr $pkgdir/ -
BDC for transaction AC02, error opening dataset returning 0.
Here is the code.
Help me ASAP..
<unreadable code removed by moderator>
Moderator message: please do some own research before posting, only posts text with less than 5000 characters, check formatting before posting, do not use terms like "ASAP".
Edited by: Thomas Zloch on Jan 13, 2012open dataset *
FORM OPEN_DATASET USING P_DATASET.
OPEN DATASET P_DATASET
FOR INPUT IN TEXT MODE
ENCODING DEFAULT.
IF SY-SUBRC <> 0.
WRITE: / TEXT-E00, SY-SUBRC.
STOP.
ENDIF.
ENDFORM.
create batchinput session *
(not for call transaction using...) *
FORM OPEN_GROUP.
IF SESSION = 'X'.
SKIP.
WRITE: /(20) 'Create group'(I01), GROUP.
SKIP.
open batchinput group
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING CLIENT = SY-MANDT
GROUP = GROUP
USER = USER
KEEP = KEEP
HOLDDATE = HOLDDATE.
WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
(12) 'returncode:'(I05),
SY-SUBRC.
ENDIF.
ENDFORM.
I'm using these performs because they appeared automatically when the recording became a program. -
Does we need to Create a file Before using Open dataSet
Hi Guys,
Can any body tell me whether we have to create a File before using Open dataset for writing files in Application Server.
Can anybody write a program for EKPO table to store it in application Server using OpendatasSet ?Is there any specific care we have to take for Executing pgm in Background?
I wrote the pgm for Foreground using GUI- Download.
PGM.
select * into table it_ekpo from ekpo .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename ='c:\EKPO.xls'
filetype = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
data_tab = it_ekpo
*fieldnames = l_heading
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3 .
Plzzzzzzzzz Make the changes for existing Pgm.any help is awarded with points.Its Urgent.
Thanks,
Gopi.Hi Guys,
Thanks for ur immediate response.I am sending the code just confirm me whether is correct r not?
DATA : wa_EKPO_file TYPE file_table-filename.
select * into table it_ekpo from ekpo .
OPEN DATASET wa_EKPO_file FOR OUTPUT "Write to appl. server
IN TEXT MODE
ENCODING DEFAULT. "Open dataset Return code
IF sy-subrc = 0.
LOOP at IT_EKPO into WA_EKPO.
TRANSFER wa_ekpo to wa_ekpo_file.
ENDLOOP.
ENDIF.
I want write the data into SPREAD Sheet .Can u guys tell me how to write into Spread Sheet using Open data Set.
Thanks,
Gopi. -
I used the perl script from the nginx wiki to configure chroot jail and also configured the nginx systemd unit file. When I try to start the service I get
# systemctl start nginx
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
# systemctl status nginx.service
nginx.service - A high performance web server and a reverse proxy server in chroot jail
Loaded: loaded (/etc/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since tis 2013-05-07 20:58:49 CEST; 4s ago
Process: 418 ExecStartPre=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited
, status=1/FAILURE)
Executing the ExecStartPre line produces the open error.
# /usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)
What could be causing this?
Here's my nginx.service
# cat /etc/systemd/system/nginx.service
[Unit]
Description=A high performance web server and a reverse proxy server in chroot jail
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/srv/http/run/nginx.pid
ExecStartPre=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
ExecStart=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
ExecReload=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload
ExecStop=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid;' -s quit
[Install]
WantedBy=multi-user.target
/srv/http/run
# ls -ahl /srv/http/run/
totalt 8,0K
drwxr-xr-x 2 root root 4,0K 7 maj 20.53 ./
dr-x--x--x 9 root root 4,0K 7 maj 20.16 ../
-rw-r--r-- 1 root root 0 7 maj 20.53 nginx.pid
edit:
# chroot --userspec http:http /srv/http /usr/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
I tried to change the port to 8080 and got
# chroot --userspec http:http /srv/http /usr/sbin/nginx
nginx: [emerg] open("/dev/null") failed (13: Permission denied)
solution:
The problem was due to the partition being mounted nodev,nosuid.
Last edited by seron (2013-05-08 11:25:12)I know this post is quite old but I wanted to say thank you to the author that you posted this solution. THANKS!!!
-
Open Dataset for XML not reading the XML file, Returning Code 8.
Dear all,
Im trying to open an XML file using Open Dataset, since i have to execute this report in background and GUI_upload doesnt work in background.
The XML file is available in my C:\, say, C:\xmlfile.xml.
But the open dataset is not reading any value into the g_xml_line . it is returning sy-subrc = 8.
Below is my code for that, can anybody help me out to resolve.
DATA : lv_filename LIKE rlgrap-filename.
CLEAR: lv_filename.
lv_filename = p_input.
OPEN DATASET lv_filename FOR INPUT IN BINARY MODE.
IF sy-subrc ne 0.
WRITE:/ 'invalid file'.
else.
DO.
READ DATASET lv_filename INTO g_xml_line.
IF sy-subrc EQ 0.
APPEND g_xml_line TO g_xml_table.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET lv_filename.
ENDIF.
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: g_xml_table TYPE TABLE OF t_xml_line,
g_xml_line TYPE t_xml_line,
g_xml_table_size TYPE i.
GET REFERENCE OF gt_person INTO gs_result_xml-value.
gs_result_xml-name = 'IPIX'.
APPEND gs_result_xml TO gt_result_xml.
Perform the XSLT stylesheet
TRY.
CALL TRANSFORMATION zaum_manh_sync_rpt
SOURCE XML g_xml_table
RESULT (gt_result_xml).
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'E'.
ENDTRY.
Kindly suggest me a solution. Points assured
regs,
rajaAfter saving the file , below is the code i wrote, but it gives a runtime error with message
No roll storage space of length 3788808 available for internal storage.
***Coding****
PARAMETERS: p_file TYPE pathintern LOWER CASE DEFAULT '/usr/sap/DEV/SYS/global/XMLABAP2.XML'.
DATA : lv_filename LIKE rlgrap-filename.
CLEAR: lv_filename.
lv_filename = p_file.
DATA: l_fname TYPE filename-fileintern. " File name
*GET THE FILENAME FROM THE APPLICATION SERVER
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = p_file
filemask = '*'
IMPORTING
serverfile = l_fname
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*/usr/sap/DEV/SYS/global/substanc
lv_filename = l_fname.
OPEN DATASET lv_filename FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
WRITE:/ 'invalid file'.
ELSE.
DO.
READ DATASET lv_filename INTO g_xml_line.
IF sy-subrc EQ 0.
APPEND g_xml_line TO g_xml_table.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET lv_filename.
ENDIF. -
Hi All,
i try to migrate a file with ISU-Migration workbench.
in the Display option I can see the file. All looks fine.
When I press IMPORT I got the message "migration executed" but actually it did not read anysthing. So I debugged and came to the OPEN DATASET.
There I get a sy-subrc of 8.
Do not remember what this means...probably the directory is protected or something...
Who knows?
Thanks in advance
Thomashi Thomas,
hi thomas u can do authority check as stated below..
if sy-subrc is 8 it means too many parameters (fields, values). Maximum allowed is 10. I have also added the other sy-subrc condition so that u can benifit...
AUTHORITY-CHECK OBJECT object
ID name1 FIELD f1
ID name2 FIELD f2
ID name10 FIELD f10.
object
Field which contains the name of the object for which the authorization is to be checked.
name1 ...
Fields which contain the names of the
name10
authorization fields defined in the object.
f1 ...
Fields which contain the values for which the
f10
authorization is to be checked.
AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept).
You must specify all authorizations for an object and a also a value for each ID (or DUMMY).
The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user.
If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected.
If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue.
The return code value changes according to the different error scenarios. The return code values have the following meaning:
4
User has no authorization in the SAP System for such an action. If necessary, change the user master record.
8
Too many parameters (fields, values). Maximum allowed is 10.
12
Specified object not maintained in the user master record.
16
No profile entered in the user master record.
24
The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect.
28
Incorrect structure for user master record.
32
Incorrect structure for user master record.
36
Incorrect structure for user master record.
hope i had answered u.. rewward if u find it useful.
Regards,
Rajkumar.G. -
Executing window.opener.FunName from Web IC pop-up = Permission Denied
Hello,
I have modified a copy of the BuPaCreate view and controller. When the user hits save, I open a child window to perform some validation using an external system. I want to write the corrected values back to the form on the BuPaCreate view and then submit the form. I created a JavaScript function within BuPaCreate to do this. I'm running into problems when I try to execute this function from the pop-up window. It is giving a permission denied error. I made certain my domain and server names are the same.
Has anyone else been able to execute a function within a Web IC view in this manner before? Is there an alternate method for returning the corrected values.
Thank you for any help you may be able to provide. I promise to reward all usefull answers.
Thank you,
John<i>If I leave the method setting out completely, it defaults to POST.</i>
-->Yes if you dont use anything, then default value will be "Post". But it will give error when you mention explicitly in case of child window usage.
-->In your code instead of using "element.innerText = val;", you can use
"element.innerHTML = val;
--> You need to use the below code get the value from child to main window:
<script language="javascript" event="onLoad()">
opener.document.htmlb_form_1.fieldID.value = <%= your_value %>;
window.self.close();
</script>
Here is the sample code which handles the child & parent window..Have a look..
Here is the similar example. I used MVC concept:
<b>Note:</b> But instead of Model class i used APplication class. You can change ito MODEL Class where ever applicaable.
Let me know if you have any issue:
<b>Main.htm:</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2002+design2003" >
<htmlb:page title="Add Employee Details " >
<htmlb:form action="POST" >
Account Number:
<htmlb:inputField id = "Account"
showHelp = "true"
value = "<%= Account %>"
onValueHelp = "javascript:window.open('acctpop.do?showppopup=true', '_blank', 'Account Details','width=100,height=300');" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
<b>Page attribute:</b>
account TYPE string
<b>Acctpop.htm</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="Test" >
<htmlb:form id="my_window" >
<%
data TV_ITERATOR Type Ref To zcl_itr." - Iterator Function
data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
create object tv_iterator exporting appl_cons = application.
iterator = tv_iterator.
%>
<htmlb:tableView id = "pop"
width = "200"
headerVisible = "true"
design = "alternating"
visibleRowCount = "10"
fillUpEmptyRows = "true"
selectionMode = "SINGLESELECT"
selectedRowIndex = "<%= row_index %>"
onRowSelection = "MyEventRowSelection"
showNoMatchText = "true"
filter = "server"
sort = "server"
onHeaderClick = "MyEventHeaderClick"
table = "<%= it_account %>"
iterator = "<%= iterator %>" >
</htmlb:tableView>
<%
if account is not initial.
%>
<htmlb:inputField id = "checked"
visible = "FALSE"
value = "<%= lv_checked %>" />
<script for="checked" language="javascript" even="onLoad()">
opener.document.htmlb_form_1.account.value = <%= account %>;
window.self.close();
</script>
<%
endif.
%>
</htmlb:form>
</htmlb:page>
</htmlb:content>
<b>Controller Class:</b>
METHOD DO_INIT.
CREATE OBJECT APPL.
SELECT * FROM SFLIGHT INTO TABLE APPL->ITAB.
ENDMETHOD
METHOD DO_REQUEST.
DATA: POPVIEW TYPE REF TO IF_BSP_PAGE.
DISPATCH_INPUT( ).
DATA: LV_FIELD TYPE STRING.
* Get the value of Page level variables.
LV_FIELD = REQUEST->GET_FORM_FIELD( 'showppopup' ).
IF LV_FIELD IS NOT INITIAL .
APPL->VIEW_NAME = 'acctpop.htm'.
ENDIF.
IF APPL->VIEW_NAME IS INITIAL.
APPL->VIEW_NAME = 'main.htm'.
ENDIF.
POPVIEW = CREATE_VIEW( VIEW_NAME = APPL->VIEW_NAME ).
IF APPL->VIEW_NAME = 'acctpop.htm'.
POPVIEW->SET_ATTRIBUTE( NAME = 'it_account' VALUE = APPL->ITAB ).
POPVIEW->SET_ATTRIBUTE( NAME = ' accout' VALUE = APPL->account ).
ENDIF.
CALL_VIEW( POPVIEW ).
ENDMETHOD.
METHOD DO_HANDLE_DATA.
data: FIELD TYPE IHTTPNVP.
READ TABLE FORM_FIELDS WITH TABLE KEY
NAME = ' Account ' INTO FIELD.
ME-> Account = FIELD-VALUE.
ENDMETHOD.
METHOD DO_HANDLE_EVENT.
DATA: IND TYPE I.
DATA: TV TYPE REF TO CL_HTMLB_TABLEVIEW.
DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
TV ?= CL_HTMLB_MANAGER=>GET_DATA(
REQUEST = RUNTIME->SERVER->REQUEST
NAME = 'tableView'
ID = 'pop' ).
IF TV IS NOT INITIAL.
DATA: TV_DATA TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
TV_DATA = TV->DATA.
IF TV_DATA->SELECTEDROWINDEX IS NOT INITIAL.
DATA: ROW LIKE LINE OF APPL->ITAB.
READ TABLE APPL->ITAB INDEX TV_DATA->SELECTEDROWINDEX INTO ROW.
DATA VALUE TYPE STRING.
APPL-> Account = ROW- Account.
ENDIF.
ENDIF.
ENDMETHOD.
Hope this will help you.
Let me know if you have any queries.
Raja T -
Using DB_REGISTER under cygwin returns "Permission Denied"
I'm trying to use the DB_REGISTER flag when opening an environment but under cygwin I get a "Permission denied" error when I run two process. I run the attached test case in a cygwin shell and let it wait. When I run it the second time in a different console, I get:
Berkeley DB 4.7.25: (May 15, 2008)
fileops: stat /var/tmp
2896: register environment
fileops: open ./__db.register
2896: adding self to registry
read: 0x22cb60, 25: Permission denied
fileops: close ./__db.register
DB_ENV->open: Permission deniedAnd here is the test case:
#include <db.h>
#include <stdio.h>
int main()
DB_ENV *dbenv;
int ret;
printf("%s\n", DB_VERSION_STRING);
if ((ret = db_env_create(&dbenv, 0)) != 0) {
printf("%db_env_create: %s\n", db_strerror(ret));
return 1;
if ((ret = dbenv->open(dbenv, ".",
DB_CREATE | DB_INIT_LOG | DB_INIT_LOCK |
DB_INIT_MPOOL | DB_INIT_TXN | DB_RECOVER | DB_REGISTER, 0)) != 0) {
printf("DB_ENV->open: %s\n", db_strerror(ret));
goto err;
printf("Press any key to finish\n");
getc(stdin);
err:
dbenv->close(dbenv, 0);
return 0;
}Under Linux it works so it seems to be a cygwin/windows related problem (I'm using Windows XP).Hello,
Here is the patch on top of Berkeley DB 4.7.25 to
correct the permission problem reported. The
change is to os/os_flock.c:
*** os_flock.c.orig 2008-12-19 15:39:34.000000000 -0500
--- os_flock.c 2008-12-22 10:23:08.000000000 -0500
*** 37,43 ****
"fileops: flock %s %s offset %lu",
fhp->name, acquire ? "acquire": "release", (u_long)offset);
! fl.l_start = offset;
fl.l_len = 1;
fl.l_type = acquire ? F_WRLCK : F_UNLCK;
fl.l_whence = SEEK_SET;
--- 37,48 ----
"fileops: flock %s %s offset %lu",
fhp->name, acquire ? "acquire": "release", (u_long)offset);
! #ifdef __CYGWIN__
! DB_ASSERT(env, offset < (u_int64_t)INT64_MAX);
! fl.l_start = INT64_MAX - offset;
! #else
! fl.l_start = offset;
! #endif
fl.l_len = 1;
fl.l_type = acquire ? F_WRLCK : F_UNLCK;
fl.l_whence = SEEK_SET;
The issue here is Windows file locking, which works differently
from POSIX flock semantics. On Unix/POSIX systems, file locking
only interacts with other attempts to lock the same region of the
file. The assumption is that all processes will follow some
locking protocol before attempting to read/write that region
of the file. On Windows, locking a region of a file prevents
reads or writes (depending on the lock mode). This is already
addressed for native Windows and needed to be addressed on
Cygwin as well. This fix will be rolled forward into the
Berkeley DB mainline.
Thanks for reporting this and for providing a simple test case
that illustrated the problem,
Sandra -
Terminal returning "permission denied"
Hello,
I am trying to use the Terminal Utility on my macbook to locate all of my music files because I think they are in various folders and want to get everything into one place.
I was told to use sudo /usr/libexec/locate.updatedb, but then it asks for my password and when I put it in it returns this:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
Lyndsies-MacBook:~ lyndsie$
I am not an avid terminal user, so if someone can give me some instructions on how to locate all my music files into one folder I would appreciate it!
Thanks!forget about terminal. In the Finder, open a window to your home folder, type command-F to get a search window, then set the pull down menus to say 'kind', 'Music', 'mp3'. This will show all the music files anywhere in your home folder, and you can select all and drag them to whatever folder you like.
I'm not sure you really want to do this, though. Putting all your music files in one folder is a huge mess - better to let iTunes organize them in folders for you. -
"Error opening document - permission denied"
I'm using Acrobat Reader version 7.0. It refused to open pdf files on my computer. The error message that was returned is There was an error opening this document. Permission denied. I own the files, with read (and write) permissions, and acroread is running with my user id.
I have tried deleting and re-installing the program, with no luck.
Any ideas, please?I'm using Acrobat Reader version 7.0.
Install the updates for Adobe Reader 7. -
Spry and Permission denied to call method XMLHttpRequest.open
hi all,
I'm using Spry to call an RSS feed and display on a webpage.
I'm running this locally on my computer for testing measures and it
works fine in IE but i'm getting a message saying "Permission
denied to call method XMLHttpRequest.open" when using FF.
I googled around a bit and found that it has to do something
with FF's cross domain security, but nothing much more than that. I
was just wondering if anyone would be able to point me to a good
resource that explains the issue more and how to fix it, keeping it
in mind that i want to fix it using Dreamweaver's Spry
options.5h4k42u1u wrote:
> if i'd use the spry tables with an RSS feed, it'll work
with IE but not with
> FF, but then when i try it with a local XML file, it'll
work with FF but not
> IE? In fact, why does it have trouble at all with the
local file, there should
> be no cross domains to worry about, right?
You're right that there should be no problem with a local
file, but
without seeing the XML file and your code, it's impossible to
say what's
causing the problem. I think your best bet is to post a more
detailed
question in the Spry forum.
http://www.adobe.com/go/labs_spry_pr1_forum
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
Updating photoshop cc failed message
I am trying to update photoshop cc but keep getting the message that the update failed; does anyone know why this is happening. U44M1P34 is the message #.
-
I've followed all of the steps in the iCloud to find it but no luck. Can apple detect if it has been teset and reloaded?
-
hi, i have a form working online thats working great. I was asked to add the possibility to work offline also. the problem is: i have three servlets. Servlet1 mounts the document and servlet2 to handle the submit. However, i had to implement servlet3
-
How to heal and remove ban from my players in fifa 14?
Really i have no idea plz guide me proper...whenever i want to play error comes that you have banned people so how to remove it ?
-
Install SOA suite components on different cpu
If we buy one copy of the CPU license of SOA suite (list price 65,000/cpu), can we deploy its components on different CPUs? For example, can we run its Portal on one machine, its BEPL Process manager on the second machine, and BAM on a third machine.