Application Development and Automation 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: 
Read only

BADI Required ?

Former Member
0 Likes
482

Hi All,

I want to capture the production order number once it is created and store it into a ztable, is there any badi or user exit for achieving this.

Thanks and Regards,

Navneeth K.

Hi All,

I want to capture the production order number once it is created and store it into a ztable, is there any badi or user exit for achieving this.

Thanks and Regards,

Navneeth K.

2 REPLIES 2
Read only

Former Member
0 Likes
457

Hi ,

Please Try user exit : SE38 -> SAPMV45A -> MV45AFZZ under '

form userexit_move_field_to_vbep ' and collect your production orders from table xvbep-aufnr into your ztable.

Regards,

Mohan.

Read only

Former Member
0 Likes
457

Hi,

No BADI is available for this requirement.

But using Enhancement option we can achieve ur requirement.

the function module Exit "EXIT_SAPLCOZV_001"

Enhancement Name "PPCO0007"(SMOD)

FU EXIT_SAPLCOZV_001

____________________________________________________

Short Text

User Exit for Checking or Changing Header Fields During Order Maintenance

Functionality

This customer exit makes two functions possible:

Changing data in the order header. For this purpose, the order header with the changed data can be transferred back to the calling program as export structure HEADER_EXP. The calling program then saves the data.

Checks that prevent the order being saved or changed. For this, the export parameter NO_UPDATE must be set to a non-initial value. The calling program then branches back to online processing. If data in the order header is changed and the parameter NO_UPDATE is set at the same time, then the changed data is adopted nonetheless. The data is thus available in online maintenance.

Notes

Note that the data that is transferred from the customer exit in the export structure of the order header is no longer checked by the system. The person who uses the customer exit is therefore responsible for data consistency!

There are also fields that cannot be changed in the customer exit since they are reentered later in the program.

These include: the creator of the order, the last person to change it, the creation date and the change date. Also, when the order is created there are various number fields that are still filled with temporary numbers. These include; the order number if the system is working with an internal number assignment.

Parameters

HEADER_IMP

NO_UPDATE

HEADER_EXP

Exceptions

Function Group

XCO1

thanks,

-Selvapandian Arunachalam