Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>CYPP0001



Index

CYPP0001

User Exit for CYPP Sort, Tab. Plant
The enhancement allows you to change the sequence before finite scheduling. This is made possible by changing the contents of the sort fields that control sequence formation. You can select and dispatch objects in the planning table using a menu function. The operations (order operations) in the table AFVG_TAB_IMP that belong to the objects selected are copied.

Along with the table AFVG_TAB_IMP copied for the purposes of information the sort key for the dispatching sequence is copied from the strategy profile to the field SORT_KEY and the sort fields for the sort key in the table AFVG_TAB_IMP. You can track the structure of the tables used for information purposes via the corresponding Data Dictionary structures. The table AFVG_TAB_IMP consists of fields from the structure CYAFVG_TAB, the table TCY_S_IMP consists of fields from the structure TCY39_S.

Using the information on operations in the table AFVG_TAB_IMP you can use the indices to other objects such as work center to read other information in the user exit.

The table SORT_OUT_EXP forms that actual interface table. The table is built up according to the data dictionary structure CYSORT. In the table the information for all the operations (order operations) is stored according to the fields in the sort key.

The following data is copied to the enhancement (structure CYSORT).

INDEX_BED (Information)

Index of the operation in the table AFVG_TAB_IMP. It represents the connection between the operations to be dispatched and the entries in the SORT_OUT_EXP.

GRUPPE

not of relevance here

KOMBI

not of relevance here

FELD_1A

Field for the data contents of the operation for 1st sort field according to the sort key if sorting is to be ascending.

FELD_1D

Field for data content of the operation for 1st sort field according to sort key if sorting is to be descending

FELD_2A

Field for the data content of the operation for the 2nd sort field according to the sort key, if the sort is to be ascending

FELD_2D

Field for the data contents of the operation for the 2nd sort field according to the sort key, if the sort is to be descending

FELD_3A

Field for the data contents of the operation for the 3rd sort field according to the sort key if sorting is to be ascending

FELD_3D

Field for the data contents of the operation for the 3rd sort field for the sort key if the sort is to be descending

FELD_4A

Field for the data contents of the operation for the 4th sort field according to the sort key if the sort is to be ascending

FELD_4D

Field for the data contents of the operations for the 4th sort field for the sort key if the sort is to be descending

FELD_5A

Field for the data contents of the operation for the 5th sort field according to the sort key if the sort is to be ascending

FELD_5D

Field for the data contents of the operation for the 5th sort field according to the sort key if the sort is to be descending

FELD_6A

Field for the data contents of the operation for the 6th sort field according to the sort key if the sort is to be ascending

FELD_6D

Field for the data contents of the operation for the 6th sort field according to the sort key if the sort is to be descending

FELD_7A

Field for the data contents of the operation for the 7th sort field according to the sort key if the sort is to be ascending

FELD_7D

Field for the data contents of the operation for the 7th sort field according to the sort key if the sort is descending

FELD_8A

Field for the data contents of the operation for the 8th sort field according to the sort key if the sort is ascending

FELD_8D

Field for the data contents of the operation for the 8th sort field according to the sort key if the sort is descending

AENKZ

not of relevance here

With the user exit the user can now complete the data contents as desired according to the sort fields of the sort key in the table TCY39_S_IMP. Using these data contents the user can then create his own sequence. If this is not desired then the sequence is generated according to the standard by sorting the fields of the table SORT_OUT_EXP in ascending or descending order. You use the parameter SORT_FLAG to determine whether the standard should be used for the sort (Default SORT_FLAG = "X") or whether with the SORT_FLAG " " the sequence of SORT_OUT_EXP is retained when jumping back from the user exit.


Function/Program:
  • EXIT_SAPLCYPP06_001: User Exit for Changing Sequence Criteria and Sequence

02-Oct-2005