Application Development and Automation 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 only

How to read classification data for class CUSTOMER...

Former Member
4,428

hi,

In xd03, select a customer record, from neu choose extras--> classification. Under the general tab, I need to read a characteristic..

How to read it's value ?? whats the FM ??

thks

1 ACCEPTED SOLUTION
Read only

Former Member
2,231

usage of BAPI

BAPI_OBJCL_GETDETAIL

OBJECTKEY                       customer number
 OBJECTTABLE                     KNA1  
 CLASSNUM                         "class 
 CLASSTYPE                       011 " for customer
 KEYDATE                         20081009  "sy-datum
 UNVALUATED_CHARS                X
 LANGUAGE                        E

"class number will be derived from KLAH  table , with class 
"type '011' get the CLASS from KLAH and use the above

hi,

In xd03, select a customer record, from neu choose extras--> classification. Under the general tab, I need to read a characteristic..

How to read it's value ?? whats the FM ??

thks

5 REPLIES 5
Read only

Former Member
0 Likes
2,231

use AUSP table, Object is the Custome number, and pass the class '011' and get the ATINN , and ATWRT

now go to CABNT read the characterstic Desription.

or you can use the BAPI BAPI_OBJCL_GETDETAIL

Read only

Former Member
2,232

usage of BAPI

BAPI_OBJCL_GETDETAIL

OBJECTKEY                       customer number
 OBJECTTABLE                     KNA1  
 CLASSNUM                         "class 
 CLASSTYPE                       011 " for customer
 KEYDATE                         20081009  "sy-datum
 UNVALUATED_CHARS                X
 LANGUAGE                        E

"class number will be derived from KLAH  table , with class 
"type '011' get the CLASS from KLAH and use the above

Read only

0 Likes
2,231

Hey Vijay,

thanks..it helped..but i am getting an exception and the BAPI is not invoked..

MOVE WA_DATA-KUNNR TO L_OBJKEY.

CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'

EXPORTING

OBJECTKEY = L_OBJKEY

OBJECTTABLE = 'KNA1'

CLASSNUM = 'CUSTOMER'

CLASSTYPE = '011'

IMPORTING

ALLOCVALUESCHAR = I_TABLEVALS.

Here, I know the classnum for class type 011 is customer and th eobject table id KNA1. So I am just passing the kunnr as a variable and all others are fixed values ..am i right ?

I am getting the exception

CX_SY_DYN_CALL_PARAM_NOT_FOUND ...

i am supplying the 4 mandatory values !! whats wrong ?

thks

Read only

0 Likes
2,231

are you sure CUSTOMER is the class for 011 , check it once in KLAH table..? Debug and tell me where you are getting the error...?

Read only

0 Likes
2,231

hey vijay ,

Tables shud be under TABLES rather than exporting !! my bad...

rest i need to test..and yeah customer class num is CUSTOMER for type 011..still i am trying to fetch it from KLAH ...anyway, thanks