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

write

Former Member
0 Likes
1,146

Hi Gurus,

I have a diffrent requirement with write statement

for ex:

I have 2 blocks of statments

I st Block

2 nd Block

After 1st block processed , 2 nd block taking some values from first block and then process the 2nd block.

But i want to print like below

2 nd Block

1 st Block

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,128

Hi,

If u want ur 2nd block shud be displayed first, then first Process ur 1st block n then 2nd block . After processing , write/display ur 2 nd block and then ur 1 st block..

Regards.

10 REPLIES 10
Read only

Former Member
0 Likes
1,128

Hi,

Your Question is not fully clear, what are these Blocks,

still trying to answer the question,

Move the Blocks in some String variable and then print it accordingly.

Best Regards,

Sunil.

Read only

0 Likes
1,128

Hi Sunil

Block means it is a loop with write statements with validation also

how i can u move all write statements

one option is there

again i have to use loop statements

but it is performance issue

is there any alternate option to print this

Read only

0 Likes
1,128

Hi,

In the LOOP statement do not write but get teh data into a internal table or workarea.

and then process the 2nd block and also get these details into another internal table.

And now display according to ur requirement .

Best regards,

raam

Read only

0 Likes
1,128

Two way is there.

First

Step 1:

Process all the calculation in one block.Store in to one internal table.

Step2: In this block you write on your screen.

Second

Step1:Keep your Block2 first and inside of the Block2 use Block1.Write the coressponding values from your respective blocks.

Read only

Former Member
0 Likes
1,129

Hi,

If u want ur 2nd block shud be displayed first, then first Process ur 1st block n then 2nd block . After processing , write/display ur 2 nd block and then ur 1 st block..

Regards.

Read only

Former Member
0 Likes
1,128

Hi,

As you specified that you need to do some operations based on the first block.

Do the operations and store them in an second internal table and then display the second internal table contents first and then the first internal table contents next.

Best regards,

raam

Read only

Former Member
0 Likes
1,128

Just do calculation in your first block ..save in ITAB1

get values into 2nd block and print..(write 😕 ... )

Now print the values from internal table ITAB1 ..

Read only

Former Member
0 Likes
1,128

Hi,

If the second block is depending upon the 1st block then process the 1st Block first and then second block.

After that print the 2nd block and then 1st block.

Regards,

Rajitha.

Read only

Former Member
0 Likes
1,128

thanku all

after all your suggestions

i knew that there is no opiton to set the write statement at a particular position

Read only

Former Member
0 Likes
1,128

hi,

If the variables which are using in the 2nd block is changing then before the 2nd block SAVE those values intosome other values and then process the 2nd block then print the frist block with the new variables.

Regards

Sumit Agarwal