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 - Create changenumber?

Former Member
0 Likes
1,567

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,350

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.

Read only

0 Likes
1,350

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

Read only

0 Likes
1,350

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.

Read only

0 Likes
1,350

Hi,

thanks.

I ask for the changenumber because the bapi needs a changenumber to log the changes of the batch classification....

Any ideas?

regards

Read only

0 Likes
1,350

Yor can pass any Valid change number from the table AENR.

Read only

0 Likes
1,350

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

Read only

Former Member
0 Likes
1,350

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.

Read only

Former Member
0 Likes
1,350

SCDO