6
Dear Experts I have scenario where i give a batch number for the input material and the same batch number should be captured for output material . Regards Surender Tao Zhang Posts: 779 Registered: 5/27/08 Forum Points: 1,844 Top of Form Re: Batch number Posted: Dec 7, 2008 5:34 AM in response to: Puranam Surende. .. Hi Firstly you use make the indicator "Batch Management" active in material master data. Then. If you activate Repl y

User exit in batch management

Embed Size (px)

DESCRIPTION

Same batch number for

Citation preview

Page 1: User exit in batch management

Dear Experts

I have scenario where i give a batch number for the input material and the same batch number should be captured for output material .

Regards

Surender

Tao Zhang

Posts: 779 Registered: 5/27/08

Forum Points: 1,844 Top of Form 

Re: Batch number   Posted: Dec 7, 2008 5:34 AM   in response to: Puranam Surende...

Hi

Firstly you use make the indicator "Batch Management" active in material master data. Then.If you activate the module of batch determination, the batch number can be assigned by SAP system automatically! Otherwise, when you do GR with MIGO, in item detial you have to input the batch number manually. After that you can use the batch number to trace your stock.

Good day

  Reply

Page 2: User exit in batch management

Tao

 

Posts: 6,052 Registered: 4/6/08 Forum Points: 16,484

Re: Batch number   Posted: Dec 8, 2008 6:05 AM   in response to: Puranam Surende...

Dear,

With internal Batch Number assignment, it is possible to have the Production Order No. as your BAtch No.

You can have the detailed information regarding the same in the below path.

SPRO --> Logistics - General --> Batch Management --> Batch Number Assignment -->

when ever you release order you need to check in component view , for all batch reqd entry is batch is assigned to that component.For all component you have assigned batch management need to batch assigned in CO02 while release of the order in componenet view next to storage location.

first of all you have to maintain your material master by setting the batch management option for the material codes where you want to give the batch number. MRP3 view batch entry or in OPKP there is option batch entry while releasing, creating or confirmation. then assign this scheduling profile to work scheduling view.

Please try and come back.

Regards,R.Brahmankar

 

Posts: 1,723 Registered: 6/20/07 Forum Points: 1,642

Re: Batch number   Posted: Dec 8, 2008 6:54 AM   in response to: Puranam Surende...

Hi,

This can be done by MM consultant. pls put this in mm forums.

Anil

 

Posts: 24 Registered: 12/20/07 Forum Points: 0

Re: Batch number   Posted: Dec 8, 2008 7:07 AM   in response to: Puranam Surende...

Dear Brahma

My requirement is when i create a process order i give a batch number to input i.e to the key component and the batch number which was assigned to key component should be carried forward to my Output material by the system itself.

Regards

Surender

  Reply

  Reply

  Reply

Page 3: User exit in batch management

 

Posts: 1,246 Registered: 9/19/05 Forum Points: 2,218

Re: Batch number   Posted: Dec 8, 2008 7:38 AM   in response to: Puranam Surende...

hi

This can be achieved by Use of Batch Derivation Functionality.

Go to t.code DVSP and activate Batch Derivation.

Now ,First Create Sander Condition by usng T.code DVS1,Assign Material type (Halb) and assign required characteristic for which you want to transfer Batch value to Fert Code.

Then create recipient condition by T.code DVR1.

Assign material Type Fert to it and Characteristic which you have assign in T.code DVS1.

This will work during Production Order or Process Order release.And for this you have do Batch Determination for Halb in Order itself

check this help link

http://help.sap.com/saphelp_47x200/helpdata/en/35/7b723c4356d068e10000000a114084/frameset.htm-ashok

Edited by: Ashok Keerthipati on Dec 8, 2008 12:11 PM

 

Posts: 2,190 Registered: 2/9/08 Forum Points: 4,878

Re: Batch number   Posted: Dec 9, 2008 12:34 PM   in response to: Puranam Surende...

Hi,

This can be done by using User Exit.

Available User exit for the same is,

Enhancement is SAPLV01Z - CFCs for internal batch number assignmentFunction Module is EXIT_SAPLV01Z_002 and Include is zxvbzu02.

Below is the detail of this User Exit :-

In the field of internal batch number assignment, you can now use the

following components of the SAP enhancement SAPLV01Z:

 

o EXIT_SAPLV01Z_001. Using this CFC,

  Reply

  Reply

Page 4: User exit in batch management

you replace the number range

object and/or internal interval proposed by the system with your own

number range object and/or internal interval.

In addition, you can block the system from assigning an internal

number depending on material or plant, for example.

 

o EXIT_SAPLV01Z_002. Using this CFC, you change the number assigned by

the system.

 

Interfaces are documented in the respective components.

 

In all exits you can use communication structure X_BNCOM with

application data for the respective business transaction (plant or

material type, for example). You must obtain further information about

the time, user name, or date, for example, in one of the exits yourself.

 

SAP provides six examples of internal batch number assignment in the

includes LXVBZF01 and LXVBZF02. You can copy or adjust these example

codes:

 

1. Copying the production order number

Page 5: User exit in batch management

 

2. Copying the sales order number

 

3. Material-type-dependent batch number assignment

 

4. Material-number-dependent batch number assignment

 

5. Including the date in the batch number

 

6. Including the plant in the batch number

In this include you have to write your logic for generation of B.No of Header Material by taking reference of Input Material.

Regards,Dhaval