01-29-2009 8:40 AM
Hi,
I want to modify the classification data for Functional location.
Is there any function modules available to change. I know the functional module for Material classification, but Functional location its not working.
SO pls tell me the function modules or any other method is available.
I was unable to do to in BDC.
regards
Rajesh V
01-29-2009 8:53 AM
01-29-2009 8:59 AM
Hi,
Thanks,
I need to change the classification data. for read directly we can read from AUSP table.
Pls tell lme how to change classification data for Functional Location
regards
Rajesh V
01-29-2009 9:15 AM
Hi
Use FM BAPI_OBJCL_CHANGE for changing the classification data for a func location and class.
Regards,
Dwarakanath.S
01-29-2009 9:31 AM
Hi,
that function module is not working for functional location classification.
If its working for you pls tell the how you are changing and saving data.
regards
Rajesh V
01-29-2009 9:48 AM
Hi,
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkeynew = lv_funcloc
objecttablenew = 'IFLOT'
classnumnew = lv_class
classtypenew = '010'
TABLES
allocvaluesnum = li_numc
allocvalueschar = li_char
allocvaluescurr = li_curr
return = li_return.
if not li_return[] is initial.
read table li_return into lwa_return with key TYPE = 'E'.
if sy-subrc ne 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
endif.
endif.
Fill the new characteristic values into table parameters li_numc, li_char, li_curr depending on the data type (field ATFOR) of the characteristic value.
Inside the FM it uses BAPI_OBJCL_GETDETAIL to get the old characteristic values and make comparision with table parameters li_numc, li_char, li_curr and updates the characteristic data for the functional location and class.
Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 10:49 AM
03-01-2009 10:58 AM
Hi,
Thank you for all your reply. I got solved the problem.
Thanks