SAP Function /SAPCND/MNT_MAINTAIN_TRS - Transactional Posting of Condition Records (Create/Change)

Parameter Reference Type Length Default Optional Text
IT_WORKING_SET_EXT REF TO DATA 0 X Working Set in External Display
IT_WORKING_SET_INT REF TO DATA 0 X Working Set in Internal Display
I_APPLICATION /SAPCND/APPLICATION C 3 Application as Condition Technique
I_GROUPNAME /SAPCND/MAINT_GROUP C 10 X Group for Condition Tables and Types
I_HLOG BALLOGHNDL C 22 Application Log: Log Handle
I_MAINT_CONTEXT /SAPCND/MAINT_CONTEXT C 30 'NORMAL' X Maintenance Context
I_MAINT_CONTEXT_DATA REF TO DATA 0 X Data for Maintenance Context
I_USE_GROUP_WS /SAPCND/BOOLEAN C 1 X
I_USE_JAVA_OW /SAPCND/BOOLEAN C 1 X Boolean Variable
I_WITH_COMMIT /SAPCND/BOOLEAN C 1 X 'X' .. "commit work" Executed

Parameter Reference Type Length Text
E_RESULT SYSUBRC I 4 Return Value, Return Value After ABAP Statements

Exception Text
EXC_ADDING_BAL_MSG Error When Adding Message
EXC_CLOSING_SESSION Maintenance Session Could Not Be Closed
EXC_CREATING_HLOG Error When Creating Log Handle
EXC_DELETING_RECORDS Condition Records Could Not Be Deleted
EXC_GETTING_RECORDS Condition Records Could Not Be Read
EXC_INITIALIZING_SESSION Maintenance Session Could Not Be Initialized
EXC_MAINTAINING_RECORDS Condition Records Could Not Be Posted
EXC_READING_BAL_MSG Error When Reading Log Message
EXC_RES_VAL_PERIODS Validity Periods Could Not Be Exploded
EXC_SAVING_RECORDS Condition Records Could Not Be Saved
EXC_SEARCHING_BAL_MSG Error When Searching for Message
EXC_SELECTING_RECORDS Condition Records Could Not Be Selected

Functionality
Edits or creates condition records as in a transaction. The conditionrecord can be enterend in either external or internal format. Entry ofthe condition record number (VARNUMH field) means editing; leaving thecondition record number blank, or re-entering it using FM GUID_CREATEleads to creation.
Validity periods are adjusted automatically with this module. Thismeans sensitive condition records that already exist on the DB are cutat the validity date start or end, or selected for deletion, if theyare completely covered by the new records. In case the transferredcondition records also overlap in time, the validity period of thefirst record transferred is adjusted, and records transferred laterremain unchanged in their validity time period.

Further information
Mutually used interface parametersfrom the function group /SAPCND/MAINTENANCE_TRS.

Description
Result Parameter
= 0: All condition records are posted
= 4: At least one condition record was posted with a warning; see log
= 8: At least one condition record was posted with errors; see log
= 12: At least one condition record could not be posted; see log

Description
Condition records in external display. The parameter refers to a tablewith condition records, of which the table and row type corresponds toexport parameters e_t_working_set_name_ext and e_working_set_name_extof the FM /SAPCND/GEN_WORKING_SET_NAME.

Default
If the transfer of this parameter is not initial, IT_WORKING_SET_IT isnot considered.

Description
Condition records in external display. The parameter refers to a tablewith condition records, of which the table and row type correspond toexport parameters e_t_working_set_name_int and e_working_set_name_intof the FM /SAPCND/GEN_WORKING_SET_NAME.

Default
If IT_WORKING_SET_EXT is filled, IT_WORKING_SET_INT is ignored.

1081054SAP CRM 5.2 - SP01
486742XIF interface of condition maintenance