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 Module BAPI_OBJCL_GETDETAIL issue

Former Member
0 Likes
5,058

Hello Experts,

I'm using function module BAPI_OBJCL_GETDETAIL to retrieve material classification, it's called like below:


CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
  EXPORTING
    objectkey = '000000000000100000'
    object       = 'MARA'
    classnum  = 'SEL'
    classtype = '001'
  TABLES
    allocvaluesnum  = allocvaluesnum[]
    allocvalueschar = allocvalueschar[]
    allocvaluescurr = allocvaluescurr[]
    return          = return[].

The function module returns with all classfications' values except one which is set by action (a z-function module which set this value from another classification value set by user). Does anyone know a solution to it? Thanks very much.

1 REPLY 1
Read only

rob_postema
Participant
0 Likes
2,038

Do you get the same result by using this FM?



DATA:    lt_class        TYPE TABLE OF sclass,
               lt_objectdata   TYPE TABLE OF clobjdat.

CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
  EXPORTING
    classtype          = '001'                      "Material Class
    object             = '000000000000100000'       "Material Number
    objecttable        = 'MARA'                     "Object Table
    initial_charact    = 'X'                        "Show also emtpty Characteristic Values
  TABLES
    t_class            = lt_class
    t_objectdata       = lt_objectdata
  EXCEPTIONS
    no_classification  = 1
    no_classtypes      = 2
    invalid_class_type = 3
    OTHERS             = 4.