alexeyyyy написал(а):
Спасибочки Олег.
А вот по созданию своих собственных полей данных через IPRM0003 . Общий принцип создания каков ? Здесь три функц модуля и вызывающий экран . Как мне добавить своё поле в MPOS?
Объясните пожалуйста.
Я польз.поля не добавлял в планах, но думаю подход общий: есть CI_MPOS структура, которую ты можешь наполнить своими полями, есть подэкран на котором ты можешь эти поля нарисовать и есть 2 или более ФМ для экспорта/импорта твоих данных на экран и с экрана.
Более подробно, но англ.:
Code:
The maintenance item data is stored in the MPOS database table defined
by SAP. From Release 4.6A, you can add customer-specific fields to the
table of maintenance items (table MPOS). For this, the Include CI_MPOS
has been added to the table of maintenance items which must be created
by the customer, completed with field entries, and activated.
When the customer exit IPRM0003 is activated, an additional tab page
Customer exit for item appears in the maintenance plan and maintenance
item. The fields shown on this tab page include those defined by the
customer (see procedure).
The fields defined in the Include CI_MPOS can be transferred to the call
object (currently orders and notifications) generated by the maintenance
plan. For this, the function exits EXIT_SAPLCOIH_030 and
EXIT_SAPLIWOL_031 are available. If an order is generated from a
notification, which itself has been generated from a maintenance plan,
then the customer-specific fields can be forwarded to the order using
the function exit EXIT_SAPLCOIH_032.
The customer exits IWO10018 (for the call object 'order') and QQMA0001
(for the call object 'notification') are available for displaying
customer-specific fields in the respective call object.
Customer exit IPRM0003 contains the following components:
Function exits
o EXIT_SAPLIWP3_001
o EXIT_SAPLIWP3_002
o EXIT_SAPLCOIH_030
o EXIT_SAPLCOIH_032
o EXIT_SAPLIWOL_031
Screen areas
o SAPLIWP3 8027 CUSSSCR1 SAPLXPRM 0100
Procedure
1. Create a customer exit project using transaction CMOD.
2. Assign the customer exit IPRM0003 to this project.
3. Include your fields in the structure CI_MPOS using the transaction
SE11 (ABAP/Dictionary), if these have not already been defined by
other applications. Note the namespace for fields reserved for
customers.
4. Activate the structure.
Note that a table may contain a maximum of 255 fields. SAP can
include new fields in the table MPOS.
5. Create the screen 0100 in the function group XPRM. The screen must
correspond to the screen type Subscreen.
6. Define the type pool WC (type pools: WC.) in the top Include for the
function group XPRM.
7. Process the components in transaction CMOD:
- Code the function exit EXIT_SAPLIWP3_001 for data transfer of
the SAP application to the screen area.
- Code the function exit EXIT_SAPLIWP3_002 for data transfer of
the screen area to the SAP applications.
- Code the function exit EXIT_SAPLCOIH_030 for data transfer of
the customer-specific fields to the call object "order".
- Code the function exit EXIT_SAPLIWOL_031 for data transfer of
the customer-specific fields to the call object "notification".
- Code the function exit EXIT_SAPLCOIH_032 for data transfer of
the customer-specific fields from the call object "notification"
to a generated order.
8. Activate the project.