1) 사용 function
DYNP_VALUES_READ
2) 사용방법
call function 'DYNP_VALUES_READ'
exporting
dyname = 'SAPMZA22' " 화면이 소속된 프로그램 명
dynumb = sy-dynnr " 화면 번호
tables
dynpfields = fld_value " export : 읽어들일 필드 명
" import : 준 필드 명의 값
exceptions
others = 01.
*&---------------------------------------------------------------------*
*& Form DYNP_VALUES_READ
*&---------------------------------------------------------------------*
* text *
*----------------------------------------------------------------------*
* --> FNAME Field Name
* <-- RETCD Return Code
*----------------------------------------------------------------------*
form dynp_values_read using value(fname) like dynpread-fieldname
retcd like sy-subrc.
refresh fld_value.
clear fld_value.
fld_value-fieldname = fname.
append fld_value.
*------- 현재 화면의 특정 필드 값 읽기
call function 'DYNP_VALUES_READ'
exporting
dyname = 'SAPMZA22'
dynumb = sy-dynnr
tables
dynpfields = fld_value
exceptions
others = 01.
retcd = sy-subrc.
endform. " DYNP_VALUES_READ
3) 데이터 정의
data : begin of fld_value occurs 1.
include structure dynpread.
data : end of fld_value.
FIELDNAME C30
STEPL I4
FIELDVALUE C132
FIELDINP C1
* 썬님에 의해서 게시물 이동되었습니다 (2010-04-02 11:37)
댓글 8
-
xcomedy
2008.06.12 00:28
좋은정보 감사합니다. -
엉큼고냥이
2008.06.17 18:31
이건어떤때 쓰는거죠? 화면의 특정필드값이야 이벤트가 발생할때 필드값을 읽어들이면되는데 PAI에서..
현재 화면값을 읽어들이는 특정한 케이스가 있나요?
-
꽁
2008.09.04 09:39
정보는 감사한데요.. 정말 어떤때 써야하나요? -
썬
2009.01.16 09:40
이런 유용한 정보 감사합니다. ^^
Screen을 하나 더 띄웠는데 거기서 정보를 가져 올려고 했는데 어찌 가져오는 방법을 몰랐 었는데ㅎㅎㅎ
유용하게 잘 쓰겠습니다.
-
전도사
2009.12.13 15:54
제가 찾던 자료를 오늘 찾았습니다. 아주 감사합니다. -
촌놈악마
2010.06.04 14:47
감사합니다. 아주 유용할것 같습니다. ^^ -
디카초올~
2011.12.11 11:39
감사합니다. -
샤펜투카
2013.02.05 16:12
감사합니다.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
102 | BAPI function List [3] | sapjoy | 2014.08.19 | 26799 |
101 | 유용한 날짜 펑션들....(펌) [17] | 하늘사랑 | 2007.07.04 | 16770 |
100 | 숫자 왼쪽의 0 없애기 [8] | ecbase | 2006.12.02 | 15255 |
99 | 환율관련 함수 [2] | 아밥뽀 | 2014.08.23 | 14602 |
98 | 반올림, 올림, 버림 Function [16] | SSong | 2007.11.20 | 11979 |
97 | 공휴일 체크 및 다음 휴일 구하기 [5] | ecbase | 2006.12.01 | 11131 |
96 | 문자인지 숫자인지 구분 [8] | ecbase | 2006.12.01 | 10702 |
» | 현재 떠있는 화면에서 특정 필드의 값을 읽어오는 함수 및 방법 [8] | Delight | 2008.04.28 | 10064 |
94 | 유용한 Function 올려봅니다. [30] | 김지성 | 2007.04.17 | 9897 |
93 | 소수점 이하 체크 [5] | ecbase | 2006.12.02 | 9751 |
92 | Amount의 필드 값의 0을 삭제후 Char로 내보내기 [3] | 민버미꺼! | 2007.12.25 | 9622 |
91 | 프로그램실행시간 구하기 [16] | 쥬앙 | 2009.04.06 | 9384 |
90 | 이메일로 파일 보내는 함수 [3] | 열공아밥 | 2009.12.20 | 9286 |
89 | POPUP 함수(팝업) [11] | sapjoy | 2007.05.17 | 8795 |
88 | LDM 파일을 다운로드 하는 Function [1] | 양키 | 2012.08.08 | 8510 |
87 | [Function]오늘은 몇요일일까요? [4] | 양키 | 2010.09.29 | 8455 |
86 | tcode 권한체크 t-code authority check | sapjoy | 2013.05.21 | 8257 |
85 | ALV BUFFER CLEAR [3] | ecbase | 2006.12.02 | 8024 |
84 | [Function] 메세지 박스를 뛰워보자 [10] | 양키 | 2010.09.29 | 7954 |
83 | function 모음입니다. [5] | 양파링 | 2007.11.02 | 7893 |