*&---------------------------------------------------------------------*
*& Report YTEST01
*&
*&---------------------------------------------------------------------*
*& 목적: (1) 동적으로 구조체를 받고,
*& (2) 해당 구조체의 필드값을 동적으로 받는 프로그램
*&---------------------------------------------------------------------*
report ytest01.
tables: scarr. " Airline
*&---- Data 선언부 -------------
data: wa_scarr type scarr.
field-symbols:
* type은 가능한 Char등으로 지칭해 주는 것이 좋으나, 불특정인 경우 Any 사용.
* Any 사용시 Performance 는 좋지 않음....
<fs_table> type any,
<fv_fd> type any.
*&------start-of-selection-----------
start-of-selection.
*&------(1) 필드심볼 Assign
assign wa_scarr to <fs_table>.
* Case1> <fs_table>이라는 구조체에 존재하는 필드명 CARRID
* Assign component 'CARRID' of structure <fs_table> to <fv_fd>.
* Case2> <fs_table>이라는 구조체에 존재하는 필드명 CARRID의 위치 ...-> 두번째
assign component 2 of structure <fs_table> to <fv_fd>.
*&------(2) 필드 심볼에 값 넣기.
select single carrid into <fv_fd>
from scarr
where carrid like 'A%'.
*&------(3) 필드 심볼값 출력
write:/ <fv_fd>.
댓글 3
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
985 |
ABAP Dictionary
[2] ![]() | sapjoy | 2007.06.30 | 3261 |
984 |
[call by value call by reference]
[1] ![]() | SANDRA | 2007.06.30 | 4292 |
983 |
[FOR ALL ENDTRIES 사용법]
[1] ![]() | SANDRA | 2007.06.30 | 4308 |
» | 필드심볼 사용 예제... [3] | zen | 2007.06.30 | 4198 |
981 |
FAQ User Eixt.pdf
[2] ![]() | sapjoy | 2007.07.01 | 3170 |
980 |
FAQ ABAP4 Dialog Programming.pdf
![]() | sapjoy | 2007.07.01 | 3497 |
979 |
online 프로그램 예제입니다.
[1] ![]() | 서진주 | 2007.07.02 | 3842 |
978 |
AVL 설명 자료입니다.
[1] ![]() | 한우물 | 2007.07.03 | 3301 |
977 |
Web Dynpro for Java (SAP Press)
[1] ![]() | 임동근 | 2007.07.05 | 3862 |
976 |
아밥 튜닝가이드입니다.
[4] ![]() | 노력&성장 | 2007.07.05 | 3949 |
975 |
스마트폼 페이지 넘기는 방법
[10] ![]() | 백승민 | 2007.07.11 | 4597 |
974 |
Maintenance View
[8] ![]() | Beginer | 2007.07.11 | 4448 |
973 |
소스 다운로드 받는 PGM(HTML)
[6] ![]() | GG | 2007.07.12 | 6849 |
972 |
SAP 입문자 가이드..
[16] ![]() | 권장원 | 2007.07.13 | 3541 |
971 |
ASAP 정리
[3] ![]() | 권장원 | 2007.07.13 | 3818 |
970 |
BAPI Programmin
[2] ![]() | COMAN | 2007.07.16 | 3338 |
969 |
RFC관련자료입니다.....
[7] ![]() | COMAN | 2007.07.16 | 3761 |
968 |
도움이 될지 모르지만 Ecc 6.0 에서 참고하는 sap code page 입니다.
[6] ![]() | bd | 2007.07.19 | 3166 |
967 |
SAP Table
[3] ![]() | kms | 2007.07.20 | 3630 |
966 |
Web Dynpro 기초 자료입니다.
[2] ![]() | kms | 2007.07.20 | 3294 |