cancel
Showing results for 
Search instead for 
Did you mean: 

External batch number creation in Process order

0 Kudos

Hi Experts ,

Do we have any BAPI or BADI to update External Batch number in GR tab of Process order instead of system generated one  .

Either while creating process order or atleast in change mode , we need to update Batch number field

Please help

Accepted Solutions (0)

Answers (3)

Answers (3)

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

Use the Exit EXIT_SAPLCOBT_001 under enhancement PPCO0001 where-in based on your requirement you can create batch for your order. You can use CALL FUNCTION 'VB_CREATE_BATCH' to create the batchs as per your requirement.

For details please refer this link,

http://scn.sap.com/message/8004872#8004872

Regards,

R.Brahmankar

dejoy
Active Contributor
0 Kudos

Hello Mohan,

Why do you need a BAPI,could you provide insights?I guess you are saying that batch no. assigned automatically while creation/release of process order?If so check in t-code CORW and select plant/production scheduling profile combination.Click on detail and in 'Auto Batch creation' mark "No auto batch creation in process order".

Regards,

0 Kudos

Hi DEEJOY ,

No auto batch creation  is achieved by config in Sch . Profile  as you said . So Batch number field will be empty after creation . This is fine . My requirement is to update External Batch number in change mode (COR2)  in GR  tab via Bapi or Badi . In simple words , How to update  batch number in Process order either in change mode or while releasing in empty Field ( No auto batch creation enabled already)

Former Member
0 Kudos

Hi,

As per the below documentation, you can use these exits to generate automatic batch number in process order on GR tab:

Set Up Customer Exits for External Batch Number Assignment

As part of the external batch number assignment, the following two function module exits are available in the SAP enhancement SAPLV1ZE for checking a new batch number that has been entered.

  • EXIT_SAPLV01Z_003. Using this exit, you can replace the proposed number range object BATCH_CLT and/or external interval 02 with a number range object and/or external interval you have defined yourself.
    You also have the option of suppressing the batch number check, for example, based on the material or plant.
  • EXIT_SAPLV01Z_004. Using this exit, you can define your own checking rule.

Further notes

In both exits, a communication structure with the application data for each business transaction (for example, plant or material type ) is available. To obtain more information such as the time, user name, or the date, you must use one of the exits.

Example

In the function module exit EXIT_SAPLV01Z_003, an external number range XY is determined, against which the batch numbers are checked.

In the function module exit EXIT_SAPLV01Z_004, the batch number entered is checked against your own rules.

Activities

    1. Create the enhancement.
    Either create a new project or use an existing project.
    2. Activate the project.
    Your enhancement only works after the project has been activated.

Further notes

In contrast to modifications, enhancements are always release-insensitive because they are not included in the SAP original, but in a namespace reserved for the customer.

The general procedure for creating enhancements is contained in the enhancement transaction in the "Utilities - Online manual" menu.

Every enhancement is documented. To access this documentation, choose the "SAP docu" pushbutton in the enhancement transaction.

Regards,

Sandeep

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

On the production scheduling profile (transaction CORY) you should define that a batch should not be generated automatically.

After that, you can use BAdI WORKORDER_UPDATE to insert your own batch..

Check the documentation on SE18 for more details about this BAdI.

BR

Caetano

dejoy
Active Contributor
0 Kudos

Hello Mohan,

Please check with Badi WORKORDER_UPDATE with Method AT_RELEASE.

Regards,

Former Member
0 Kudos

Dear mohan

1 . form T-CODE CORY in batch management view i think you have given" Automatic batch creation at order release "

2 . if you do not want to the system to create batch automatically change to " No automatic batch creation at order release "

3 . When you release the production/process order in GR tab you can give your own external batch number..

reply me if this will helpful for you....

Thanks

Manjunath hn

SAP-PP CONSULTANT