dialog开发
屏幕编程:ok_code在程序里用sy-ucomm接受

调用其他事物代码:
call transaction ‘SE38’.

1:50

选择屏幕之屏幕按钮:

selection-screen begin of block b1

with frame
title text-001.指定框架的名称
selection-screen pushbutton /5(30) pus1 user-command ab1. ”/5是留出的空格,(30)是长度,pus1是按钮名称接受描述的,user-command指定功能码的,ab1是ok_code,在下面判断的时候需要大写
selection-screen skip."在屏幕上跳转行的不然紧里的很紧
selection-screen pushbutton /5(30) pus2 user-command ab2.

selection-screen end of block b1.

initialization.

pus1 = '单击此处跳转到SE38'. 为变量赋值的text
pus2 = '单击此处跳转到客制TCODE'

at selection-screen.
if sy-ucomm = 'ab1'.
call transaction 'se38'.
endif.

if sy-ucomm = 'ab'.
submit z_selectscreen_01_demo using selection 1000
with p_matnr = pus1.

**************************************************************************

selection-screen begin of block b1
with frame
title text-01.
parameters: p_insert radiobutton group z user-command r default 'X',
p_delete radiobutton group z,
p_modify radiobutton group z,
p_disp radiobutton group z.

selection-screen skip.
selection-screen begin of block b2
with frame
title text-002.
selection-screen skip.

select-options: s_werks for t001w-werks modif id ab.

selection-screen end of block b2.
selection-screen end of block b1.

at selection-screen output.

loop at screen. " 系统内表
if p_insert = 'X'.
if screen-name CS 'S_WERKS'. "CS是判断字段screen-name有没有包含字符

串S_WERKS,如果包含就继续执行,如果不包含就不执行
screen-active = '0'.
endif.
if screen-group1 = 'AB'.

endif.
endif.
modify screen.
endloop.

*********************************************************

module user_command_0109 input.
ok_code = sy-ucomm.
case ok_code.
when 'show'.
set parameter id 'mat' field '4456'. "往sap输入框中赋值,这里的mat

就是内存的意思

sap内存还可以直接到字段所在的表里取找,点击进到该字段 看属性就可以看

到内存标识了 parameter ID

最新文章

  1. .NET微信开发通过Access Token和OpenID获取用户信息
  2. http://blog.csdn.net/shawnkong/article/details/52045894
  3. [Code::Blocks] Install wxWidgets & openCV
  4. Linux 下memcache安装及使用
  5. mysql删除和修改数据报错1175
  6. [Rails] 设计模式 MVC
  7. eChart学习笔记
  8. oracle linux 7.3 下用dtrace 跟踪 mysql-community-server-5.6.20
  9. javascript 类数组对象
  10. 【Luogu3478】【POI2008】STA-Station(动态规划)
  11. [POI2006]OKR-Periods of Words
  12. HDFS简述
  13. C# 读写App.config配置文件
  14. Java精品文章收藏
  15. Tensorflow做阅读理解与完形填空
  16. 题解-AtCoder-agc006C Rabbit Exercise
  17. js 可以表示的最大值
  18. 将 Azure 文件共享用于 Windows VM
  19. C++ 模板应用举例_模板实现STL类(堆栈)
  20. zouxy09-图像卷积与滤波的一些知识点

热门文章

  1. csharp .net vb 复制图像
  2. MySQL - 主从复制及读写分离原理
  3. c++空指针调用类成员函数
  4. Linux下安装yum工具
  5. Xcode的Hello World(简单易懂)
  6. c#与java中byte字节的区别及转换方法
  7. Join的实现步骤 以及连接的概念
  8. Windows Services的1053错误的解决办法之一:修改注册表允许的响应时间
  9. 双击GridView查看详情
  10. 基于visual Studio2013解决C语言竞赛题之1028平均值