‎2009 Dec 01 9:50 AM
Hi, I have added classification to my PM Notification item (IW21), and would like to have a BAPI / FM to retrieve these classification datas.
I have been trying BAPI_OBJCL_GETDETAIL but facing some problem populating the parameters.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey =
objecttable = 'QMFE'
classnum = 'SC'
classtype = '015'SC is the classification I've created. I tried putting the Notification number as objectkey but it returns an error saying that the object does not exist.
Am I on the right track to obtain the information I wanted? If so, how do I find the objectkey to use?
Thank you in advance.
‎2009 Dec 09 8:12 AM
Hi Adrian,
what about this FM?
CALL FUNCTION 'CLFM_SELECT_AUSP'
EXPORTING
MAFID = 'O'
CLASSTYPE = '015'
OBJECT = your_obj "notification number
FEATURE =
CLEAR_BUFFER = ' '
KEY_DATE =
WITH_CHANGE_NUMBER = ' '
TABLE =
I_ATZHL_SAME_INI = ' '
I_AENNR = ' '
TABLES
EXP_AUSP = it_AUSP "Like Standard table AUSP
EXCEPTIONS
NO_VALUES = 1
OTHERS = 2
‎2009 Dec 08 3:47 AM
Hello,
Try using BAPI
CALL FUNCTION 'BAPI_ALM_NOTIF_GET_DETAIL'
EXPORTING
number = Notificatoin number
IMPORTING
notifheader_export =
notifhdtext =
TABLES
notlongtxt =
notitem =
notifcaus =
notifactv =
notiftask =
notifpartnr =
return =
Regards,
Hema
‎2009 Dec 08 4:50 AM
Hi,
You should call the FM "BAPI_OBJCL_GETDETAIL" as below
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = < Here your notification number >
OBJECTTABLE = < The table name >
CLASSNUM = < Here you specify class eg. GL_INSP ( for inspection related )>
CLASSTYPE = < Specify the class type here >
UNVALUATED_CHARS = 'X'
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = I_ALLOCNUM
ALLOCVALUESCHAR = I_ALLOCCHAR
ALLOCVALUESCURR = I_ALLOCCURR
RETURN = I_RETURN.
Hope this will help you.
Regards,
Smart Varghese
‎2009 Dec 09 10:21 AM
Hi guys, thanks for the suggestions.
Hemalata, I've tried the function and it doesn't return any object key.
smartvarghese, also tried putting in the Notification number but it returns an error saying the object does not exist.
‎2009 Dec 09 8:12 AM
Hi Adrian,
what about this FM?
CALL FUNCTION 'CLFM_SELECT_AUSP'
EXPORTING
MAFID = 'O'
CLASSTYPE = '015'
OBJECT = your_obj "notification number
FEATURE =
CLEAR_BUFFER = ' '
KEY_DATE =
WITH_CHANGE_NUMBER = ' '
TABLE =
I_ATZHL_SAME_INI = ' '
I_AENNR = ' '
TABLES
EXP_AUSP = it_AUSP "Like Standard table AUSP
EXCEPTIONS
NO_VALUES = 1
OTHERS = 2
‎2009 Dec 10 6:20 AM
Hi KevinCann, this function works perfect! Just exactly what I was looking for. Thank you very much.