Add ListBox to selection-Screen

Source: Internet
Author: User

Report z_ljc_078 line-size 200.

Type-pools: VRM.

Parameters: p_lb (6) Type C as ListBox visible length 10 obligatory.

Data: it_listbox type vrm_values,
S_listbox like line of it_listbox.

Initialization.

Refresh it_listbox.
S_listbox-key = '1 '.
S_listbox-text = 'wang happy '.
Append s_listbox to it_listbox.

S_listbox-key = '2 '.
S_listbox-text = 'pang happy '.
Append s_listbox to it_listbox.

S_listbox-key = '3 '.
S_listbox-text = 'zhang co '.
Append s_listbox to it_listbox.

S_listbox-key = '4 '.
S_listbox-text = 'high obfuscation '.
Append s_listbox to it_listbox.

Call function 'vrm _ set_values'
Exporting
Id = 'P _ lb'
Values = it_listbox.

Start-of-selection.

If p_lb is not initial.
Read Table it_listbox into s_listbox with key = p_lb.
If sy-subrc = 0.

Write: s_listbox.
Endif.
Endif.

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.