11-04-2010 9:19 AM
Hi experts¡¡¡
I need to perform a simple but dificult task.
I must sort the item lines in VA02, VA03 transaction by other criteria than Item number.
For example: sort the item lines by quantity or by plant or by any other criteria chosen by me.
Thank you very much and kind regards
Ibai
11-04-2010 9:43 AM
Hi
Theoretically is easy: u need to sort the internal table xvbap for your criteria, that means to chamge the standard program of course.
The problem is to understant the impact can have a modification like that, i know the program uses the index to read the corrisponding record of other tables, something like this:
read table xvbap with .......
if sy-subrc = 0.
read table yvbap index SY-TABIX.
That could probably mean you need to sort many other table too
I don't know your goal, but before implementing it you should discuss about them to you functionals or users and try to undestand if it's necessary or if it cab be aborted
Max
Edited by: max bianchi on Nov 4, 2010 10:43 AM
11-04-2010 9:51 AM
Hi ,
in the Exit - MV45AFZZ
try FORM USEREXIT_READ_DOCUMENT. I m not sure .just guessing .since those kind of a requirement i ve never met
Thx,
Dilum
11-04-2010 11:36 AM
The result is most likely to be abends, since the I* (index) versions of the internal tables will no longer match YVBAP and XVBAP. This is a very bad idea.
11-04-2010 11:36 AM
The result is most likely to be abends, since the I* (index) versions of the internal tables will no longer match YVBAP and XVBAP. This is a very bad idea.
11-04-2010 11:50 AM
Like Max Bianchi or Break-Point already told you, this is a very dangerous development.
Your gain is quite low but the risks you take are very high.
It will take you a LOT of developing and testing time to get this requirement developed waterproof without disturbing SAP-Standard functionalities.
So this will be a very expensive development for your customer. You should recheck with the customer if the requrement is really so important that it rectifies such enourmos cost.
/edit adding some more info
See sorting the table in another way takes you 5 minutes, that aint the expensive part.
But testing if you then got interferences with XVBAP YVBAP or CVBAP or *VBAP and solving those, can take a lot of time which is hard to estimate. I wouldnt wonder if you invested around 10 days at the end.
Edited by: Florian Kemmer on Nov 4, 2010 12:51 PM