Batch classification problem
Dear Gurus,
I have a stock of a material 100MT,with batch number a .i am using batch charcteristic values as b and c with classification for batch a.i am doing PGI for 10 MT.In MB51 if i am seeing the material doccument.I am seeing the despatched qty 10,with batch number a and charcteristic value b and c.No problem till now.
As per my scenario,Now I am doing MSC2N with batch a, and i am changing the charcterictics values as b1 and c1.
Now if i am checking material doccument for the previous one (601),in classification i am seeing b1 and c1,but as per my requirement we should see batch charcterisctic values asly b and c for 601 which i have done previously because while despatch it was b and c only.
What I have to do from my end.Please help me where i have to do configuration.
Guna
Hi Guna,
I think that in the material document the system records only the batch number, e.g. A in your case.
When you display the characteristcs it is taking it from the batch record; so if you changed the values of the characteristics sfter the movement, you'll see the new values (as you do). System does not capture and freeze the classification of the batch in the material document.
Regards,
Mario
Similar Messages
-
Automatic batch classification with procedure on goods receipt does not wor
Hi,
I have a material with batch classification.
The material has two characteristics.
One is a number called VALUE.
The other is also a number (called CONVERSION) and shall be deived from the first.
A procedure is created and assigned to the second characteristic.
$SET_DEFAULT ($SELF, CONVERSION , $SELF.VALUE / 6000)
When I post a goods receive (movement Type 501) the characteristics can be filled . The field VALUE is set with 12000.
I was expecting the characteristic CONVERSION to be calculated as '2' and filled by the procedure.
This is not the case.
If however, I try to fill it manually, the system accepts only the calculated value '2'. Otherwise an error is shown.
How can I force the system to calculate and fill the second characteristic when insserting a value in the first ?
Thanks for any help.Hi Marcus,
i have the same problem with movement type 101.
How did you solve this issue?
Can you help me.
Thank you.
CM -
Updating Batch classification data from MIGO for Purchase order
Hi,
I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
1) Pass material and batch to MCH1 table to get CUOBJ_BM.
2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
Class type 023, object type MCH1, object RAW-6 0000001151
Object is currently locked by user
The assignment was not changed
Please let me know how to do it. Is there any BADI or User Exit?Hi,
As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
Regards,
Rafi -
Update Batch Classification for a Material
Hello friends,
I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
Now i'm trying to use this BAPI instead of BTCI for the Material batch classification :
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = l_objnum
objecttable = 'MCH1'
classnum = 'ZGB_TIDCLASS'
classtype = '022'
status = '1'
keydate = sy-datum
TABLES
allocvaluesnumnew = t_valuesnum
allocvaluescharnew = t_valueschar
allocvaluescurrnew = t_valuescurr
return = t_return.
But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
Any ideas about this ?
Thank you in advance for your help !
Best Regards.
Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AMHello,
I am Ashok Chelikani. I am working on the same Issue.
i am getting following message:
TYPE ID NUMBER MESSAGE
E |C1 |003 |Characteristic DIMENSIONSCOLOR not found or not valid
I |CL |736 |Assignment was not created
my procedure as follows:
CLEAR: lv_objnum.
lv_objnum = I_MSEG-MATNR.
**Get Object Details
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = lv_objnum
objecttable = 'MARA'
classnum = 'Z_RMBCH1'
classtype = '001'
TABLES
allocvaluesnum = lt_alloc_num
allocvalueschar = lt_alloc_char
allocvaluescurr = lt_alloc_curr
return = lt_return.
IF NOT lt_return IS INITIAL.
CLEAR: lv_objnum.
lv_objnum(18) = I_MSEG-MATNR.
lv_objnum+18(10) = I_MSEG-CHARG.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = lV_objnum
objecttable = 'MCH1'
classnum = 'Z_RMBCH1'
classtype = '023'
tables
allocvaluesnumnew = lt_alloc_num
allocvaluescharnew = lt_alloc_char
allocvaluescurrnew = lt_alloc_curr
return = lt_return.
lt_return returing error message. Kindly help me. -
Hi Experts,
I would liek to ask your help.
We have issue on batch classification details.
During GR, the batch classification details created are not complete, as checked in MSC3N. Why do this happen? Could you kindly help me sort out this problem?
Thank you very much for your help.
MyleneDear Mylene
Materials Management -> Inventory Management and Physical Inventory -> Movement Types -> Copy, Change Movement Types
It is not plant specific. This will popup a window to enter the values for classification.
You can also use transaction OMCV
Logistics - General -> Batch Management -> Batch Valuation -> Valuation for Goods Movement in Inventory Management -> Activate Batch Classification for Goods Movements in IM.
Regards
Soundar -
Batch Classification To Be Automated
Hi,
I have a problem,
Say there is a Mother Coil (RM Coil)
Coil No. Batch Number
XYZ (Entered During Batch Classification) 123
From this mother coil I want to create Finished Goods.
While doing the FG posting I want the system to automatically pickup
the RM Coil No. XYZ and put in the FG batch number say 456.
That means the FG batch classification should have the same coil number
as that of RM.
Could u please tell me how to configure the same.
Regrds,
BinayakMy guess is your having a production person perform an in-process test themseleves or entering in a vendor provided value for the characteristic.
Why not just set up a separate operation in the inspection plan for the production person? Set up a workcenter for the operation and do security at that level so the production person can only record against his/her workcenter.
Create a second operation for the lab with there own workcenter. Make the characteristic required for the production operation and optional on the lab operation.
Allow the lab access to both workcenters.
The lab can now review any data enterred by production, and if necessary, record a new value in there own operation.
The UD copies the last recorded result to the batch, (std SAP).
Craig -
Hi Gurus,
Need a urgent help from u guys. While doing Finished Goods Posting (MIGO),I want to automatically pick up the Batch Number from the Mother Coil Number. The batch number should be the same as the one as entered (Batch Classification) during RM Posting.
Could u please help me on the configuring the same.
Regrds,
BinayakHi,
I have a problem,
Say there is a Mother Coil (RM Coil)
Coil No. Batch Number
XYZ (Entered During Batch Classification) 123
From this mother coil I want to create Finished Goods.
While doing the FG posting I want the system to automatically pickup
the RM Coil No. XYZ and put in the FG batch number say 456.
That means the FG batch classification should have the same coil number
as that of RM.
Could u please tell me how to configure the same.
Regrds,
Binayak -
Hello,
I'm using enhancement MBCFC004 (user exit EXIT_SAPMM07M_004) in order to fill batch classification in MIGO transaction, when pressing 'Classifications' button in 'Batch' tab.
I've put a break point in the code I've created, but when pressing the classification button nothing happens.
The project and the user-exit are activated.
What can be the problem.
Thanks,
Hagit.Hi Hagit!
BADIs are defined (and can be searched with) in transaction SE18.
Own extensions can be implemented with transaction SE19.
Both transactions have little blue 'i'-buttons: press them and you get pretty good help.
Otherwise look at help.sap.com
Regards,
Christian -
Batch Classification error - re Customer name change
Dear all,
We have a problem with Batch classification for one customer who has had a name change.
Name of customer changed and search term changed in customer master.
The NEW search term then added as a 'customer suitability Value' into the Batch classification for material, plant and batches.
However when entering these batches onto the delivery note, SAP comes up with BATCH CLASSIFICATION ERROR.
IN order to resolve this, we have had to add the OLD customer suitability/Search term value into the Batch classification
This does not seem to be correct, is there some other change that we need to do ???
Please advise
Thanks
TonyHi
We put this to SAP via Service marketplace
and they kindly told us where our error was
We needed to update the new searchterm in transaction VCH3 - Batch search strategy
this involves SHip to, materials
when you hi-lite the grade and click on the selection criteria
The customer suitability in here , which is the search term in customer masterdata, had never ever been updated
problem resolved now
Tony -
Hi guys,
I need to make the following, when there is a goods receipt, I want to update the posting date in the batch classification as soon as I post the goods from transaction MIGO.
How can I make this?
RegardsHi andrea,
I tried what you said, but it does not update in the classification, the field is empty as follows
Deletion Ind. for Batches Not Set
Quality Score Usage Decision 100
Usage Decision 01 A
Status of Batch Released
Batch Number 2010080167
Expiration date, shelf life 23.06.2012
Date of last goods receipt
Date of Manufacture
I have something also in my mind I'd like to share with you, regarding the reference table you told me, I think that this is responsible only for maintaining the data in the BASIC DATA tab of the characteristic, but it has nothing to do with the value, if I'm wrong then correct me, and I hope you a have a solution for the problem.
Regards, -
Automatic batch determination problem - Unable to view available batches
Hi,
I have a issue related to batch determination in process order, Here is my data set up:
I am trying to to perform batch determination for process order. I see i have batches available in stock.
And my selection criteria is below:
LOBM_RLZ ( Remaining shelf life for batches) - 3d
LOBM_LFDAT (Batch determin. delivery date) - 02.02.2010 ( mm/dd/yyy format)
LOBM_VFDAT ( Expiration date, shelf life) - 05.02.2010
Batch classification view in MSC3N shows following data:
Date of last goods receipt - 27.01.2010
Expiration date, shelf life - 22.01.2011
Status shows 'Released'
Batch serch strategy is maintained in COB1 for order type, plant, and material. Please find the data maintained in COB1
Date of last goods receipt - BLANK ( No value maintained)
Remaining shelf life for batch - 3D
Expiration date, shelf life - BLANK ( No value maintained)
Please suggest me why i am unable to determine batches in process order. Any inputs whould be of great help. - Many thanks!
Regards
Seshu
Edited by: Amarendra Seshu on Feb 2, 2010 1:45 AMHi Seshu
First Try with different selection criteria, ie., with out giving any dates. Mismatching of dates could be the problem.
Secondly check the valid from & Valid to date in COB1.
Regards
Bala -
Copy of Material Master charac. values to the batch classif. in GR for PO
Dear gurus,
Could you please help me with the following issue. I have a material managed in batches, and it has a classification type 023 in material master. I fill one chaacteristic of this classification with some value. Now I want this value to be copied to the batch classification during the creation of new batch while making GR to production order.
Is it possible?Hi Nikolaj,
What I am understand your requirement is like,
You want to fetch the value of Characteristic maintain in Batch class in Material master to the Batches, correct?
But my Friend if you maintain value of characteristic in Batch Class in material master then it will works as a validation.
For Example,
Suppose your Characteristic is Colour and in Material Master Batch classification view you have maintain value as Red.Then system will not allow you any other colour in Batches.You will find that value in Drop Down list.
Regards,
Dhaval -
Different Batch Classification at storage location level
Dear guru ,
I have tested that i can insert different values of batch classification for the same material and the
same batch number but in different plants.
In MSC1N/MSC2N transaction the system allow a insertion at storage location level.
Itu2019s possible to insert different values of batch classification for the same material , same batch number and the same plant but in different storage locations ?
Thanks.hi,
check in OMCT under which batch level the current system is, if the level is set to be material level or client level, if you make a change to the batch classificaiton, it will reflect in all the plants across the clients.
Batch classification is not maintained at the storage location level. -
Batch Classification Values not getting changed
Hi Gurus,
I am using the following bapi ( BAPI_OBJCL_CHANGE ) to change Batch classification values Eg: Cut clarity etc.
when i pass these values thru the function module in the program it is not getting changed while when i change it through msc2n it gets changed successfully...
I have passed the following values in the parameters of the bapi :
OBJECTKEY = v_objectkey
OBJECTTABLE = 'MCH1'
CLASSNUM = V_CLASSNUM
CLASSTYPE = '023'
KEYDATE = 30.04.2010
ALLOCVALUESCHARNEW
CHARACT = CLARITY
VALUE_CHAR = P040
VALUE_NEW = P040.
Can some one help me solve this....
Needed urgently..
Edited by: NAVIN FERNANDES on Apr 30, 2010 12:31 PM
Edited by: NAVIN FERNANDES on Apr 30, 2010 12:32 PMHi Jacky,
I am posting the code here.. Do let me know if u have ne queries:
REPORT ZNAVBATCH.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: P_MATNR TYPE MATNR,
P_CHARG TYPE CHARG_D,
P_WERKS TYPE WERKS_D,
P_LGORT TYPE LGORT_D.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
DATA: WA_BATCH TYPE BAPI1003_OBJECT_KEYS,
WA_ALLOCCHAR TYPE BAPI1003_ALLOC_VALUES_CHAR,
WA_ALLOCVAL TYPE BAPI1003_ALLOC_VALUES_NUM,
INT_BATCH TYPE STANDARD TABLE OF BAPI1003_OBJECT_KEYS,
INT_RET1 TYPE STANDARD TABLE OF BAPIRET2,
INT_RET2 TYPE STANDARD TABLE OF BAPIRET2,
INT_RET3 TYPE STANDARD TABLE OF BAPIRET2,
LV_KEY TYPE BAPI1003_KEY-OBJECT,
INT_ALLOCVAL TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_NUM,
INT_ALLOCCHAR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR,
INT_ALLOCCURR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CURR.
WA_BATCH-KEY_FIELD = 'MATNR'.
WA_BATCH-VALUE_INT = P_MATNR.
APPEND WA_BATCH TO INT_BATCH.
WA_BATCH-KEY_FIELD = 'CHARG'.
WA_BATCH-VALUE_INT = P_CHARG.
APPEND WA_BATCH TO INT_BATCH.
CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
EXPORTING
OBJECTTABLE = 'MCH1'
IMPORTING
OBJECTKEY_CONC = LV_KEY
TABLES
OBJECTKEYTABLE = INT_BATCH
RETURN = INT_RET1.
IF SY-SUBRC = 0.
WRITE: 'SUCCESSFUL'.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = LV_KEY
OBJECTTABLE = 'MCH1'
CLASSNUM = 'ZTBATCHCHR'
CLASSTYPE = '023'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
IMPORTING
STATUS =
STANDARDCLASS =
TABLES
ALLOCVALUESNUM = INT_ALLOCVAL
ALLOCVALUESCHAR = INT_ALLOCCHAR
ALLOCVALUESCURR = INT_ALLOCCURR
RETURN = INT_RET2
IF SY-SUBRC = 0.
WRITE : 'SUCCESSFUL'.
READ TABLE INT_ALLOCCHAR INTO WA_ALLOCCHAR WITH KEY CHARACT = 'CLARITY'.
IF SY-SUBRC = 0.
WA_ALLOCCHAR-VALUE_CHAR = 'C02'.
WA_ALLOCCHAR-VALUE_NEUTRAL = 'C02'.
MODIFY INT_ALLOCCHAR FROM WA_ALLOCCHAR INDEX SY-TABIX TRANSPORTING VALUE_CHAR VALUE_NEUTRAL.
ENDIF.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
OBJECTKEY = LV_KEY
OBJECTTABLE = 'MCH1'
CLASSNUM = 'ZTBATCHCHR'
CLASSTYPE = '023'
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUMNEW = INT_ALLOCVAL
ALLOCVALUESCHARNEW = INT_ALLOCCHAR
ALLOCVALUESCURRNEW = INT_ALLOCCURR
RETURN = INT_RET3
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
IF SY-SUBRC = 0.
WRITE: 'SUCCESSFUL'.
ENDIF.
ENDIF.
ENDIF.
ENDIF. -
Need a bapi r fn module to update the batch classification in the bom
hi,
iam working a exit : exit_saplcoml_001.This exit is for material quantity calculation.the materials are currently classified in the material master under the classification tab.Ans due to this the classification becomes cross plant.
To make the material classification plant specific i have decided to maintain the classification in the batch classification of bom.i am finding for a function module r a bapi to update the calculated values in to the batch classification characteristics.please help mi with this.
thanks.Hi
U can try to use BAPI_MATERIAL_SAVEREPLICA
Max
Maybe you are looking for
-
Hi, besides the fact that slice numbers are not showing up here in vista 32 CS4 (show slice number is activated in the preferences and show slices in view as well and I did a reset !) I encountered a other strange thing in "SAVE FOR WEB & DEVICES" wh
-
FileWriter with Append does not work on Solaris
I am appending to a file. I use FileWriter it it works fine on windows but when I move to a solaris server, the information is not appended. Every time the file is newly opened, it overwrites? Any ideas out there? FileWriter out = new FileWriter(File
-
Smart View 11.1.1.2 Data Source Manager is Disabled
I just did a fresh install of Oracle Hyperion EPM 11.1.1.2 in a Windows 2003 Enterprise Server (64-bit) environment. I'm now having problems running Smart View in this environment. When I attempt to connect to a cube, from within Excel, the Data Sour
-
Hi Experts, Is it possible to change days to be seconds in the lead time field of item master data --> planning tab ? if not, how could we include the cycle time of production machine in the MRP wizard ? We would like to know how much the production
-
Back-Navigation in Guided Procedures
Hello, i have got a very large guided procedure. There are loops, sequences and alternatives. In each step the user performs an input in a Visual Composer created UI. After each step the data is forwared to an SAP System with a webservice call. At th