Application Development 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: 

BAPI_CHARACT_CREATE and table TCME

Former Member
0 Kudos

Hello everyone!

I want to upload some characteristics with BAPI_CHARACT_CREATE. To what I know, the tables CABN, CAWN should be updated and TCME for the mapping characteristic/class type.

CABN and CAWN are successfully updated. However, TCME isn't. I'm putting the class type in CHARACTDETAIL-ADT_CLASS_TYPE.

Any thoughts on this?

Best Regards,

Luís.

1 REPLY 1

Former Member
0 Kudos

Hello, Even though this was already assumed as answered and even though have happened a lot of time, I want to document the answer:

In order to use the BAPI_CHARACT_CREATE to create your class type restriction you have to define an additional table and append to it the class types you want to restrict (001 for material types, 002 for equipment types).

In the next pattern:

    CALL FUNCTION 'BAPI_CHARACT_CREATE'

      EXPORTING

        charactdetail      = fs_chardetail

      TABLES

        charactdescr       = t_chardescr

        charactvalueschar  = t_charvalueschar

        charactvaluesdescr = t_charvaluesdescr

        charactrestrictions = t_charrestrict

        return             = t_return.

The highlighted table (BAPICHARACTRESTRICTIONS TYPE), t_charrestrict, is the one you have to use for adding the class types restrictions instead of using BAPICHARACTDETAIL structure.

DATA:

    t_charrestrict TYPE

       STANDARD TABLE

             OF bapicharactrestrictions.

Bye

Hector G