Application Development 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: 

Delete Material Class

Former Member
0 Kudos

Hi Freinds,

Is there any Tcode in SAP to delete a material class for particulaer materials other than MM02. Since in MM02 in BDC recording I am facing issue in selecting required class as it may be in any position and I need to do it only through BDC.

Thanks in Advance,

Meenu.

1 ACCEPTED SOLUTION

dhirendra_pandit
Active Participant
0 Kudos

Hi Meenu,

You can do it by recording the trasaction MM02 session in SHDB

and update the material record by putting the Material class value as empty ('').

and process the session its easy.

For more details :

Follow the steps :

1. Go to the Transaction code SHDB.

2. Record the Transaction MM02.

3. Create the BDC report by clicking the Program button.

4. Map the field value with relavant data.

5. Put the hard coded value for material calss fields as Empty ('')

2 REPLIES 2

dhirendra_pandit
Active Participant
0 Kudos

Hi Meenu,

You can do it by recording the trasaction MM02 session in SHDB

and update the material record by putting the Material class value as empty ('').

and process the session its easy.

For more details :

Follow the steps :

1. Go to the Transaction code SHDB.

2. Record the Transaction MM02.

3. Create the BDC report by clicking the Program button.

4. Map the field value with relavant data.

5. Put the hard coded value for material calss fields as Empty ('')

Former Member
0 Kudos

use CL04 tcode for delete the class

or

you can delete the class in CL02 tcode using BDC

PERFORM bdc_dynpro USING 'SAPLCLMO' '0100'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RMCLM-CLASS'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'RMCLM-CLASS'

wa_unit-class.

PERFORM bdc_field USING 'RMCLM-KLART'

wa_unit-klart.

PERFORM bdc_dynpro USING 'SAPLCLMO' '0100'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RMCLM-CLASS'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_dynpro USING 'SAPLCLMO' '7777'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=CLLO'.