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

doubt : module pool

Former Member
0 Likes
1,060

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,034

Hi,

Instead of Get parameter, use Set parameter keyword.

regards,

Santosh Thorat

Read only

0 Likes
1,034

Still does not work with set parameter.

Read only

0 Likes
1,034

Hi,

Set parameterd id 'MAT' field zmatnr.

the MAT should be in capital .

regards,

Santosh Thorat

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

Still does not work

Read only

0 Likes
1,034

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

Read only

Former Member
0 Likes
1,034

hi,

what u want exactly? can u tell me ur requirement?