‎2008 Aug 19 8:56 AM
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.
‎2010 Feb 17 10:34 AM
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.
‎2008 Aug 19 9:07 AM
‎2008 Aug 19 9:12 AM
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 .
‎2008 Aug 19 9:32 AM
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.
‎2008 Aug 19 9:44 AM
‎2008 Aug 19 2:15 PM
‎2008 Aug 19 2:30 PM
‎2008 Oct 11 8:08 AM
‎2008 Nov 08 12:31 AM
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.
‎2010 Feb 17 10:34 AM
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.
‎2010 Mar 23 4:24 PM
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.