‎2007 Aug 14 8:38 AM
Hi,
I have a list of characteristic values, from which i need to find the DMS documents which use that characteristic, and have those values.
I have used table AUSP, but when i find that characteristic, the value fields are empty, therefore i don't find anything.
Could someone please help by either telling me which tables to check in order to find these values, or if there is a function module which allows you to enter a characteristic value, and find all documents using that value.
Thanks in advance.
‎2007 Aug 14 8:55 AM
If you know the class for which the CHAR values have to be fetched you can use that BAPI_OBJCL_GETDETAIL directly.
Else call BAPI_OBJCL_GETCLASSES to get the classes to which the materila belongs and then use this data to call the BAPI_OBJCL_GETDETAIL.
You need to pass the material to the OBJECT parameters of these functions.
‎2007 Aug 14 8:55 AM
If you know the class for which the CHAR values have to be fetched you can use that BAPI_OBJCL_GETDETAIL directly.
Else call BAPI_OBJCL_GETCLASSES to get the classes to which the materila belongs and then use this data to call the BAPI_OBJCL_GETDETAIL.
You need to pass the material to the OBJECT parameters of these functions.
‎2007 Aug 14 9:39 AM
with tcode CV04N you can also find your values. so why programm it in ABAP ?
If I look in my ausp table I find the values for my characteristics in ATWRT with the DMS classification
‎2007 Aug 14 9:55 AM
That works, but the problem is that i have a list of around 500 characteristic values. So for each of these records, i need to find the document attached, and all the other characteristic values for that document. So i'd probably end up with 20 fields for each of the original records. So i need a program for this.
When i check table AUSP, i see the values for other characteristics, just not the particular characteristic i am trying to search with.
‎2007 Aug 15 8:44 AM
I still don't see the point you need a programm for this besides cv04n shows all charecteristics in an alv grid (and otherwise select the characteristics in the layout)
you can also search only on the characteristic and (mulitple) values you want ?
and when you check table ausp with se16n you can also filter on the characteristic name that you just want to see so you don't see the others
Message was edited by:
A. de Smidt
‎2007 Aug 15 10:58 AM
Hi
Sorry I didn't know about se16n, that helps a lot, especially that i can filter values read from a text file.
Thanks for the help, much appreciated.
Regards,
Tyrone
‎2014 Aug 12 3:01 PM
Hi All,
We can use the function module - CV100_CLASS_SEARCH
Please refer the following example
data: wa_class type dmscls_simple_selection,
it_class type standard table of dmscls_simple_selection.
wa_class-characteristic = 'CH_TRF_RPT'."Characteristic name
wa_class-value = 'ASDASD'."Characteristic Value
append wa_class to it_class.
clear wa_class.
call function 'CV100_CLASS_SEARCH'
exporting
classno = 'CL_DMS_RPT'"Classifcation Name/Class Name
classtype = '017'"Class type
max_hits = 9999
slanguage = sy-langu
* PF_LIST_TYPE =
tables
tdraw = it_draw
class_selection = it_class
* CLSC_CLASS_SELECTION =
stdokar = it_dokar
stdoknr = it_doknr
stdokvr = it_dokvr
stdoktl = it_doktl
* EXCEPTIONS
* NO_RESULT = 1
* BAD_QUERY = 2
* OTHERS = 3
.
if sy-subrc <> 0.
* Implement suitable error handling here
endif.
Note: Only fill class selection table along with importing parameters