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

Function to retrieve PM Notification Item Classification data

Former Member
0 Likes
2,154

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,170

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

5 REPLIES 5
Read only

former_member15918
Participant
0 Likes
1,170

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

Read only

Former Member
0 Likes
1,170

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

Read only

0 Likes
1,170

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.

Read only

Former Member
0 Likes
1,171

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

Read only

0 Likes
1,170

Hi KevinCann, this function works perfect! Just exactly what I was looking for. Thank you very much.