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: 

Batch Input of MSC1N

Former Member
0 Kudos

Hi,

What bapi can I use to upload data to the characteristic and values table of classification tab of MSC1N?

I was told to try BAPI_OBJCL_CHANGE but i dont know how to use it.

any ideas?

Tyken

1 REPLY 1

Former Member
0 Kudos

Hello

i have just used it. It is my first time with that BAPI but it seems to work perfectly. Here is the code. Sorry , the comments are in spanish... I have introduce some data directly to the paramenters. Where are you getting your data from??

&----


*& Form CARGA_CATEGORIA_CLASE

&----


form carga_categoria_clase .

wa_objectkey = 'HGBATCH'.

wa_objecttable = 'MARA'.

wa_classnum = 'SSG_INFO'.

wa_classtype = '001'.

wa_allocvaluescharnew-charact = 'REMARKS'.

wa_allocvaluescharnew-value_char = 'NEW TEXT FOR REMARK'.

append wa_allocvaluescharnew.

call function 'BAPI_OBJCL_CHANGE'

exporting

objectkey = wa_objectkey

objecttable = wa_objecttable

classnum = wa_classnum

classtype = wa_classtype

status = '1'

tables

allocvaluesnumnew = wa_allocvaluesnumnew

allocvaluescharnew = wa_allocvaluescharnew

allocvaluescurrnew = wa_allocvaluescurrnew

return = wa_return.

commit work and wait.