IF p_dn = 'X'.
PERFORM dowload USING p_srvd p_file p_req 'R'.
PERFORM dowload USING p_srvc p_file p_req 'K'.
ELSEIF p_up = 'X'.
PERFORM upload USING p_srvd p_file p_req p_dreq.
PERFORM upload USING p_srvc p_file p_req p_creq.
ENDIF.
*&---------------------------------------------------------------------*
*& Form dowload
*&---------------------------------------------------------------------*
FORM dowload USING r_srv r_file r_req r_let.
DATA: l_srv LIKE sapb-sappfad,
l_file LIKE sapb-sappfad.
PERFORM getname:
USING r_srv r_req r_let CHANGING l_srv,
USING r_file r_req r_let CHANGING l_file.
ENDFORM. " dowload
*&---------------------------------------------------------------------*
*& Form upload
*&---------------------------------------------------------------------*
FORM upload USING r_srv r_path r_req r_file.
DATA: l_srv LIKE sapb-sappfad,
l_file like sapb-sappfad.
concatenate r_srv '\' r_file into l_srv.
concatenate r_path '\' r_file into l_file.
CONCATENATE r_source '\' r_let r_req+4 '.' r_req(3) INTO r_name.
ENDFORM. " getname
*&---------------------------------------------------------------------*
*& Form change_visible
*&---------------------------------------------------------------------*
FORM change_visible .
LOOP AT SCREEN.
IF screen-group1 CS 'DN'.
IF p_dn = 'X'.
screen-active = 1.
ELSEIF p_up = 'X'.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ELSEIF screen-group1 CS 'UP'.
IF p_dn = 'X' or ( p_up = space and p_dn = space ).
screen-active = 0.
ELSEIF p_up = 'X' .
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM. " change_visible
*&---------------------------------------------------------------------*
*& Form check_oblig
*&---------------------------------------------------------------------*
FORM check_oblig .
check sy-ucomm = 'ONLI'.
IF p_dn = 'X' AND ( p_req IS INITIAL ) .
MESSAGE e002(sy) WITH text-005.
ENDIF.
IF p_up = 'X' .
if p_dreq IS INITIAL.
MESSAGE e002(sy) WITH text-006.
endif.
if p_creq is initial.
MESSAGE e002(sy) WITH text-007.
endif.
ENDIF.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.