‎2008 Jul 09 7:06 AM
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,
‎2008 Jul 09 7:13 AM
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.
‎2008 Jul 09 7:11 AM
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.
‎2008 Jul 09 7:17 AM
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
‎2008 Jul 09 7:20 AM
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
‎2008 Jul 09 7:30 AM
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.
‎2008 Jul 09 7:13 AM
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.
‎2008 Jul 09 7:14 AM
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
‎2008 Jul 09 7:14 AM
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 ..
‎2008 Jul 09 7:17 AM
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.
‎2008 Jul 09 7:23 AM
thanku all
after all your suggestions
i knew that there is no opiton to set the write statement at a particular position
‎2008 Jul 09 7:23 AM
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