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: 

objectkey for table MCHA

Former Member
0 Kudos

hello ,

i wante to update characteristics MCHA using bapi_objcl_change , how i can find the right objectkey .

thanks ,

karim

2 REPLIES 2

Former Member
0 Kudos

Hi,

try this link

Regards,

jaya

former_member156446
Active Contributor
0 Kudos

Check how to bulid the OBJNR

CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
      input        = gv_matnr
    IMPORTING
      output       = gv_matnr
    EXCEPTIONS
      length_error = 1
      OTHERS       = 2.

gv_matnr     TO gv_objek(18),
        i_mseg-werks TO gv_objek+18(4),
        i_mseg-charg TO gv_objek+22(10).

SELECT SINGLE cuobj
        FROM inob
        INTO inob-cuobj
       WHERE klart = c_batches
         AND obtab = c_mchatbl
         AND objek = gv_objek.