Michal’s Tips: How to set up multiple selection index table in AIF – quick tip
AIF allows configuring multiple selection tables for indexing values which may appear in a single message more then once (for example material number in lines of a sales order). AIF cookbook however does not provide the info how to create such tables. In this short article I will quickly describe the procedure.
Copy table – /AIF/STD_IDX_TBL to your custom table and insert one new field – Counter – after the field MESGUID. Make sure it has the same attributes as per screenshot below:
a) key field – checked
b) initial value – checked
c) data type – int4
Now you can add your key fields to the table (this you can do in the same way as you’d when working with single index tables)
Once you save and activate your multiple index table you can use for your AIF interface. To do this you need to go to – /AIF/CUST – Error Handling – Interface Specific Features, select the Key field name, Data element, Parameter, Field-name and you need to select “Multiple selection type” field as – Multiple selection.
Make sure you don’t put the multiple index table in transaction /AIF/CUST – Error Handling – Interface Specific Features as there you can only put single index tablels.