on 07-23-2013 2:38 AM
Hi All,
I classified Object links (MARA) of a DIR, using class type 048.
Is there any BAPI which can retrieve the Classification information of the Object link.
I tried BAPI_DOCUMENT_GETOBJECTLINKS, it retries only OBJECTLINKID.
Is there any table where I can use this OBJECTLINKID
tried BAPI_DOCUMENT_GETDETIAL2 , not useful.
Regards,
Aby
You should use FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Hope it helps.
/Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you set the GETCLASSIFICATION = 'X' in Bapi 'BAPI_DOCUMENT_GETDETAIL2".
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = wa_draw-dokar
documentnumber = wa_draw-doknr
documentpart = wa_draw-doktl
documentversion = wa_draw-dokvr
* GETOBJECTLINKS = ' '
* GETCOMPONENTS = ' '
* GETSTATUSLOG = ' '
* GETLONGTEXTS = ' '
* GETACTIVEFILES = 'X'
* GETDOCDESCRIPTIONS = 'X'
* GETDOCFILES = 'X'
GETCLASSIFICATION = 'X' " Set this to 'X'
* GETSTRUCTURE = ' '
* GETWHEREUSED = ' '
* HOSTNAME = ' '
* IMPORTING
* DOCUMENTDATA =
* RETURN =
* TABLES
* OBJECTLINKS =
* DOCUMENTDESCRIPTIONS =
* LONGTEXTS =
* STATUSLOG =
* DOCUMENTFILES =
* COMPONENTS =
CHARACTERISTICVALUES = i_class " You will get Classifications in i_class
* CLASSALLOCATIONS =
* DOCUMENTSTRUCTURE =
* WHEREUSEDLIST =
.
LOOP AT i_class.
CALL FUNCTION 'BAPI_CHARACT_GETDETAIL'
EXPORTING
charactname = i_class-charname.
* KEYDATE = SY-DATUM
* LANGUAGE =
IMPORTING
charactdetail = lv_chardetail
TABLES
* CHARACTDESCR =
* CHARACTVALUESNUM =
* CHARACTVALUESCHAR =
* CHARACTVALUESCURR =
* CHARACTVALUESDESCR =
* CHARACTREFERENCES =
* CHARACTRESTRICTIONS =
return = lt_return.
ENDLOOP.
Thanks & Regards
Bala Krishna
Message was edited by: Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You will get that entry in STXH table, you can read that values using READ_TEXT function module.
First get the Objectlinks using Bapi 'BAPI_DOCUMENT_GETDETAIL2' by setting GETOBJECTLINKS = 'X'.
You will get all Objectlinks in i_objlinks.
Now with the I_objlinks-objlinkid( Pass this value into STXH it will have an entry) value pass it to READ_TEXT function module.
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = wa_draw-dokar
documentnumber = wa_draw-doknr
documentpart = wa_draw-doktl
documentversion = wa_draw-dokvr
GETOBJECTLINKS = 'X'
* GETCOMPONENTS = ' '
* GETSTATUSLOG = ' '
* GETLONGTEXTS = ' '
* GETACTIVEFILES = 'X'
* GETDOCDESCRIPTIONS = 'X'
* GETDOCFILES = 'X'
* GETCLASSIFICATION = 'X'
* GETSTRUCTURE = ' '
* GETWHEREUSED = ' '
* HOSTNAME = ' '
* IMPORTING
* DOCUMENTDATA =
* RETURN =
* TABLES
OBJECTLINKS = i_objlinks
* DOCUMENTDESCRIPTIONS =
* LONGTEXTS =
* STATUSLOG =
* DOCUMENTFILES =
* COMPONENTS =
* CHARACTERISTICVALUES =
* CLASSALLOCATIONS =
* DOCUMENTSTRUCTURE =
* WHEREUSEDLIST =
.
DATA : v_name TYPE stxh-tdname.
LOOP AT i_objlinks.
v_name = i_objlinks-objectlinkid.
IF NOT v_name IS INITIAL.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'LTXT'
language = sy-langu
name = v_name
object = 'DRAD'
TABLES
lines = i_textlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
*** i_textlines will have the long text.
ENDIF.
CLEAR : v_name.
REFRESH : i_textlines.
ENDLOOP.
Thanks & Regards
Bala Krishna
Hi Aby,
Can provide the screenshot of the characteristics which you are providing in the Objectlinks tab. I can see only a long text being created. I am little bit confused as how can we enter characteristics in Objectlinks tab.
Just post the screen shot of what values you are expecting from that Objectlinkid.
Thanks & Regards
Bala Krishna
Hi Aby,
You may use BAPI_OBJCL_GETDETAIL .
Refer links below for details.
http://www.saptechnical.com/Tutorials/BAPI/Classification/Index.htm
http://scn.sap.com/message/13965532
Hope this helps.
Regards,
Deepak Kori
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.