04-02-2009 6:20 AM
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.
04-20-2009 8:37 AM
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 ('')
04-20-2009 8:37 AM
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 ('')
04-20-2009 9:17 AM
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'.