Application Development and Automation 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: 
Read only

BAPI_OBJCL_CHANGE

Former Member
0 Likes
3,089

HI Friends,

i am using BAPI_OBJCL_CHANGE to assign charector stic value,

but i am getting erros

1> 'Table not supported for class type 023'

2> 'Assignment was not created'

i have assigned classification in materialmaster for that material.

i went to msc2n and assign the charector value example size = '0600' than it will update the data base in table ausp....

but my problem is i cant go for t-code,

i want to update by bapi,,,,,..........

plz help me out to solve this issue plzzzzzzzzzz.

i have any sample code that what areall the parameter s are to pass for my problum..

plZZZZZZZZ.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,901

Hi Friends,

i am using BAPI_OBJCL_CHANGE to assign characteristic value upload the AUSP table, This fuction module successfully working.

My problem is, Uploading records are override the other records in AUSP table.My requirement is update or insert the characteristics (records) only.

please give me alternative solution.........

Thanks & Regards,

Sani.

10 REPLIES 10
Read only

Former Member
0 Likes
1,901

Hello

Show you code here ...

Read only

Former Member
0 Likes
1,901

hi guru,

are u sure u hav located the correct structure for ur bapi to use it in includes.

so make sure u r using the correct structure for the bapi

take care in filling the objectkey ,objecttable,status.

.

IF wc_flag IS INITIAL .

CLEAR : wt_return .

REFRESH : wt_return .

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

objectkey = wc_objectkeynew

objecttable = wc_table

classnum = wc_classnum

classtype = wc_classtype

status = wc_statut

TABLES

allocvaluescharnew = wt_allocvalueschar

allocvaluesnumnew = wt_allocvaluesnum

allocvaluescurrnew = wt_allocvaluescurrnew

return = wt_return.

IF wt_return-type EQ 'E'

OR wt_return-type EQ 'A' .

wi_cpt_nok = wi_cpt_nok + 1 .

WRITE : /1 wt_return-type ,

3 wt_import_class-art .

LOOP AT wt_return .

WRITE : 28 wt_return-message .

ENDLOOP .

ELSE .

WRITE : /1 'S' ,

3 wt_import_class-art ,

28 wt_import_class-classe ,

40 text-015 .

  • => Classification mise à jour avec succès

wi_cpt_ok = wi_cpt_ok + 1 .

COMMIT WORK AND WAIT .

ENDIF .

ENDIF .

ENDAT .

ENDLOOP .

ULINE .

WRITE : / text-007 , wi_cpt_ok ,

/ text-008 , wi_cpt_nok ,

/ text-009 , wi_cpt_rejet .

ENDIF .

Read only

0 Likes
1,901

hi,

i am trying to exicute in se37 still i am not getting the out put, iam getting same errors.

i am passing

OBJECTKEY = F822NBR180 BP010850000106

OBJECTTAB = MCHA

CLASSNUM = SIZE1

CLASSTYPE = 023

STATUS = 1

TABLES : ALLOCVALUESCHARNEW

ALLOCVALUESCHARNEW-CHARACT = SIZE1

ALLOCVALUESCHARNEW-VALUE_CHAR = 0600.

Read only

0 Likes
1,901

Hello

Try

OBJECTTAB = 'MCH1'

Read only

0 Likes
1,901

i tried with mch1

its saying object does not exisist

Read only

0 Likes
1,901

Hello

And OBJECTTAB = 'MARA' you tried ?

Read only

Former Member
0 Likes
1,901

i got it, thanks to all for giving amswer.

Read only

0 Likes
1,901

Hi Gururaj,

I'm getting the same errors while using the BAPI_OBJCL_CHANGE..

'Table Not supported for the class type 023' and the other one

' Assignmetn was not created'.

Could you please tell me the solution for that??

How you resolved that issue?

Regards,

Adi.

Read only

Former Member
0 Likes
1,902

Hi Friends,

i am using BAPI_OBJCL_CHANGE to assign characteristic value upload the AUSP table, This fuction module successfully working.

My problem is, Uploading records are override the other records in AUSP table.My requirement is update or insert the characteristics (records) only.

please give me alternative solution.........

Thanks & Regards,

Sani.

Read only

0 Likes
1,901

Hi sandeep123 ,

Please can you show me the code used to update the table AUSP using BAPI_OBJCL_CHANGE.

the problem is I can not find the values to pass parameters.

Thanks.