Exit Planning Functions

Question: I'm a begginer with BPS and I'm trying to use the EXIT functions. I found out that it requieres some parameters but I'm not quite sure how they work.
Can someone explain a little bit about exit functions and if you have some examples it would be great.

Thanks in advanced.

Partha.

Answer:
Hi Partha,

The following should help. Good Luck


The function module for initialization has the following parameters:
1. I_AREA = the planning area (Type UPC_Y_AREA ).
2. I_PLEVEL = the planning level (Type UPC_Y_PLEVEL ).
3. I_PACKAGE = the planning package (Type UPC_Y_PACKAGE ).
4. I_METHOD = the planning function (Type UPC_Y_METHOD ).
5. I_PARAM = parameter group of the planning function (Type UPC_Y_PARAM).
6. IT_EXITP = the table of parameter values (Type UPC_YT_EXITP ).
7. ITO_CHASEL = the selection conditions for the planning package (Type UPC_YTO_CHASEL ).
8. ITO_CHA = the characteristics of the planning level (Type UPC_YTO_CHA ).
9. ITO_KYF = the key figures of the planning level (Type UPC_YTO_KYF ).

The function module supplies the following information:
1. ETO_CHAS = Keys of objects. The type of this table depends on the planning area. You can obtain information on planning areas using the global class CL_SEM_PLANAREA_ATTRIBUTES. An object of this class has the information on the type name of the key table in the attribute TYPENAME_TO_CHAS. This type is stored in the Data Dictionary.

2. ET_MESG = error messages or messages for the end user (Type UPC_YT_MESG ).

The function module that changes the data has the following parameters:
1. I_AREA = the planning area (Type UPC_Y_AREA ).
2. I_PLEVEL = the planning level (Type UPC_Y_PLEVEL ).
3. I_PACKAGE = the planning package (Type UPC_Y_PACKAGE ).
4. I_METHOD = the planning function (Type UPC_Y_METHOD ).
5. I_PARAM = the parameter group of the planning function (Type UPC_Y_PARA).
6. IT_EXITP = the table of parameter values (Type UPC_YT_EXITP ).
7. ITO_CHASEL = the selection for the package (Type UPC_YTO_CHASEL ). Note, this parameter differs from the parameter for the init module. The selection conditions are transferred here that described the current object.
8. ITO_CHA = the characteristics of the planning level (Type UPC_YTO_CHA).
9. ITO_KYF = the key figures of the planning level (Type UPC_YTO_KYF ).

The function module returns the following information:
1. ET_MESG = error messages or messages for the end user (Type UPC_YT_MESG ).

The function module changes the following table:
1. XTH_DATA = the transaction data records that are to be changed. The structure of the table can also be determined using the global class CL_SEM_PLANAREA_ATTRIBUTES. The name of the type is stored in the attribute TYPENAME_TH_DATA. The type is stored in the Data Dictionary.

Below are some lines of coding used to determine the information:DATA: lr_iobj TYPE REF TO cl_sem_planarea_attributes,
tabnm TYPE tabname.
CALL METHOD cl_sem_planarea_attributes=>get_instance EXPORTING i_area = 'TEST'
RECEIVING er_instance = lr_iobj.
tabnm = lr_iobj->typename_th_data.

For the planning area 'TEST', the name of the transaction data table is determined and placed in the variable tabnm.
Copyright ?2007 - 2008 www.jt77.com