메뉴 건너뛰기

SAP 한국 커뮤니티

Report Z15_047

sapjoy 2007.12.06 01:27 조회 수 : 2798

REPORT  Z15_047.


DATA: BEGIN OF record OCCURS 0, 


                          pernr(008),           "사원


                          begda(010),           "시작일


                          endda(010),           "종료일


~~


END OF record.


DATA gw_bdcparams    LIKE ctu_params.


DATA:messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.


~ 중략~~


PARAMETERS : fname LIKE rlgrap-filename,


                                                    ftype LIKE rlgrap-filetype NO-DISPLAY.


~ 중략~~


AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.


CALL FUNCTION 'WS_FILENAME_GET'.  "파일 선택 함수


 


CALL FUNCTION 'WS_UPLOAD'   "파일의 내용을 인터널 테이블에 저장하는 함수


             EXPORTING


                          filename = fname


                          filetype = ftype


             TABLES


                          data_tab = record.


 


~ 중략~~


PERFORM bdc_dynpro      USING 'SAPMP50A' '2000'.


PERFORM bdc_field       USING 'BDC_CURSOR'


~ 중략~~


 


CLEAR: gw_bdcparams.


 


             gw_bdcparams-dismode  = 'N'.   " 처리모드


             gw_bdcparams-updmode  = 'L'.   " 갱신세션


             gw_bdcparams-cattmode = 'A'.   " CATT모드


             gw_bdcparams-defsize  = 'X'.   " 기본화면


             gw_bdcparams-racommit = 'X'.   " COMMAND 이후 지속


             gw_bdcparams-nobinpt  = ' '.   " BI 세션


 


             CALL TRANSACTION 'PA40' USING bdcdata


                                                                                                        OPTIONS FROM gw_bdcparams


                                                                                                        MESSAGES INTO messtab.

번호 제목 글쓴이 날짜 조회 수
231 REPORT z18_028 sapjoy 2007.04.10 4281
230 REPORT Z03_021 [5] sapjoy 2007.05.15 2737
229 REPORT z18_002_d sapjoy 2008.04.16 2088
228 REPORT Z18_000 [1] sapjoy 2008.04.16 2602
227 REPORT Z17_019 [1] sapjoy 2007.02.15 2748
226 REPORT Z17_018. sapjoy 2008.04.15 1860
225 REPORT Z17_014. [1] sapjoy 2007.02.13 2504
» Report Z15_047 [3] sapjoy 2007.12.06 2798
223 REPORT Z15_044 [1] sapjoy 2008.04.15 2474
222 REPORT Z15_039 sapjoy 2007.02.06 2315
221 REPORT Z15_037. sapjoy 2007.02.06 2472
220 REPORT Z15_033 sapjoy 2007.02.06 2987
219 REPORT z15_032 sapjoy 2007.02.06 2578
218 REPORT Z15_028 sapjoy 2007.02.01 2509
217 REPORT Z15_026 [1] sapjoy 2007.09.13 2205
216 REPORT Z15_026 sapjoy 2007.02.01 2758
215 REPORT Z15_025 sapjoy 2008.04.15 1975
214 REPORT z15_023 sapjoy 2007.01.31 2484
213 REPORT Z15_022. sapjoy 2007.01.30 2495
212 REPORT Z15_020 sapjoy 2007.01.30 2524