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

set parameters

Former Member
0 Likes
1,342

hi,

can anyone tel me wat is error in this coding

AT LINE-SELECTION.

DATA: g(30),

ref_parameter(30) VALUE 'parameter by reference',

val_parameter(30) VALUE 'parameter by value',

field_symbol LIKE itab-lifnr.

FIELD-SYMBOLS: <f> TYPE ANY.

ASSIGN itab-lifnr TO <f>.

GET CURSOR FIELD g.

SET PARAMETER ID 'Vendor' FIELD itab-lifnr.

CALL TRANSACTION 'ZAZU'." AND SKIP FIRST SCREEN.

Im not getting the corresponding value in the parameter it is not setting into the parameter box wat is the error

10 REPLIES 10
Read only

Former Member
0 Likes
1,272

Hi,

Have u used the HIDE statement while writing the output on the first screen.

U shud code like this :

LOOP AT ITAB.

WRITE : ITAB-LIFNR.

HIDE ITAB-LIFNR.

ENDLOOP.

AT LINE-SELECTION.

Then do ur coding.

Hope this helps.

Regards,

Himanshu.

Read only

former_member632991
Active Contributor
0 Likes
1,272

Hi,

for LIFNR, set the default parameter id as 'LIF',which is there in the data element of LIFNR.

Regards,

Sonika

Read only

Former Member
0 Likes
1,272

u have to get the cursor values then only data will come , not itab-lifnr.

press F1 on cursor , u will get sytax to call.

Regards

Prabhu

Read only

Former Member
0 Likes
1,272

Hi..,

U cannot write this code ..

SET PARAMETER ID 'Vendor' FIELD itab-lifnr.

CALL TRANSACTION 'ZAZU'." AND SKIP FIRST SCREEN.

u cannot use your own parameter ids..

<b>U can use the Parameter ids that are there in TPARA table only..

LIF is the Parameter id for LIFNR.</b>

To check the Parameter ids u need to go to SE11 transaction..

type the table field name as LIFNR in Data type input field and check the corresponding radio button. and press display..

In that go to Further characteristics tab.. here u can find the Parameter id .. U can use this...

regards,

sai ramesh

Read only

Former Member
0 Likes
1,272

hi to all

i changed the parameter id also

set parameter id 'lif' field itab-lifnr

but then also im not getting it

Read only

0 Likes
1,272

Hi,

write lif in caps mode

LIF, may be it works

Regards,

Sonika

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,272

(1) Have you Hide the parameter itab-lifnr

Check via break-point

(2) In your transaction ZAZU

The parameter seems to be "vendor" but what is its <b>parameter id</b>, look at PARAMETER definition, is MEMORY ID '<b>LIF</b>' ?

Regards

Read only

Former Member
0 Likes
1,272

LIF is in caps mode only

and i have used Hide itab-lifnr

but its stil not working

and im getting the value in debugging mode but while executing im not getting that

Read only

Former Member
0 Likes
1,272

Hi,

You need to use

set parameter id 'lif' field itab-lifnr .

.

and also check the transaction <b>ZAZU</b>, whether the field is having the correct data element that is LIFNR, if the Screen field of the transaction ZAZU should be the same data element

Regards

Sudheer

Read only

0 Likes
1,272

Dude,

This is a very common problem.

Activate the checkbox set parameter and get parameter on the transaction ‘ZAZU’ screen. This check box you will find on the field property windiw.

Regards,