‎2015 Dec 22 2:50 PM
Hi,
I am trying to use BAPI_OBJCL_CONCATENATEKEY to get the vakey(lifnr + matnr + ekorg +ekosz) but i am getting no output. Can anyone please tell me how to use this BAPI. I am providing the 4 field names with their respestive values in the BAPI but getting no output.
Thanks in advance.
‎2015 Dec 22 2:57 PM
Can you post your code for filling of parameter, as in following sample
ls_objectkeytable-key_field = 'MATNR'.
ls_objectkeytable-value_int = lv_matnr.
APPEND ls_objectkeytable TO lt_objectkeytable.
ls_objectkeytable-key_field = 'CHARG'.
ls_objectkeytable-value_int = lv_charg.
APPEND ls_objectkeytable TO lt_objectkeytable.
ls_objectkeytable-key_field = 'WERKS'.
ls_objectkeytable-value_int = lv_werk.
APPEND ls_objectkeytable TO lt_objectkeytable.
CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
EXPORTING
objecttable = 'MCH1'
IMPORTING
objectkey_conc = lv-objectkey_conc
TABLES
objectkeytable = lt_objectkeytable
return = lt_return.
Regards,
Raymond
‎2015 Dec 22 3:22 PM
I have used EINE as object table and
KEY_FIELD VALUE_INT
INFNR XxxxxxxxxX
MATNR XxxxxxxxX
EKORG XxxX
EKOSZ X
‎2015 Dec 22 3:38 PM
‎2015 Dec 22 4:23 PM
Actually if you see the table a018/Kong, they have a field vakey which is actually concatenation of the fields I have mentioned above. I require this field for info record condition creation. So how do I get this concatenated field
‎2015 Dec 23 7:00 AM
‎2015 Dec 22 3:02 PM
Hi tanushree,
Please check the data you are passing , are they actually in internal format or not ?
You can use for matnr conversion_exit_alpha_input to have zero's .
Regards.
Özgün
‎2015 Dec 22 3:17 PM
‎2015 Dec 22 3:43 PM
‎2015 Dec 22 3:31 PM
Hi Tanushree,
Could you please share what is returned in the RETURN structure, after having run the BAPI?
it may help in understanding where the issue is.
Thanks and regards
Flavio
‎2015 Dec 22 4:21 PM
In the tables, the external fields get the values same as internal fields. And the return table is blank.