SAP HR ABAP 选择屏幕常用操作
来源:互联网 发布:ib网络是什么意思啊 编辑:程序博客网 时间:2024/05/20 20:56
************************************************************************************* 对象字段结构化搜索帮助
at selection-screen on value-request for p_objid. perform f_help_objid_single using 'S' '' '' '' 'P_OBJID' 'F_AUTHORITY_CHECK'. form f_help_objid_single using i_otype i_rsign i_relat i_sclas i_fieldname i_form. data: lw_objec type objec. field-symbols: <fs_field> type any. call function 'RH_OBJID_REQUEST' exporting plvar = '01' otype = i_otype seark_begda = sy-datum seark_endda = sy-datum dynpro_repid = sy-repid dynpro_dynnr = sy-dynnr callback_prog = sy-repid callback_form = i_form without_rsign = i_rsign without_relat = i_relat without_sclas = i_sclas importing sel_object = lw_objec exceptions cancelled = 1 wrong_condition = 2 nothing_found = 3 internal_error = 4 illegal_mode = 5 others = 6. assign (i_fieldname) to <fs_field>. <fs_field> = lw_objec-objid.endform.form f_authority_check tables t_objects structure hrobject. loop at t_objects. call function 'RH_STRU_AUTHORITY_CHECK' exporting plvar = '01' otype = 'S' objid = t_objects-objid exceptions no_stru_authority = 1 no_stru_authority_hyper = 2 no_stru_authority_at_all = 3 no_base_authority = 4 others = 5. if sy-subrc ne 0. delete t_objects. endif. endloop.endform.
************************************************************************************* 字段自定义列表搜索帮助
data: lt_ret type standard table of ddshretval, lw_ret like line of lt_ret.at selection-screen on value-request for p_pernr. perform f_pernr_f4.form f_pernr_f4. call function 'F4IF_INT_TABLE_VALUE_REQUEST' exporting retfield = 'PERNR' dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'P_PERNR' value_org = 'S' callback_program = sy-repid tables value_tab = gt_bcpr "自定义内表,包含字段 PERNR return_tab = lt_ret exceptions parameter_error = 1 no_values_found = 2 others = 3. if sy-subrc <> 0. message id sy-msgid type sy-msgty number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. endif. if lt_ret is not initial. read table lt_ret into lw_ret index 1. p_pernr = lw_ret-fieldval. endif.endform.
************************************************************ 字段下拉框搜索帮助
parameters p_khdx like p9500-zzhrkhlx obligatory as listbox visible length 20 default '0002'. "考核对象 data: gt_val type vrm_values, gw_val like line of gt_val.define m_append_vrm_values. gw_val-key = &1. gw_val-text = &2. append gw_val to gt_val. clear: gw_val.end-of-definition.at selection-screen output. perform f_mod_screen.form f_mod_screen. refresh gt_val. m_append_vrm_values '0002' '0002文本'. m_append_vrm_values '0005' '0005文本'. call function 'VRM_SET_VALUES' exporting id = 'P_KHDX' values = gt_val.endform.
**********************************************************隐藏逻辑数据库时间区间
at selection-screen output. perform f_mod_screen.form f_mod_screen. loop at screen. if screen-group1 = 'R2' or screen-group1 = 'R3' or screen-group1 = 'R4' or screen-group1 = 'R5' or screen-name = '%_P_PERIOD_%_APP_%-TEXT'. screen-active = '0'. endif. modify screen. endloop. loop at screen. if screen-name cs 'PNPBEGDA' or screen-name cs 'PNPENDDA' or screen-name cs 'PNPTIMR1' or screen-name cs 'PNPTIMR6' or screen-name cs '%FBIS111_1000' or screen-name cs 'PNPTBEG' or screen-name cs 'PNPBLCKT' or screen-name cs 'PNPTIMR2' or screen-name cs 'PNPTIMR3' or screen-name cs 'PNPTIMR4' or screen-name cs 'PNPTIMR5' or screen-name cs '%FBIS112_1000' or screen-name cs '%FDPS117_1000' or screen-name cs 'PNPBEGPS' or screen-name cs '%FBIS120_1000' or screen-name cs 'PNPENDPS'. screen-active = '0'. modify screen. endif. endloop.endform.
******************************************************设置逻辑数据库选择屏幕标准字段默认值
initialization. perform f_init_screen.form f_init_screen. pnpstat2-low = '3'. pnpstat2-sign = 'I'. pnpstat2-option = 'EQ'. append pnpstat2. pnptimed = 'M'.endform
.
******************************************************自定义选择区域常用语法
selection-screen begin of block b1 with frame title text-001.selection-screen begin of line.selection-screen comment 1(10) text-t01 for field p_year. "p1_begda 文字描述parameters: p_year(4) type c .selection-screen position 21.selection-screen comment 25(7) text-t02 for field p_month. "p1_endda 文字描述parameters: p_month(2) type c .selection-screen end of line.*parameters: p_conar type t7cn25-conar.select-options: p_conar for t7cn25-conar no intervals.selection-screen end of block b1.selection-screen begin of block b2 with frame title text-001.parameters: r_mx radiobutton group r1 default 'X', r_hz radiobutton group r1.selection-screen end of block b2.
0 0
- SAP HR ABAP 选择屏幕常用操作
- SAP ABAP 选择屏幕实现标签页
- ABAP HR 选择屏幕对象字段搜索帮助
- SAP ABAP编程 ABAP选择屏幕:根据用户选择动态显示屏幕
- SAP ABAP编程 几种常用的屏幕输出格式
- More information on sap hr-abap infotypes
- SAP中ABAP简易实现选择屏幕或者普通屏幕的数据显示
- ABAP选择屏幕设计
- ABAP选择屏幕设计
- ABAP选择屏幕参数
- ABAP选择屏幕建议
- abap 在屏幕如何调用选择屏幕以及如何获得选择屏幕的操作
- abap 在屏幕如何调用选择屏幕以及如何获得选择屏幕的操作
- SAP HR 常用事务代码
- sap abap 退出操作
- SAP ABAP 字符串操作
- SAP HR简易操作卡
- <下拉框实现、一> - SAP ABAP 报表选择屏幕下拉框的实现
- 【HDOJ 3729】 I'm Telling the Truth (二分图最大匹配)
- POJ3662--Telephone Lines
- Gym 100733J Summer Wars 题解:灵活运用扫描线的思想
- Ubuntu14.04下安装MediaWiki小记
- UVA - 1045 The Great Wall Game(二分图最佳完美匹配)
- SAP HR ABAP 选择屏幕常用操作
- Linux系统下MySQL源码安装,完整编译支持所有字符集和默认字符集
- 黑马程序员--Java基础学习(集合工具类)第十七天
- C++对象模型——执行期类型识别(第七章)
- Cocos2d-x中,Follow类的使用
- C#中OpenFileDialog获取文件名和文件路径的常用方法
- 运维规范:禁止使用hostname命令去查看主机名
- Cookie与Session
- 【CF 453A】 Little Pony and Expected Maximum (最大期望)