Check the material number contains numbers or not. Using Explicit Enhancement in ABAP.

 Explicit  

    * Explicit point & section are available at any line.

    * Point - It will not give default implementation.

                 - You can only add additional codes, you can't replace the existing code.

    * Section - It will give default implementation.

    - You can change or replace the existing code.

****************************************************************************************

* Create material using material number Ajay and industry sector P and material type ROH.


* Give description and unit of measure.

* Click on save.


* Material ajay created successfully created.
*************************************************************************************************************

Ajay does not contain any number so then raise error message.

1. Goto T-code MM01.

    * System-> status -> double click on Dynpro number.

    *  It triggers PROCESS AFTER INPUT.

  * The is a module called Internal material number get.


    * Double clicks on module.

    * Right click on enhancement point and choose enhancement operation and select create implementation.

        

    * Create implementation and write the code. And activate.

    * Goto T-code SE91 and create message.

*******************************************************************************
Checking.

* Goto MM01 and give material number power and industry sector P and material type ROH.



Undo Implementation

* Goto code place cursor on implementation and right click on implementation.

* Enhancement operation and select undo implementation. And activate.


Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Concatenation new syntax( 7.4+ ).