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: 

How to read classification data for class CUSTOMER...

Former Member

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

former_member188685
Active Contributor

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

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

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

former_member188685
Active Contributor

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

0 Kudos

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

0 Kudos

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...?

0 Kudos

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