0% found this document useful (0 votes)
10 views2 pages

YLKYC758 - Upload de XML

This document describes a program that uploads XML files. It allows selecting a local file or server file to upload. It checks the file path and uploads the XML file, then displays any messages. For server files it can also run the upload as a background job.

Uploaded by

Mukesh Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

YLKYC758 - Upload de XML

This document describes a program that uploads XML files. It allows selecting a local file or server file to upload. It checks the file path and uploads the XML file, then displays any messages. For server files it can also run the upload as a background job.

Uploaded by

Mukesh Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

*---------------------------------------------------------------------*

* Program
: YLKYC758
*
* Date
: 17.09.2012
*
* Description: Upload XML Files
*
* Author
: Clayton Neves - DMA IT
*
*---------------------------------------------------------------------*
* SANKYO
*
*---------------------------------------------------------------------*
* Request:
*
* DEVK907753 - DMAIT - iXML Pacote de Objetos para PRD
*
*---------------------------------------------------------------------*
REPORT ylkyc758 NO STANDARD PAGE HEADING
MESSAGE-ID znfe.
INCLUDE: yc758top,
yc758f01.
************************************************************************
*
A T S E L E C T I O N - S C R E E N O N V A L U E R E Q.
*
************************************************************************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
* F4 for filename / Filemanager support to locate file in a directory
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name
= v_fieldname
IMPORTING
file_name
= p_path.
************************************************************************
*
S T A R T - O F - S E L E C T I O N
*
************************************************************************
START-OF-SELECTION.
IF rb_loc IS NOT INITIAL. "Local File
MOVE 'L' TO v_mode.
PERFORM check_file_path USING p_path.
PERFORM upload_xml USING p_path v_mode.
PERFORM messages.
*
ELSEIF rb_ser IS NOT INITIAL. "Server File (Windows or Application Server SAP)
MOVE 'S' TO v_mode.
PERFORM check_file_path USING p_path.
PERFORM upload_xml USING p_path v_mode.
PERFORM messages.
ELSEIF rb_lote IS NOT INITIAL. "Run JOB (Files in Application Server SAP)
IF sy-batch <> 'X'.
MESSAGE i000 WITH text-w00.
ENDIF.
MOVE 'S' TO v_mode.
PERFORM batch_load USING p_path.

ENDIF.

You might also like