Routine Development (tcode: vofm) is often used in sap erp implementation ). This development currently uses the pricing process that affects SD and mm. The accesskey is required to create a routine, which can be obtained through application. After creation, the routine is included in a request. WriteCodeIn the future, the 'condition calculation scheme' in spro will configure the code number you have written, which will affect the pricing.
How routines work:
Routine, that is, fomula, is a small segment of the pricing process in the sales, procurement, invoice, delivery, and other documents.Program. Fomula exists because the pricing process may vary widely in different business scenarios, but it can be split into several key components, such as copying requests, data transmission, requirements, and formulas, each routine is a short dedicated program. These routine programs are dynamically called by standard programs, such as: Perform XXX in xxxx if found. we can write code snippets in the routine to modify the data in the runtime environment. Each routine has different environment variables and interface data, which is not described in detail here.
The process of creating a routine is actually to do the following:Take requirements-pricing-998 as an Example:
1. You have created a program: rv61a998. You can view the modified program through se38.
2. Add data to tfrm and tfrmt tables, and record information such as the ID of the created routine.
3. When the routine is activated, rv61a998 is included in rv61annn, that is, a line is added to rv61annn: Include rv61a998.
The following explains that it cannot be used normally after transmission..
After the change request is released, the transmission can be completed in steps 1 and 2, but the third step, although activated in the target system, is not included in the rv61annn program, therefore, after the pricing process is configured, The ABAP dump will appear.
Solution: Run the program rv80hgen in the target system to fix the bug, instead of activating the Routine Through vofm in the target system. The function of this program is to add Code such as include rv61a998 to programs such as rv61annn according to the table tfrm and tfrmt, so as to run normally. For details, see Notes: 28683.