‎2008 Jan 18 8:11 AM
In a module pool program, I have made a transaction, and screen is called.
In the include I am writing get paramater ID, but not able to see it on screen.
I have filled the get parameter ID field in screen layout.
EG in include.
get parameter id 'mat' field zmatnr.
get parameter id 'wer' field zwerks.
I have two fields in screen also called zmatnr and zwerks with paramater ID mat and wer respectively.
Edited by: S V on Jan 18, 2008 9:12 AM
‎2008 Jan 18 8:14 AM
Hi,
Instead of Get parameter, use Set parameter keyword.
regards,
Santosh Thorat
‎2008 Jan 18 8:16 AM
‎2008 Jan 18 8:21 AM
Hi,
Set parameterd id 'MAT' field zmatnr.
the MAT should be in capital .
regards,
Santosh Thorat
‎2008 Jan 18 8:24 AM
Still does not work, here is the example
data : zmatnr type marc-matnr,
zwerks type marc-werks.
tables : marc.
select matnr
werks
into marc
from marc
where matnr = 'etest1'
and werks = '0001'.
endselect.
zmatnr = marc-matnr.
zwerks = marc-werks.
set parameter id 'MAT' field zmatnr.
set parameter id 'WER' field zwerks.
‎2008 Jan 18 8:25 AM
Hi S V,
Use like this
SET PARAMETER ID 'QLS' FIELD wa_out1-prueflos.
If you have created the screen on which this value should be populated for the field in which this value should be populated check the GET PARAMTER checkbox and enter the paramter id also.
‎2008 Jan 18 8:34 AM
Changed the example to
tables : marc.
select matnr
werks
into marc
from marc
where matnr = 'etest1'
and werks = '0001'.
endselect.
set parameter id 'MAT' field marc-matnr.
set parameter id 'WER' field marc-werks.
Still does not work
‎2008 Jan 18 8:42 AM
Hi,
you should drag the fields matnr and werks from dictonary .
in the layout when u press F6 button , then one window pops out there u should type marc in the table field and press the pushbutton in GET FROM DICTONARY.
and then select matnr and werks from this and press enter.
the two fields get displayed in the layout and use the following code.
tables : marc.
select matnr
werks
into marc
from marc
where matnr = 'ETEST1'
and werks = '0001'.
set parameter id 'MAT' field marc-matnr.
set parameter id 'WER' field marc-werks.
regards,
Santosh Thorat
‎2008 Jan 18 8:44 AM
‎2008 Jan 18 8:53 AM
Hi ,
Checkout this code.
tables marc.
start-of-selection.
select single * from marc .
set PARAMETER ID 'MAT' field marc-matnr.
set PARAMETER ID 'WRK' field marc-werks.
call screen 100.
*-----
and in the screen drag the fields matnr and werks field from get dictionary window.
regards,
Santosh
‎2008 Jan 18 11:42 AM