on 05-17-2012 3:43 PM
Hi experts,
I am using SAP Script for displaying account statement using standard print program (RFKORD10) triggering by FBL5N transaction.
In that output i am displaying 6 columns totally
Out of 6 columns , 2 columns logic are displaying using custom print program
for Example : Invoice number , Sales order number , Date, Due date , Branch, Store number
These ( branch and store number ) are displaying using custom print program
right now its displaying correctly all the data
But i need to SORT all the line items column based on BRANCH column
So is there any way to achieve this logic
Thanks in Advance
Vincent
The original post seems garbled. Are you using a standard print program, or have you developed a custom print program? Do you mean that you have a standard print program and have customized the SAPScript with PERFORM addition to get two additional columns or ??
At any rate, the answer is you cannot sort in the output form. So, sort the data in the driver program, before you start the loop to output the form's main window contents.
If you are using standard print program, try to find an implicit enhancement point where you can insert a sort statement. If you are using a PERFORM in the form to get the two additional fields, then it is not possible to achieve a sort of the entire form output to sequence the output by the two added fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it is a custom print program why can't you sort in the program itself?!!
And if it is a custom form. You can try a ABAP routine something like this:
/:PERFORM GET_NAME IN PROGRAM Z_include_program
/: CHANGING &ITAB&
/:ENDPERFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nabheet,
Thanks for your concerns. But they are misdirected. Vincent clearly said that it had a custom print program in the question itself. First of all I did not give a solution. I was trying to help and asked a question using 'if'. Either my English is poor or else I am expected to give solution everytime. I find no point being blatant over here. Not everyone who asks a question is a rocket scientist here. People are trying to help each other.
I hope you guys got my point of view.
Thanks
Pratik.
Why dont you sort in the custom print program?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check on whether the Customer exit "RFKORIEX Automatic correspondence" is triggered, see if it might be useful. Check on accessing global values in debugger whether you can get any final table filled is available.
Thanks & Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.