Application Development 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: 

FBZ5 - printing payment advice - sorting problem

Former Member
0 Kudos

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)

&REGUP-BELNR&,,&REGUP-XBLNR+0(16)&,,&REGUP-SGTXT(16)&,,&REGUP-BLDAT&,,.......................................

but i don't know how to control the sorting preference in SAP Scripts Form Code.

pls. help~

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos

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

0 Kudos

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 &reguh-xxxxx&,,&reguh-xxxxx&,,

so should I need to write more subroutine and make the data are come from program instead of from form?

0 Kudos

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...