on 11-10-2006 1:30 PM
Hi people..
we develop a bapi that brings this fields:
_______________________________
<b>Item</b> | <b>Code</b> | <b>Description</b> | <b>Meins</b>
0001 | 12523 | lalalalalalala | Unit A
0002 | 16434 | lololololololo | Unit B
0003 | 21744 | lelelelelelele | Unit C
0004 | 31555 | lululululululu | Unit D
But, when this is implementing in a OVS the output result is:
<b>Meins</b> | <b>Description</b> | <b>Item</b> | <b>Code</b>
Unit A | lalalalalalala | 0001| 12523
Unit B | lololololololo | 0002 | 16434
Unit C | lelelelelelele | 0003 | 21744
Unit D | lululululululu | 0004 | 31555
How can fix this order?
Thanks
Hi there,
The order in which the OVS is displaying the fields is probably the alphabetical order in which they are present in your output context.
Change the context attribute name according to your sort order like 0_Item, 1_Code, 2_Description, 3_Meins and it should automatically display it in that order...
Try it and let me know if it works,
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
LM,
I observe just the opposite: when you are usind IWDNodeInfo.iterateAttributes() attributes are supplied in order they where added. Both in NW04 and NW04s. If you armed with debuger, you can see that attribute entry get own sequential index when added, hence you ( or just me? can observe this behavior.
Valery Silaev
SaM Solutions
Felipe,
I've created a reusable OVS-RFC library some time ago, check https://weblogs.sdn.sap.com/pub/wlg/4015. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
It allows to display only necessary fields (both in input and output) in predefined order. Also overall setup for OVS is a one statement.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.