‎2011 Dec 14 12:30 PM
Hello All,
I have a requirement to get classification data for work centers (charateristic descriptions when you click classification button in CR03 Tcode for a workcenter).
forum has suggested that we can use BAPI_OBJCL_GETDETAIL to get the data, but i am not able to give correct import parameters 1.objectkey 2.objecttable for work center.
OBJECTKEY
OBJECTTABLE
CLASSNUM
CLASSTYPE
KEYDATE
UNVALUATED_CHARS
LANGUAGE
Kindly help if anybody has come across this scenario for work center.
Thank you
‎2011 Dec 14 1:56 PM
Pass the following parameters into BAPI -
1. OBJECTKEY - Concatenation of Plant (WERKS) and Work Center (ARBPL).
2. OBJECTTABLE - CRHD
3. CLASSNUM - Check in CR03 what is the Assigned Class.
4. CLASSTYPE - '019'
Leave other fields as blank. Check Characteristics values in ALLOCVALUESCHAR table.
‎2011 Dec 14 1:56 PM
Pass the following parameters into BAPI -
1. OBJECTKEY - Concatenation of Plant (WERKS) and Work Center (ARBPL).
2. OBJECTTABLE - CRHD
3. CLASSNUM - Check in CR03 what is the Assigned Class.
4. CLASSTYPE - '019'
Leave other fields as blank. Check Characteristics values in ALLOCVALUESCHAR table.
‎2011 Dec 14 2:11 PM
Thank you.
I have already tried the combination you have suggested. I also tried adding zero to validate the objectkey field but still could not fetch any data.
I have also tried checking with OBJID in CRHD for ARBPL but does not seem to work either.
Appreciate your reply.
Regards.
‎2011 Dec 15 10:38 AM
Hi,
BAPI_OBJCL_GETDETAIL works well for Tables EQUI, MARA, (equipment number, material number) but for CRHD (work center) it still seems to be unsolved or may be I am not trying in the right key entry.
Any inputs are welcome.
Regards
‎2011 Dec 15 12:55 PM
The Allocation tables are not getting Populated - is this the problem?
If it is then do one thing - create a Work Center with assigned class and put some value in the Characteristics. then execute the BAPI. There should not be any problem.
But if you are still not getting the desired result, then my suggestion is go for table retrieval. The Logic is -
CONCATENATE Werks and Arbpl as Objek.
Fetch data from table INOB based on this Objek.
Fetch data from table KSSK based on the INOB data.
Fetch data from table AUSP based on the INOB data.
I believe - Rest you can do yourself.
‎2011 Dec 15 2:44 PM
Thanks Again!
This time got the clue from the table INOB. your inputs on concatenating WERKS and ARBPL is right but they exist in the table as follows: example : 001 123456 werks and arbpl with a space. when i give the objectkey in this manner the FM works fine and throws values in Alloc tables.
‎2011 Dec 15 3:01 PM
Gopi,
I just checked in my System. If that is the case that you have to concatenate WERKS and ARBPL with a space, then there is leading space in ARBPL. You should write the logic in this way -
1. Retrieve WERKS and ARBPL from CRHD based on certain criteria.
2. then Concatenate both of them and pass as Object Key into the BAPI.
As per SAP, there will not be any space needed in between WERKS and ARBPL.
‎2011 Dec 16 1:50 PM
‎2014 Nov 05 7:36 PM
Hi experts ,
Necessary to find the value of the characteristics of the work center (type 019 ) filled by the center Screenplay ( T-code CA02 ) for operation 0010.
You know the BAPI I can use ?