‎2008 Nov 07 9:15 AM
Hi all,
i want to use BAPI_OBJCL_CHANGE.
How can i get a changenumber in order to make the change and the history information as well?
regards
‎2008 Nov 07 9:20 AM
You have to pass the Change Number manually...
Either by selection-screen or by hardcoding it.
Try TCode CL01 / CL02 / CL03, you have pass it there manually.
The same way BAPI works.
‎2008 Nov 07 9:25 AM
Hi,
my question was how can i get a changenumber in order to trigger the bapi with the changenumber....
How can i generate a changenumber?
regards
‎2008 Nov 07 9:39 AM
Hi
You cannot generate change number. It is taken from the table AENR.
For creating change number there is some other transaction, I'm not able to recall now.
‎2008 Nov 07 9:42 AM
Hi,
thanks.
I ask for the changenumber because the bapi needs a changenumber to log the changes of the batch classification....
Any ideas?
regards
‎2008 Nov 07 9:46 AM
‎2008 Nov 09 10:16 AM
Hi,
i think you are wrong.
The changenumber i use for the batch classification is a document number.... table CDHDR....
How can i get such a docment number?
regards
‎2008 Nov 07 9:24 AM
Hello,
Change number is passed in Manually according to class numer and class type.
To change number CL02, Cl03.
Use this FM in this way
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = y_lv_matnr
objecttable = y_lv_tabelle
classnum = y_lv_klasse_d
classtype = y_lv_klassenart
keydate = sy-datum
TABLES
allocvaluesnumnew = y_i_alloc_num
allocvaluescharnew = y_i_alloc_char
allocvaluescurrnew = y_i_alloc_curr
return = y_i_return.
‎2008 Dec 08 6:49 AM