在ABAP Workbench中,当单击按钮时,如何使程序返回表中的多个表字段? [英] In ABAP Workbench, how do I make the program return multiple table fields in a table when a button is clicked?

查看:78
本文介绍了在ABAP Workbench中,当单击按钮时,如何使程序返回表中的多个表字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是SAP / ABAP Workbench的新手,我正在尝试创建一个程序,该程序允许用户输入 foodCode 以便接收 Item 和 Description 。有没有办法将结果放在同一屏幕上的表格中?

I am new to SAP/ABAP Workbench and I am trying to create a program that allows a user to input a foodCode in order to receive the Item and Description after the press of a button. Is there a way the results can be put in a table on the same screen? How?

report demo.
tables food.

SELECTION-SCREEN:

SELECTION-SCREEN BEGIN OF BLOCK SEGMENTVALUE WITH FRAME TITLE A1TITLE.
SELECTION SCREEN BEGIN OF LINE.
PARAMETERS P_INPUT(10) TYPE C OBLIGATORY.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON /2(40) B_RESULT USER-COMMAND BUT1.
SELECTION-SCREEN END OF LINE.

INTIALIZATION.
    PERFORM SELECTION_SCREEN_TEXT.
FORM SELECTION_SCREEN TEXT.
    A1TITLE = 'Please enter food code'.
    B_RESULT = 'Return results'.

推荐答案

我希望我对你提出的问题是正确的。

I hope I got you're question right.


  1. 使用以下方法创建报告

  2. 在Dynpro顶部添加一个子屏幕,在底部添加一个自定义容器

  3. 将选择屏幕标记为子屏幕

  4. 处理按钮,在PAI中单击按钮

  5. 使用您的CustomContainer中的SALV

  1. Create a Report with a Dynpro.
  2. Add a Subscreen on the top of the Dynpro and a Custom-Container on the Bottom
  3. Mark your Selection-Screen as Subscreen an call the Dynpro-Number from your Selection-Screen in the PBO as Subscreen.
  4. Handle the Button click in the PAI
  5. Display the Data with an SALV in your CustomContainer

以下是详细说明:
http://zevolving.com/2008/10/display-alv-report-output-in-相同选择屏幕/

这篇关于在ABAP Workbench中,当单击按钮时,如何使程序返回表中的多个表字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆