Hi i have a problem to read characteristics in va22. i don't know how i have to do to read them.. i know how read the characteristic of order (in iw32) but no of preventive (va22).
I have to do this in a custom report.
Usually to read the order i use a query as this:
select viaufksaufnr viaufksaddat viaufksiloan viaufksmaufnr
into (w_aufnr, w_addat, w_iloan, w_maufnr, w_instance)
inner join pmsdo on viaufksobjnr = pmsdoobjnr
inner join ibst on pmsdocuobj = ibstroot
where viaufks~auart in s_auart
and viaufks~iphas = '3'
and pmsdo~matnr eq 'CS_INTERRUZIONE'.
AND AFTER I USE THIS WITH THE ISTANCE:
CALL FUNCTION 'CE_C_GET_CBASE'
INSTANCE = w_instance
CONFIGURATION = LC_CONFIGURATION
INTERNAL_ERROR = 1
INSTANCE_IS_A_CLASSIFICATION = 2
OTHERS = 3.
The problem is:
i have the information in the vbap table, but if i take the objnr i don't found the record in the PMSDO and i can't take the number of instance.
Thanks a lot