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

syntax req??

Former Member
0 Likes
542

hi

Please tell i want to put R1 = X.for all plants starting from 2000,like 2001,2002...etc.

please tell me the syntax.

regds

1 ACCEPTED SOLUTION
Read only

kiran_k8
Active Contributor
0 Likes
519

Vipin,

data:begin of itab1 occurs,

plnty like plpo-plnty

werks like plpo-werks,

flag1 type c,

end of itab1.

select plnty werks

from plpo

into table itab1

where plnty = 'N'.

loop at itab1.

if itab1-werks+0(1) = '2'.

itab1-flag1 = 'X'.

modify itab1.

endloop.

K.Kiran.

3 REPLIES 3
Read only

kiran_k8
Active Contributor
0 Likes
520

Vipin,

data:begin of itab1 occurs,

plnty like plpo-plnty

werks like plpo-werks,

flag1 type c,

end of itab1.

select plnty werks

from plpo

into table itab1

where plnty = 'N'.

loop at itab1.

if itab1-werks+0(1) = '2'.

itab1-flag1 = 'X'.

modify itab1.

endloop.

K.Kiran.

Read only

Former Member
0 Likes
519

my req is like i want to print an plant address in display,for the plant statrting with 2000,the address is same for all.so if user selects any plant with series of 2 on selection screen,i want to display the adress,thus i want to mark r1 = X,for all the plants of series 2000.

Read only

Former Member
0 Likes
519

For gods sake, why not specify the full requirement in the original question.