10-15-2009 9:38 AM
i have a question that i want to print the payment advice sorting by document no / document date which depend on which company i choose. (T-code:fbz5)
e.g. if company 1000, 2000 i want to show the records sorting by document no
if company 3000, 4000 i want to show the records sorting by document date, then document no
i just know in the SAP Script Form, in MAIN window,
the record is shown like this (using tabel REGUP)
®UP-BELNR&,,®UP-XBLNR+0(16)&,,®UP-SGTXT(16)&,,®UP-BLDAT&,,.......................................
but i don't know how to control the sorting preference in SAP Scripts Form Code.
pls. help~
10-15-2009 9:43 AM
hello,
Please cehck the print program.What you can do is while debugging as soon as the open_form is called you can create look for exit or implicit enhancement and sort the data accordingly.
Just make your code secured in implicit enhancement lets say some company code check should be provided.
Hope it helps.
Regards,
Nabheet Madan
11-03-2009 3:48 AM
i've checked that my print program didn't have OPEN_FORM.
all the data from table :reguh are directly called by the SAP Script Form.
like ®uh-xxxxx&,,®uh-xxxxx&,,
so should I need to write more subroutine and make the data are come from program instead of from form?
11-03-2009 4:13 AM
Hi
Ya u r correct instaed of changing the driver program...write a subroutine program get all the data wat ever u want i mean date and document number from script by using this structure itcsy...