cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module tables

Former Member
0 Kudos

Folks

In the FM EXIT_SAPLCMAT_001, I have the below code for an enhancement CIFMAT01.Basically , I believe its using one free attribute field to get the value from another field and updating the same in APO through CIF. however I am not sure and wld appreciate if you can interpret the code for me.

Why are there always two tables one without sufix 'x' and one with suffix 'x'.

Ex : CT_CIF_MATKEY, CT_CIF_MATKEYX

From the below code, I didn't understand why a field value thats already existing in the table CT_CIF_MATKEY is being assigned to a free attribute and then the same free attribute is assigned to 'X' in CT_CIF_MATKEYX. what is the purpose of doing this ?

LOOP AT CT_CIF_MATKEY
  CT_CIF_MATKEY-ATT01 = CT_CIF_MATKEY-TRAGR
  MODIFY CT_CIF_MATKEY.
ENDLOOP.

LOOP AT CT_CIF_MATKEYX.
  CT_CIF_MATKEYX-ATT01 = 'X'.
  MODIFY CT_CIF_MATKEY.
ENDLOOP.

PS: If a table doesnt have a free attribute, can I define one and use it ?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

CIF_MATKEY is Outbound Structure for Product/Material )

CIF_MATKYX is structure for Checklist for CIF_MATKEY.

Can see further details in SE11 ( data type )

You activate free attribute in APO IMG :

Advanced Planning and Optimization-> Master Data->Maintain Freely-Definable Attributes

" In this IMG activity, you release those fields in the product or

location master in which product or location attributes can be

maintained. These fields are not available by default as they are for

additional information that is not required as a general rule.

Product master: The fields for global product master data can be found

on the tab Properties. Attribute fields for location-specific product

master data can be found on the tab Extras, which is only available if

at least one of these fields is released.

Location master: Attributes for location mster data can also be found on

the tab Extras, the existence of which requires that such a field be

released.

o An attribute is defined by its field and table name. A field name

must be maintained for this attribute in order for you to open a

field in the product master. The definition of the field name can be

language-dependent.

o An attribute is activated when the language of the field name and

the language in which you have logged onto the system are identical,

or when the field name was maintained independent of a language.

"

Manish

Former Member
0 Kudos

Whats the significance of check list ?does all structures have their relevant checklists ? If so, whats the advantage ?

I believe activating free attributes can be done in APO IMG as long as they exist initially.Right ? However, if no free attributes exist in a structure , can I define one ?