on 04-05-2017 12:15 PM
Hi All,
I am a fresher and just started working on BAPI. I am using BAPI_OBJCL_CREATE to create classification for customer master. here in this BAPI there is import parameter OBJECTKEYNEW type of BAPI1003_KEY-OBJECT. please let me know from where I can get value of this parameter or please suggest me what should I pass in this parameter.
Thanks and Regards,
Sunil
Hi
For customer master you can put KUNNR field with leading zeros, as it's done by standard processing
E. Gubenko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've checked BAPI_OBJCL_CREATE documentation and it's confirming my words regarding direct mapping. Also I've created working example, so you can use it:
DATA:
lv_objkey TYPE bapi1003_key-object,
lt_return TYPE bapiret2_t.
lv_objkey = lv_kunnr. "customer number in internal format (with leading zeros)
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = lv_objkey
objecttablenew = lv_table "KNA1
classnumnew = lv_class "class number
classtypenew = lv_klart "011
TABLES
return = lt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = abap_true.<br>
Did you look for documentation provided for individual BAPI like BAPI_OBJCL_CREATE_KEY and BAPI_OBJCL_CREATE or the FAQ 1083986 - BAPIs for classification - Overview.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.