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

Classification - material, batch, functional location, equipment

Former Member
0 Likes
4,526

Hi,

I am able to create classification for material successfully using batch input method 0130 in LSMW.

Now I need to create/change classification for batch, functional location and equipment similarly.

Please let me know the exact method to acheive this.

I had gone through related posts but did not get clear picture on it. In some posts, it is written that material and batch classification creation are same.

But I am not able to create batch classification through material classification.

Best Regards,

Abirami

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,429

Hello All,

I am able to create classifications for material, functional location and equipments using direct input method 0130. Object tab remains same as 'MARA'. Object key and class type, class name will differ for three. Material class type - 023

         Functional location class type - 003

         Equipment class type - 002.

Best Regards,

Abirami.

22 REPLIES 22
Read only

Former Member
0 Likes
3,429

1. for equipments use below direct input method in lsmw:

Object               0400

Method               0001

Program Name         IBIP

Program Type         B

Here you need to map only the structure:IBIPCLAS.

2. For functional loc, use below direct input prog:

Object               0440

Method               0001

Program Name         IBIP

Program Type         B

Here also you need to map only the structure:IBIPCLAS.

3. For batch class do a BDC recording.

Read only

0 Likes
3,429

Hi Revanth,

Thanks for your requirements. My customer wants to upload characteristics separately not while creating functional location or equipment. Please suggest.

Best Reagrds,

Abirami

Read only

0 Likes
3,429

Hi Abirami, Yes by using the above programs you can crate classification separately. First crate equipments, functional locations. After that use these programs and just map one structure alone to upload classifications. This method works.

Read only

0 Likes
3,429

Thanks Revanth. I will try and let you know.

Read only

0 Likes
3,429

Hi Revanth,

I tried using BDC recording method for batch classification but got stuck at one issue.

How to pass range value to the characteristics in recording. For ex: carbon content - <0,8000

How we do pass this value in input file. Do I need to use BAPI to obtain range of characteristics values.

Best Regards,

Abirami

Read only

0 Likes
3,429

HI Abirami,

If you already tried BDC, then the best way to upload classification(any type) is using the BAPI.

We have been using the same BAPI to upload all kinds of classification.

If you would like to pass range Value the characteristic has to be configured that way.

But i do no think characteristic can be configured that way.

You may only store data of type Char.

Regards,

Vamsi

Read only

Former Member
0 Likes
3,429

Hi Abirami,

Please use FM BAPI_OBJCL_CHANGE to change any type of classification data.You can change material classification or batch classification with this FM.

BR,

Tanmay

Read only

0 Likes
3,429

Agree with tanmay! that is the BAPI for you!

Read only

0 Likes
3,429

Hi Tanmay / Vamsi,

Thanks for your reply. I am aware of this BAPI but i want to know how to achieve this through LSMW.

Do I need to separate LSMW for create and change. Kindly suggest.

Best Regards,

Abirami

Read only

0 Likes
3,429

Hi Abirami,

Yes. The LSMW that you have used to create classification will not work for change. So, you need to create a custom program and inside the program use the BAPI to change classification data.

BR,

Tanmay

Read only

Former Member
0 Likes
3,429

Check this Note https://service.sap.com/sap/support/notes/213120 Use BAPI's or Direct Input Method.

OR If you go with other then LSMW  then check using Some SAP Standard BAPI''s which helps you to upload the Class and Characteristics into SAP Note: https://service.sap.com/sap/support/notes/1083986 and SAP given Some Sample Code for Class and Characteristics  Create /Assign with object like Material etc....

Regard's

Smruti

Read only

Former Member
0 Likes
3,429

Hello,

Do someone worked on classification for batch, functional location and equipment.

Could you please share your knowledge.

Best Regards,

Abirami

Read only

0 Likes
3,429

Hi Abirami,

Did you try the method i suggested?

Read only

vamsixk
Active Participant
0 Likes
3,429

Hi Abhirami,

try this Direct Input Method.

Object               0130   Classification

Method               0002   Direct input

Program Name         RCCLBI03

This is for material Classification Upload only.

Business Object      BUS3060      Object Classification

Method               CREATE                      Create

Message Type         CLASSIFICATION_CREATE       BAPI classification: Crea

Basic Type           CLASSIFICATION_CREATE01     BAPI for Classification:

you can also use the above BAPIs for your LSM

Do let me know if it was helpful.

Regards,

Vamsi

Read only

Former Member
0 Likes
3,429

Hello All,

Thanks for all your responses. I am supposed to use batch input method 0130 object for material, batch, functional location and equipment classification create / change. It seems it is feasible by changing obtab. For ex: Obtab = 'MARA' , objkey = matnr for material , Obtab = 'MCH1', objkey = material number + batch number as such. Also, I need to use two BAPIs

  • BAPI_OBJCL_CREATE
  • BAPI_OBJCL_CHANGE within LSMW itself (at field mapping and conversion rules)

for creation and change.

Please let me know if you have any sample code for these four classifications through batch input method 0130.

Best Regards,

Abirami

Read only

Former Member
0 Likes
3,429

Hello,

Do anyone worked on similar requirements. Please assist me.

Need to know how to create /change batch, equipment, functional location classifications through batch input 0130 object in LSMW.

Best Regards,

Abirami

Read only

Former Member
0 Likes
3,429

Hello Experts,

Any idea how we can achieve this?

Best Regards,

Abirami

Read only

0 Likes
3,429

HI Abirami,

I tested the LSMW's which i had recommended.. its working fine.

Read only

0 Likes
3,429

Hi Revanth,

Our requirement is to mass upload of classification and characteristics for batch etc.

So my customer is not agreeing with objects 0400 and 0440. It seams it is feasible using batch input 0130 for batch, equipment, functional location classifications. Kindly suggest.

Best Regards,

Abirami

Read only

0 Likes
3,429

Hi Revanth,

Is it possible through 0440 to create multiple classes and multiple characteristics? I have achieved to upload one class and one char. but I need to be able to upload more than one.

Can you please help?

BR

Read only

Former Member
0 Likes
3,429

Hi,

Use the Object - 0020 and Method - 0000 for Material.

             Object - 0400 and Method - 0001 for Equipment

             Object - 0440 and Method - 0001 for Functional Location.

Thanks,

Vignesh

Read only

Former Member
0 Likes
3,430

Hello All,

I am able to create classifications for material, functional location and equipments using direct input method 0130. Object tab remains same as 'MARA'. Object key and class type, class name will differ for three. Material class type - 023

         Functional location class type - 003

         Equipment class type - 002.

Best Regards,

Abirami.