Summary
When you generate the integration model, the selection conditions for materials do not meet your requirements. You require additional MARC fields as selection conditions.
Other termsAPOSFC, integration model, material, selection conditions
This modification note describes the procedure that you can use to enhance the selection conditions for the material master selection when you generate the integration model. You can add any MARC field as a selection criterion. The following example describes how to add the 'purchasing group' field (MARC-EKGRP). If you require a different MARC field, replace EKGRP with the MARC field of your choice in the following descriptions.
First, use transaction SE11 to create a new CIFEKGRP_RANGE structure with the name 'Range for purchasing group (MARC-EKGRP)'. Assign the development class MGSE to this structure and enter the following fields:
Component Component type
SIGN SIGN_RANGE
OPTION OPT_RANGE
LOW EKGRP
HIGH EKGRP
Save and activate the structure.
Add the optional table parameter IN_EKGRP_RANGE to the interface of the MATERIAL_KEY_SELECTION function module.
Parameter name Reference structure Optional
IN_EKGRP_RANGE CIFEKGRP_RANGE 'X'
Save and activate the module.
Add the optional table parameter MA0200 to the interface of the CIF_GEN_RIMOD_SELSCR function module.
Parameter name Reference structure Optional
MA0200 CIFEKGRP_RANGE 'X'
Save and activate the module.
Create the following table entry in the CIFSELOPT table:
IMTYP: T_MAT
SELNAME: ma_ekgrp (note lower case)
GROUPID:
CIFIPARNME: ma0200 (note lower case)
SELTYPID: S
SELPOS: 8
TABNAME: MARC
FIELDNAME: EKGRP
GRPTABNAME:
GRPFIELDNAME:
To distribute this entry to the connected systems, note that you must either make this entry manually in each connected system or include the entry manually into your transport request.
Then implement the source code corrections.
To display the new field on the new selection screen, use transaction SE51 to perform the following enhancements on screen 7998 of the SAPLCIFI program:
- Enlarge the entire screen area, if necessary, to position the new field below the fields that already exist.
- Select the option 'Goto->Secondary fields -> Dict./program fields (F6 function key). On the next screen, select the 'Retrieve from program' option and then select MA0200-LOW and place it in a suitable position. You then have to select MA0200-HIGH and also place it in a suitable position. Note that the LOW field is positioned in the same column as the remaining 'LOW' fields and the HIGH field in the same column as the remaining 'HIGH' fields.
- Select the SELECT_0007 button, copy it and position it immediately to the left of the MA0200-LOW field. Rename the button SELECT_0200 and assign the S200 function code to the button.
- Select the B1 text field, copy it and position it immediately to the left of the MA0200-HIGH field . Rename the field B200.
- Select the CPLX_0007 button, copy it and position it to the right of the MA0200-HIGH field (below the buttons that exist there already). Rename the button CPLX_0200 and change the function code to M200.
Save and activate the screen. The new selection option is then available to you when you generate integration models.
If you would like to include more than one new selection option in the selection screen, consider the following:
- Replace all occurrences of the name EKGRP with the new MARC field (both the occurrences described here in the text as well as those occurrences in the source code)
- The numbering 200 in the fields mentioned here (SELECT_0200, S200, B200, CPLX_0200, M200, ma0200) and the fields mentioned in the source code (SELECT_0200(40), CPLX_0200(40), chk200c_icon(40) and the MA0200_PAI module) must be unique for each selection option added to the screen, that is, if you want to add an additional selection option, you have to rename the fields and variables accordingly (SELECT_201, S201, and so on). For the next selection option, you also have to rename the fields and variables accordingly (SELECT_202, S202, and so on). In addition, you must consider the corresponding table entries in the CIFSELOPT table. Furthermore, note that the new selection options are transferred to the form SELOPT_CHANGE in the corresponding modules (MA0201_PAI, MA0202_PAI, and so on).
Header Data
Release Status: | Released for Customer |
Released on: | 29.04.2002 12:05:55 |
Master Language: | German |
Priority: | Correction with medium priority |
Category: | Special development |
Primary Component: | SCM-APO-INT-IMO Integration Model |
Affected Releases
|
Corrections Instructions
|
Related Notes
507696 - MARC fields added to material selection in PI2002.1 | |||
360723 - Addition of MARA fields to material selection | |||
360089 - Adding ARNB fieldsto material selection |
No comments:
Post a Comment