Wednesday, August 25, 2010

Incompletion for product not entered at line item working.

Objective:  You want to set up incompletion check for a transaction type. To make sure that product is entered in the system at line item level.
Procedure: Under Definition of Incompletion check,  you have used
Object type - ORDERADM_I
Feild name - ORDERED_PROD
Relevance - Item
Message Category - Error
Bus Transaction - INC1
and assigned the procedure to transaction type but you fail to get the result.


If you have to define an incompleteness procedure at item category level. As of now, you have defined it or the header transaction type and the check is performed with the item category. That means that an error will be raised if you add a product line without the product name based on the item category assigned incompleteness check procedure.
If you want to have an error in the document if the user saves the document without entering product line, you can use the BADI order_save to raise an error in such a case.
For example, if you create an transaction just with header data and save without entering any item data, than no error will be raised to notify you that the product ID and quantity are missing because there is no product line at all. This is how the Order framework is designed and this cannot be changed. So as long as no product line is exist, no incompleteness relevant errors will be raised at item level. By using the ORDER_SAVE BADI, you could easily add this functionality. If now in our system, you enter at product line level just the item category for example, the system will raise an error because of the missing ordered product and quantity.

No comments:

Post a Comment