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

Work Center Classification data retrieval using BAPI_OBJCL_GETDETAIL

Former Member
0 Likes
5,744

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,143

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.

8 REPLIES 8
Read only

Former Member
0 Likes
3,144

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.

Read only

0 Likes
3,143

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.

Read only

0 Likes
3,143

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

Read only

0 Likes
3,143

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.

Read only

0 Likes
3,143

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.

Read only

0 Likes
3,143

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.

Read only

0 Likes
3,143

Thanks pal.

Regards

Read only

Former Member
0 Likes
3,143

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 ?