04-27-2009 3:15 PM
Hello,
i need some help with the function module 'view_get_data' ,when i try to execute the function only with the name of the view without conditions( the prameter DBA_SELLIST ), it returns me the table correctly, but when i'm trying to execute the function with conditions, it returns an empty table. Please tell me how to execute the function the conditions so it would work.
Best regards,
Udi.
04-27-2009 3:29 PM
check first that any view is there for the table other wise the data will not be populated..
pass the view name inot table DD25V.
select * from DD25V where viewname = p_view . " view name passing to fm
if sy-subrc = 0.
CALL FUNCTION 'VIEW_GET_DATA'
EXPORTING
VALUE(VIEW_NAME) = "Pass table name
TABLES
DATA = pass internal table with above table name
else.
write : 'view does not exist'.
endif.
regards,
Prabhudas
04-27-2009 4:23 PM
05-10-2009 1:27 PM
Hello Rob,
thank you for your replay.
this are the values i populated in the DBA_SELLIST :
DBA_SELLIST-VIEWFIELD = 'ARTPR'.
DBA_SELLIST-OPERATOR = 'EQ'.
DBA_SELLIST-VALUE = 'MS'.
view_name = 'V_T356'.