Thursday, August 12, 2010

FM for Downloading data to apps -windows folder

soon after close dataset, embed this code.. pass your file path..thats it

*************
lv_additional_parameters = lv_filename.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZCHMODR'
additional_parameters = lv_additional_parameters. "'/sap_report/ED2/report/finance/productcosting/TEst_UNIX.txt'
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

***************




TRINT_SPLIT_FILE_AND_PATH


SUBST_GET_FILE_LIST file path validation

No comments:

Post a Comment