‎2008 May 09 10:19 AM
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 ??
‎2008 May 09 10:26 AM
You cant do this through a report program. You need to devolop a module pool program to achieve the above functionality.
‎2008 May 09 10:29 AM
‎2008 May 09 10:47 AM
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