How to output a drop-down list in TC

Source: Internet
Author: User

1. screen design
Add the listzknvvvkgrp-Braco drop-down box to the TC drop-down list and select "ListBox with key" as the drop-down type"

2. Define internal tables
* Shard information, used to input help
Data: Begin of itab_vkgrp occurs 0,
Braco like tbrc-Braco,
Vtext like tbrct-vtext,
End of itab_vkgrp.

3. Screen Transaction Processing
Field zknvvvkgrp-Braco module set_data_vkgrp.

4. process module definition

Module set_data_vkgrp input.
Call function 'f4if _ int_table_value_request'
Exporting
Retfield = 'braca'
Value_org = 'S'
Tables
Value_tab = itab_vkgrp
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.
Endmodule. "set_data_vkgrp Input

5. If you want to call different values multiple times, you can enter the function code in ListBox and trigger it manually (this is not the best method, but it can be achieved)

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.