I want use the BAPI_OBJCL_CREATE_KEY.
Some one have a similar example about how to use this
Now I do the next thinks:
1.-CALL FUNCTION 'BAPI_OBJCL_GET_KEY_OF_OBJECT'
objectname = '000000000000003198'
objecttable = 'MARA'
classtype = '001'
CREATE_MISSING_KEY = 'X'
CLOBJECTKEYOUT = CLOBJECTKEYOUT
return = RETURN.
Instead try using this, BAPI_OBJCL_CREATE and this way you don't have to deal with the KEY field and it does exactly the same functionality.
Note : Please close the thread if the question is answered, and mark all the helpful answers