‎2010 Sep 28 4:03 PM
Hi,
We have a Z Script to show the output in Standard T.code F.27. But in that Account Statement is ascending based on the Document Date. Now user want that it should be based on the Posting date inplace of Document Date.
I am unable to find why statement is sort by Document Date. Can we write subroutine for sort the statement by Posting date???
Or any alternate for it..
Plz help...
‎2010 Sep 28 4:09 PM
hi,
go to se16> enter table name TNAPR> enter script name and execute see the driver porgram attached.
then go to driver program sort the table base on Posting date inplace of Document Date.
Prabhudas
‎2010 Sep 28 4:32 PM
Thanks dear...
But we don't have the driver program for this script.
As i told earlier, we have made Z Script but t.code is standard F.27. Then from where we can change sorting criteria...
‎2010 Sep 28 4:40 PM
There is always a print program for a SAPScript form. How else would the data get selected and passed to the form?
‎2010 Sep 28 4:54 PM
Thanks guru...You are right that there is always a print program for a SAPScript form.
I have found the driver program through another way...but not was in table.
But in that driver program, there is no sort statement. If exist, already commented.
In this case, what should I do...
‎2010 Sep 28 5:05 PM
If standard SAP driver program: If there is a subroutine where the form is opened, or other appropriate point before loop to process main window, find and implement an implicit enhancement adding a sort statement for the table that will be processed to lay down the main window rows of the form.
If customer-space driver program, edit the program and add a sort statement at the appropriate point.
‎2010 Oct 19 5:34 PM
Hi Anil ,
I am also facing some problem can you tell me how you have added
your Z script to F.27 tcode ?
Regards ,
Nilesh
‎2010 Oct 23 5:30 AM
Dear, first find out the driver program for f.27 and go to variant of that program.
There is a option of sorting by which you want to sort..