‎2014 Jul 17 1:57 PM
Hi,
When I want to read from maintenance view with function module 'VIEW_GET_DATA', I get get an empty DATA internal table. I specify which records I want to read from my maintenance view using DBA_SELLIST, and I suspect I am not doing it correctly.
This is how I do it:
wa_DBA_SELLIST-VIEWFIELD = 'PERSK'.
wa_DBA_SELLIST-OPERATOR = 'EQ'.
wa_DBA_SELLIST-VALUE = 'SP'.
append wa_DBA_SELLIST to it_DBA_SELLIST.
So, I want to read only those records where PERSK field equals to 'SP'. Is there anything I am doing wrong in setting up it_dba_sellist?
Also, how do I make it so that I select only specific parameters rather than entire rows from maintenance view?
Thank you,
Jake Alexander
‎2014 Jul 17 2:56 PM
‎2014 Jul 17 2:56 PM
‎2014 Jul 17 4:29 PM
I have used a view v_t356 as an example and it worked me perfectly with the conditions. Please see the below code
wa_DBA_SELLIST-VIEWFIELD = 'ARTPR'.
wa_DBA_SELLIST-OPERATOR = 'EQ'.
wa_DBA_SELLIST-VALUE = 'CM'.
wa_DBA_SELLIST-TABIX = '2'.
append wa_DBA_SELLIST to it_DBA_SELLIST.
When ever we give the conditions the function module view_get_data tries to check the field numbering before checking . Here in view v_t356 the field number ARTPR is 2. So as per your check the field number in the view and pass the number in the TABIX area. So that you can achieve what you need.
If the issue resolves please provide the points.
‎2014 Jul 18 5:25 AM
It did work, thank you. Is there a resource online that gives a detailed explanation and possibly usage examples of all the function modules and data structures used in SAP?