SAPGUI_PROGRESS_INDICATOR what is use of this fun module when sending data
dear ,
what is use of
SAPGUI_PROGRESS_INDICATOR fun module when sending data to FTP SERVER . 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.
Similar Messages
-
Use of this functional module HR_EMPLOYEE_ENQUEUE
what is use of this function module HR_EMPLOYEE_ENQUEUE.
thanks in advanced.before doing the changes in EMP records ,first u have to Lock the PERNR then only SAP will allow u do the changes.
ENQUEUE is nothing but a lock.
Regards
Prabhu -
What is use of PD sub module and integration swithces in HR ?
Dear SAP-HR Experts .
(a) What are the integration swithces in HR .
like Integeration with in Sub modules of HR.
(b) what is use of PD sub module ?
Some t-codes of PD module , infotypes or Tables .
Plz it is urgent .
Regards : rajneeshcheck
V_T77SO there u can find
i will let u know -
hi,
can anyone explain the use of this function module, i coudn't find any documentation .
This function module prints the data selected in selection screen.. but i want a breif explanation y we use this and wat for is this....
FM_SELECTION_CRITERIA_PRINTHi,
1. Suppose the requirement is to know the parameters/select-options selected on the selection screen, on the list output (report).
Because once we are on the report output , we wouldnt know the selection parameters made. The only way is to go back & check. Instead of going back we can use this FM to know even when we are on the o/p.
2. Also to take a print of both the report output& selection parameters.
Reward if useful.
Thanks
SMS -
How to remove a text in browser: Some plug ins used by this page are out of date
How to remove a text in browser: Some plug ins used by this page are out of date. It occur in every page when I surfing. I am aware that is a threat but when I tried to install an update of flash the userinit.dll file from windows registry had gone and I had to reset everything.
a error during the flash update might be itself an indication of malware active on the pc. the browser is your door to the web - therefore it's very important to keep it and all plugins up to date in order to keep your pc & the integrity of your personal data safe.
[https://www.mozilla.org/plugincheck/] -
Possible to block when browser says some plugin used by this page are out of date?
Possible to block when browser says some plugin used by this page are out of date? I want to block the message.
Hi I upgraded to latest version of Snow Leapard 10.6.8 from 10.5.6 and I was able to download latest flash. A screen told me to upgrade and it point me to the website. Ty
-
What has happened to the rotating disk when sending e-mails in 6.2?
What has happened to the rotating disk when sending e-mails in 6.2?
Fast user switching is on... I use the Name reference but I've tried switching to icon with the same result. If the a account I'm switching to is not logged in I get a blank Blue screen for about 2 seconds then the desktop of the account. If the account is already logged in then from the login window (all accounts have passwords) it just switches directly to the desktop.
I have spaces turned on on my main account however none of the other accounts do, the same thing happens regardless of which account you are switching from or to.
If you hadn't said it was working for you I would have believe they just pulled it from Leopard. -
HOw to create a Batch file for java application and whats the use of this ?
HI,
How to create a Batch file for java application ?
And whats the use of creating batch file ?
Thanks in advanceFirst of all, you're OT.
Second, you can find this everywhere in the net.
If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
Otherwise use:
javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
Don't specify the .class extension.
Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
Finally add dukes and give 'hem away.
Bye. -
How to print text rertrived by using the READ_TEXT fun module in smartform
Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
I have coded all things in the program lines and in that i am retriveing the long texts.
I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text module.
its urgent. Points will be rewarded for any type of clue. whether it will work or not.loop the table into which u have retrieved the text .
in the form interface of the smartform ... in importing parameter give the that table name .
and in smartform whereever u want to print there insert the data into work area and pass to fields for dispaly .
decalre ur work area in global defintions
thnaks . -
What's using all this storage?
When I look at the summary page in iTunes for my iPad Air, I see a bar near the bottom of the page broken up into various colored segments: audio, video, apps, etc. There is also one called "other". I can figure out what I have in the other areas but how do I find out what's using the most space in "other"? I'm getting close to running out of free space and I'd like to know who the worst offenders are so I can make an intelligent decision about whether they belong on the iPad or not.
Thanks!Texas Mac Man post (2/10/2012) on "Other" data on iOS device - https://discussions.apple.com/message/19861751#19861751
https://discussions.apple.com/message/20053939#20053939 - "If it is much more than a gb or so, then it indicates corrupt files. A restore should resolve." "If restoring using your backup didn't work, you'll have to save as much of your data as you can (import your photos to your computer, sync your contacts and other data with iCloud, email things like Notes and Voice Memos to yourself, sync with iTunes to transfer all your purchases, etc.) and then restore it as new without using your backup." - https://discussions.apple.com/message/20054011#20054011 -
Using RFC Function Module to send data to NON SAP Application
Hi friends,
Please guide me how can I send data from SAP -> Dotnet Applcation using Dotnet Connector through RFC function module from SAP side. In my scenerio, I Run Z transaction to executte RFC function module which create some data to pass to dotnet connector.
Regards,
Rajesh KumarHi,
You can make use of Dotnet connector to read the content of SAP RFC .. (eaiest of all)
The RFC can be executed using connector , and can read the data simultaneously.. u need to code in dotnet for this..
else create a webservice and read it from dot net ..
Regards
Renu Gusain
Edited by: Renu Gusain on Jan 25, 2010 12:55 PM -
Is this URL Ok to Send Data using Get
hello guys,
I want to send parameter from MIDlet to Servlet
I m using Tomcat as my web server
If my External IP address is > 225.221.112.10
then how can i wrote in place of "localhost"
i m posting wht i did but it doesnt work, i still get NULL value in Servlet.
Here is my code
public void callServlet(String name){
String url =
"*http://225.221.112.10:8080/ServletClass/MyServlet?Hello="+name;*
**HttpConnection cn = null;**
try{
cn = (HttpConnection) Connector.open(url);
cn.setRequestMethod(HttpConnection.GET);
cn.openDataInputStream();
if(cn.getResponseCode() == cn.HTTP_OK){
// this print well, when i run MIDlet
System.out.println("Connection OK ! ");
please Help me out, its the base for my Project ,
Thank youHi nNiTIn,
I was wondering what the type of your project was, a C# project, or asp.net project?
If your project is asp.net, I would recommend you to turn to the asp.net forum, and the links below might be useful to you:
# how to send whatsApp message from asp.net??
http://forums.asp.net/t/1919622.aspx?how+to+send+whatsApp+message+from+asp+net+
# ASP.Net Forum
http://forums.asp.net
It would be helpful if you could share us more information about your issue.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Using Convertion agent adapter module (mail sender)
All,
In my scenario pdf file is being sent as mail attachment. The pdf file content should be mapped to rfc.
I was able to implement similar scenario in which attached file is xml and not pdf (using adapter modules).
I was able to use the Conversion agent module over file sender (and convert pdf to xml).
Yet, I'm not able to the combination of both.
Can you please provide useful links & advice?
Regards,
UriPrateek,
Thank for your replay.
I'm using the following modules (¶ms):
MODULE:localejbs/AF_Modules/PayloadSwapBean:
PARAMETER NAME;PARAMETER VALUE
swap.keyName;Content-Disposition
swap.keyName;Content-Description
swap.keyValue;attachment;filename="Z1HR_ADOBE_CREATE_INCIDENCE_AD.pdf"
swap.keyValueZ1HR_ADOBE_CREATE_INCIDENCE_AD
MODULE:localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean:
PARAMETER NAME;PARAMETER VALUE
TransformationName;Z1HR_ADOBE_CREATE_INCIDENCE_AD
I tried using them in variety of sequences, yet none of them worked.
Regards,
Uri -
Want to use sequence object of oracle when loading data in sql loader
Hi,
I want to use sequence when loading data in sqll loader, but the problem is i could not use sequence object of oracle to load the data by sql loader, i can use sequence of sql loader.
I want to use sequence object because in later entries this sequence object will be used.If i use sequence of sql loader how can i use oracle sequence object
Is there any other optionI have a simillar problem, I also want to use a sequence when loading data by the SQL Loader.
My control file is:
load data
infile '0testdata.txt'
into table robertl.tbltest
fields terminated by X'09'
trailing nullcols
(redbrojunos,
broj,
dolazak,
odlazak nullif odlazak=blanks,
komentar nullif komentar=blanks)
And the datafile is:
robertl.brojilo.nextval 1368 17.06.2003 08:02:46 17.06.2003 16:17:18
robertl.brojilo.nextval 2363 17.06.2003 08:18:18 17.06.2003 16:21:52
robertl.brojilo.nextval 7821 17.06.2003 08:29:22 17.06.2003 16:21:59
robertl.brojilo.nextval 0408 17.06.2003 11:20:27 17.06.2003 18:33:00 ispit
robertl.brojilo.nextval 1111 17.06.2003 11:30:58 17.06.2003 16:09:34 Odlazak na ispit
robertl.brojilo.nextval 6129 17.06.2003 14:02:42 17.06.2003 16:23:23 seminar
But all records were rejected by the Loader, for every record I get the error:
Record 1: Rejected - Error on table ROBERTL.TBLTEST, column REDBROJUNOS.
ORA-01722: invalid number -
Selection of Folder/File name using the same Fun.Module
Please let me know if there is a function module which can fetch folder name/File name from the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requirment is like I have to select either folder name or the file name depending on user selection.
Note: Please let me know if there is a single Function module which can get folder name or the file name based on the user selection.i.e, if the user want to select a folder he can select or he can select files in the folder for processingHi sridhar
try this:
PARAMETER : TXT_FILE(100).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR TXT_FILE.
PERFORM GETFILE.
start-of-selection.
PERFORM GETDATA.
FORM GETDATA.
DATA : FILENAME TYPE STRING.
FILENAME = TXT_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = IT_UPLOAD
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
FORM GETFILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = '.'
MASK = ' '
MODE = ' '
TITLE = ' '
IMPORTING
FILENAME = TXT_FILE
RC =
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
<b>This is a part of my BDC program its working for me u try n reply if it works for u.</b>
regards
vijay
Maybe you are looking for
-
What's with my bill, i got all these random changing amounts that shouldnt be there
i look at my phone bill, and it says for monthly access charge which is supposed to be the monthly charge, always changing (BY OVER A HUNDRED DOLLARS) back and forth, and last month's bill, i got charged for a charge that had (month in advanced) put
-
I have mapped the fields on the selection-screen to the BDC on transaction
I have mapped the fields on the selection-screen to the BDC on transaction F110. When I am selecting a particular any value in select-option on the selection screen, it is giving some default value and the value given by me,for example: Payment meth
-
Verizon Lumia Icon Denim update teased for possible February release
Fingers crossed Verizon Lumia Icon owners are a passionate crowd and seemingly asking on a daily basis when the promised Lumia Denim update for their phones will be delivered. In late 2014 it was promised for "early 2015" but now we're into 2015 folk
-
Iphoto library edit with Aperture
can I edit my iphoto library in Aperture 3? If I am using Aperture and viewing at my referenced iPhoto library and delete a photo from the iPhoto library, will that photo be deleted, or in the trash, when I open up iPhoto?
-
I need to fix my video application
This app used to work fine. Now my rental videos stop after about 15 min. App is now a black screen. Tried to reset device. This will now have cost me 3 rentals as well.