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

problem in using the F.M. 'BAPI_OBJCL_CHANGE'

Former Member
0 Likes
555

Hi Experts ,

I want to use the function module 'BAPI_OBJCL_CHANGE' to make some change in a batch characteristic created by 'MSC1n' . But I can't use it, because I can't understand from where I can get the parameters ' OBJECTKEY ' , 'OBJECTTABLE' , 'CLASSNUM', 'CLASSTYPE' .and Tables 'ALLOCVALUESNUMNEW','ALLOCVALUESCHARNEW' , 'ALLOCVALUESCURRNEW' ,'RETURN ' . So please tell me how can I know these values and how I can use this function module ? .

DEB

Edited by: DEB. ABAP on Aug 29, 2011 12:09 PM

Edited by: DEB. ABAP on Aug 29, 2011 12:10 PM

Hi Experts ,

I want to use the function module 'BAPI_OBJCL_CHANGE' to make some change in a batch characteristic created by 'MSC1n' . But I can't use it, because I can't understand from where I can get the parameters ' OBJECTKEY ' , 'OBJECTTABLE' , 'CLASSNUM', 'CLASSTYPE' .and Tables 'ALLOCVALUESNUMNEW','ALLOCVALUESCHARNEW' , 'ALLOCVALUESCURRNEW' ,'RETURN ' . So please tell me how can I know these values and how I can use this function module ? .

DEB

Edited by: DEB. ABAP on Aug 29, 2011 12:09 PM

Edited by: DEB. ABAP on Aug 29, 2011 12:10 PM

1 REPLY 1
Read only

deepak_dhamat
Active Contributor
0 Likes
432

Hi ,

Check table INOB you need to pass Matnr as objek

  • SELECTING OBJECT KEY FOR THE MATERIAL BATCH.

SELECT SINGLE * FROM inob WHERE objek = it_tab1-objek

AND obtab = 'MCH1'.

  • EXTRACTING OLD CHARACTERISTICS VALUES FOR MATERIAL BATCH

CALL FUNCTION 'BAPI_OBJCL_GETDETAIL_KEY'

EXPORTING

clobjectkey = inob-cuobj

classnum = 'DIEPARAMETERS'

regards

Deepak.