SAMPLE DEMO example BAPI_ECN_CREATE ECN Create

*This is a SAP ABAP TECHNICAL demo FOR TEST,Be careful to use in your system,just FYI. BAPI ECN Create
*If you have any solution,Please feel free to talk with your IT team/SAP ABAP professional guys. BAPI ECN Create

REPORT ZDEMO_BAPI_ECN_CREATE.
PARAMETERS SAMPLE AS CHECKBOX.
INITIALIZATION.
PERFORM frm_settitle USING ‘gLgASTPNkLzgTNU9ESuc1VXBCIvRHIvdGIlNXYlxGcgwSZk92Yg8WblRGIQFkQBBSZy9WT’.
START-OF-SELECTION.
BREAK-POINT..

**********************************************************************
*******Defination of Work Area Structrue [Import]-[CHANGE_HEADER ] . “”Interface for processing table AENR using API
**********************************************************************
DATA: LS_CHANGE_HEADER TYPE AENR_BAPI . “”Interface for processing table AENR using API
LS_CHANGE_HEADER-CHANGE_NO = ‘CHAR12’. “Change Number
LS_CHANGE_HEADER-STATUS = ‘NUMC2’. “Change no. status
LS_CHANGE_HEADER-AUTH_GROUP = ‘CHAR4’. “Authorization group
LS_CHANGE_HEADER-VALID_FROM = ‘CHAR10’. “Valid from
LS_CHANGE_HEADER-DESCRIPT = ‘CHAR40’. “Description
LS_CHANGE_HEADER-REASON_CHG = ‘CHAR40’. “Reason for Change
LS_CHANGE_HEADER-DELETION_MARK = ‘CHAR1’. “Deletion Flag (Reorg.)
LS_CHANGE_HEADER-INDATE_RULE = ‘CHAR10’. “Valid from
LS_CHANGE_HEADER-OUTDATE_RULE = ‘CHAR10’. “Valid to
LS_CHANGE_HEADER-FUNCTION = ‘CHAR1’. “Function
LS_CHANGE_HEADER-CHANGE_LEADER = ‘CHAR12’. “Change Number
LS_CHANGE_HEADER-EFFECTIVITY_TYPE = ‘CHAR10’. “Effectivity Type
LS_CHANGE_HEADER-OVERRIDING_MARK = ‘CHAR1’. “Overridable
LS_CHANGE_HEADER-RANK = ‘NUMC2’. “Rank
LS_CHANGE_HEADER-RELEASE_KEY = ‘NUMC2’. “Release key
LS_CHANGE_HEADER-STATUS_PROFILE = ‘CHAR8’. “Status Profile
LS_CHANGE_HEADER-TECH_REL = ‘CHAR1’. “Rel. technically
LS_CHANGE_HEADER-BASIC_CHANGE = ‘CHAR1’. “Basic change

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_CUS ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_CUS TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_CUS-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_CUS-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_CUS-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_CUS-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_CUS-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_CUS-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_DOC ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_DOC TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_DOC-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_DOC-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_DOC-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_DOC-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_DOC-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_DOC-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_EQUI ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_EQUI TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_EQUI-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_EQUI-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_EQUI-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_EQUI-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_EQUI-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_EQUI-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_LOC ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_LOC TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_LOC-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_LOC-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_LOC-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_LOC-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_LOC-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_LOC-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_MAT ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_MAT TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_MAT-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_MAT-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_MAT-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_MAT-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_MAT-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_MAT-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_PSP ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_PSP TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_PSP-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_PSP-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_PSP-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_PSP-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_PSP-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_PSP-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_BOM_STD ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_BOM_STD TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_BOM_STD-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_BOM_STD-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_BOM_STD-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_BOM_STD-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_BOM_STD-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_BOM_STD-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_CHAR ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_CHAR TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_CHAR-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_CHAR-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_CHAR-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_CHAR-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_CHAR-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_CHAR-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_CLS ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_CLS TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_CLS-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_CLS-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_CLS-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_CLS-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_CLS-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_CLS-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_CLS_MAINT ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_CLS_MAINT TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_CLS_MAINT-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_CLS_MAINT-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_CLS_MAINT-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_CLS_MAINT-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_CLS_MAINT-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_CLS_MAINT-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_CONF_PROF ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_CONF_PROF TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_CONF_PROF-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_CONF_PROF-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_CONF_PROF-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_CONF_PROF-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_CONF_PROF-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_CONF_PROF-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_DEP ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_DEP TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_DEP-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_DEP-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_DEP-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_DEP-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_DEP-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_DEP-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_DOC ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_DOC TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_DOC-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_DOC-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_DOC-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_DOC-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_DOC-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_DOC-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_HAZMAT ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_HAZMAT TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_HAZMAT-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_HAZMAT-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_HAZMAT-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_HAZMAT-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_HAZMAT-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_HAZMAT-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_MAT ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_MAT TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_MAT-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_MAT-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_MAT-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_MAT-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_MAT-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_MAT-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_PHRASE ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_PHRASE TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_PHRASE-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_PHRASE-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_PHRASE-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_PHRASE-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_PHRASE-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_PHRASE-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_SUBSTANCE ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_SUBSTANCE TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_SUBSTANCE-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_SUBSTANCE-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_SUBSTANCE-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_SUBSTANCE-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_SUBSTANCE-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_SUBSTANCE-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_A ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_A TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_A-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_A-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_A-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_A-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_A-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_A-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_E ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_E TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_E-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_E-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_E-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_E-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_E-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_E-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_M ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_M TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_M-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_M-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_M-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_M-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_M-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_M-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_N ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_N TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_N-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_N-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_N-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_N-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_N-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_N-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_Q ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_Q TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_Q-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_Q-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_Q-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_Q-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_Q-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_Q-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_R ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_R TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_R-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_R-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_R-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_R-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_R-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_R-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_S ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_S TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_S-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_S-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_S-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_S-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_S-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_S-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_T ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_T TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_T-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_T-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_T-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_T-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_T-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_T-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_TLIST_2 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_TLIST_2 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_TLIST_2-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_TLIST_2-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_TLIST_2-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_TLIST_2-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_TLIST_2-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_TLIST_2-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_VALID_MATVERS ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_VALID_MATVERS TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_VALID_MATVERS-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_VALID_MATVERS-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_VALID_MATVERS-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_VALID_MATVERS-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_VALID_MATVERS-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_VALID_MATVERS-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_VAR_TAB ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_VAR_TAB TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_VAR_TAB-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_VAR_TAB-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_VAR_TAB-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_VAR_TAB-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_VAR_TAB-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_VAR_TAB-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_PVS ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_PVS TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_PVS-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_PVS-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_PVS-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_PVS-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_PVS-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_PVS-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_PVS_VAR ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_PVS_VAR TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_PVS_VAR-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_PVS_VAR-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_PVS_VAR-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_PVS_VAR-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_PVS_VAR-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_PVS_VAR-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_PVS_ALT ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_PVS_ALT TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_PVS_ALT-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_PVS_ALT-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_PVS_ALT-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_PVS_ALT-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_PVS_ALT-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_PVS_ALT-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_PVS_REL ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_PVS_REL TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_PVS_REL-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_PVS_REL-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_PVS_REL-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_PVS_REL-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_PVS_REL-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_PVS_REL-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O75 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O75 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O75-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O75-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O75-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O75-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O75-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O75-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O76 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O76 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O76-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O76-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O76-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O76-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O76-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O76-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O77 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O77 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O77-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O77-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O77-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O77-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O77-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O77-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O78 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O78 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O78-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O78-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O78-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O78-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O78-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O78-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O79 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O79 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O79-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O79-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O79-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O79-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O79-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O79-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O80 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O80 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O80-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O80-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O80-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O80-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O80-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O80-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O81 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O81 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O81-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O81-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O81-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O81-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O81-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O81-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O82 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O82 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O82-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O82-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O82-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O82-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O82-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O82-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O83 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O83 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O83-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O83-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O83-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O83-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O83-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O83-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O84 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O84 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O84-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O84-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O84-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O84-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O84-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O84-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O85 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O85 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O85-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O85-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O85-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O85-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O85-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O85-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O86 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O86 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O86-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O86-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O86-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O86-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O86-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O86-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O87 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O87 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O87-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O87-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O87-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O87-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O87-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O87-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O88 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O88 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O88-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O88-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O88-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O88-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O88-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O88-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O89 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O89 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O89-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O89-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O89-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O89-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O89-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O89-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O90 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O90 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O90-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O90-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O90-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O90-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O90-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O90-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O91 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O91 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O91-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O91-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O91-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O91-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O91-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O91-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O92 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O92 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O92-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O92-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O92-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O92-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O92-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O92-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O93 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O93 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O93-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O93-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O93-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O93-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O93-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O93-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O94 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O94 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O94-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O94-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O94-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O94-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O94-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O94-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O95 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O95 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O95-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O95-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O95-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O95-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O95-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O95-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O96 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O96 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O96-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O96-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O96-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O96-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O96-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O96-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O97 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O97 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O97-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O97-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O97-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O97-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O97-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O97-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O98 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O98 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O98-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O98-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O98-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O98-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O98-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O98-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[OBJECT_O99 ] . “”Fields of table AENV that can be changed externally via API
**********************************************************************
DATA: LS_OBJECT_O99 TYPE AENV_BAPI . “”Fields of table AENV that can be changed externally via API
LS_OBJECT_O99-ACTIVE = ‘CHAR1’. “Object type active
LS_OBJECT_O99-LOCKED = ‘CHAR1’. “Lock
LS_OBJECT_O99-OBJ_REQU = ‘CHAR1’. “Object
LS_OBJECT_O99-MGTREC_GEN = ‘CHAR1’. “Mgmt record gen
LS_OBJECT_O99-GEN_NEW = ‘CHAR1’. “Gen for new objects
LS_OBJECT_O99-GEN_DIALOG = ‘CHAR1’. “Gen with dialog

**********************************************************************
*******Defination of Work Area Structrue [Import]-[VALUE_ASSIGN ] . “”Interface for changing table AEFF using API
**********************************************************************
DATA: LS_VALUE_ASSIGN TYPE AEEF_BAPI . “”Interface for changing table AEFF using API
LS_VALUE_ASSIGN-VALID_FROM = ‘CHAR10’. “Valid from
LS_VALUE_ASSIGN-VALID_TO = ‘CHAR10’. “Valid to
LS_VALUE_ASSIGN-DATE_MARK = ‘CHAR1’. “Date
LS_VALUE_ASSIGN-MATERIAL = ‘CHAR40’. “Material
LS_VALUE_ASSIGN-SERIALNR_LOW = ‘CHAR18’. “Serial no.
LS_VALUE_ASSIGN-SERIALNR_HIGH = ‘CHAR18’. “Serial no.
LS_VALUE_ASSIGN-PRODUCT = ‘CHAR22’. “Product
LS_VALUE_ASSIGN-CLASS = ‘CHAR18’. “Class
LS_VALUE_ASSIGN-CLASSTY = ‘CHAR3’. “Class Type
LS_VALUE_ASSIGN-STARTUP = ‘CHAR30’. “Start-Up Parameters
LS_VALUE_ASSIGN-PLANT = ‘CHAR4’. “Plant
LS_VALUE_ASSIGN-LOCNO = ‘CHAR22’. “Location
LS_VALUE_ASSIGN-FL_DELETE = ‘CHAR1’. “Deletion Indicator
DATA: LV_CHANGE_NO TYPE AENNR .”Obligatory”Change Number

**********************************************************************
*******Defination of [Tables]-[ALT_DATES] .
**********************************************************************
DATA: LT_ALT_DATES TYPE STANDARD TABLE OF AEDT_BAPI.””Interface structure for changing table AEDT using API
DATA: LS_ALT_DATES TYPE AEDT_BAPI .””Interface structure for changing table AEDT using API
LS_ALT_DATES-ALT_DATE = ‘CHAR18’. “Alternative date
LS_ALT_DATES-VALID_FROM = ‘CHAR10’. “Valid from
LS_ALT_DATES-FL_DELETE = ‘CHAR1’. “Deletion Indicator
APPEND LS_ALT_DATES TO LT_ALT_DATES .
CLEAR LS_ALT_DATES .

**********************************************************************
*******Defination of [Tables]-[OBJMGREC] .
**********************************************************************
DATA: LT_OBJMGREC TYPE STANDARD TABLE OF AEOI_BAPI.””Interface for processing table AEOI using API
DATA: LS_OBJMGREC TYPE AEOI_BAPI .””Interface for processing table AEOI using API
LS_OBJMGREC-ALT_DATE = ‘CHAR18’. “Alternative date
LS_OBJMGREC-CHG_OBJTYP = ‘NUMC1’. “EC Management Object
LS_OBJMGREC-BOM_CAT = ‘CHAR1’. “BOM Category
LS_OBJMGREC-BOM_STD_OBJECT = ‘CHAR18’. “Standard Object
LS_OBJMGREC-BOM_USAGE = ‘CHAR1’. “BOM Usage
LS_OBJMGREC-CHGTYPEOBJ = ‘NUMC3’. “Change Type
LS_OBJMGREC-DESCR_OBJ = ‘CHAR40’. “Description
LS_OBJMGREC-DOC_TYPE = ‘CHAR3’. “Document Type
LS_OBJMGREC-DOC_NUMBER = ‘CHAR25’. “Document
LS_OBJMGREC-DOC_VERS = ‘CHAR2’. “Document Version
LS_OBJMGREC-DOC_PART = ‘CHAR3’. “Document Part
LS_OBJMGREC-EQUIPMENT = ‘CHAR18’. “Equipment
LS_OBJMGREC-FUNC_LOC = ‘CHAR30’. “Functional Location
LS_OBJMGREC-MATERIAL = ‘CHAR40’. “Material
LS_OBJMGREC-PLANT = ‘CHAR4’. “Plant
LS_OBJMGREC-PSP_ELEMENT = ‘CHAR24’. “WBS Element
LS_OBJMGREC-PVS_GUID = ‘RAW16’. “GUID
LS_OBJMGREC-PVS_TYPE = ‘CHAR1’. “Product Variant Structure Type
LS_OBJMGREC-PVS_NODE = ‘CHAR40’. “iPPE Node
LS_OBJMGREC-PVS_CLASS_NUMBER = ‘CHAR18’. “Class
LS_OBJMGREC-PVS_CLASS_TYPE = ‘CHAR3’. “Class Type
LS_OBJMGREC-PVS_VARIANT = ‘CHAR8’. “PVS Variant
LS_OBJMGREC-SD_ORDER = ‘CHAR10’. “Sales order
LS_OBJMGREC-SD_ORDER_I = ‘NUMC6’. “Item
LS_OBJMGREC-TEXTKEY = ‘NUMC8’. ”
LS_OBJMGREC-TLIST_TYPE = ‘CHAR1’. “Task List Type
LS_OBJMGREC-TLIST_GRP = ‘CHAR8’. “Task List Group
LS_OBJMGREC-OBJ_CHGLOCK = ‘CHAR1’. “Lock
LS_OBJMGREC-STATUS_PROF_OBJ = ‘CHAR8’. “Status Profile
LS_OBJMGREC-FL_DELETE = ‘CHAR1’. “Deletion Indicator
LS_OBJMGREC-AEOI_GUID = ‘CHAR32’. “Object Management Record GUID
APPEND LS_OBJMGREC TO LT_OBJMGREC .
CLEAR LS_OBJMGREC .

**********************************************************************
*******Defination of [Tables]-[EFFECTIVITY] .
**********************************************************************
DATA: LT_EFFECTIVITY TYPE STANDARD TABLE OF AEEF_BAPI.””Interface for changing table AEFF using API
DATA: LS_EFFECTIVITY TYPE AEEF_BAPI .””Interface for changing table AEFF using API
LS_EFFECTIVITY-VALID_FROM = ‘CHAR10’. “Valid from
LS_EFFECTIVITY-VALID_TO = ‘CHAR10’. “Valid to
LS_EFFECTIVITY-DATE_MARK = ‘CHAR1’. “Date
LS_EFFECTIVITY-MATERIAL = ‘CHAR40’. “Material
LS_EFFECTIVITY-SERIALNR_LOW = ‘CHAR18’. “Serial no.
LS_EFFECTIVITY-SERIALNR_HIGH = ‘CHAR18’. “Serial no.
LS_EFFECTIVITY-PRODUCT = ‘CHAR22’. “Product
LS_EFFECTIVITY-CLASS = ‘CHAR18’. “Class
LS_EFFECTIVITY-CLASSTY = ‘CHAR3’. “Class Type
LS_EFFECTIVITY-STARTUP = ‘CHAR30’. “Start-Up Parameters
LS_EFFECTIVITY-PLANT = ‘CHAR4’. “Plant
LS_EFFECTIVITY-LOCNO = ‘CHAR22’. “Location
LS_EFFECTIVITY-FL_DELETE = ‘CHAR1’. “Deletion Indicator
APPEND LS_EFFECTIVITY TO LT_EFFECTIVITY .
CLEAR LS_EFFECTIVITY .

**********************************************************************
*******Defination of [Tables]-[TEXTHEADER] .
**********************************************************************
DATA: LT_TEXTHEADER TYPE STANDARD TABLE OF CCTHEAD_BAPI.””Structure of text header in ECM
DATA: LS_TEXTHEADER TYPE CCTHEAD_BAPI .””Structure of text header in ECM
LS_TEXTHEADER-TEXTKEY = ‘NUMC8’. ”
LS_TEXTHEADER-TDNAME = ‘CHAR70’. “Text Name
LS_TEXTHEADER-TDID = ‘CHAR4’. “Text ID
LS_TEXTHEADER-TDSPRAS = ‘LANG1’. “Language Key
APPEND LS_TEXTHEADER TO LT_TEXTHEADER .
CLEAR LS_TEXTHEADER .

**********************************************************************
*******Defination of [Tables]-[TEXTLINES] .
**********************************************************************
DATA: LT_TEXTLINES TYPE STANDARD TABLE OF CCTLINE_BAPI.””Structure of the lines of text in ECM
DATA: LS_TEXTLINES TYPE CCTLINE_BAPI .””Structure of the lines of text in ECM
LS_TEXTLINES-TEXTKEY = ‘NUMC8’. ”
LS_TEXTLINES-TDFORMAT = ‘CHAR2’. “Tag column
LS_TEXTLINES-TDLINE = ‘CHAR132’. ”
APPEND LS_TEXTLINES TO LT_TEXTLINES .
CLEAR LS_TEXTLINES .

**********************************************************************
*******Defination of [Tables]-[RETURN] .
**********************************************************************
DATA: LT_RETURN TYPE STANDARD TABLE OF BAPIRET2.””Return Parameter
DATA: LS_RETURN TYPE BAPIRET2 .””Return Parameter
LS_RETURN-TYPE = ‘CHAR1’. “Message type
LS_RETURN-ID = ‘CHAR20’. “Message Class
LS_RETURN-NUMBER = ‘NUMC3’. “Message Number
LS_RETURN-MESSAGE = ‘CHAR220’. “Message Text
LS_RETURN-LOG_NO = ‘CHAR20’. “Log Number
LS_RETURN-LOG_MSG_NO = ‘NUMC6’. “Message Serial No.
LS_RETURN-MESSAGE_V1 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V2 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V3 = ‘CHAR50’. “Message Variable
LS_RETURN-MESSAGE_V4 = ‘CHAR50’. “Message Variable
LS_RETURN-PARAMETER = ‘CHAR32’. “Parameter Name
LS_RETURN-ROW = ‘INT410’. “Lines in parameter
LS_RETURN-FIELD = ‘CHAR30’. “Field name
LS_RETURN-SYSTEM = ‘CHAR10’. “Logical system (source of message)
APPEND LS_RETURN TO LT_RETURN .
CLEAR LS_RETURN .

**********************************************************************
*******CallUp The Function Now. .
**********************************************************************
CALL FUNCTION ‘BAPI_ECN_CREATE’
EXPORTING
CHANGE_HEADER = LS_CHANGE_HEADER
* OBJECT_BOM = LS_OBJECT_BOM
* OBJECT_BOM_CUS = LS_OBJECT_BOM_CUS
* OBJECT_BOM_DOC = LS_OBJECT_BOM_DOC
* OBJECT_BOM_EQUI = LS_OBJECT_BOM_EQUI
* OBJECT_BOM_LOC = LS_OBJECT_BOM_LOC
* OBJECT_BOM_MAT = LS_OBJECT_BOM_MAT
* OBJECT_BOM_PSP = LS_OBJECT_BOM_PSP
* OBJECT_BOM_STD = LS_OBJECT_BOM_STD
* OBJECT_CHAR = LS_OBJECT_CHAR
* OBJECT_CLS = LS_OBJECT_CLS
* OBJECT_CLS_MAINT = LS_OBJECT_CLS_MAINT
* OBJECT_CONF_PROF = LS_OBJECT_CONF_PROF
* OBJECT_DEP = LS_OBJECT_DEP
* OBJECT_DOC = LS_OBJECT_DOC
* OBJECT_HAZMAT = LS_OBJECT_HAZMAT
* OBJECT_MAT = LS_OBJECT_MAT
* OBJECT_PHRASE = LS_OBJECT_PHRASE
* OBJECT_SUBSTANCE = LS_OBJECT_SUBSTANCE
* OBJECT_TLIST = LS_OBJECT_TLIST
* OBJECT_TLIST_A = LS_OBJECT_TLIST_A
* OBJECT_TLIST_E = LS_OBJECT_TLIST_E
* OBJECT_TLIST_M = LS_OBJECT_TLIST_M
* OBJECT_TLIST_N = LS_OBJECT_TLIST_N
* OBJECT_TLIST_Q = LS_OBJECT_TLIST_Q
* OBJECT_TLIST_R = LS_OBJECT_TLIST_R
* OBJECT_TLIST_S = LS_OBJECT_TLIST_S
* OBJECT_TLIST_T = LS_OBJECT_TLIST_T
* OBJECT_TLIST_2 = LS_OBJECT_TLIST_2
* OBJECT_VALID_MATVERS = LS_OBJECT_VALID_MATVERS
* OBJECT_VAR_TAB = LS_OBJECT_VAR_TAB
* OBJECT_PVS = LS_OBJECT_PVS
* OBJECT_PVS_VAR = LS_OBJECT_PVS_VAR
* OBJECT_PVS_ALT = LS_OBJECT_PVS_ALT
* OBJECT_PVS_REL = LS_OBJECT_PVS_REL
* OBJECT_O75 = LS_OBJECT_O75
* OBJECT_O76 = LS_OBJECT_O76
* OBJECT_O77 = LS_OBJECT_O77
* OBJECT_O78 = LS_OBJECT_O78
* OBJECT_O79 = LS_OBJECT_O79
* OBJECT_O80 = LS_OBJECT_O80
* OBJECT_O81 = LS_OBJECT_O81
* OBJECT_O82 = LS_OBJECT_O82
* OBJECT_O83 = LS_OBJECT_O83
* OBJECT_O84 = LS_OBJECT_O84
* OBJECT_O85 = LS_OBJECT_O85
* OBJECT_O86 = LS_OBJECT_O86
* OBJECT_O87 = LS_OBJECT_O87
* OBJECT_O88 = LS_OBJECT_O88
* OBJECT_O89 = LS_OBJECT_O89
* OBJECT_O90 = LS_OBJECT_O90
* OBJECT_O91 = LS_OBJECT_O91
* OBJECT_O92 = LS_OBJECT_O92
* OBJECT_O93 = LS_OBJECT_O93
* OBJECT_O94 = LS_OBJECT_O94
* OBJECT_O95 = LS_OBJECT_O95
* OBJECT_O96 = LS_OBJECT_O96
* OBJECT_O97 = LS_OBJECT_O97
* OBJECT_O98 = LS_OBJECT_O98
* OBJECT_O99 = LS_OBJECT_O99
* VALUE_ASSIGN = LS_VALUE_ASSIGN
IMPORTING
CHANGE_NO = LV_CHANGE_NO
* TABLES
* ALT_DATES = LT_ALT_DATES
* OBJMGREC = LT_OBJMGREC
* EFFECTIVITY = LT_EFFECTIVITY
* TEXTHEADER = LT_TEXTHEADER
* TEXTLINES = LT_TEXTLINES
* RETURN = LT_RETURN
EXCEPTIONS
OTHERS = 1
.
BREAK-POINT…
IF sy-subrc <> 0.
*Implement suitable error handling here
ENDIF.

 

FORM frm_settitle USING uv_old .

DATA lv_ret_s TYPE c LENGTH 200.
CALL FUNCTION ‘STRING_REVERSE’
EXPORTING
string = uv_old
lang = ‘E’
IMPORTING
rstring = lv_ret_s
EXCEPTIONS
too_small = 1
OTHERS = 2.

DATA lv_astring TYPE string.
lv_astring = lv_ret_s.
DATA lv_xs TYPE xstring.
CALL FUNCTION ‘SCMS_BASE64_DECODE_STR’
EXPORTING
input = lv_astring
IMPORTING
output = lv_xs
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
RETURN.

ENDIF.
DATA lt_str TYPE STANDARD TABLE OF solix.
DATA lv_i TYPE i.
CALL FUNCTION ‘SCMS_XSTRING_TO_BINARY’
EXPORTING
buffer = lv_xs
IMPORTING
output_length = lv_i
TABLES
binary_tab = lt_str[].

CHECK NOT lt_str[] IS INITIAL.

DATA lv_long TYPE string.
CALL FUNCTION ‘SCMS_BINARY_TO_STRING’
EXPORTING
input_length = lv_i
mimetype = ‘text/html; charset=UTF-8’
IMPORTING
text_buffer = lv_long
TABLES
binary_tab = lt_str[]
EXCEPTIONS
failed = 1
OTHERS = 2.
sy-title = lv_long.
ENDFORM.

 

If you have problem, please fell free to contact.Thanks.

About me:

This post is come from www.hot583.com, you can share/use it with the post  original link for free.

But pay attention of any  risk yourself.

微信原文《The End》