Program in which i am downloading p0002-pernr , pernr-ename , p0002-sp
I have written a program in which i am downloading p0002-pernr , pernr-ename , p0002-sprsl in to c:\temp in csv format , i am able to download the file but the program continue running its not stoping its acting like an infinite loop program is given bellow . i am using logical database in this (pnp) . and when the downloading part is removed and given the write command its writting result with out delay . only when downloading i am getting problem I am using function module GUI_DOWNLOAD to download .
*-- Declaration
TABLES: pernr.
INFOTYPES: 0002. "Personal Data
*-- Selection screen
INITIALIZATION.
*-- Processing
DATA: Begin of it_final OCCURS 0,
text(1000) TYPE C,
END OF it_final.
DATA: Begin of it_final1 OCCURS 0,
text(1000) TYPE C,
END OF it_final1.
GET pernr.
PROVIDE pernr sprsl from p0002 BETWEEN pnpbegda AND pnpendda.
CONCATENATE p0002-pernr pernr-ename p0002-sprsl into it_final-text separated by ',' .
write it_final-text.
ENDPROVIDE.
append it_final.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'c:\temp\test.csv'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_final
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.
Look at the BOLD part ...
Declaration
TABLES: pernr.
INFOTYPES: 0002. "Personal Data
Selection screen
INITIALIZATION.
Processing
DATA: Begin of it_final OCCURS 0,
text(1000) TYPE C,
END OF it_final.
DATA: Begin of it_final1 OCCURS 0,
text(1000) TYPE C,
END OF it_final1.
start-of-selection. <--- add this
GET pernr.
PROVIDE pernr sprsl from p0002 BETWEEN pnpbegda AND pnpendda.
CONCATENATE p0002-pernr pernr-ename p0002-sprsl into it_final-text separated by ',' .
write it_final-text.
ENDPROVIDE.
append it_final.
end-of-selection. <--- add this
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'c:\temp\test.csv'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_final
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.
Similar Messages
-
I have downloaded icloud for the pc. Windows 7 on my pc will not let me open the setup. I get an error message: contact the program provider which is apple and they have of no help. Any suggestions?
Start by telling us the whole message, exactly.
-
Problem: There is 1 website which I had downloaded a pdf from in the past, now this download window continues to popup every couple minutes with a window for me to download again. When this download windows opens I have to click "cancel" repeatedly to get it to close.
I use to have this issue about a year ago, but I found the problem with a program and uninstalled it. But I am not finding anything like that this time.If this happens when you click the Home button then check if you haven't included an automatic download page as one of the home pages.<br />
Firefox supports multiple home pages separated by '|' symbols
*https://support.mozilla.org/kb/How+to+set+the+home+page
Try to delete the downloads.sqlite file in the Firefox profile folder.
*http://kb.mozillazine.org/Unable_to_save_or_download_files
You can use this button to go to the Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder
*http://kb.mozillazine.org/Profile_folder_-_Firefox
You can try to reset Firefox if the above didn't fix it.
*https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
If you reset Firefox then a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved to the desktop (Old Firefox Data).
You can recover more data from the old profile (be cautious with doing that).
*https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile -
I did not use my computer yesterday, and now all of a sudden, Firework does not open at all after clicking on its icon or starting as a program. I did not download any upgrades or anything else, and I have Norton 360 version 3. I can open Internet Explorer, but that's not my default browser, so I have no problem with the Internet connection.
What could be the problem, how can I restore my browser without losing my bookmarks, settings, etc?
== Operating system ==
windows XPIf you close Firefox, then start Firefox in Safe Mode, does the problem still occur? For instructions on starting in Safe Mode, see [[Safe Mode]]. Extensions can sometimes be the cause of problems. If the problem does not occur in Safe Mode, then you can disable your extensions one-by-one until you find out which one is causing the problem. See [[Troubleshooting extensions and themes]] Update Firefox, see [[Updating Firefox]]
-
I am trying to download keepass, where do I go to run the program after it's been downloaded?
OK. Double-click on the file which will open it in place if it is a .ZIP file or it will mount on your Desktop if it is a .DMG file. In the case of the former you want to select the unarchived application and drag it to your Applications folder. Double-click on the application to open it. In the case of the latter double-click on the Desktop icon for the mounted image, select the application in the window and drag it to your Applications folder. Then double-click on the application to open it.
-
I have just bought an iPhone 5 and it won't sync to iTunes. It says it needs iTunes 10.7, which I have downloaded and installed. I still get the error message and looking at "about iTunes" it says 10.6.3. What do I do??
Perhaps check to see if you're accidentally running two different versions of iTunes. There's some information on troubleshooting that in the Opening iTunes section of the following document:
Troubleshooting iTunes installation on Mac OS X -
I want to update my IWorks which I have downloaded with another Apple ID in this same computer. What I have to do?
Update it from the original Apple ID or delete and redownload the applications when signed into another one; the second option may require repurchasing them.
(111224) -
HT4914 How can you tell which songs are downloaded from the cloud on an ipad
How can you tell which songs are downloaded on the iPad from the cloud?
I know ipad albums are more like tagging photos rather than putting them in folders. I just have a nagging feeling I missed some pics and I have too many to try to go figure out one by one. I don't look at my photos from the camera roll, only from albums I tagged just because I imported photos from different sources and the dates and order is really messed up. I just want to know that I am viewing all the photos from like this vacation or that event and there's none I missed that are only in the camera roll.
-
I'm using Windows 7 64 bit. I downloaded iTunes for Windows and setup an account. How do I stream a TV show to the TV in my bedroom? I have a Belkin router. My TV has many site Icons, e.g. Netflix, hula etc. from which I can download and watch movies in my bedroom. But the iTunes icon doesn't appear?
I'm using Windows 7 64 bit. I downloaded iTunes for Windows and setup an account. How do I stream a TV show to the TV in my bedroom? I have a Belkin router. My TV has many site Icons, e.g. Netflix, hula etc. from which I can download and watch movies in my bedroom. But the iTunes icon doesn't appear?
-
plz suggest me the website by which i can download videos from youtube in 1 click ... i mean in which there will be a option of download appears same as like, add to, share,
This addon can help to you
* https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/ -
Get URL from which Flash was downloaded into browser
Hello buddies,
Is there any API in ActionScript to identify the URL from
which Flash was downloaded into browser?
Thanksexample (
http://www.flashkit.com/tutorials/Actionscripting/Basic/Easy_to_-Tiran_Da-674/index.php): -
How to trigger an existing background job in ABAP program?which fm?
Hi experts,
how to trigger an existing background job( defined in SM36 ) in ABAP program?which fm?
seems that FM 'JOB_OPEN' / 'JOB_SUBMIT' / 'JOB_CLOSE' can only create a new job.Hi,
now my requirement is that sap has generated one job automatically, and then i will have a job name
'XXX'. and then i want to schedule the job in abap program,. which function module could i use ?
my expected fm is that the system will trigger the job after i give the job name and start condition.
i have tried job_open, but it seems just to create a new job. any advice ? -
How do I see a book which has been downloaded, but does not show in Adobe Reader XI?
How do a find a ePub book in Adobe Reader XI, which has been downloaded and does not show up? janf76607913
Visit:
Adobe Digital Editions
Be well... -
I have a library of nearly 2000 songs and all of which were purchased/downloaded in their entirety. It seems that after one of the iTunes updates… many (not all, but plenty) of those songs were “cut off” after playing about 2/3 through them… I haven’t gone through the entire library to see which are complete and which were cut off, but hoped this is “known problem” and hopefully with a known “fix”… Make sense?
Please advise…
Thx,
JohnnyI have a library of nearly 2000 songs and all of which were purchased/downloaded in their entirety. It seems that after one of the iTunes updates… many (not all, but plenty) of those songs were “cut off” after playing about 2/3 through them… I haven’t gone through the entire library to see which are complete and which were cut off, but hoped this is “known problem” and hopefully with a known “fix”… Make sense?
Please advise…
Thx,
Johnny -
I have a Samsung Chromebook; which do I download -- for Mac or Windows?
I have a Samsung Chromebook; which do I download -- for Mac or Windows?
From what I have read, you can use neither of those option. Google Chrome OS is a completely different animal and you would need to check on the chrome website for apps that are available for use with it.
Maybe you are looking for
-
How to install in linux Enterprise Edition 6.0
How to install in linux Enterprise Edition 6.0
-
Top right screen panel blank. Audio no video.
Have been trying to cure this problem which started in earlier version..Have done clean reload of 9.0.2 hoping it would fix video problem. When installing or re-installing imovie, have removed App, all Imovie referenced folders, and cleaned entries i
-
Handle special characters in org name
Hi, I need to do a org recon from my Directory server. Some of the org names have the '/' character and OIM says it can't create the org because of the special character. Could someone please tell me how do I handle this. Thanks, Supreetha
-
Stop and restart screen sharing
When I call stop() on the ScreenSharePublisher it seems like it's not stopped in the right way or something. If I try to start it again I get this trace: ERROR:The Connection wasn't closed properly by abrupt killing of sharing instance. You need to c
-
Print pmt advice sheet one by one for giving document number ranges
Hi experts, i developed payment advice program (used as scripts),just enter only one document number and it will print payment advice sheet for that document number only.Now my clnt requirement is they want to enter document numbers in the ranges (EX