Waiting to download Local files onto smartphone....
Hi. So all I'm trying to do is add music from my pc onto my spotify and be able to listen to on my Galaxy S5. I've done everything right, followed all the how-to's. The only problem now is that when I attempt to download the music to make it available offline on my phone. It just sits there, saying waiting to download... I've tried restarting everything, deleting and adding, all of it. Anybody know whats going on???
Downloading them is done through a web browser. Opening them is done in OpenOffice, LibreOffice, Numbers, Microsoft Excel, or similar products.
(87035)
Similar Messages
-
Adding header to download local file
Hi All!
I am downloading .xls file onto the presentation server with column headings and the values following.Now I want to add a header to the downloaded file above the column headings in BOLD.Is it possible to append header/Title to the downloaded file.Please advise me with example code..
Regards
PraneethHi,
Try using FM CREATE_XLS_HEADER_FROM_DDIC.
or try using FM : 'EXCEL_OLE_STANDARD_DAT'
ex code :
DATA: BEGIN OF i_tab OCCURS 0,
anlage(20) TYPE c,
num(2) TYPE c,
END OF i_tab.
DATA: BEGIN OF i_head OCCURS 0,
field(30) TYPE c,
END OF i_head.
i_tab-anlage = '0070002545'.
i_tab-num = '1'.
APPEND i_tab.
CLEAR i_tab.
i_tab-anlage = '0070002546'.
i_tab-num = '2'.
APPEND i_tab.
CLEAR i_tab.
i_tab-anlage = '0070002547'.
i_tab-num = '3'.
APPEND i_tab.
CLEAR i_tab.
i_tab-anlage = '0070002548'.
i_tab-num = '4'.
APPEND i_tab.
CLEAR i_tab.
i_head-field = 'Installation'.
APPEND i_head.
i_head-field = 'NO'.
APPEND i_head.
CLEAR i_head.
CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = 'C:\Documents and Settings\vepakom\Desktop\test1.xls'
create_pivot = 0
data_sheet_name = 'MY DATA'
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
pivot_field_tab = dlpivot
data_tab = i_tab
fieldnames = i_head
EXCEPTIONS
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_pivot_fields = 6
download_problem = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Sharat
ps : pls reward if helpful -
Downloaded exe file onto Dell PC ends up being corrupt
After several downloads we are giving up (well, almost). First, it takes a long time to download the file. Then, once downloaded it won't run because it gives us the "corrupt" message.
You really really do need to read the Windows 7 FAQ the Boot Camp 3.0 Installation and Setup guide for 10.6 and the Boot Camp 3.0 MacOS 10.6 FAQ a couple of times to really get to know the whole picture.
"Boot Camp" is just a basic set of WINDOWS drivers to run Apple hardware. You install Window first, via BCAssistant to start it, then after it finish's the install and restarts into Windows then you insert the "whatever you made disk" with the Boot Camp drivers on it, it should then give you an installer window, just like on the Mac side, if you want to "Run" it or "Open as a file". (Run it)
The Apple Software Updater updates ALL the Apple files including BootCamp Assistant on the Mac, it updates the Boot Camp Assistant to look for the latest drivers to use when it gives you the option to download the files onto whatever you want to use to download onto.
BTAssistant to partition the drive, then it will boot off the Windows installer, there is no more Mac control, it's ALL Windows now, have Windows format it the way you want, then it will finish by restarting into Windows, then you install the drivers while booted in Windows.
You need a wired mouse AND keyboard just like the instructions said. If you have the earlier Magic Mouse then they suggest you plug it into the keyboard instead of the computer.
If you partitioned like the instructions said, via Boot Camp Assistant, you can install Windows anytime you want, it won't forget it's there. YOU just have to remember where it is.
If you do have problems with the partition then at the bottom of the instructions it tells you how to restore the partition back to normal then you can start over. -
Hi!!!
This is my first post. Thanks to all the people here before all.
I have a big problem trying to download a local file to an internal table. I have lines with more than 8000 positions, and i've tried to use WS_UPLOAD, GUI_UPLOAD and SO_OBJECT_UPLOAD, but all of them show me this messages:
- Unable to satisfy send request: 8001 bytes.
¿Do you know any function module (i think it could be OO) that allows me to load this file?
Thanks for all. Bye!Hi
REPORT ZDOWN_UP_LOAD
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Declare Database Objects
tables:
DOKIL,
TRDIR.
Constants
CONSTANTS:
MC_TRDIR_IDENTIFIER(72) TYPE C VALUE '%&%& RDIR',
MC_REPORT_IDENTIFIER(72) TYPE C VALUE '%&%& REPO',
MC_TEXT_IDENTIFIER(72) TYPE C VALUE '%&%& TEXP',
MC_THEAD_IDENTIFIER(72) TYPE C VALUE '%&%& HEAD',
MC_DOC_IDENTIFIER(72) TYPE C VALUE '%&%& DOKL',
MC_TRDIR_SHORT(4) TYPE C VALUE 'RDIR',
MC_REPORT_SHORT(4) TYPE C VALUE 'REPO',
MC_TEXT_SHORT(4) TYPE C VALUE 'TEXP',
MC_THEAD_SHORT(4) TYPE C VALUE 'HEAD',
MC_DOC_SHORT(4) TYPE C VALUE 'DOKP'.
Declare Module level data structures
DATA: BEGIN OF MTAB_PROGRAM_SOURCE OCCURS 0,
LINE(72) TYPE C,
END OF MTAB_PROGRAM_SOURCE.
DATA: MTAB_PROGRAM_TRDIR LIKE TRDIR OCCURS 0 WITH HEADER LINE.
DATA: MTAB_PROGRAM_TEXTS LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.
DATA: MSTR_THEAD LIKE THEAD.
DATA: BEGIN OF MTAB_PROGRAM_FILE OCCURS 0,
LINE(275) TYPE C,
END OF MTAB_PROGRAM_FILE.
DATA: BEGIN OF MTAB_DIRECTORY OCCURS 0,
NAME LIKE TRDIR-NAME,
DESC(72) TYPE C,
SAVENAME LIKE RLGRAP-FILENAME,
END OF MTAB_DIRECTORY.
DATA: BEGIN OF MTAB_PROGRAM_DOCUMENTATION OCCURS 0,
LINE(255) TYPE C,
END OF MTAB_PROGRAM_DOCUMENTATION.
Selection Screen
*-- Options for upload/download of programs
SELECTION-SCREEN BEGIN OF BLOCK FRM_OPTIONS WITH FRAME TITLE TEXT-UDL.
PARAMETERS:
RB_DOWN RADIOBUTTON GROUP UDL DEFAULT 'X'. " Download reports
SELECTION-SCREEN BEGIN OF BLOCK FRM_TRDIR WITH FRAME TITLE TEXT-DIR.
SELECT-OPTIONS:
S_NAME FOR TRDIR-NAME, " Program Name
S_SUBC FOR TRDIR-SUBC " Program Type
DEFAULT 'F' OPTION EQ SIGN E," Exclude Functions by default
S_CNAM FOR TRDIR-CNAM " Created by
DEFAULT SY-UNAME,
S_UNAM FOR TRDIR-UNAM, " Last Changed by
S_CDAT FOR TRDIR-CDAT, " Creation date
S_UDAT FOR TRDIR-UDAT. " Last update date
SELECTION-SCREEN END OF BLOCK FRM_TRDIR.
*-- Options for uploading programs
PARAMETERS:
RB_UP RADIOBUTTON GROUP UDL. " Upload reports
SELECTION-SCREEN BEGIN OF BLOCK FRM_UPLOAD WITH FRAME TITLE TEXT-UPL.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(29) TEXT-SNG.
PARAMETERS:
RB_FILE RADIOBUTTON GROUP HOW DEFAULT 'X'.
SELECTION-SCREEN COMMENT 33(42) TEXT-FNA.
SELECTION-SCREEN END OF LINE.
PARAMETERS:
RB_LIST RADIOBUTTON GROUP HOW.
SELECTION-SCREEN END OF BLOCK FRM_UPLOAD.
SELECTION-SCREEN END OF BLOCK FRM_OPTIONS.
*-- Options for up/downloading programs
SELECTION-SCREEN BEGIN OF BLOCK FRM_FILEN WITH FRAME TITLE TEXT-FIL.
PARAMETERS:
RB_DOS RADIOBUTTON GROUP FIL DEFAULT 'X', " Save to local
RB_UNIX RADIOBUTTON GROUP FIL, " Save to UNIX
P_PATH LIKE RLGRAP-FILENAME " Path to save files to
DEFAULT 'c:\abap\'.
SELECTION-SCREEN END OF BLOCK FRM_FILEN.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_NAME-LOW.
CALL FUNCTION 'F4_PROGRAM'
EXPORTING
OBJECT = S_NAME-LOW
SUPPRESS_SELECTION = 'X'
IMPORTING
RESULT = S_NAME-LOW
EXCEPTIONS
OTHERS = 1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_NAME-HIGH.
CALL FUNCTION 'F4_PROGRAM'
EXPORTING
OBJECT = S_NAME-HIGH
SUPPRESS_SELECTION = 'X'
IMPORTING
RESULT = S_NAME-HIGH
EXCEPTIONS
OTHERS = 1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_UNAM-LOW.
PERFORM GET_NAME USING 'S_UNAM-LOW'
CHANGING S_UNAM-LOW.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_UNAM-HIGH.
PERFORM GET_NAME USING 'S_UNAM-HIGH'
CHANGING S_UNAM-HIGH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNAM-LOW.
PERFORM GET_NAME USING 'S_CNAM-LOW'
CHANGING S_CNAM-LOW.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNAM-HIGH.
PERFORM GET_NAME USING 'S_CNAM-HIGH'
CHANGING S_CNAM-HIGH.
TOP-OF-PAGE.
IF RB_LIST = 'X'.
FORMAT COLOR COL_HEADING.
NEW-LINE.
WRITE: AT 3 TEXT-H01,
AT 15 TEXT-H03.
FORMAT COLOR OFF.
ENDIF.
AT LINE-SELECTION.
CHECK RB_LIST = 'X'. " only do in list mode
READ LINE SY-CUROW FIELD VALUE MTAB_DIRECTORY-SAVENAME.
*-- Read file into an internal table
PERFORM READ_REPORT_FROM_DISK TABLES MTAB_PROGRAM_FILE
USING MTAB_DIRECTORY-SAVENAME.
*-- Split table into TADIR entry, report lines, and report text
PERFORM SPLIT_INCOMING_FILE TABLES MTAB_PROGRAM_FILE
MTAB_PROGRAM_SOURCE
MTAB_PROGRAM_TEXTS
MTAB_PROGRAM_DOCUMENTATION
CHANGING TRDIR
MSTR_THEAD.
*-- Save all of the data
PERFORM INSERT_NEW_REPORT TABLES MTAB_PROGRAM_SOURCE
MTAB_PROGRAM_TEXTS
MTAB_PROGRAM_DOCUMENTATION
USING TRDIR
MSTR_THEAD.
Start of processing
START-OF-SELECTION.
FORMAT COLOR COL_NORMAL.
IF RB_DOWN = 'X'.
PERFORM DOWNLOAD_REPORTS.
ELSEIF RB_UP = 'X'.
PERFORM UPLOAD_REPORTS.
ENDIF.
END-OF-SELECTION.
IF RB_DOWN = 'X'.
CONCATENATE P_PATH
'directory.txt'
INTO P_PATH.
PERFORM SAVE_TABLE_TO_FILE TABLES MTAB_DIRECTORY
USING P_PATH.
ENDIF.
FORM UPLOAD_REPORTS *
FORM UPLOAD_REPORTS.
*-- Can upload a reports entered in selection criteria or
*-- select from a list. List can be from index.txt in same directory
*-- (created by the download) or by reading the first line of each file
*-- in the directory.
IF RB_FILE = 'X'. " Upload single program from a file
*-- Read file into an internal table
PERFORM READ_REPORT_FROM_DISK TABLES MTAB_PROGRAM_FILE
USING P_PATH.
*-- Split table into TADIR entry, report lines, and report text
PERFORM SPLIT_INCOMING_FILE TABLES MTAB_PROGRAM_FILE
MTAB_PROGRAM_SOURCE
MTAB_PROGRAM_TEXTS
MTAB_PROGRAM_DOCUMENTATION
CHANGING TRDIR
MSTR_THEAD.
*-- Save all of the data
PERFORM INSERT_NEW_REPORT TABLES MTAB_PROGRAM_SOURCE
MTAB_PROGRAM_TEXTS
MTAB_PROGRAM_DOCUMENTATION
USING TRDIR
MSTR_THEAD.
ELSEIF RB_LIST = 'X'. " Show list for user to choose from
*-- get list of report names/descriptions from directory text
CONCATENATE P_PATH
'directory.txt'
INTO P_PATH.
PERFORM READ_REPORT_FROM_DISK TABLES MTAB_DIRECTORY
USING P_PATH.
SORT MTAB_DIRECTORY.
*-- Write out list of report names/descriptions
LOOP AT MTAB_DIRECTORY.
WRITE:
/ MTAB_DIRECTORY-NAME UNDER TEXT-H01,
MTAB_DIRECTORY-DESC UNDER TEXT-H03,
MTAB_DIRECTORY-SAVENAME.
ENDLOOP.
*-- Process user selections for reports to upload.
ENDIF.
ENDFORM. " upload_reports
FORM DOWNLOAD_REPORTS *
From the user selections, get all programs that meet the *
criteria, and save them in ftab_program_directory. *
Also save the report to disk. *
FORM DOWNLOAD_REPORTS.
DATA:
LC_FULL_FILENAME LIKE RLGRAP-FILENAME.
*-- The table is put into an internal table because the program will
*-- abend if multiple transfers to a dataset occur within a SELECT/
*-- ENDSELCT (tested on 3.1H)
SELECT * FROM TRDIR
INTO TABLE MTAB_PROGRAM_TRDIR
WHERE NAME IN S_NAME
AND SUBC IN S_SUBC
AND CNAM IN S_CNAM
AND UNAM IN S_UNAM
AND CDAT IN S_CDAT
AND UDAT IN S_UDAT.
LOOP AT MTAB_PROGRAM_TRDIR.
*-- Clear out text and source code tables
CLEAR:
MTAB_PROGRAM_FILE,
MTAB_PROGRAM_SOURCE,
MTAB_PROGRAM_TEXTS,
MTAB_PROGRAM_DOCUMENTATION.
REFRESH:
MTAB_PROGRAM_FILE,
MTAB_PROGRAM_SOURCE,
MTAB_PROGRAM_TEXTS,
MTAB_PROGRAM_DOCUMENTATION.
*-- Get the report
READ REPORT MTAB_PROGRAM_TRDIR-NAME INTO MTAB_PROGRAM_SOURCE.
*-- Get the text for the report
READ TEXTPOOL MTAB_PROGRAM_TRDIR-NAME INTO MTAB_PROGRAM_TEXTS.
*-- Get the documentation for the report
CLEAR DOKIL.
SELECT * UP TO 1 ROWS FROM DOKIL
WHERE ID = 'RE'
AND OBJECT = MTAB_PROGRAM_TRDIR-NAME
AND LANGU = SY-LANGU
AND TYP = 'E'
ORDER BY VERSION DESCENDING.
ENDSELECT.
*-- Documentation exists for this object
IF SY-SUBRC = 0.
CALL FUNCTION 'DOCU_READ'
EXPORTING
ID = DOKIL-ID
LANGU = DOKIL-LANGU
OBJECT = DOKIL-OBJECT
TYP = DOKIL-TYP
VERSION = DOKIL-VERSION
IMPORTING
HEAD = MSTR_THEAD
TABLES
LINE = MTAB_PROGRAM_DOCUMENTATION
EXCEPTIONS
OTHERS = 1.
ENDIF.
*-- Put the report code and texts into a single file
*-- Put the identifier line in so that the start of the TRDIR line
*-- is marked
CONCATENATE MC_TRDIR_IDENTIFIER
MTAB_PROGRAM_TRDIR-NAME
INTO MTAB_PROGRAM_FILE-LINE.
APPEND MTAB_PROGRAM_FILE.
*-- Add the TRDIR line
MTAB_PROGRAM_FILE-LINE = MTAB_PROGRAM_TRDIR.
APPEND MTAB_PROGRAM_FILE.
*-- Put the identifier line in so that the start of the report code
*-- is marked
CONCATENATE MC_REPORT_IDENTIFIER
MTAB_PROGRAM_TRDIR-NAME
INTO MTAB_PROGRAM_FILE-LINE.
APPEND MTAB_PROGRAM_FILE.
*-- Add the report code
LOOP AT MTAB_PROGRAM_SOURCE.
MTAB_PROGRAM_FILE = MTAB_PROGRAM_SOURCE.
APPEND MTAB_PROGRAM_FILE.
ENDLOOP.
*-- Put the identifier line in so that the start of the report text
*-- is marked
CONCATENATE MC_TEXT_IDENTIFIER
MTAB_PROGRAM_TRDIR-NAME
INTO MTAB_PROGRAM_FILE-LINE.
APPEND MTAB_PROGRAM_FILE.
*-- Add the report texts
LOOP AT MTAB_PROGRAM_TEXTS.
MTAB_PROGRAM_FILE = MTAB_PROGRAM_TEXTS.
APPEND MTAB_PROGRAM_FILE.
ENDLOOP.
*-- Put the identifier line in so that the start of the THEAD record
*-- is marked
CONCATENATE MC_THEAD_IDENTIFIER
MTAB_PROGRAM_TRDIR-NAME
INTO MTAB_PROGRAM_FILE-LINE.
APPEND MTAB_PROGRAM_FILE.
MTAB_PROGRAM_FILE = MSTR_THEAD.
APPEND MTAB_PROGRAM_FILE.
*-- Put the identifier line in so that the start of the report
*-- documentation is marked
CONCATENATE MC_DOC_IDENTIFIER
MTAB_PROGRAM_TRDIR-NAME
INTO MTAB_PROGRAM_FILE-LINE.
APPEND MTAB_PROGRAM_FILE.
*-- Add the report documentation
LOOP AT MTAB_PROGRAM_DOCUMENTATION.
MTAB_PROGRAM_FILE = MTAB_PROGRAM_DOCUMENTATION.
APPEND MTAB_PROGRAM_FILE.
ENDLOOP.
*-- Make the fully pathed filename that report will be saved to
CONCATENATE P_PATH
MTAB_PROGRAM_TRDIR-NAME
'.txt'
INTO LC_FULL_FILENAME.
PERFORM SAVE_TABLE_TO_FILE TABLES MTAB_PROGRAM_FILE
USING LC_FULL_FILENAME.
*-- Write out message with Program Name/Description
READ TABLE MTAB_PROGRAM_TEXTS WITH KEY ID = 'R'.
IF SY-SUBRC = 0.
MTAB_DIRECTORY-NAME = MTAB_PROGRAM_TRDIR-NAME.
MTAB_DIRECTORY-DESC = MTAB_PROGRAM_TEXTS-ENTRY.
MTAB_DIRECTORY-SAVENAME = LC_FULL_FILENAME.
APPEND MTAB_DIRECTORY.
WRITE: / MTAB_PROGRAM_TRDIR-NAME,
MTAB_PROGRAM_TEXTS-ENTRY(65) COLOR COL_HEADING.
ELSE.
MTAB_DIRECTORY-NAME = MTAB_PROGRAM_TRDIR-NAME.
MTAB_DIRECTORY-DESC = 'No description available'.
MTAB_DIRECTORY-SAVENAME = LC_FULL_FILENAME.
APPEND MTAB_DIRECTORY.
WRITE: / MTAB_PROGRAM_TRDIR-NAME.
ENDIF.
ENDLOOP.
ENDFORM. " BUILD_PROGRAM_DIRECTORY
FORM SAVE_TABLE_TO_FILE *
--> FTAB_TABLE *
--> F_FILENAME *
FORM SAVE_TABLE_TO_FILE TABLES FTAB_TABLE
USING F_FILENAME.
IF RB_DOS = 'X'. " Save file to presentation server
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILENAME
FILETYPE = 'ASC'
TABLES
DATA_TAB = FTAB_TABLE
EXCEPTIONS
OTHERS = 4.
IF SY-SUBRC NE 0.
WRITE: / 'Error opening dataset' COLOR COL_NEGATIVE,
F_FILENAME COLOR COL_NEGATIVE.
ENDIF.
ELSE. " Save file to application serve
OPEN DATASET F_FILENAME FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC = 0.
LOOP AT FTAB_TABLE.
TRANSFER FTAB_TABLE TO F_FILENAME.
IF SY-SUBRC NE 0.
WRITE: / 'Error writing record to file;' COLOR COL_NEGATIVE,
F_FILENAME COLOR COL_NEGATIVE.
ENDIF.
ENDLOOP.
ELSE.
WRITE: / 'Error opening dataset' COLOR COL_NEGATIVE,
F_FILENAME COLOR COL_NEGATIVE.
ENDIF.
ENDIF. " End RB_DOS
ENDFORM. " SAVE_PROGRAM
FORM READ_REPORT_FROM_DISK *
Read report into internal table. Can read from local or *
remote computer *
FORM READ_REPORT_FROM_DISK TABLES FTAB_TABLE
USING F_FILENAME.
DATA:
LC_MESSAGE(128) TYPE C.
CLEAR FTAB_TABLE.
REFRESH FTAB_TABLE.
IF RB_DOS = 'X'.
TRANSLATE F_FILENAME USING '/\'. " correct slash for Dos PC file
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILENAME
FILETYPE = 'ASC'
TABLES
DATA_TAB = FTAB_TABLE
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
IF SY-SUBRC >< 0.
WRITE: / 'Error reading file from local PC' COLOR COL_NEGATIVE.
ENDIF.
ELSEIF RB_UNIX = 'X'.
TRANSLATE F_FILENAME USING '\/'. " correct slash for unix
OPEN DATASET F_FILENAME FOR INPUT MESSAGE LC_MESSAGE IN TEXT MODE.
IF SY-SUBRC = 0.
DO.
READ DATASET F_FILENAME INTO FTAB_TABLE.
IF SY-SUBRC = 0.
APPEND FTAB_TABLE.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET F_FILENAME.
ELSE.
WRITE: / 'Error reading file from remote computer'
COLOR COL_NEGATIVE,
/ LC_MESSAGE,
/ F_FILENAME.
SY-SUBRC = 4.
ENDIF.
ENDIF.
ENDFORM. " READ_REPORT_FROM_DISK
FORM SPLIT_INCOMING_FILE *
--> FTAB_PROGRAM_FILE *
--> FTAB_PROGRAM_SOURCE *
--> ` *
--> FTAB_PROGRAM_TEXTS *
FORM SPLIT_INCOMING_FILE TABLES FTAB_PROGRAM_FILE
STRUCTURE MTAB_PROGRAM_FILE
FTAB_PROGRAM_SOURCE
STRUCTURE MTAB_PROGRAM_SOURCE
FTAB_PROGRAM_TEXTS
STRUCTURE MTAB_PROGRAM_TEXTS
FTAB_PROGRAM_DOCUMENTATION
STRUCTURE MTAB_PROGRAM_DOCUMENTATION
CHANGING FSTR_TRDIR
FSTR_THEAD.
DATA:
LC_DATATYPE(4) TYPE C, " Type of data, REPO, TEXP, RDIR
LC_PROGRAM_FILE LIKE MTAB_PROGRAM_FILE.
LOOP AT FTAB_PROGRAM_FILE.
LC_PROGRAM_FILE = FTAB_PROGRAM_FILE.
CASE LC_PROGRAM_FILE(9).
WHEN MC_TRDIR_IDENTIFIER.
LC_DATATYPE = MC_TRDIR_SHORT.
WHEN MC_REPORT_IDENTIFIER.
LC_DATATYPE = MC_REPORT_SHORT.
WHEN MC_TEXT_IDENTIFIER.
LC_DATATYPE = MC_TEXT_SHORT.
WHEN MC_DOC_IDENTIFIER.
LC_DATATYPE = MC_DOC_SHORT.
WHEN MC_THEAD_IDENTIFIER.
LC_DATATYPE = MC_THEAD_SHORT.
WHEN OTHERS. " Actual contents of report, trdir, or text
CASE LC_DATATYPE.
WHEN MC_TRDIR_SHORT.
FSTR_TRDIR = FTAB_PROGRAM_FILE.
WHEN MC_REPORT_SHORT.
FTAB_PROGRAM_SOURCE = FTAB_PROGRAM_FILE.
APPEND FTAB_PROGRAM_SOURCE.
WHEN MC_TEXT_SHORT.
FTAB_PROGRAM_TEXTS = FTAB_PROGRAM_FILE.
APPEND FTAB_PROGRAM_TEXTS.
WHEN MC_THEAD_SHORT.
FSTR_THEAD = FTAB_PROGRAM_FILE.
WHEN MC_DOC_SHORT.
FTAB_PROGRAM_DOCUMENTATION = FTAB_PROGRAM_FILE.
APPEND FTAB_PROGRAM_DOCUMENTATION.
ENDCASE.
ENDCASE.
ENDLOOP.
ENDFORM. " SPLIT_INCOMING_FILE
FORM INSERT_NEW_REPORT *
--> FTAB_PROGRAM_SOURCE *
--> FTAB_PROGRAM_TEXTS *
--> F_TRDIR *
FORM INSERT_NEW_REPORT TABLES FTAB_PROGRAM_SOURCE
STRUCTURE MTAB_PROGRAM_SOURCE
FTAB_PROGRAM_TEXTS
STRUCTURE MTAB_PROGRAM_TEXTS
FTAB_PROGRAM_DOCUMENTATION
STRUCTURE MTAB_PROGRAM_DOCUMENTATION
USING FSTR_TRDIR LIKE TRDIR
FSTR_THEAD LIKE MSTR_THEAD.
DATA:
LC_OBJ_NAME LIKE E071-OBJ_NAME,
LC_LINE2(40) TYPE C,
LC_ANSWER(1) TYPE C.
*-- read trdir to see if the report already exists, if it does, prompt
*-- user to overwrite or abort.
SELECT SINGLE * FROM TRDIR WHERE NAME = FSTR_TRDIR-NAME.
IF SY-SUBRC = 0. " Already exists
CONCATENATE 'want to overwrite report'
FSTR_TRDIR-NAME
INTO LC_LINE2 SEPARATED BY SPACE.
CONCATENATE LC_LINE2
INTO LC_LINE2.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'N'
TEXTLINE1 = 'The selected report already exists, do you'
TEXTLINE2 = LC_LINE2
TITEL = 'Report already exists'
CANCEL_DISPLAY = SPACE
IMPORTING
ANSWER = LC_ANSWER
EXCEPTIONS
OTHERS = 1.
ELSE.
LC_ANSWER = 'J'.
ENDIF.
IF LC_ANSWER = 'J'.
*-- Create the TADIR entry. (TRDIR entry created by INSERT REPORT)
LC_OBJ_NAME = TRDIR-NAME.
CALL FUNCTION 'TR_TADIR_POPUP_ENTRY_E071'
EXPORTING
WI_E071_PGMID = 'R3TR'
WI_E071_OBJECT = 'PROG'
WI_E071_OBJ_NAME = LC_OBJ_NAME
WI_TADIR_DEVCLASS = '$TMP'
EXCEPTIONS
EXIT = 3
OTHERS = 4.
IF SY-SUBRC = 0.
*-- Create Report
INSERT REPORT FSTR_TRDIR-NAME FROM FTAB_PROGRAM_SOURCE.
*-- Create Texts
INSERT TEXTPOOL FSTR_TRDIR-NAME FROM FTAB_PROGRAM_TEXTS
LANGUAGE SY-LANGU.
*-- Save Documentation
CALL FUNCTION 'DOCU_UPDATE'
EXPORTING
HEAD = FSTR_THEAD
STATE = 'A'
TYP = 'E'
VERSION = '1'
TABLES
LINE = FTAB_PROGRAM_DOCUMENTATION
EXCEPTIONS
OTHERS = 1.
ELSE.
WRITE: / 'Error updating the TADIR entry' COLOR COL_NEGATIVE,
'Program' COLOR COL_NEGATIVE INTENSIFIED OFF,
FSTR_TRDIR-NAME, 'was not loaded into SAP.'
COLOR COL_NEGATIVE INTENSIFIED OFF.
ENDIF.
ELSE.
WRITE: / FSTR_TRDIR-NAME COLOR COL_NEGATIVE,
'was not uploaded into SAP. Action cancelled by user'
COLOR COL_NEGATIVE INTENSIFIED OFF.
ENDIF.
ENDFORM. " INSERT_NEW_REPORT
FORM GET_NAME *
--> VALUE(F_FIELD) *
--> F_NAME *
FORM GET_NAME USING VALUE(F_FIELD)
CHANGING F_NAME.
DATA: LTAB_FIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,
LC_PROG LIKE D020S-PROG,
LC_DNUM LIKE D020S-DNUM.
TRANSLATE F_FIELD TO UPPER CASE.
refresh ltab_fields.
LTAB_FIELDS-FIELDNAME = F_FIELD.
append ltab_fields.
LC_PROG = SY-REPID .
LC_DNUM = SY-DYNNR .
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = LC_PROG
DYNUMB = LC_DNUM
TABLES
dynpfields = ltab_fields
EXCEPTIONS
OTHERS = 01.
read table ltab_fields index 1.
IF SY-SUBRC EQ 0.
F_NAME = LTAB_FIELDS-FIELDVALUE.
refresh ltab_fields.
ENDIF.
CALL FUNCTION 'F4_USER'
EXPORTING
OBJECT = F_NAME
IMPORTING
RESULT = F_NAME.
ENDFORM. " GET_NAME
This is the entire program.hope it helops you.
Reward if useful
Regards
divya -
Download local file using Servlet and JSP
Hello,
I will like to use a browser to download file on local system using serlvet and Jsp technology. Does anyone have any idea how to do it?
Any comment will be appreciate.
ThanksWell you can just put the file in a folder that is accessible to the web server. Then have a link point to that file. That will cause the web browser to download the file.
hattan -
I cloud question to sign up then able to download music files onto a second computer
I have music on my Iphone but want to load it onto my playbook, I am not at my home computer, but have made the computer I am now at my second computer, and opened I tunes on this computer. I was hoping my files would come over they have not. If I sign up for icloud on the second computer will this bring my music files to i cloud where upon I can then load them onto my 2nd computer. Then I could download them onto listening devices.
its only 250 music files the majority were loaded onto my iphone originally from my own cds
Thankyou anitorInstalling iTunes and signing into your account has never caused media to magically appear.
Copy the files from the old computer or the backup of the old computer to the new computer. -
How do i download pdf files onto a flash drive from my windows phone?
How do I transfer PDF files from my phone to a flash drive?
As with any other type of file; either plug your phone into your computer so it appears as a portable hard drive and copy them across, or use the Acrobat.com cloud storage tool in Adobe Reader Mobile to upload from your phone, then download to your desktop computer using Adobe Reader.
-
Can't sync local files.
Spotify refuses to sync local files. It will sync every other song but wont even attempt to download local files onto my iphone. They stay grayed out.
IMy iphone and mac are conneced to the same wifi. I have the most recent mac and iphone version of spotify. I just did a clean reinstall of both. I also checked to make sure that I have the most recent IOS and OSX version, and I do. I am using a macbook pro retina 13 inch which I just bought and an iphone 5.Hi, I have had this problem for such a long time and it has been driving me mad. I couldn't sync my local files that were in my playlist to my iPhone or iPad, for example Fifth Harmony's song 'Worth It'. It was in my local files but wouldn't download and sync even if the playlist was avaliable offline. Yet theiir singles 'Sledgehammer' and 'BO$$' were syncing because they're on Spotify.
Also both my Apple products weren't showing under the devices section even if they were under the same WiFi.
However I have fixed my problem; it is due to the firewall in my HP laptop. I went into my laptop's search bar and typed in 'firewall'. I got a promt for allow a programme through firewall. I clicked on the controll panel for this and I had to change my settings for Spotify as it was only ticked in one box and not both like iTunes is. As soon as I clicked on this and saved the settings, I went back into Spotify and straight away my iPhone 5s appeared under my devices and my playlists that were containing my local files started downloading and syncing.
Hope this helps anyone else with this problem!!
:) -
URGENT: Downloading P2 Files into Final Cut 2.1.4
We shot 1080i 24p (I know this doesn't make sense, but it's what my cinematographer is calling it) with a Panasonic AG-HVX200 (don't know if it's the 'E').
She downloaded the files onto my hard drive, but when I try to import them into my Final Cut 2.1.4 via the P2 import, FCP says my file, "has an invalid directory structure. Please choose a folder whose directory structure matches the supported media."
From what I'm told, FCP 2.1.4 has the necessary Codecs? Other folks tell me they have imported P2 files without any problems.
Do I need to download directly from the camera into my system? Could my DP have made a mistake on her download into my hard drive?
Thanks, Ken'Sorry, not true. This is if you are importing the clips from the camera, this has already been done. They have been converted into QTs so the P2 is no longer part of the equation.
Well then, you are importing improperly. You didn't say that they had already been converted into QTs. If this is the case, simply do a FILE>IMPORT and locate the quicktime files. You only use the IMPORT PANASONIC P2 when you are dealing with the cards or the files dumped off the cards.
You just did the wrong thing because you were unfamiliar with the process. No worries.
The problem is that you are working with FCP5 which was made 5 minutes after the camera went on the market.
FCP 5.0.4 was the first version to support Panasonic P2. I used it....but it was rife with issues. FCP 5.1 fixed these. FCP 6 went even further.
I suggest we re-import into your computer using the original media. Downgrading.'
Pardon? Hold on. If you already have the QT files, just import them via FILE>IMPORT>FIles...or Folder if they are all in one folder.
I intend to do 2 imports: one directly into my FCP 5.1.4, and a second into my hard drive as a back up to re-import at a later time when I get FCP 6.
Dude...WATCH THE TUTORIAL. Seriously. The process is: Offload the P2 cards onto hard drives. Import from those hard drive into FCP converting them into QT files that you store on your MEDIA drives. Now either archive the original hard drives with the original P2 card backups, or offload those onto other archive hard drives. No need to import twice.
Shane -
Over the last couple of weeks I have downloaded a number of pdf documents from the web. On each occasion double clicking it (I have Preview as my default) Preview gives an error message "The application has unexpectedly quit". If I launch Adobe Reader (7.0) and use the File open command I get an error message telling me that the file is damaged. Downloading the files onto my company PC and transferring the files using a memory stick produces perfect files. Both Preview and Adobe can open them
Is the download process damaging the pdf document and are there Safari settings that can affect this?
iMac G4 1,25 GHz, 160GB drive. 1MB RAM Mac OS X (10.3.9) Safari 1.3.1
iMac G4 1,25 GHz, 160GB drive. 1MB RAM Mac OS X (10.3.9)That is two things you have said are not working in Safari: downloading pdf (how about other) files and clicking on a link.
I would first empty your cache (Safari > Empty Cache). If that does not work, I would delete Safari's Preference file which is named "com.apple.Safari.plist" and is located in the Preferences folder in the Library folder on Finder's Home Page (~username/Library/Preferences).
You could also see if Safari is giving you problems in a new user account to see if you have a system-wide problem or a user-account one. To create a new account, open System Preferences and click on Accounts. You may have to click on the padlock and give your admin name and password to create an account. Click on the plus sign in the lower right corner to create the new account. I see no reason to give it a password. You can delete this account later using using the minus key, although I have kept my second account to use for testing (the user folder only takes up 32 kb).
I had no problems downloading a pdf from the link you gave using Safari 2.0.3. It sould also work with Safari 1.3.1. -
Downloadable .doc File in Dreamweaver
Hello everyone. I'm way more comfortable in the graphics
world, but I've been doing more web design this past year, trying
to integrate both.
Anyway, I'm banging my head on my desk trying to figure out
how to insert downloadable .doc files onto a page for a job I'm
doing. I'm looking to just have a link that the user can click on
to have the .doc file download to their machine's desktop (or into
Microsoft Word, I guess). Any assistance that anyone could offer
would be greatly appreciated - thanks in advance!You should be able to link directly to the doc file, the same
as linking to
any other file in your site.
The other way would be zip up the doc and then link to the
zip file.
Nadia
Adobe� Community Expert : Dreamweaver
http://www.DreamweaverResources.com
- CSS Templates|Tutorials
http://www.csstemplates.com.au
http://www.adobe.com/devnet/dreamweaver/css.html
CSS Tutorials for Dreamweaver
> Hello everyone. I'm way more comfortable in the graphics
world, but I've
> been
> doing more web design this past year, trying to
integrate both.
>
> Anyway, I'm banging my head on my desk trying to figure
out how to insert
> downloadable .doc files onto a page for a job I'm doing.
I'm looking to
> just
> have a link that the user can click on to have the .doc
file download to
> their
> machine's desktop (or into Microsoft Word, I guess). Any
assistance that
> anyone
> could offer would be greatly appreciated - thanks in
advance!
> -
Local files won't sync/download
I'm making this question because all the guides I've found are horribly outdated. I have some songs I want to be able to listen on my phone, so I moved them to my local files, created a playlist to test it (because I've seen it's the only way to do this, but that's okay) and the playlist does appear on my phone:
http://i1151.photobucket.com/albums/o638/lawraWeltreich/uqxLbE9NxZbRzLqqIq9Tgby7QOK77aJT-32hHMUUqtE_zpsgpoth1rk.png bue when I open the playlist and attempt to sync/download it, it's greyed out and nothing happens: http://i1151.photobucket.com/albums/o638/lawraWeltreich/lPIJUpEORUYcnRaulgyEwtSfJdjrNa3vSN1dmgbzZ-A_zpsp77dk7lf.png I don't know if I'm doing something wrong or the feature to sync local files to my phone is no longer implemented. either way an aswer would be greatly appreciated.
----------------------------------------------------------- EDIT1:
on my computer this is all I see. not sure if I'm doing something wrong or I'm not seeing something http://i1151.photobucket.com/albums/o638/lawraWeltreich/Sin%20tiacutetulo_zpsph8untuo.png AGAIN, an answer, ANY answer, is all I want. If the feature is been removed, or if this is a known issue, or if there's a workaround, it's OKAY. I just want an answer so I can stop investing my time in this. I can always just move the mp3 files to my SD card but I would prefer to be able to use Spotify for this.Okay, so this is how I do it:I have one or more songs in my local files tab in the Spotify Desktop AppI select these songs, then I right click them, and I select "Make a new playlist"I save the playlist, and then I go over to my phone and open the app, to see that playlist I've just created (Your problem here could be that you disabled the Automatic Sync in the Android Settings, therefore your device won't ask the Spotify servers if you had made a new playlist on your desktopI click on the playlist, then I turn the "Available offline" switchNot so short after, the song(s) are on my phone. As far as I know, this is the only way to have your own music from your computer on your phone, you have to download it.EDIT: You might want to wait some time after you turned the switch to on. My phone keeps saying "Awaiting for download" when I turn it on, because some of my songs are not on Spotify and my computer somehow uploads them, and it's weird and I don't know how or why, but it works.
-
Unable to download data in ALV output with local file option
Hi,
I am displaying ouput in ALV grid display.Its showing output fine.When i am trying to down load the data into Excel file from ALV ouput .when i am downloaded the data by using Local file option,its down loading the data but its not downloading all the fields.
Could you plz provide me solution.Thanks!Just Check that one of your parameters is defined in lower case letters.
Earlier it used to give dump on execution but now if you download then it will give ABAP dump.
I have seen this problem many times.
Regards,
Gaurav Sood -
Heading during downloading into local file using GUI_DOWNLOAD fun.module
Hi Guru's
we have a requirement that we want the plant description as a heading (first line of the file) in the local file. iam using "GUI_DOWNLOAD" function module for downloading data for which iam passing the charecter type internal table. before downloading iam passing all the filed headings to that table and then appending the internal table data into it. now iam getting data properly with field headings . but before that heading i want one more description for a plant field which iam using in my selection screen
in the fun.module "GUI_DOWNLAOD"
we have HEADER file but it is of XSTRING type so it is taking only 2 char.
so how to use this . Plz help me.
thanks well in advance.
UR's
GSANAHi,
Please check the below link,
header in 'gui_download'
Also check Manoj kumar's reply in the link,
header information to gui_download
Hope this helps.
Best Regards. -
Download a PDF from an URL to a local file
Hi all,
we are trying to get a pdf file from the internet with FM HTTP_GET, and after that download to a local file with WS_DOWNLOAD.
Our problem is that we do not know wich type of table to use in order to retrieve the RESPONSE_ENTITY_BODY from HTTP_GET.
Sometimes the PDF have 4000 of length sometimes 1200.
Could you please help us?
Regards,
Rubéhi
you can have a look at RSHTTP* programs.thta is ,for cl_http_client demo program try RSHTTP01 and for http_get demo program try RSHTTP20.
hope this helps
regards
Aakash Banga
Maybe you are looking for
-
Messaging server not calling the SpamAssassin
HI all, The current instalation: For SJES Messaging : # ./imsimta version Sun Java(tm) System Messaging Server 6.2 (built Dec 2 2004) libimta.so 6.2 (built 00:34:23, Dec 2 2004) SunOS rcaredev 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Fire-V240 For
-
I recently purchased a MacBook Air (1.8GHz, 80GB HDD) principally for accessing reference software and PDF files in when away from the desktop. Most refence software is available in OS X, with one notable exception; Encarta. I would like to run Encar
-
I use both a Mac and iPad, (also use iPhone but not for these apps) on both Numbers and Pages are installed and they both work on my iPad. But on my Mac OSX 10.9.3, when I come to use either they state latest version needs installing, so I go to A
-
Password Protect Folder with Pics in Photoshop CS4
I want to password protect a folder I have JPEGS in so any one else who may access my computer cannot get into that folder and view what is inside. How do I do it?
-
Missing Adobe Reader and QuickOffice (Nokia 700)
I recently had to do a "full factory reset" on my Nokia 700 but since then I seem to have lost both the Adobe Reader and QuickOffice. Both were working before the reset and I did a full Nokia Suite backup and restore after the reset. In an attempt to