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: 

Custom fields in MSC1N, MSC2N, MSC3N

former_member210541
Active Participant
0 Kudos

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.

9 REPLIES 9

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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 ??

Juwin
Active Contributor
0 Kudos


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

0 Kudos

I have my data in this manner

BatchCustom Value
BATCH001ABCD1234
BATCH002WXYZ0987

user is only aware of ABCD1234 and he wants to know which batch has this value.

Juwin
Active Contributor
0 Kudos

What is this abcd1234? What does user call it?

Thanks

0 Kudos

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.

Juwin
Active Contributor
0 Kudos

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

0 Kudos

Can you please give some idea about FUGR CHRG - Screen 2999

Juwin
Active Contributor
0 Kudos

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