PLz help in handling javascript
HIiiiiiiiiiiiiii
I have a problem in java script like when i want to close browser on using the follownig code confirm box is opening, after click 'ok' its going on to close the window and the 'cancel' option is working fine ..
now my problem is to handle 'ok' event and call my code[API] using 'href'
How can i track the 'ok' event ??
Thanks in advance!!!!!
<SCRIPT language=javascript>
function noExit() {
if((event.clientX >1000)||(event.clientY < -80)) {
return "You are not supposed to close this window";
//if((event.clientX > 500)||(event.clientY > -80)) {
//return "You are not supposed to close this window";
window.onbeforeunload = noExit;
</SCRIPT>
To clear things out: Javascript is indeed definitely not the same as Java. The only things they share is the word 'Java' which Javascript has borrowed from Java and a slight similar syntax. [http://en.wikipedia.org/wiki/JavaScript]
Although most Java web developers also know Javascript, this is certainly the wrong place to ask Javascript related questions. There are Javascript forums available at [http://webdeveloper.com] and [http://dynamicdrive.com]. Good luck.
Similar Messages
-
when i install j2eesdk in my system it was installed two servers.
1)J2EE default server
2)cloud scape server
i know that cloud scape server is database server so can i use this instead of sqlserver?
what is j2ee default server? is it a web server like tomcat. if yes can i use it instead of tomcat?Is this a learn J2EE in 24 days book you have a hold of or what?
Yesterday
extract source from war
How to execute rmi
How to build a web browser in Java
2 days ago
jdbc doubt
is it possible? (some vague question about HTML forms involving JavaScript)
how to handle (a basic servlet question)
plz help me (another JavaScript question)
w to include total path of html file to open in javascript?
3 days ago
how is it counting no of visits? (servlet question)
4 days ago
plz help me (ask for defintions of a whole pile of J2EE related materials)
So all I can ask is... is your interview coming up soon? Wiil this inane flood of questions becoming to end sooner rather than later? -
Respected Sir/madem'
i m new to java.So i don't know how can i handle this problem.plz guide me
my problem is i m using mysql connector to access my database and made the class (MyConnection.class) that establish the connection but i do not want to give my class that establish a connection to client. i have to store this class on the server for security and use this class in my program to connect to database.
How can i use class or any file that was stored on server.
Plz help me i don,t know what ccn i do.Chipomasi wrote:
How do i delete my chat history.
Please help.
Hi @Chipomasi,
You can delete your Chat history by going to Tools>Options in the desktop client; click on the IM and SMS tab; click on IM settings; then show advanced settings; then you can clear the history and modify how long chat history goes back.
Note that this will not delete the other user's chat history with you, only yours.
Anthony
This post was by Anthony- I do not work for Microsoft!
If this solved your issue - Mark it as a solution! If you like my post - Please add Kudos!
Spotify Community Profile - Anthony
Feel free to PM me - Here -
Plz Help(Reg javascript & jsp)
hi all
I am new to java .i strcked in one situation.
in appl, i used scriptlet code in javascript.
can i write script let code in javaScript.there is any prob,while writing sciptlet code in javascript.
i posted my code here .plzz help me.
function sendvalues(firstinstall){
var installmentfee = new Array();
<!--installmentfee is an array to store resp installment fees-->
<%
for (int j = 0; j < al.size(); j++) {
InstallmentVO insVo = (InstallmentVO) al.get(j);
%>
installmentfee[0]=firstinstall;
installmentfee[<%=j+1%>] ="<%=insVo.getTotalFee()%>";
alert(installmentfee[<%=j%>]);
<%}%>
alert(installmentfee[2]);
var val = document.form.money.value;
<% int k=0;%>
while(val>=0) {
alert("k"+<%=k%>);
if(val>installmentfee[<%=k%>]){
val=val-firstinstall;
document.form.installamount<%=k%>.value = (firstinstall);
bal=0;<% k++;%>
}else{
document.form.installamount<%=k%>.value = (val);
bal=(firstinstall)-(val);
val=-1;<% k++;%>
document.form.balance0.value =bal ;
if(document.form.balance0.value<=0){
document.form.FullPaid0.value = 'Y';
else{
document.form.FullPaid0.value = 'N';
document.all['Layer1'].style.visibility = "visible";
return false;
plz help me.can i write script let code in javaScriptNo you cannot use scriplet code in a java script,
scriplets are only used in JSP files.
Kind Regards
WernsScriplets are only used in JSP files.
But OP's question was - can i write script let code in javaScript?
According to my understanding, its possible. Yes, we can write scriplet codes in java script as below
<html>
<head>
<title>Scriplet tags in Javascript</title>
</head>
<script>
function foo(){
<%System.out.println("Scriplet tags in Javascript");%>
</script>
<body>
<form name="index" onSubmit="index.jsp" method="post">
<input type="submit" name="submit" value="Submit" onClick="foo()">
</form>
</body>
</html>and, U cant use scriplet tags in a javascript file(js file)
Am I correct? Comments pls....
Cheers.
Message was edited by:
astelaveesta -
A javaScript code that runs fine in IE but not in other plz help
Hello friends,
plese help me in getting the code for Opera and Mozilla browsers. The following code runs fine in IE but not in other browsers. it show titlebar in other browsers. What to do disable titlebar in other browsers? plz help
<html>
<head>
<script>
//Frameless Banner Popup
// Set the url of the banner popup window page
//var theURL = "index.htm";
var theURL = "/cgi-bin/login";
// Set the title of the popup window
var title = "Login"
// Set the size of the popup window
var windowWidth = 350; // cannot be less than 100
var windowHeight = 350; // cannot be less than 100
//var windowWidth = window.screen.width; // cannot be less than 100
//var windowHeight = window.screen.height; // cannot be less than 100
// Set the position of the popup window
var windowX = ((window.screen.width/2) - 175);
var windowY = ((window.screen.height/2) - 175);
// Set true to auto-center (positions will be ignored)
var autocenter = false;
// Set true for popup to close when launch page does
var autoclose = false;
var s="width="+windowWidth+",height="+windowHeight;
var beIE=document.all?true:false;
var done=new Object("no");
if(autocenter){
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
function doAgilePopup(){
if (beIE){
agilePopper = window.open("","popAgile","fullscreen,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
agilePopper.document.open();
agilePopper.document.write(frameString);
agilePopper.document.close();
}else{
agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
agilePopper.blur();
if (autoclose){
window.onunload = function(){agilePopper.close();}
done="okay";
</script>
</head>
<BODY onLoad="doAgilePopup(),top.window.close()">
</body>
</html>missing semicolon in end of the variable frameString ,
better write the string in single line thats easy to find the bugs like this.
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>" -
How to open a JSP page from a form ??? plz help
hi ..
i want to know how to open a jsp page from a oracle apps form using a button .
the requirement is that whenever we click on the button created on the form, it opens a jsp page.
plz help me ..its urgent !! :-(In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
Here is an example to hyperlink ans button to open a new page:
# From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
# Create a second portlet page, called PortletPage2.jsp, for the project.
# Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
# Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
# Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
# Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
# Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
# Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
Sherry
Creator Team -
How to write code for this logic, plz help me very urgent
Hi All,
i am new to sap-abap, i got this work and i m working on this can any body help me in writing code, plz help me, this is very very urgent.
here i m giving my logic, can anybody send me the code related to this logic.
this is very urgent .
this program o/p should be in ALV format and need to create one commond 'SAVE" on this o/t list if user clicks save processedon and processedby fields in ZFIBUE should be updated automatically.
i am creating one custom table zfibue having fields: (serialno, bukrs, matnr,prdha,hkont,gsber,wrbtr,budat, credate, cretime,processed, processedon, processedby,mapped)
fields of zfibue:
serailno = numc
bukrs = char
matnr = char
prdha = char
hkont = char
gsber = char
wrbtr = char
budat = date
credate = date
cretime = time
processed= char
processedon = date
processedby = char
mapped = char are belongs to above type data types
and seelct-optionfields: s_bukrs for bseg-bukrs
s_hkont for bseg-hkont,
s_budat for bkpf-budat,
s_processed for zfibue-processed,
s_processedon for zfibue-processedon,
s_mapped. for zfibue-mapped
parameters: p_chk1 as checkbox,
p_chk2 as checkbox.
p_filepath type rlgrap-filename.
1.1 Validate the user inputs (S_BUKRS and S_HKONT) against respective check tables (T001 and SKB1). If the validation fails, provide respective error message. Eg: Invalid input for Company Code.
1.2 Fetch SERIALNO, BUKRS, MATNR, PRDHA, HKONT, GSBER, WRBTR, BUDAT, CREDATE, CRETIME, PROCESSED, PROCESSEDON, PROCESSEDBY, MAPPED from table ZFIBUE into internal table GT_ZFIBUE where BUKRS IN S_BUKRS, HKONT IN S_HKONT, BUDAT IN S_BUDAT, PROCESSED IN S_PROCESSED, PROCESSEDON IN S_PROCESSEDON, and MAPPED IN S_MAPPED.
1.3 If P_CHK2 = X, go to step 1.11. Else continue.
1.4 If P_CHK1 = X, continue. Else go to step 1.9
1.5 Fetch MATNR, PRDHA from MARA into GT_MARA for all entries in GT_ZFIBUE where MATNR = GT_ZFIBUE-MATNR.
1.6 Sort and delete adjacent duplicates from GT_MARA based on MATNR.
1.7 Loop through GT_ZFIBUE where PRDHA = blank.
Read Table GT_MARA based on MATNR = GT_ZFIBUE-MATNR.
IF sy-subrc = 0.
Move GT_MARA-PRDHA to GT_ZFIBUE-PRDHA.
Modify Table GT_ZFIBUE. Update Product Hierarchy
Endif.
Fetch PRDHA, GSBER from ZFIBU into GT_ZFIBU for all entries in GT_ZFIBUE where PRDHA = GT_ZFIBUE-PRDHA.
Read Table GT_ZFIBU based on PRDHA = GT_ZFIBUE-PRDHA.
IF sy-subrc = 0.
Move GT_ZFIBU-GSBER to GT_ZFIBUE-GSBER.
Move X to GT_ZFIBUE-MAPPED.
Modify Table GT_ZFIBUE.
Endif.
Endloop.
1.8 Modify database table ZFIBUE from GT_ZFIBUE.
1.9 Fill the field catalog table GT_FIELDCAT using the details of output fields listed in section Inputs/Outputs (above).
Eg: LWA_ FIELDCAT -SELTEXT_L = 'Serial Number.
LWA_ FIELDCAT -DATATYPE = NUMC.
LWA_ FIELDCAT -OUTPUTLEN = 9.
LWA_ FIELDCAT -TABNAME = 'GT_ZFIBUE'.
LWA_ FIELDCAT-FIELDNAME = 'SERIALNO'.
Append LWA_FIELDCAT to GT_FIELDCAT
Note: a) The output field GT_ZFIBUE-PROCESSED will be editable marking INPUT = X in field catalog (GT_FIELDCAT).
b) The standard ALV functionality will be used to give the user option for selecting all or blocks of entries at a time.
c) The PF-STATUS STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN will be copied to the program and modified to include a SAVE button.
1.10 Call the function module REUSE_ALV_GRID_DISPLAY passing output table GT_ZFIBUE and field catalog GT_FIELDCAT. Additional parameters like I_CALLBACK_PF_STATUS_SET (= ZFIBUESTAT) and I_CALLBACK_USER_COMMAND (=HANDLE_USER_ACTION) will also be passed to handle user events. Go to 2.14.
1.11 Download the file to P_FILEPATH using function module GUI_DOWNLOAD passing GT_ZFIBUE.
1.12 Exit Program.
Logic to be implemented in routine Handle_User_Action
This routine will have the following interface:
FORM Handle_User_Action USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
ENDFORM.
Following logic will be implemented in this routine:
1. If r_ucomm = SAVE, continue. Else exit.
2. Loop through GT_ZFIBUE where SEL_ROW = X. Row is selected
a. IF GT_ZFIBUE-PROCESSED = X.
i. GT_ZFIBUE-PROCESSEDON = SY-DATUM.
ii. GT_ZFIBUE-PROCESSEDBY = SY-UNAME.
iii. MODIFY ZFIBUE FROM work area GT_ZFIBUE.
Endif.
Endloop.Hi Swathi,
If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop. -
Hi ive used spryware ive used normal typing but my navigation bar is awful how can i can create a good one ?
Another thing is ive made the spyware navigation menu bar horizontal but when i load it up on my ftp files for the internet it ends up going vertical with bullet points, plz help.........
In my dreamweaver it previews like its suppose to be but when i load it on the internet public html it doesnt show it horizontally.
thanks for anyone who can help
Ive also attached the fileDid you upload your CSS and javascript files to the server? We would need to see a link to your live page on server to give more meaningful feedback.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
Hi all,
i attended a interview, these are the qes..plz help me with ans..
1. is it possible without using function modules in
bdc(open, insert,close) data transferring? how ...
2. which one is better session/call transection? why?
3. in LSMW what r the methods u r using?
4. in LSMW otherthan recording any method is there? what are they?
5. in LSMW where are u doing field validation? in which step, can u explain?
6. is it possible to run smartform without using
" ssf_function_module_name", how ?
7. how will display secondary list in ALV.
8. how will u call back to secondary lists to base list?
9. how u r printing secondary list in interactive reports?
10. what are the events used in u r ALV reports?
11. how will u access data in secondary list?
12. what is diff b/w bapi created fm and standered bapi fm?
13. in ALE in which programm worked either standalone or any other?
here what is standalone?i know change pointer..Hi
10. what are the events used in u r ALV reports?
Events in alv and their FM The main events in alv and their FM and why we use these:
1. SLIS_PRINT_ALV.
2. SLIS_T_LISTHEADER.
3. SLIS_T_EVENT.
4. SLIS_T_SORTINFO_ALV.
5. SLIS_T_LAYOUT_ALV.
6. SLIS_T_FIELDCAT_ALV.
and in classic reports what is the sequence of events: === Events are
At selection-screen output.
Initialization.
At selection-screen on field
At selection-screen on end of field
At selection-screen on Radiobutton Group R1. (If you have any radio buttons)
At selection-screen on block b1. (If you have any blocks)
Start-of-selection.
Get node. (if the data is retreived from a logical database)
Get node late. (if the data is retreived from a logical database)
Top-of-page. (if the write statement is in the end-of-selection event or we can say that before the first write statement)
end-of-selection.
and fuction modules are
LISTHEADER - Is used to print the header information in the ALV List. Name, Date, Time, ALV Name and other details are called as Header information. EVENT - Basically this is the FM to handle Event's. When the user needs to do some event operation like when double clicking the a particular field we need to perform some operation. These events are captured by this FM. LAYOUT - This FM is used to define the layout of the List. There are many options available in this FM to define the Layout style. FIELDCAT - These are used to populate the List header. We can change them according to our req.
User-defined Text Output Event
Application
print_end_of_list
Define output text to be printed at the end of the entire list
print_top_of_list
Define output text to be printed at the beginning of the entire list
print_end_of_page
Define output text to be printed at the end of each page
print_top_of_page
Define output text to be printed at the beginning of each page
subtotal_text
Define self-defined subtotals texts
Mouse-controlled Actions in the Grid Control Event
Application
button_click
Query a click on a pushbutton in the ALV Grid Control
double_click
Query a double-click on a cell of the ALV Grid control
hotspot_click
Query a hotspot click on columns defined for this purpose in advance
onDrag
Collect information when elements of the ALV Grid Control are dragged
onDrop
Process information when elements of the ALV Grid Control are dropped
onDropComplete
Perform final actions after successful Drag&Drop
onDropGetFlavor
Distinguish between options for Drag&Drop behavior
Processing of Self-defined and Standard Functions Event
Application
before_user_command
Query self-defined and standard function codes
user_command
Query self-defined function codes
after_user_command
Query self-defined and standard function codes
Definition of Self-defined Functions Event
Application
toolbar
Change, delete or add GUI elements in the toolbar
menu_button
Define menus for menu buttons in the toolbar
context_menu_request
Change context menu
onf1
Define self-defined F1 help
All of these can be found under type group SLIS.
Events
SLIS_EV_ITEM_DATA_EXPAND TYPE SLIS_FORMNAME VALUE 'ITEM_DATA_EXPAND',
SLIS_EV_REPREP_SEL_MODIFY TYPE SLIS_FORMNAME VALUE 'REPREP_SEL_MODIFY', SLIS_EV_CALLER_EXIT_AT_START TYPE SLIS_FORMNAME VALUE 'CALLER_EXIT',
SLIS_EV_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND',
SLIS_EV_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
SLIS_EV_DATA_CHANGED TYPE SLIS_FORMNAME VALUE 'DATA_CHANGED',
SLIS_EV_TOP_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_COVERPAGE',
SLIS_EV_END_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE 'END_OF_COVERPAGE',
SLIS_EV_FOREIGN_TOP_OF_PAGE TYPE SLIS_FORMNAME
VALUE 'FOREIGN_TOP_OF_PAGE', SLIS_EV_FOREIGN_END_OF_PAGE TYPE SLIS_FORMNAME
VALUE 'FOREIGN_END_OF_PAGE',
SLIS_EV_PF_STATUS_SET TYPE SLIS_FORMNAME VALUE 'PF_STATUS_SET',
SLIS_EV_LIST_MODIFY TYPE SLIS_FORMNAME VALUE 'LIST_MODIFY',
SLIS_EV_TOP_OF_LIST TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST',
SLIS_EV_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE',
SLIS_EV_END_OF_LIST TYPE SLIS_FORMNAME VALUE 'END_OF_LIST',
SLIS_EV_AFTER_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE 'AFTER_LINE_OUTPUT', SLIS_EV_BEFORE_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE 'BEFORE_LINE_OUTPUT',
SLIS_EV_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT' -
hi
actually my problem is that i have to print the page which is not in the brouser
i,e a html page which cannnot be viewed but has to printed.
normlly a page opened in any brouser can be given to the printer but how to give the unseen page to a printer .I dont know if it can be done through java but if it can it has to be done using jdk1.3.
plz help me in this..First of all , Wrong forum!! This is a client side issue(unless you are trying to print the page in a server side printer). Anyway, to print in client side put the unseenable data in a hidden frame and use javascript window.print(). If you are using DHTML enabled browser(IE 5+) , you will be able to use CSS to specify alternate document for printing <link rel=alternate media=print href="printversion.doc"> .See http://www.pageresource.com/dhtml/d_a_01.htm
-
Abap code.........Plz help me
Hi all,
My requirement is
1. Users will be using the file upload Tcode in BW ( This TCode access will be authorized to specifi users)
2. ABAP Program need to place the file in the specified folder. Use the Z_FLATFILE_UPLOAD as a start. Copy to New program and work witht he New program
3. The ABAP program should be able to sent Trigger event after placingt he file to start the Process Chain, in which The flat file should be able to load to the ODS.
4. On Successful completion of the Process chain, the specific user group should be able to recive the email Message that the uploaded file has been loaded and avaible for reporting.
The ABAP program should be able to handle the follwing:
1. If the File Format is not correct the user should get an error message that the file is not in the expected format.
2. Once the File upload complete, user should see the message that the file uploaded correctly.
3. on Successful completion of the FileUpload, The program should trigger event.
and the program Z_FLATFILE_UPLOAD is given below
REPORT Z_FLATFILE_UPLOAD message-id zx .
PARAMETERS: FILE_NM LIKE RLGRAP-FILENAME obligatory.
PARAMETERS: P2 LIKE RLGRAP-FILENAME
DEFAULT '/Userdata/IFIN/0557'.
DATA: INRECORD_COUNT TYPE i,
OUTRECORD_COUNT TYPE i.
DATA : MASK(20) TYPE C VALUE ',. ,..'.
DATA: BEGIN OF ITAB OCCURS 0,
RECORD(3000),
END OF ITAB.
AT selection screen help and F4 statements
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE_NM.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = FILE_NM
MASK = MASK
MODE = 'O'
TITLE = 'File Select'
IMPORTING
FILENAME = FILE_NM
EXCEPTIONS
INV_WINSYS = 04
NO_BATCH = 08
SELECTION_CANCEL = 12
SELECTION_ERROR = 16.
IF FILE_NM = ' ' AND SY-SUBRC = 12.
SET CURSOR FIELD 'FILE_NM'.
MESSAGE I000(ZX) with 'File Selection cancelled.'
'Please select a valid file to proceed'.
ELSEIF SY-SUBRC NE 0.
MESSAGE E000(ZX) WITH FILE_NM.
EXIT.
ENDIF.
START-OF-SELECTION.
CALL FUNCTION 'UPLOAD'
EXPORTING
FILENAME = FILE_NM
TABLES
DATA_TAB = ITAB.
if sy-subrc <> 0.
message i000(ZX) with 'Upload Failed'.
LEAVE LIST-PROCESSING.
endif.
*editor-call for input_rec.
OPEN DATASET P2 FOR output IN text mode encoding default.
IF SY-SUBRC <> 0.
message i000(ZX) with 'COULD NOT OPEN THE FILE'.
LEAVE LIST-PROCESSING.
ENDIF.
INRECORD_COUNT = 0.
OUTRECORD_COUNT = 0.
LOOP AT ITAB. .
INRECORD_COUNT = INRECORD_COUNT + 1.
TRANSFER ITAB-RECORD TO P2.
OUTRECORD_COUNT = OUTRECORD_COUNT + 1.
ENDLOOP. "itab
END-OF-SELECTION.
CLOSE DATASET P2.
IF SY-SUBRC <> 0.
message e000(ZX) with 'COULD NOT OPEN THE FILE'.
ENDIF.
WRITE: / '# of records read ', INRECORD_COUNT,
/ '# of records transfered', OUTRECORD_COUNT.
WRITE:/ 'upload filename', FILE_NM.
WRITE:/ ' aix filename', P2.
after this code i need to trigger my event can any onle tell me the steps after this program and the code also please
thanks in advance
Sri
points will be assignedHey,
This forum is used to get some ideas/tips when you stcuk at some point during the development. This is not a place to send your work & expecting somebody to do it for you.
see similar funny thread
plz help me -
'FTP_R3_TO_SERVER' giving sy-subrc = 3 plz help me points must be given
Dear ,
when i am trying to send data in internal table of type charterter declared below(i.e iresult) to FTP SERVER program giving the DATA ERROR = 3 when 'FTP_R3_TO_SERVER' fuction module is exected and file it not creating in ftp server . plz help me pointS must be given .
the FTP_CONNECT ,FTP_COMMAND function modules are executing properly giving handle 1 and its sy-subrc = 0 .
when 'FTP_R3_TO_SERVER' is executed it is giving SY-SUBRC = 3 ( DATA ERROR ) i.e it is failing to out internal table data in FTP SERVER . PLZ HIDE ME ITS URGENT .
THIS IS CODE I USED .
DATA : BEGIN OF iresult OCCURS 5,
rec(450),
END OF iresult,
DATA :
dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
compress TYPE c VALUE 'N',
host(64) TYPE c.
DATA: hdl TYPE i.
DATA: BEGIN OF result OCCURS 0,
line(100) TYPE c,
END OF result.
DATA : key TYPE i VALUE 26101957 ,
dstlen TYPE i,
blob_length TYPE i.
host = p_host .
DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
ID 'DSTLEN' FIELD dstlen.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_user
password = p_password
host = host
rfc_destination = dest
IMPORTING
handle = hdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc = 0.
CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = ftppath
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc = 0 .
CLEAR result .
REFRESH result .
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = 'ascii'
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc = 0 .
DESCRIBE TABLE iresult LINES lines.
blob_length = lines * width .
clear : lines.
Delete the existing file
CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = delfile
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
*End of deleting the existing file
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = hdl
fname = ftpfile
blob_length = blob_length
TABLES
blob = iresult
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF sy-subrc <> 0 .
WRITE 'Error in writing file to ftp' .
ELSE.
WRITE 'File downloaded on the ftp server successfully'.
ENDIF.
ENDIF.
ELSE.
WRITE : 'Path on ftp not found : ' , ftppath .
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
handle = hdl.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
destination = 'SAPFTP'
EXCEPTIONS
OTHERS = 1.
ELSE.
WRITE 'Could not connect to ftp' .
ENDIF.
ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'PASSWORD'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Edited by: manoj kv on Feb 21, 2008 7:51 AM
Edited by: manoj kv on Feb 21, 2008 10:31 AM
Edited by: manoj kv on Feb 23, 2008 5:22 AM
Edited by: manoj kv on Feb 23, 2008 2:59 PMDear ,
i exected RSFTP005 program and i got this below output .
SAPFTP check
Check RFC destination SAPFTP...
... OK.
Ping RFC destination SAPFTP...
... OK.
Check RFC destination SAPFTPA...
... OK.
Ping RFC destination SAPFTPA...
... OK.
in our previous discussion u told me that "You will get that file is not in proper format or it might be empty i.e. structure dose not support "
plz tell me how u r telling that file will not get in proper order and which structure does not support .
my client given issue that whole data storing in single line .
plz do the needful help. points must be rewarded .
thanking u .
Edited by: manoj kv on Feb 25, 2008 5:56 AM
Edited by: manoj kv on Feb 26, 2008 9:38 AM
Edited by: manoj kv on Feb 28, 2008 8:04 AM -
Code for radio button is not working plz help
checkboxes are working fine but when i put radio code submit button does nothing
plz help
thanks in advance
<%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
<jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="javascript" >
function cmdOnSelect()
var deptcode=document.DepartmentPage.cmdSelect.value;
DepartmentPage.method="post";
DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
DepartmentPage.submit();
function validate()
var user_etime = document.DepartmentPage.etime.value;
var etime_length = document.DepartmentPage.etime.value.length;
var user_edate = document.DepartmentPage.edate.value;
var edate_length = document.DepartmentPage.edate.value.length;
var user_calltype = document.DepartmentPage.calltype.value;
var calltype_length = document.DepartmentPage.calltype.value.length;
var user_callstatus = document.DepartmentPage.callstatus.value;
var callstatus_length = document.DepartmentPage.callstatus.value.length;
if( edate_length==0 )
alert("Please enter the call date");
return false;
else if( calltype_length==0 )
alert("Please enter the call type");
return false;
else if( callstatus_length==0 )
alert("Please enter the call status");
return false;
else if( etime_length==0 )
alert("Please enter the call timing");
return false;
else if(etime_length!=0 && etime_length!=4)
alert("Entered timing is invalid");
return false;
else if (etime_length!=0)
for (var i = 0; i < etime_length; i++)
valid_characters = new RegExp ("[0-9]", "g");
var part_user_etime = user_etime.charAt (i);
if (!valid_characters.test (part_user_etime))
alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
return false;
valid_characters = null;
return true;
else
return true;
function cmdOnClick()
if (validate())
DepartmentPage.method="post";
DepartmentPage.action="/anaghan/CallSheet?flag=call";
DepartmentPage.submit()
</script>
<script language="javascript" src="calendar1.js">
</script>
</head>
<body>
<%
String uname=(String)session.getAttribute("employeeName");
if(uname==null)
response.sendRedirect("/Error.jsp?login=Login Session Problem");
%>
<%
String date1="";
String date2="";
%>
<%!
ResultSet rs=null;
Connection con =null;
String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
String tableStr="jdbc:odbc:Anaghan";
%>
<%
String companycode=request.getParameter("cmdSelect");
HttpSession hs = request.getSession();
hs.setAttribute("companycode",companycode);
System.out.println("CALLLLL="+companycode);
%>
<%
String flag="";
String deptcode="";
String commissioningdate="";
String closuredate="";
%>
<%
String a2="";String a1="";
%>
<form name="DepartmentPage" >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
<TR>
<TD align=CENTER>
<h2> CALL DATA SHEET </h2>
</TD>
</TR>
<TR>
<div>
<FONT face="Arial " color=#000000 size=2>
<TD valign="top">
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<tr>
<TD align=RIGHT>Select Company - </TD>
<td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
<OPTION SELECTED></OPTION>
<%
deptcode=request.getParameter("cmdSelect");
response.setContentType("text/html");
ResultSet rs = obj.onSelect();
while(rs.next())
String tempName=rs.getString(2);
%>
<OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
<%}%>
</SELECT></td>
</TR>
</TD>
</TABLE>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Contact Person</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
<%!
ResultSet result=null;
%>
<%
response.setContentType("text/html");
try{
Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
Statement stmt=con.createStatement();
result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
while(result.next())
%>
<tr>
<OL><td align ="center"><%=result.getString(9) %></td>
<td align ="center"><%=result.getString(10) %></td>
<td align ="center"><%=result.getString(11) %></td>
<td align ="center"><%=result.getString(12) %></td>
<td align ="center"><%=result.getString(13) %></td></OL>
<tr>
<OL><td align ="center"><%=result.getString(14) %></td>
<td align ="center"><%=result.getString(15) %></td>
<td align ="center"><%=result.getString(16) %></td>
<td align ="center"><%=result.getString(17) %></td>
<td align ="center"><%=result.getString(18) %></td></OL>
<%}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TR>
<TD>
<table align="center" width="90%" cellspacing="2" cellpadding="2">
<tr>
<td align="center"><h2>Call History</h2></td>
</tr>
</table>
<table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
<tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
<%!
ResultSet result1=null;
%>
<%
response.setContentType("text/html");
try{
result1=obj.onSelectCallHistory(deptcode);
while(result1.next())
%>
<tr>
<OL><td align ="center"><%=result1.getString(3) %></td>
<td align ="center"><%=result1.getString(4) %></td>
<td align ="center"><%=result1.getString(6) %></td>
<td align ="center"><%=result1.getString(7) %></td>
<td align ="center"><%=result1.getString(9) %></td>
<td align ="center"><%=result1.getString(8) %></td>
</OL>
<%}}
catch(Exception e)
e.printStackTrace();
}%>
</tr></table>
</TD>
</TR>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
<TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
<TR>
<TD></TD>
</TR>
<TR></TR>
<TR>
<TD align=RIGHT>
Type of Call - </TD>
<td>
<input type = radio name=calltype value=personal/>personal
<input type = radio name=calltype value=email/>Email</td>
<!-- <TD><SELECT name="calltype" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "personal"> Personal </OPTION>
<OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
<OPTION id= "s" value= "email"> E-mail </OPTION>
<OPTION id= "s" value= "meeting"> Meeting </OPTION>
</SELECT>
</TD>-->
</TR>
<TR>
<TD align=RIGHT>
Status of Call - </TD>
<TD>
<SELECT name="callstatus" size="1" >
<OPTION SELECTED></OPTION>
<OPTION id= "s" value= "cold"> Cold </OPTION>
<OPTION id= "s" value= "warm"> Warm </OPTION>
<OPTION id= "s" value= "hot"> Hot </OPTION>
<OPTION id= "s" value= "closed"> Connection Executed </OPTION>
<OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
<OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
<OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
<OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT>Date - </TD>
<TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR>
<TD align=RIGHT>
Time - </TD>
<TD><input type="text" size="4" name="etime" maxlength="4"></TD>
</TR>
<TR>
<TD align=RIGHT>
</TD>
<TD>(Write timing in 0000 - 2400 in this format only)</TD>
</TR>
<TR><TD align=CENTER> INFRASTRUCTURE DETAILS
</TD></TR>
<TR></TR>
<TR>
<TD align=RIGHT bgcolor=#00CCFF>
<font color="#CC6600" size=4>Details of service </font></TD>
<TD></TD>
</TR>
<TR>
<TD align=RIGHT>
Circuit Specification - </TD>
<TD><SELECT name="servicetype" size="1" >
<OPTION SELECTED>---Services---</OPTION>
<OPTION id= "s" value= "IPLC"> IPLC </OPTION>
<OPTION id= "s" value= "VPN"> VPN </OPTION>
<OPTION id= "s" value= "ILL"> ILL </OPTION>
<OPTION id= "s" value= "VoIP"> VoIP </OPTION>
<OPTION id= "s" value= "ISDN"> ISDN </OPTION>
<OPTION id= "s" value= "IDC"> IDC </OPTION>
<OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
<OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD align=RIGHT vAlign=TOP>
Feedback Details - </TD>
<TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
</TR>
<TR>
<TD align=RIGHT>Next Visit Scheduled - </TD>
<TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
<img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
</TD>
</TR>
<TR></TR>
<TR>
<TD></TD>
<TD>
<input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
<input type="reset" name="reset" value="RESET" >
</TD>
</TR>
</FONT>
</div>
</TD>
</TR>
</TABLE>
</TD>
<TD vAlign=TOP bgcolor=#FFFFFF>
</TD>
</TR></TABLE>
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
</script>
<script language="javascript">
document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
</script>
<BR><BR>
<jsp:include page="index-end.jsp"/>
</body>
</html>If the reset doesn't work, you have to force iPad into Recovery Mode
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY.
3. Repeat the process if necessary. -
Hi SAP Gurus....
Could you all plz help me to map in SAP..MM..Its very critical need to provide solution to my client ASAP
1. Client procures two types of products from ABC Dubai namely, A and B products.
2. The products under warranty are being tracked using Barcodes.
The barcodes are generated at the client place with the Purchase Order and sent to the Vendor by Post or through E-mail.
3. Barcodes have to be printed in the case of Post, or converted into .PRN file in the case of an E-mail
4. These barcodes are then pasted on the products as required and shipped back to the Client.
5. Barcode used currently is EAN 14, code 128.
6. Client has different Handling Units (HU), like Outer, Inners (smaller carton inside Master carton), and items inside Inner carton. All the three HU has different barcode series. Inners have Master carton number of Pieces have respective Inner carton numbers.
7. At the time of GR, Masters are scanned, and details up to pieces are collected into system automatically.
8. All goods movement happens then with barcodes.
Could you all plz tell me how to create the below details....respective of above requirements....
u2022 Question - -
How to Create Barcodes
Edited by: shrii on May 22, 2009 9:31 AMMap the procurement with inbound delivery so that handling units will be captured and barcodes can be sent to the vendor with the help of data from inbound delivery. For barcode printing, follow: http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope, this will help you.
Regards,
Sudhir Dahake -
Plz help me in escaping the starting character
Actually i'm getting the name from textfeild and storing it in string.but wht i want is whn the user enters the first character i.e., either " or | in the Textfeild i need to trim the string i.e., it should not take those characters if they give them also wht should i do for this .plz help me it is urgent
You could try having a keypress action listener. If the user presses a key that you don't want to show, the action listener can handle the event.
Maybe you are looking for
-
New to Dialog Boxes and I'm stuck
Seems there is no way to format a field in a Dialog Box. How can a field be checked to determine if the correct type of data was entered in it, when the user moves to the next field, before data is committed? I am stuck on how to limit the number of
-
Oracle.jbo.domain.Date not found
Hi I am building a Application in JBuilder 10.3.3 and i am getting exception oracle.jbo.client.remote.RowImpl not found. Can any one tell where we can find the jar file for "oracle.jbo.client.remote.RowImpl this class" Thanks
-
How to change one of the fields in the infoset
Hi, I created a query and infoset using sq01,sq02 transaction i have Cost Center field in the query that is pointing to P0001-KOSTL. when i execute the query by giving the cost center criteria ,query is getting executed on the Local Cost Center .But
-
Hi, I need links / resource which will give me some information and example on how to integrate jsf and cocoon. ( i have searched with google, but not much helpful, got a few articles about integration advantages, but seldom examples). I am using jbo
-
Hello All, I have set up an OS X server that I am trying to get ical to work on the web interface. When a user navigates to http://server.example.net it shows up with the calendar icon. They can click on the icon and the authentication dialog box o