*-- by Kingdon--
*-- date:2008-9-03
*-- SV Huizhou 0001
REPORT z_dong_standard_list .
* include for using icon
INCLUDE <icon>.
*line type of internal table
TYPES: BEGIN OF linetype,
cityfrom LIKE spfli-cityfrom,
cityto LIKE spfli-cityto,
carrid LIKE spfli-carrid,
connid LIKE spfli-connid,
countryfr LIKE spfli-countryfr,
countryto LIKE spfli-countryto,
fldate LIKE sflight-fldate,
price LIKE sflight-price,
currency LIKE sflight-currency,
seatsmax LIKE sflight-seatsmax,
seatsocc LIKE sflight-seatsocc,
END OF linetype.
*constants for writing position
CONSTANTS: pos_c1 TYPE i VALUE 6,
pos_c3 TYPE i VALUE 30,
pos_c4 TYPE i VALUE 58,
pos_c5 TYPE i VALUE 68,
line_size TYPE i VALUE 100.
*constant for case statement
CONSTANTS mark VALUE 'X'.
*internal table type linetype.
DATA: itab_flights TYPE STANDARD TABLE OF linetype,
wa_flights TYPE linetype.
*selections for connections
SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_car FOR wa_flights-carrid,
so_con FOR wa_flights-connid.
SELECTION-SCREEN END OF BLOCK conn.
*selections for flights
SELECTION-SCREEN BEGIN OF BLOCK flight WITH FRAME TITLE text-002.
SELECT-OPTIONS: so_fdt FOR wa_flights-fldate NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK flight.
*output parameter
SELECTION-SCREEN BEGIN OF BLOCK param WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF BLOCK radio WITH FRAME.
PARAMETERS: all RADIOBUTTON GROUP rbg1,
national RADIOBUTTON GROUP rbg1,
internat RADIOBUTTON GROUP rbg1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK radio.
PARAMETERS country LIKE wa_flights-countryfr.
SELECTION-SCREEN END OF BLOCK param.
*top-of-page
TOP-OF-PAGE.
*title
FORMAT COLOR COL_HEADING INTENSIFIED ON.
ULINE (100).
WRITE: / sy-vline, 'Flight data', AT line_size sy-vline.
ULINE (100).
*column header
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: / sy-vline, 'Departure location', AT line_size sy-vline,
/ sy-vline, 'Arrival location', AT line_size sy-vline,
/ sy-vline, AT pos_c1 'Flight'.
* fix left scroll boundary
SET LEFT SCROLL-BOUNDARY.
WRITE: 'date',
AT pos_c3 'Price'(006),
"(006) refers to text-006 and overwrite the string.
AT pos_c4 'Max.'(008),
AT pos_c5 'Occ.'(009),
AT line_size sy-vline.
ULINE (100).
*event block 1: initialization
INITIALIZATION.
*initialize select-options for carrid
MOVE : 'AA' TO so_car-low,
'UA' TO so_car-high,
'BT' TO so_car-option,
'I' TO so_car-sign.
APPEND so_car.
CLEAR so_car.
MOVE: 'SQ' TO so_car-low,
'EQ' TO so_car-option,
'E' TO so_car-sign.
APPEND so_car.
CLEAR so_car.
*event block 2: at selection-screen on block param
AT SELECTION-SCREEN ON BLOCK param.
*check country for national flights is not empty
CHECK national = mark AND country = space.
MESSAGE e003(bc405).
*event block 3: start-of-selection
START-OF-SELECTION.
*checking the output parameters
CASE mark.
WHEN all.
*radiobutton all is marked
SELECT * FROM spfli INNER JOIN sflight
ON spfli~carrid = sflight~carrid AND spfli~connid = sflight~connid
INTO CORRESPONDING FIELDS OF TABLE itab_flights
WHERE spfli~carrid IN so_car
AND spfli~connid IN so_con
AND sflight~fldate IN so_fdt
AND spfli~countryfr = spfli~countryto
AND spfli~countryfr = country.
WHEN internat.
*radiobutton internate is marked
SELECT * FROM spfli INNER JOIN sflight
ON spfli~carrid = sflight~carrid AND spfli~connid = sflight~connid
INTO CORRESPONDING FIELDS OF TABLE itab_flights
WHERE spfli~carrid IN so_car
AND spfli~connid IN so_con
AND sflight~fldate IN so_fdt
AND spfli~countryfr = spfli~countryto .
ENDCASE.
*event block 4: end-of-selection
END-OF-SELECTION.
*control level processing: the internal table has to be sorted
SORT itab_flights BY cityfrom cityto carrid connid.
*data output
PERFORM data_output.
*---------------------------------------------------------------------*
* FORM data_output *
*---------------------------------------------------------------------*
* ........ *
*---------------------------------------------------------------------*
FORM data_output.
LOOP AT itab_flights INTO wa_flights.
*group level: cityfrom
AT NEW cityfrom.
NEW-PAGE.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE: / sy-vline, wa_flights-cityfrom, AT line_size sy-vline.
FORMAT RESET.
ENDAT.
*group level: cityto
AT NEW cityto.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE: / sy-vline, wa_flights-cityto, AT line_size sy-vline.
FORMAT RESET.
ENDAT.
*single record processing
*mark international flights
FORMAT COLOR COL_KEY INTENSIFIED ON.
IF wa_flights-countryfr EQ wa_flights-countryto.
WRITE: / sy-vline, icon_space AS ICON CENTERED.
ELSE.
WRITE: / sy-vline, icon_bw_gis AS ICON CENTERED.
ENDIF.
*data output
WRITE: wa_flights-carrid, wa_flights-connid.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: wa_flights-fldate,
wa_flights-price CURRENCY wa_flights-currency,
wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc,
AT line_size sy-vline.
FORMAT RESET.
* group level: connid
AT END OF connid.
SUM.
FORMAT COLOR COL_TOTAL.
WRITE: / sy-vline,
'Total'(007),
wa_flights-seatsmax UNDER wa_flights-seatsmax,
wa_flights-seatsocc UNDER wa_flights-seatsocc,
AT line_size sy-vline.
FORMAT RESET.
ENDAT.
*group level: cityfrom
AT END OF cityfrom.
ULINE (100).
ENDAT.
ENDLOOP.
ENDFORM.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SAP程序设计随书源代码.zip (131个子文件)
standard list.txt 6KB
method redefinition.txt 3KB
Z_ITAB_EXAMPLE_136_DJB.txt 2KB
itab operations.txt 2KB
event demo.txt 2KB
interface demo.txt 2KB
Z_DJB_186_METHOD_CONSTRUCTOR.txt 2KB
Z_DJB_184_FUNCTIONAL_METHOD.txt 2KB
Z_DJB_183_METHOD_PARA.txt 2KB
Z_DJB_181_GARBAGE_COLLECTOR.txt 2KB
Z_DJB_174_CLASS_DEFINATION.txt 1KB
Z_GLOBAL_DATA_HIDDEN_159_DJB.txt 1KB
selection screen event.txt 1KB
global data hidden.txt 1007B
method constructor.txt 1007B
subroutine using parameter.txt 998B
macro.txt 998B
z_djb_169_simple_object.txt 995B
Z_SUB_PARAM_PASSING_151_DJB.txt 975B
Z_STRING_SEARCH_118_DJB.txt 974B
enquede and dequeue.txt 945B
Z_CALLING_FUNCTION_158_DJB.txt 935B
static data.txt 923B
Z_STATIC_DATA_160_DJB.txt 918B
Z_DATA_REFERENCE_146_DJB.txt 910B
Z_MOVE_CORRESPONDING_100_DJB.txt 896B
logical db event.txt 892B
select into internal table.txt 887B
Z_PROCESSING_BLOCKS_68_DJB.txt 880B
function method.txt 880B
class definition and accessing.txt 842B
Copy of class definition and accessing.txt 842B
Z_DATA_FORMAT_OUTPUT_108_DJB.txt 825B
Z_FS_STATIC_ASSIGN_142_DJB.txt 822B
method parameters.txt 818B
event blocks demo.txt 809B
garbage collector.txt 799B
selection option.txt 779B
logical db rejeject event.txt 772B
select elements group.txt 758B
event break.txt 745B
Z_SIMPLE_ITAB_122_DJB.txt 718B
Z_DEFINE_STRUCTURE_90_DJB.txt 713B
select for all entries.txt 697B
screen parameter.txt 695B
search.txt 691B
Z_ITAB_DEFINE_125_DJB.txt 681B
Z_INCLUDE_DEMO_161_DJB.txt 680B
Z_CASE_ENDCASE_113_DJB.txt 678B
Z_DATA_OUTPUT_106_DJB.txt 675B
open cursor.txt 673B
Z_SUB_USING_PARAM_149_DJB.txt 656B
Z_FIDLD_SYM_CASTING_143_DJB.txt 633B
Z_TIME_CALCULATION_105_DJB.txt 623B
select by dynamic codition.txt 619B
radiobutton group.txt 612B
runtime analysis.txt 610B
Z_DEMO_CATCH_ENDCATCH_165_DJB.txt 607B
Z_EXTRACT_139_DJB.txt 596B
Z_FS_DYNAMIC_ASSIGN_143_DJB.txt 595B
Z_MACRO_DEMO_163_DJB.txt 594B
move corresponding.txt 588B
simple oo program.txt 586B
cluster export to table.txt 585B
select using group.txt 577B
processing blocks.txt 564B
Z_DO_LOOP_114_DJB.txt 562B
data reference.txt 558B
Z_SUBROUTINE_DEF_CALL_148_DJB.txt 556B
output format.txt 556B
Z_TERMINATE_LOOP_115_DJB.txt 555B
default selection option.txt 555B
Z_IF_ENDIF_112_DJB.txt 548B
Z_DJB_177_GLOBAL_CLASS.txt 546B
Z_STRING_CONCATENATE_116_DJB.txt 541B
select nested.txt 540B
Z_DESCRIBE_ATTRIBUTE_99_DJB.txt 538B
Z_DEFINE_SIMPLE_DATA_88_DJB.txt 522B
Z_STRING_COMPARISON_121_DJB.txt 515B
select by join.txt 513B
Z_CONVERSION_RULES_101_DJB.txt 509B
Z_STRING_SPLIT_117_DJB.txt 498B
Z_STRING_COMPARISON_120_DJB.txt 498B
parameters passing types.txt 493B
Z_CALLING_PROGRAM_77_DJB.txt 475B
select from view.txt 473B
data output.txt 463B
case.txt 455B
staticly assign fs.txt 455B
simple itab.txt 452B
time caculation.txt 448B
authority check.txt 446B
Z_SIMPLE_PROGRAM_74_DJB.txt 425B
Z_MATHS_FUNCTION_104_DJB.txt 416B
define table.txt 415B
select fields for single line.txt 415B
Z_STRLEN_119_DJB.txt 412B
define macro.txt 382B
call function.txt 373B
create structure.txt 369B
共 131 条
- 1
- 2
资源评论
qq_38220914
- 粉丝: 618
- 资源: 4310
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- gadget驱动研究论文
- 组装式箱式变电站3款工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- rongxin11111111
- 116395807409340大猫vb登陆器.apk
- Win11操作系统高效快捷键全面指南
- Windows 10快捷键大全:提升工作效率的操作指南
- 2024年最全Nmap扫描技术与案例集锦(15类场景,102种命令)
- DigiShow 教程1 基本概念
- DigiShow 教程2 软件安装使用入门
- DigiShow 教程3 信号映射
- DigiShow 教程4 软件常用操作
- 小戴人工智能PurposeAI-20241205分词字符集识别的程序的详细解释 (第三版)
- SARibbon-qt
- EasyCode-sql server
- brightnessUI-ubuntu
- Pyqt5-pyqt5
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功