cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement using customer exit !!

Former Member
0 Kudos

<i>Hello Friends,

I like to implement user exit SAPL1ZE for txn MSC1N.

I need to check value from the screen fields.

Now, shall I have to consider the flow logic of the main program, because if I write some code in this, How the flow cud be.

For this enhancement, I have to over power the PAI module developed by SAP. I don't find any Exit function module call here.

Your help is greatly appreciated.

Thanks,

Senthil</i>

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

For checking Batch Number created exit EXIT_SAPLV01Z_004 can be used. Inside this function module u will find INCLUDE ZXVBZU04 wherein u can write the appropriate code. U can pass NEW_CHARG & X_BNCOM structure values as the importing parameters and write the code. CUST_NOT_ALLOWED will be the exporting parameter for this.

U can have more knowledge from below comments.

FU EXIT_SAPLV01Z_004

____________________________________________________

Text

Check New Batch Number According to Customer Rule

Functionality

Using this customer function call (CFC), you can use your own rules to check if a manually entered batch corresponds to certain numbering conventions.

The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using the structure BNCOMZ.

If you set the parameter CUST_NOT_ALLOWED, you reject the batch number. This leads to an error in the calling application and therefore to rejection of the batch number.

Parameters

NEW_CHARG

X_BNCOM

CUST_NOT_ALLOWED

Exceptions

Function Group

XVBZ

Pl. award appropriate points.

Former Member
0 Kudos

Hi,

If you want to check the New Batch Number created then u can used the exit EXIT_SAPLV01Z_004 in which you have user Importing parameters NEW_CHARG & structure X_BNCOM.

I hope you are looking for this .

Thanks

Rajeev

Former Member
0 Kudos

Hi,

Could you please tell what is the actual requirement. Why do you need to over power the PAI module.

Also you can go to the Transaction->SPRO->SAP Reference IMG -> Logistics->Batch Management->....

you can find all the User Exits and BADIs available for batch transactions with the documentation. Please check. Hope it helps...

Lokesh

Former Member
0 Kudos

Hi,

If you are sure about the user exit, you can set an explicit break point in the user exit and check when you run the transaction the flow goes to the place where the break point is set,

Following are the user exits available for MSC1N transaction,

BATCHCHK Function Module Exits for Check in Case of Batch Changes

MBCFC010 Propose batch number on Inventory Management item screen

SAPLCHVW Batch where-used list

SAPLMHD1 Shelf life expiration date

SAPLV01D Determining the initial status of a batch

SAPLV01P Function Module Exits at Time Batches Are Updated

SAPLV01Z CFCs for internal batch number assignment

SAPLV1ZE CFCs for external batch number assignment

SAPLV1ZN CFCs for batch valuation in VB_CREATE_BATCH

hope this helps,

Rgds,

Former Member
0 Kudos

Hi Senthil,

There are no userexits for trxn MSC1N.

Regards,

Raj