ABAP screen F4 help call function implementation

Source: Internet
Author: User

ABAP screen F4 help call the function to implement the data in the values table it's best to refer to the system field otherwise, if it's just type C, it might not show.
The Show Table
Data:begin of t_tab occurs 0,
Matnr TYPE Mara-matnr,
MAKTX TYPE MAKT-MAKTX,
END of T_tab.

"To use the F4 screen element
Parameters:p_matnr () TYPE c.

"Monitoring F4 Events
At Selection-screen in Value-request for P_MATNR.
PERFORM Frm_help.
*&---------------------------------------------------------------------*
*& Form Frm_help
*&---------------------------------------------------------------------*
* Text
*----------------------------------------------------------------------*
*-P1 text
* <--P2 text
*----------------------------------------------------------------------*
FORM Frm_help.

"Fetch number
SELECT *
From Makt
into corresponding fields of TABLE T_tab
Up to ten ROWS.

The Invoke presentation function
Call FUNCTION ' F4if_int_table_value_request '
Exporting
Retfield = ' matnr ' table to display fields
Dynpprog = sy-repid "Return only program
DYNPNR = Sy-dynnr "screen
Dynprofield = ' P_matnr ' "place to backfill values in the page
value_org = ' S ' "Display type
TABLES
Value_tab = T_tab. "The inside table of the form help passed in
IF SY-SUBRC <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty number Sy-msgno
With Sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
EndForm.

ABAP screen F4 help call function implementation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.