首页 > 其他分享 >ABAP-屏幕设计-上门拜访动态切换

ABAP-屏幕设计-上门拜访动态切换

时间:2023-05-27 13:12:30浏览次数:48  
标签:10 SELECTION PARAMETERS 拜访 SCREEN ABAP TEXT 屏幕 TYPE

*&---------------------------------------------------------------------*
*& Report  ZHQ_01_04
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZHQ_01_04.


PARAMETERS P_NAME TYPE C LENGTH 20.

SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECTION-SCREEN SKIP 1.
  SELECTION-SCREEN BEGIN OF LINE.

    PARAMETERS R1 TYPE C RADIOBUTTON GROUP G1 USER-COMMAND SM.
    SELECTION-SCREEN COMMENT (10) TEXT-002 FOR FIELD R1.
    PARAMETERS R2 TYPE C RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT (10) TEXT-003 FOR FIELD R2.
    PARAMETERS R3 TYPE C RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT (10) TEXT-004 FOR FIELD R3.
    PARAMETERS R4 TYPE C RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT (10) TEXT-005 FOR FIELD R4.
  SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 1.

SELECTION-SCREEN END OF BLOCK B1.


SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-101.
    PARAMETERS P_PARENT TYPE C LENGTH 10 MODIF ID PP.
    PARAMETERS P_DATE   TYPE C LENGTH 10 MODIF ID PP.
SELECTION-SCREEN END OF BLOCK B2.




INITIALIZATION.

AT SELECTION-SCREEN.

 DATA CODE LIKE SY-UCOMM.

CODE = SY-UCOMM.
"MESSAGE CODE TYPE 'I'.


IF CODE = 'SM'.
  "MESSAGE R2 TYPE 'I'.

  IF R2 = 'X'.
      "MESSAGE '选择上门拜访' TYPE 'I'.
  ENDIF.

ENDIF.




AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.

    IF R2 = 'X'.

    ELSE.
      IF SCREEN-GROUP1 = 'PP'.
          SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
      ENDIF.
    ENDIF.


  ENDLOOP.


START-OF-SELECTION.

END-OF-SELECTION.

 

标签:10,SELECTION,PARAMETERS,拜访,SCREEN,ABAP,TEXT,屏幕,TYPE
From: https://www.cnblogs.com/hua900822/p/17436599.html

相关文章

  • win10电脑游戏全屏占不满整个屏幕解决方法
    win10电脑游戏全屏占不满整个屏幕解决方法 工具/原料华为MateBookWindows10win10电脑游戏全屏占不满整个屏幕解决方法1按win+r打开并运行,输入regedit,然后按Enter进入注册表编辑器页面;2依次展开以下路径:HEKY_LOCAL_MACHINE/SYSTEM/C......
  • ABAP:CO11N,CO13保存前增强
    SE18:WORKORDER_CONFIRMMETHODif_ex_workorder_confirm~at_save.DATA:s_vornrTYPERANGEOFresb-vornr.DATA:lv_vornrLIKELINEOFs_vornr.DATA:lv_gmngaTYPEafru-gmnga,lv_mengeTYPEmseg-menge,lv_menge_s......
  • CSS中自适应屏幕分辨率
    @media与@mediascreen区别@mediascreen的css在打印设备里是无效的,而@media在打印设备里是有效的,如果css需要用在打印设备里,那么就用@media,否则,就用@mediascreen。@media(max-width:1199){//<=1199的设备}@media(max-width:991px){//<=991的设备}@media(max-width:7......
  • ABAP新语法的坑
    1.问题描述新语法:SELECT或者READTABLE...INTODATA(变量名),直接将结果放到变量里面,不用声明变量的类型。看下面的代码,当READTABLElt_aufk没有查到值的时候,不会将空值INTO到结构变量ls_aufk2里面,ls_aufk2还是上一条记录的值。2.解决办法循环外面加上:CLEARls_aufk2."......
  • abap 宏的使用
    宏的使用宏(Macros)是一段独立的代码,能实现数据的运算和输出,功能与子程序类似,主要应用于同一程序中某些重复的运算,以简化代码。宏只能被本程序中定义于宏后面的语句调用。定义格式:DEFINEINCREMENT."INCREMENT是宏的名称.increment..."获取参数:第一个参数&1第......
  • ABAP 负号提前
    FUNCTION conversion_exit_z001_output.*"----------------------------------------------------------------------*"*"本地接口:*"  IMPORTING*"     REFERENCE(INPUT)*"  EXPORTING*"     REFERENCE(OUTPUT)*"---------------......
  • 德勤MIGO 行项目屏幕增强
    TOP:     函数1:ZMIGO_BADI_GET_DATAFUNCTION zmigo_badi_get_data.*"----------------------------------------------------------------------*"*"本地接口:*"  EXPORTING*"     REFERENCE(ES_MIGO_BADI_SCREEN_FIELDS) TYPE*"    ......
  • ABAP DEBUG技巧(持续更新)
    1.根据消息号查找WatchPoint  2.updatetast需要打开调试器的更新模式断点有时候打开也进不去需要watchpoint强制打进去函数或者程序的断点 执行程序前/H 打一个函数断点再执行update的函数 ......
  • python 检测屏幕指定区域 有变化即截图
    fromPILimportImageChops#$pipinstallpillowfrompyscreenshotimportgrab#$pipinstallpyscreenshotfromdatetimeimportdatetimeimporttime,sys,reim=grab(bbox=(160,180,1760,1080))a=0whileTrue:#http://effbot.org/zone/pil-comparing-imag......
  • ABAP-MD11计划订单创建
    1DATA:ls_returnTYPEbapireturn1,2ls_plafTYPEplaf,3ls_headerdataTYPEbapiplaf_i1.45ls_headerdata-pldord_profile=ls_plaf-paart.6ls_headerdata-plan_plant=ls_plaf-plwrk.7ls_headerdata-prod_plant=ls_plaf-pwwr......