최초 작성일: 2024-08-20
최종 작성일: 2024-08-20
목표: 엑셀업로드프로그램 이해하기
# 3. TRYP 문 + NEW 객체 선언 디버깅
TRY .
lo_excel_ref = NEW cl_fdt_xl_spreadsheet(
document_name = lv_filename
xdocument = lv_headerxstring ) .
CATCH cx_fdt_excel_core.
"Implement suitable error handling here
ENDTRY .
"Get List of Worksheets
1-1 TRY문
try 구문 실행 후에 변수 값들의 변화
lo_excel_ref = initial -> 업로드한 파일명,경로 등이 추가된 것 확인
xdocument = lv_headerxstring -> 파일 내용을 암호화한데이터가 들어감
▷디버깅 할때 중요한 점은 펑션을 실행하든 특정구문을 실행하든 변수 값이 어떻게 바뀌는지 확인 하는 것이 중요
lo_excel_ref = initial -> 업로드한 파일명,경로 등이 추가된 것 확인
xdocument = lv_headerxstring -> 파일 내용을 암호화한데이터가 들어감
lo_excel_ret
"Get List of Worksheets
lo_excel_ref->if_fdt_doc_spreadsheet~get_worksheet_names(
IMPORTING
worksheet_names = DATA(lt_worksheets) ).
'SAP > ABAP' 카테고리의 다른 글
/WIP/[엑셀 업로드 프로그램 이해하기] 편집프로그 (7) | 2024.09.22 |
---|---|
SAP GUI 단축키 (0) | 2024.09.10 |
[엑셀 업로드 프로그램 이해하기]PERFORM UPLOAD_FROM_EXCEL 디버깅(1/2) (0) | 2024.08.18 |
[엑셀 업로드 프로그램 이해하기-3/N ]PBO,PAI (0) | 2024.08.18 |
[WIP]Excel_Upload프로그램_프로그램 작동 로직(3/3) (0) | 2024.06.27 |