Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

read characteristic of preventive ( va22 ) in an external report

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

Hi all,

i found the solution by myself!

this is the solution:

the field vbap-CUOBJ contain the istance to passo to the functionVC_I_GET_CONFIGURATION_IBASE.

after you have all value of characteristic in output table.

bye

Marco