10-16-2015 2:32 PM
Hi Experts,
I have a requirement where i will receive 2 fields from MES and need to update those fields in MSC2N. I am looking for a screen exit to create these fields and update the same.
Can you please help me with this.
10-16-2015 9:29 PM
Hello
Instead of using a custom field, it's much simpler to use the batch classification.
Just follow the steps below:
1 - Create a characteristic to represent this field on CT04
2 - Create a class of type 023, adding this characteristic to the batch
3 - Add this class to the material master on tab classification
4 - When creating the batch, insert the desired value on the classification.
If you want to update the field from a custom program, you can use BAPI_OBJCL_CHANGE.
Regards
Caetano
10-16-2015 9:36 PM
Hi Caetano,
Accepted.
Using characteristics are far easier, but we also need to search the appropriate batches with these fields, using characteristics means we will have to refer to table CABN,AUSP and then MCH1 to get the right batch, and with prior experiences, this search is performance intensive.
This is the reason why we want to go for a custom field which will be a part of table MCHA or MCH1.
I hope i could explain you well, any ideas ??
10-17-2015 2:52 AM
Tee Gee wrote:
but we also need to search the appropriate batches with these fields
It depends on the searches you are going to do on these characteristics. Can you please explain the searches?
Thanks,
Juwin
10-17-2015 10:22 AM
I have my data in this manner
Batch | Custom Value |
BATCH001 | ABCD1234 |
BATCH002 | WXYZ0987 |
user is only aware of ABCD1234 and he wants to know which batch has this value.
10-17-2015 11:42 AM
10-17-2015 2:09 PM
It can be anything, and I guess the fact what users call it has nothing to do with the solution.
Still to site an example, lets call it as customer specified special grade.
So once this data is stored, the users will like to search the correct batch which has customer specified special grade as ABCD1234.
10-17-2015 2:32 PM
As far as I know, most of the search strategies in SAP has configuration to 'search' based on master data fields like expiry date and 'filter' based on characteristic values. If you add new fields to master data, none of those strategies would work. Mostly the transactions in SAP find their on batches, for eg, in PGI, batch reservations etc - it goes by FIFO rules. How many occasions, would you think the user would manually search for a batch? If it is rare, then go ahead with characteristic values. I don't think performance would be an issue, if that's the case. What do you think?
Thanks,
Juwin
10-17-2015 2:34 PM
10-17-2015 2:44 PM
From what I can see, it is just a empty dummy screen, to be called if a proper screen number was not determined (Check program LCHRGO01 and search for '2999' string). This is required to avoid short dumps.
Thanks