Skip to Content
0
Former Member
Aug 01, 2007 at 04:30 PM

read characteristic of preventive ( va22 ) in an external report

57 Views

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

ibst~instance

into (w_aufnr, w_addat, w_iloan, w_maufnr, w_instance)

from viaufks

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'

EXPORTING

INSTANCE = w_instance

IMPORTING

CONFIGURATION = LC_CONFIGURATION

EXCEPTIONS

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.

Any suggestion?

Thanks a lot

Bye

Marco