doubt on claf_classification_of_objects function module

Question: Hi all,

this claf_classification_of_objects function module accepts data for class classtype and object parameters and returns the data in tables t_class and t_objectdata. I need the data in t_objectdata table for furthur programming.

Please tell me how to get the data into the table t_objectdata.How to declare that

if possible please give me some code.

waiting for replies.

Answer:
When using FMs you declare your data object the same as the declaration in the FM. Then you will have the data for further processing.
_________________
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru

Answer:
i tried executing this code but iam getting error .
The function module interface allows you to specify only fields
of a particular type under "OBJECT". The field "S_OBJECT" specified here
has a different field type. here the object is an equipment number.

tables: ausp,
        sclass,
        clobjdat.
parameters: p_class like klah-class obligatory default 'w',
            p_klart like klah-klart obligatory default '002'.
select-options: s_object for ausp-objek obligatory default '32044'.
data: begin of itab occurs 10.
      include structure sclass.
data:end of itab.
data:begin of jtab occurs 100.
     include structure clobjdat.
data: end of jtab.

CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
  EXPORTING
   CLASS                      = p_class
*   CLASSTEXT                  = 'X'
    CLASSTYPE                  = p_klart
*   CLINT                      = 0
*   FEATURES                   = 'X'
*  LANGUAGE                   = 'de'
    OBJECT                     = s_object
*   OBJECTTABLE                = ' '
*   KEY_DATE                   = SY-DATUM
*   INITIAL_CHARACT            = 'X'
*   NO_VALUE_DESCRIPT          =
*   CHANGE_SERVICE_CLF         = 'X'
*   INHERITED_CHAR             = ' '
*   CHANGE_NUMBER              = ' '
  TABLES
    T_CLASS                    = itab
    T_OBJECTDATA               = jtab
*   I_SEL_CHARACTERISTIC       =
*   T_NO_AUTH_CHARACT          =
* EXCEPTIONS
*   NO_CLASSIFICATION          = 1
*  NO_CLASSTYPES              = 2
*   INVALID_CLASS_TYPE         = 3
*   OTHERS                     = 4
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
.
Please check the code and tell me where the error is.
Thanks.

Answer:
I refer you to my earlier statement - you can ONLY define variables for use with FMs that are THE SAME as the FM's definition.

For goodness sakes RTFM!
_________________
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru

Answer:
Mr. Rosie Brent,
Iam sorry to say that Iam new to the ABAP programming.It is my 3rd week in real time.
If you dont want to say then leave it. Dont say like
For goodness sakes RTFM!
if u know everything it is well and good .
dont insult others.O.k



regards
Chandu.

Answer:
Well RTFM is pretty good advice particularly for a new abapper. And accusing someone who has given you the answer to your question of insulting you is not the best way to get on the right side of one of the most helpful people here.

Answer:
Chandu

Firstly, I apologise if you felt insulted, however - you should be reading the answers people give you before continuing. I had already stated that you have to declare all data objects which are used in FM calls exactly as the FM declares them - this sometimes means moving variables.

A select-option based on a field is not the same as a field, it is an internal table containing sign, option, high and low values. This therefore causes your program to short dump.

Before attempting use of any new syntax or techniques I always read the SAP help, ask a colleague for advice or look here for existing topics regarding it - even now, and I've been ABAPping for 5 and a half years.

It's not being rude, it's reminding you that the information is there, you just need to stop panicking about deadlines and give yourself the breathing room to learn.

Hope this clarifies my intentions.
_________________
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru
Copyright ?2007 - 2008 www.jt77.com