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

Required Logic.

Former Member
0 Likes
1,753

hi

experts,

i need a help the logic for the lot no.

lot number = ryipav

position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 6

specimen s e r t y u i o p w a c v x l n

application x x x x x x

for lot no.

the requirment z like this Gurus...

so in the application for lot no were r 'X' i need these fields only

So plz Help me in this Experts

Correct answers will b given full points.

Thanks & Regards

Sunita.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,727

Try this example

data: a(20).

Data : begin of itab occurs 0,

pos type i,

spe(1),

app(1),

end of itab.

itab-pos = 3.

itab-spe = 'r'.

itab-app ='x'.

append itab.

itab-pos = 5.

itab-spe = 'y'.

itab-app ='x'.

append itab.

itab-pos = 7.

itab-spe = 'i'.

itab-app ='x'.

append itab.

itab-pos = 9.

itab-spe = 'p'.

itab-app ='x'.

append itab.

itab-pos = 11.

itab-spe = 'a'.

itab-app ='x'.

append itab.

itab-pos = 13.

itab-spe = 'v'.

itab-app ='x'.

append itab.

loop at itab.

if itab-app ='x'.

concatenate a itab-spe into a.

endif.

endloop.

write : 'Lot Number =', a.

awrd points if useful

Bhupal

hi

experts,

i need a help the logic for the lot no.

lot number = ryipav

position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 6

specimen s e r t y u i o p w a c v x l n

application x x x x x x

for lot no.

the requirment z like this Gurus...

so in the application for lot no were r 'X' i need these fields only

So plz Help me in this Experts

Correct answers will b given full points.

Thanks & Regards

Sunita.

14 REPLIES 14
Read only

Former Member
0 Likes
1,727

Hi,

Can u provide more details?

Thanks and Regards,

Read only

0 Likes
1,727

Hi Chandu,

lot number = ryipav

position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 6

specimen s e r t y u i o p w a c v x l n

application x x x x x x

for lot no.

here if u see ...

3 r x are in the same line in the same way

5 y x

7 i x

9 p x

11 a x

13 v x

these are in the line .so here i want lot number = ryipav

Hope its clear now.

plz help me with the logic

Thanks & Regards

Sunita.

Read only

Former Member
0 Likes
1,728

Try this example

data: a(20).

Data : begin of itab occurs 0,

pos type i,

spe(1),

app(1),

end of itab.

itab-pos = 3.

itab-spe = 'r'.

itab-app ='x'.

append itab.

itab-pos = 5.

itab-spe = 'y'.

itab-app ='x'.

append itab.

itab-pos = 7.

itab-spe = 'i'.

itab-app ='x'.

append itab.

itab-pos = 9.

itab-spe = 'p'.

itab-app ='x'.

append itab.

itab-pos = 11.

itab-spe = 'a'.

itab-app ='x'.

append itab.

itab-pos = 13.

itab-spe = 'v'.

itab-app ='x'.

append itab.

loop at itab.

if itab-app ='x'.

concatenate a itab-spe into a.

endif.

endloop.

write : 'Lot Number =', a.

awrd points if useful

Bhupal

Read only

0 Likes
1,727

Hi bupal

thnx for ur reply .but these fields are not static.

thanks & regards

Sunita.

Read only

0 Likes
1,727

Would u explain more ?

Read only

0 Likes
1,727

Hi bupal

lot number = ryipav

position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16............

specimen s e r t y u i o p w a c v x l n

application x x x x x x

for lot no.

here if u see ...

3 r x are in the same line in the same way

5 y x

7 i x

9 p x

11 a x

13 v x

these are in the line .so here i want lot number = ryipav

if u see here these ryipav are not fixed they can b any were .

Hope its clear now.

thanks & regards

Sunita

Read only

0 Likes
1,727

what do u mean by 'These Fields are not static'. ?

Are they strings or what?

What will be ur input so that the output u requested?

Please give some clear details.

Read only

0 Likes
1,727

hi bupal

i mean that this can be any number or chaecter.

my outpur will be

lot number = ryipav

thnaks

sunita

Read only

0 Likes
1,727

Hi,

To generate the lot number ur mentioned below

3 r x

5 y x

7 i x

9 p x

11 a x

13 v x

In this

1.Is always starts from the 3 position of the postion and specimen?

2.Is application starts from 1 position?

Thanks and Regards,

Read only

0 Likes
1,727

Come To messenger:

[email protected]

We shall have some discussion over this so that i shall be clear with ur problem

Read only

0 Likes
1,727

hi bupal,

i dont hav acess to my messenger.

regards

Sunita.

Read only

0 Likes
1,727

Then clarify ur problem.

How do u get the Data like

3 r x

5 y x

7 i x ....

What type of variables are the position , spe.

Read only

0 Likes
1,727

hi bupal

i have send my spec to ur messenger.

regards

Sunita.

Read only

0 Likes
1,727

hi bhupal

im online from my yahoo mail. ru online now?

thnx

Sunita.