10-08-2008 8:33 PM
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
10-08-2008 8:56 PM
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
10-08-2008 8:50 PM
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
10-08-2008 8:56 PM
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
10-09-2008 3:21 PM
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
10-09-2008 3:42 PM
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...?
10-09-2008 6:38 PM
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