1、SM69创建命令

2、解密

DATA: lv_para = '--passphrase (key) -o /oracle/sfdata/sfdata.csv -d /oracle/sfdata/sfdata.csv.pgp'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname           = 'ZPGP_DECRYPT'
      additional_parameters = lv_para.

3、加密

DATA: lv_para = '-o  /oracle/sfdata/sfdata.csv.pgp'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname           = 'ZPGP_ENCRYPT'
      additional_parameters = lv_para.

4、删除文件

DATA: lv_para = '/oracle/sfdata/sfdata.csv'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname           = 'ZPGP_DELETE'
      additional_parameters = lv_para.

 

posted on 2018-05-31 12:07  小伙儿  阅读(1263)  评论(0编辑  收藏  举报