Function like GUI_UPLOAD/GUI_DOWNLOAD for background
Is there a function or functions that work the same way as GUI_UPLOAD and GUI_DOWNLOAD but can be run both in the foreground and background?
GUI_UPLOAD and GUI_DOWNLOAD can only work in the foreground. The reason for this is that they use some code which reside on the frontend PC. A background process knows nothing of the PC connected thru SAPgui. In order to "download" data to files, you must write the files to the application layer using OPEN DATASET, TRANSFER DATASET, CLOSE DATASET.
Regards,
Rich Heilman
Similar Messages
-
GUI_Upload & GUI_Download for excel files
Hi experts,
I want to upload excel file into sap. i am trying with GUI_Upload function module. when i see the data it is filled with # and other special char. When i save the excel file as .txt file and then read the txt file. Now i am getting correct data. Is it possible to read Excel data using GUI_UPLOAD directly without changing .xls to .txt.
Also, how to change data in second or third tab of excel file using GUI_Download.
-RKHi
Actually ur file selection s wrong.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FNAME'
STATIC = 'X'
MASK = '*.txt'
CHANGING
FILE_NAME = P_FNAME
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
Upload:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FNAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = IT_UEXBANK01
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. -
GUI_DOWNLOAD does not work for background printing
Hi,
Need some help urgently.
Function moduel GUI_DOWNLOAD does not work for background printing. I want to know how this issue can be handled or we have to use some other function module.
We are using this in a report and i get the error dump OBJECTS_OBJREF_NOT_ASSIGNED when we run this report in background.
Kindly suggest.
Best Regards,
Abbasiyou can not use gui_download in background.
Try searching first, this thing has been posted a thousand times already -
Function module for background jobs email
hi abaper's
i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
thnks n regards
pardeep kumarhi dear
open this site
https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
<removed by moderator>
Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM -
How do I watch my iTunes movies, tv shows on my mac without having to download them all to my HD? I really want my Mac to function like my Apple TV since I have just moved and don't have my TV for another few weeks. Since I purchased my three Apple TV. I have had no need to download any of my movies to my Mac. Which has been great. However, I remember that I used to now have to do this... or did I? I am just frustrated because I want to stream all this stuff vice haveing to waiting for it all to download fill up my Mac's HD and then just delete. Someone help please?
Play the movie in iTunes to stream it.
Click the cloud icon to download it. -
I am confused as to how to connect my external start botton. I would like it to function like a start button on a front panel of a VI. I would like to use the +5V on pin 14 but I really don't know where to go from here. Any guidence for a novice would be most appreciated.
phod,
This is the LabVIEW Real-Time forum, so I suggest that in the future that you post this type of question to the Multifunction DAQ forum.
For the simplest solution you will have to connect your button to a digital line of your board, consult the sc-2345 user manual for a diagram of where these lines are exposed. You will have to connect your start button in series with a line that is high, such as your 5V pin or another digital line. Then connect this to a digital line that will be your start trigger.
Your program can poll the digital line that is connected to your button in a while loop and when it goes high, it lets the rest of the program execute. For the programming, I suggest you take a look at the shipping examples that come with LabVIEW. If yo
u have LabVIEW 7.0 go to Help>>Find Examples. Open Hardware Input Output>>Traditional DAQ>>Digital Input and Output>>E Series for some examples of digital I/O programming with E-series boards.
Hope that gets you started.
Gerardo -
Does oracle have similar functionality like MsSql "for xml path('')"
Does oracle have similar build in functionality like MsSql “for xml path(‘’)” , or in another word, it can enforce the result set(multiple rows) into ONE line such kind of presentation way.
Thanks in advance. Any help would be greatly appreciated.Here I would like specify my question mnore clearly,
CREATE TABLE t(
line NUMBER(3),
site VARCHAR2(4),
phase VARCHAR2(5),
test VARCHAR2(25));
INSERT INTO t VALUES (1, '0100', '*','1111111111111111111111111' );
INSERT INTO t VALUES (2, '0100', '=','2222222222222222222222222' );
INSERT INTO t VALUES (3, '0100', '=','3333333333333333333333333' );
INSERT INTO t VALUES (4, '0100', '*','4444444444444444444444444' );
INSERT INTO t VALUES (5, '0100', '=','5555555555555555555555555' );
INSERT INTO t VALUES (6, '0200', '*','6666666666666666666666666' );
Here I want to retrieve the 'line' column information in ONE line way
select line from t I want the result is like '1,2,3,4,5,6'
Any generous help would be greatly appreciated!!! -
Is there a System Menu for special Functions, like WIPE CACHE?
On my DX, there was a method of pressing and holding the Menu button & Power up button to get to special "Systems" functions like WIPE CACHE & FACTORY RESET. Does such a procedure exist for the Razr ? I know about SAFE MODE and was able to see that work. (Although my finger hurt having to press the up/down Volume buttons for so ling. )
While I have done this quite a few times (and this has made my phone a bit more responsive when it gets sluggish) you should be careful and watch what you are doing. If you select the wrong menu option you may end up having to contact Verizon for support.
Wiping the cache partition
Power the phone off
Press and hold the volume down, volume up and power button until the recovery screen appears.
Use the volume down button to select "Recovery" and then press the volume up to confirm the selection.
The phone will do a little reboot thing, display the dual core logo thing and then an Android next to a triangle with a yellow exclamation point will appear. At this point press the volume up and volume down buttons at the same time.
If you did everything correctly you are now at the Android System Recovery Screen. To clear the cache press the volume down button until you have selected "wipe cache partition". Press the power button to confirm the selection and it will wipe the cache partition.
Once the cache is cleared press the volume up button to select "Reboot System Now" and press the power button to confirm the selection. If the "Reboot System Now" is already selected then just press the power button to confirm the selection and the phone will reboot. -
I have photos in a DVD. In order to visualize them in iPhoto, must I necessarily import them? Can't I see the pictures from the media without importing? If not, is there any application with this functionality? I need an app that allows me to navigate through the photos without selecting all of them. I realy dont't like pre-visualization for photos...
In order to visualize them in iPhoto, must I necessarily import them?
iPhoto is a Database. Before it can work with any data it must be imported to the database, so yes it is necessry to import them.
Can't I see the pictures from the media without importing?
See above.
If not, is there any application with this functionality?
Hundreds. Any image viewer will do the job. On your Mac the Finder has QuickLook and there is the Preview app as well. Online you can download any of these:
http://www.macupdate.com/find/mac/image%20viewer -
If any function like greatest or least for addition,subtraction and multi?
if any function like greatest or least for addition,subtraction and multi?
there are two columns 'a' and 'b'...i have to add the values in column wise
a b add
10 30 -->40
20 40 -->60
IS there any function?Hi,
794244 wrote:
if any function like greatest or least for addition,subtraction and multi?
there are two columns 'a' and 'b'...i have to add the values in column wise
a b add
10 30 -->40
20 40 -->60
IS there any function?Do you mean something like
FUNCTION_X (a, b, c, d, ...)that would return the sum of all those numbers?
No, not that I know of. If there were, it would be harder to use than
a + b + c + d + ...The first is a comma-delimited list of columns, with a function name and parentheses.
The second is a +-sign delimited list, with nothing else needed. -
Searching for Calculation function like "@TONUMBER()" (Business Rules)
Hello,
I am searching for a calculation function like "@TO_NUMBER()" or a workaround.
My current problem is as follows:
@CONCATENATE("AAA_",(@SUBSTRING("BBB_2010",4) - 1) doesnt work --> SUBSTRING function returns "2010" (as STRING value, but then I cannot substract 1).
Besides I am missing another function like @TO_STRING(), too, because @CONCATENATE("AAA_",2010) doesnt work - @CONCATENATE expects STRING and not NUMBER.
Can anybody help?
Thanks & kind regards
AndréHi Krish,
thanks, but I would like to avoid using cdfs...
I have another idea, but it doesnt work, too (I opened another thread):
calculating with temporary variables doesnt work - does anybody knows the reason (and have a workaround for me)?
Herewith my code:
VAR varLoopAmount = 15;
VAR varShiftValue = 1;
LOOP(varLoopAmount)
"Schadenquote BOZ" = "Schadenquote BOZ" + @SHIFT(&GCS_SchwaRue_Historie,varShiftValue,@ICHILDREN(&GCS_SchwaRue_Historie));
varShiftValue = varShiftValue + 1;
ENDLOOP;
error message: Detail:(1012004): Invalid member name [varShiftValue]
Thanks for help
André
Edited by: user10660408 on 04.06.2010 12:25 -
Control_flush_error with GUI_DOWNLOAD in Background mode
Hi Friends
When I have executed the FM: GUI_DOWNLOAD in Background mode,
I am getting the error: Control_flush_error .
Can anyone please let me know Is we can use the FM: GUI_DOWNLOAD & GUI_UPLOAD in Background mode?
If not can anyone please provide me the relevant SAP(OSS) Note.
Points are assured for useful answers.
Thanks
Regards,
SreeHi,
No you can't do that, the GUI_DOWNLOAD method of the class CL_GUI_FRONTEND_SERVICES, and the function module GUI_DOWNLOAD are dependent on the gui. You can not use these in the background. You must download to the application server, using the dataset statements.
OPEN DATASET
TRANSFER
CLOSE DATASET
Regards
Kiran Sure -
To run GUI_DOWNLOAD in Background
hi,
i lokesh, i am trying to run GUI_DOWNLOAD in background, i am not able to get file in legacy. bcs the reason is in Background that is not unable to find File Type what we are given in file path, so is there any solution for this. if any body knows pls let me know.While executing programs in background, file handling will be done with application server.
Hence use, OPEN DATASET for handling the same.
Eg:
data: l_file like rlgrap-filename value '/sap/usr/test.dat'.
open dataset l_file for output in text mode encoding default.
if sy-subrc ne 0.
" Error Mesg Unable to open file
else.
loop at itab.
transfer itab to l_file.
endloop.
close dataset l_file.
endif.
Hope this helps you.
Kind Regards
Eswar -
GUI_Download for XML file ?
Hi Experts,
I have xml data in an internal table say int_xml_data.
While i m downloading this data to presenatation server using gui_download m getting an error:
"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/Vendor File.xml'. Line 1, Position 1
3C3F786D6C2076657273696F6E3D22312E30223F3E3C57535F56454E444F525F444154413E3C57535F56454E444F525F444154413E3C4C49464E52204461"
I have used the function like this:-
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Vendor File.xml'
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = int_xml_data
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
What is the mistake ???
How can the xml data be downloaded to presentation seerver? ?
Function works fine for .txt data but not for xml ???@ Sandeep:
I did this only.
Firstly I converted data into xml using SAP_CONVERT_TO_XML_FORMAT
the code is:
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ':'
I_LINE_HEADER =
I_FILENAME = w_path
I_APPL_KEEP = ' '
I_XML_DOC_NAME = <w_xml_file>
IMPORTING
PE_BIN_FILESIZE =
TABLES
I_TAB_SAP_DATA = int_final_vendor
CHANGING
I_TAB_CONVERTED_DATA = int_xml_data
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
After this I am downloading the data using GUI_Download
Code is
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = w_file
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = int_xml_data
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
What is the mistake ???? -
Logic like Pivote Table for Report
hi,
I have followin fields in my internal table
Location Tranfer Structure Date Size
INDIA /BIC/TS3 03.07.2005 130
NW /BIC/TS3 03.07.2005 30
NW /BIC/TS2 02.07.2005 20
NW /BIC/TS1 01.07.2005 110
UK /BIC/TS3 03.07.2005 20
UK /BIC/TS2 02.07.2005 20
UK /BIC/TS1 01.07.2005 10
And i want to print like
Location T.S 01.07.2005 02.07.2005 03.07.2005
INDIA /BIC/TS3 130
NW /BIC/TS1 110
/BIC/TS2 20
/BIC/TS3 30
UK /BIC/TS1 10
/BIC/TS2 20
/BIC/TS3 20
Can any 1 help me out for this ?
Also How to how to export data into Excel??
Thanks
coolyou need to use control break statements
at new <location>
write location
endif .
write transfer, structute date size
for excel download use gui_download function.
search the forum for sample coding.
Regards
Raja
Maybe you are looking for
-
Scenario File ===> XI ===> R/3 ( IDOC) ASynchrnous. In the Sender File we have more than 2000 Employee Records/rows and this file is Comma Delimited, this is aFixed file format.. We are going to send this file every Monday. This File resides in
-
Why are videos not playing in Adobe Captivate 6?
We are having issues with videos (F4v or .mp4) playing in Captivate 6 produced projects? We've set them as progressive downloads like we did in CP5 or 5.5 that still work corectly, but now they do not. Has anyone else had this issue? It is the bigges
-
Where do you guys place your Mac in your live rigs?
I've been trying to do live gigs with a single 88 key controller (a Yamaha Motif 8 or a Motif ES8 as I've got both), with my MBP on the 2ne tier of my keyboard stand (using a shelf of all things). Most drops nicely down onto the right side of the Mot
-
How to create Product, Software Component..after the XI Installation
Hi Experts, SAP XI was installed completely. After this, I would like to test some sample File File scenario. But I am not sure, how to create the Product, Software Component etc. I am able to login and run the SXMB_IFR to get the XI tools. Can som
-
Can downloaded apps be saved on icloud?
Hi all, Im new to apple and before I start downloading a bunch of paid apps, am wondering if they can be saved on apple icloud? While I am using an Iphone now, I may be getting an Ipaad and am wondering if one downloaded app will work on both devices