Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection screen

Former Member
0 Likes
490

hi,

can we bring values of selection screen from ztable.

e.g. i have a table zparam which have following two fields & data

name1 value

abc

xyz

lmn

so through abap program i have to display name1 and value shud be input by user and again get stored to zparam

means istead of defining

PARAMETERS: p_abc , p_xyz, p_lmn i have to display from ztable

how we can do this ??

3 REPLIES 3
Read only

Former Member
0 Likes
434

You cant do this through a report program. You need to devolop a module pool program to achieve the above functionality.

Read only

Former Member
0 Likes
434

Write the code in INITIALIZATION.

Regards,

Madan.

Read only

Former Member
0 Likes
434

Hi,

Use the below code.

parameters: p_name1(20),

p_value type i.

AT selection-screen.

select single * from <table> where name1 = p_name1 and value = p_value.

if sy-subrc <> 0.

<table>-name1 = p_name1.

<table>-value = p_value.

insert <table>.

endif.

Note: To display the values from the table to your parameters.At selection-screen on value-request for p_name1.

use function module 'F4IF_INT_TABLE_VALUE_REQUEST'.

At selection-screen on value-request for p_value.

use function module 'F4IF_INT_TABLE_VALUE_REQUEST'.

Edited by: Velangini Showry Maria Kumar Bandanadham on May 9, 2008 11:48 AM