‎2010 Jun 02 10:51 AM
Hi,
I am modifying the standard script rvorder01 for delivery order.While modifying I created a new page using the comand NEW-PAGE and displaying the item details like truck details.For Example output is as below,
for one delivery we have the following details Deliver Order number:xxxxxxx
line items1
..
...
...
...
..
lineitem 20
after this I have created a new-page and displaying truck details.
truck1
truck2
truck3
I am retrieving the above data from mu subroutine pool program. It is retrieving all the truck details.But while displaying it is giving the last truck details.
My question is how to get all the truck details in my new page as it is displaying line items in main window in first page.
I have tried by displaying the values in th item_line element but no success.Please help me in this regard.
‎2010 Jun 02 11:46 AM
you need to call the element inside the loop.
loop at itab into wa.
call FM for element eg: /:505 --> in script page write wa-truckfielname
endloop.
regards,
nazeer
‎2010 Jun 02 12:09 PM
Hi, Nazeer,
Can you please explain in detail.
I am modifying the standard script and we cannot write loop in standard script. My code is in loop.....endloop in subroutine.
Still getting the same problem.
endloop.
‎2010 Jun 02 12:10 PM
You cant use loop statement in Script that you have to write in driver program by calling element.
‎2010 Jun 02 12:19 PM
Hi Mukund,
do you mean that I have to call the elemnt in subroutine pool program which i have written for truck details?????
‎2010 Jun 02 12:47 PM