REPORT z09_002.
DATA: BEGIN OF gt_data OCCURS 0,
emp_name TYPE zemp-emp_name,
END OF gt_data.
DATA : gt_rtntab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA : gt_dynpread LIKE dynpread OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_emp_no LIKE zemp-emp_no,
p_name LIKE zemp-emp_name.
INITIALIZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
request = 'A'
translate_to_upper = 'X'
TABLES
dynpfields = gt_dynpread.
READ TABLE gt_dynpread WITH KEY fieldname = 'P_EMP_NO'.
SELECT DISTINCT emp_name INTO TABLE gt_data
FROM zemp
WHERE emp_no = gt_dynpread-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_NAME'
dynpprog = sy-cprog
dynpnr = sy-dynnr
window_title = 'EMP_NAME'
value_org = 'S'
TABLES
value_tab = gt_data
return_tab = gt_rtntab.
READ TABLE gt_rtntab INDEX 1.
p_name = gt_rtntab-fieldval.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
511 | REPORT z05_35. [1] | sapjoy | 2012.07.31 | 889 |
510 | REPORT Z05_34. | sapjoy | 2012.07.31 | 835 |
509 | REPORT Z05_33. | sapjoy | 2012.07.31 | 861 |
508 | REPORT Z05_32. | sapjoy | 2012.07.31 | 828 |
507 | REPORT z05_31. | sapjoy | 2012.07.31 | 887 |
506 | REPORT z05_30. | sapjoy | 2012.07.31 | 856 |
505 | REPORT z05_29. | sapjoy | 2012.07.31 | 978 |
504 | REPORT z05_28. [1] | sapjoy | 2012.07.31 | 831 |
503 | REPORT z05_27. | sapjoy | 2012.07.31 | 885 |
502 | REPORT z05_26. | sapjoy | 2012.07.31 | 930 |
501 | REPORT z05_25. [1] | sapjoy | 2012.07.31 | 883 |
500 | REPORT z05_24. | sapjoy | 2012.07.31 | 888 |
499 | REPORT z05_23. | sapjoy | 2012.07.31 | 896 |
498 | REPORT z05_22. | sapjoy | 2012.07.31 | 878 |
497 | REPORT z05_21. | sapjoy | 2012.07.31 | 874 |
496 | REPORT z05_20. | sapjoy | 2012.07.31 | 1030 |
495 | REPORT z05_19. | sapjoy | 2012.07.31 | 1005 |
494 | REPORT z05_18. | sapjoy | 2012.07.31 | 907 |
493 | REPORT z05_17. | sapjoy | 2012.07.31 | 908 |
» | REPORT z09_02. | sapjoy | 2012.07.31 | 1002 |