ABAP OO Class Methods

CONVERT_R3_DATA_TO_APO SAP Method - Filters and converts R/3 data for APO







Below is documentation, parameters and attributes of ABAP Method CONVERT_R3_DATA_TO_APO within SAP class IF_PRJ_APO_CONVERT. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name IF_PRJ_APO_CONVERT into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

IF_PRJ_APO_CONVERT

Method Name

CONVERT_R3_DATA_TO_APO

Method Type

Instance Method:   This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


IV_INDEX_TO " Internal table, current line index TYPE SYTABIX
IV_INDEX_FROM " Internal table, current line index TYPE SYTABIX
IV_DESTINATION " Logical System: Transfer Target System TYPE LOGDSTSYS
IV_CIFTRIGGER " Trigger of Data Transfer Using CIF TYPE CIFTRIGGER
IT_STATUS " Status Information TYPE PRJ_T_JEST
IT_RESB " Component Requirements (subset of RESBB) TYPE PRJ_T_RESB
IT_MATNR_PLANT " Standard Tab: Material / Plant Combinations Relevant for APO TYPE PRJ_T_MATNR_PLANT
IT_KBED " Capacity Requirements (Subset of KBED) TYPE PRJ_T_KBED
IT_CAUFV " Order Headers (Subset of CAUFVDB) TYPE PRJ_T_CAUFV
IT_CAPREQ_WORK_CENTER_DATA " Hashed Table: Work Center Data Needed for Cap Reqs TYPE PRJ_TH_CAPREQ_WORK_CENTER_DATA
IT_CAPREQ_KAKO_DATA " Hashed Table: KAKO Data Needed for Cap Reqs TYPE PRJ_TH_CAPREQ_KAKO_DATA
IT_AUFNR_SCHED_IN_R3 " Order Number hashed TYPE PRJ_TH_AUFNR
IT_AFVG " Activities / Operations (Subset of AFVGD) TYPE PRJ_T_AFVG
IT_AFAB " Relationships (subset of AFABB) TYPE PRJ_T_AFAB
IR_CIF_APPL_LOG " Manages CIF Application Log TYPE REF TO IF_PRJ_MANAGE_LOG

Exporting Parameters:


ET_OUTPUT_OUTBOUND " Assembly Item Outbound Table TYPE PRJ_T_OUTPUT_OUTBOUND
ET_INPUT_OUTBOUND " Component Requirement Outbound Table TYPE PRJ_T_INPUT_OUTBOUND
ET_HEADER_OUTBOUND " Order Header Outbound Table TYPE PRJ_T_HEADER_OUTBOUND
ET_CONSTRAINT_OUTBOUND " Relationship Outbound Table TYPE PRJ_T_CONSTRAINT_OUTBOUND
ET_CONFIG_OUTBOUND " Configuration Data TYPE PRJ_T_CONF_DATA
ET_CAP_REQ_OUTBOUND " Capacity Requirement Outbound Table TYPE PRJ_T_CAP_REQ_OUTBOUND
ET_ACTIVITY_OUTBOUND " Activity Outbound Table TYPE PRJ_T_ACTIVITY_OUTBOUND

Exceptions:



Example ABAP coding


DATA:
ld_IV_INDEX_TO TYPE SYTABIX ,
ld_IV_INDEX_FROM TYPE SYTABIX ,
ld_IV_DESTINATION TYPE LOGDSTSYS ,
ld_IV_CIFTRIGGER TYPE CIFTRIGGER ,
ld_IT_STATUS TYPE PRJ_T_JEST ,
ld_IT_RESB TYPE PRJ_T_RESB ,
ld_IT_MATNR_PLANT TYPE PRJ_T_MATNR_PLANT ,
ld_IT_KBED TYPE PRJ_T_KBED ,
ld_IT_CAUFV TYPE PRJ_T_CAUFV ,
ld_IT_CAPREQ_WORK_CENTER_DATA TYPE PRJ_TH_CAPREQ_WORK_CENTER_DATA ,
ld_IT_CAPREQ_KAKO_DATA TYPE PRJ_TH_CAPREQ_KAKO_DATA ,
ld_IT_AUFNR_SCHED_IN_R3 TYPE PRJ_TH_AUFNR ,
ld_IT_AFVG TYPE PRJ_T_AFVG ,
ld_IT_AFAB TYPE PRJ_T_AFAB ,
ld_IR_CIF_APPL_LOG TYPE REF TO IF_PRJ_MANAGE_LOG ,
ld_ET_OUTPUT_OUTBOUND TYPE PRJ_T_OUTPUT_OUTBOUND ,
ld_ET_INPUT_OUTBOUND TYPE PRJ_T_INPUT_OUTBOUND ,
ld_ET_HEADER_OUTBOUND TYPE PRJ_T_HEADER_OUTBOUND ,
ld_ET_CONSTRAINT_OUTBOUND TYPE PRJ_T_CONSTRAINT_OUTBOUND ,
ld_ET_CONFIG_OUTBOUND TYPE PRJ_T_CONF_DATA ,
ld_ET_CAP_REQ_OUTBOUND TYPE PRJ_T_CAP_REQ_OUTBOUND ,
ld_ET_ACTIVITY_OUTBOUND TYPE PRJ_T_ACTIVITY_OUTBOUND.

" ld_IV_INDEX_TO = "
" ld_IV_INDEX_FROM = "
" ld_IV_DESTINATION = "
" ld_IV_CIFTRIGGER = "
" ld_IT_STATUS = "
" ld_IT_RESB = "
" ld_IT_MATNR_PLANT = "
" ld_IT_KBED = "
" ld_IT_CAUFV = "
" ld_IT_CAPREQ_WORK_CENTER_DATA = "
" ld_IT_CAPREQ_KAKO_DATA = "
" ld_IT_AUFNR_SCHED_IN_R3 = "
" ld_IT_AFVG = "
" ld_IT_AFAB = "
" ld_IR_CIF_APPL_LOG = "

DATA: lo_CONVERT TYPE REF TO IF_PRJ_APO_CONVERT .
CALL METHOD lo_CONVERT->CONVERT_R3_DATA_TO_APO(
EXPORTING
IV_INDEX_TO = ld_IV_INDEX_TO
IV_INDEX_FROM = ld_IV_INDEX_FROM
IV_DESTINATION = ld_IV_DESTINATION
IV_CIFTRIGGER = ld_IV_CIFTRIGGER
IT_STATUS = ld_IT_STATUS
IT_RESB = ld_IT_RESB
IT_MATNR_PLANT = ld_IT_MATNR_PLANT
IT_KBED = ld_IT_KBED
IT_CAUFV = ld_IT_CAUFV
IT_CAPREQ_WORK_CENTER_DATA = ld_IT_CAPREQ_WORK_CENTER_DATA
IT_CAPREQ_KAKO_DATA = ld_IT_CAPREQ_KAKO_DATA
IT_AUFNR_SCHED_IN_R3 = ld_IT_AUFNR_SCHED_IN_R3
IT_AFVG = ld_IT_AFVG
IT_AFAB = ld_IT_AFAB
IR_CIF_APPL_LOG = ld_IR_CIF_APPL_LOG
IMPORTING
ET_OUTPUT_OUTBOUND = ld_ET_OUTPUT_OUTBOUND
ET_INPUT_OUTBOUND = ld_ET_INPUT_OUTBOUND
ET_HEADER_OUTBOUND = ld_ET_HEADER_OUTBOUND
ET_CONSTRAINT_OUTBOUND = ld_ET_CONSTRAINT_OUTBOUND
ET_CONFIG_OUTBOUND = ld_ET_CONFIG_OUTBOUND
ET_CAP_REQ_OUTBOUND = ld_ET_CAP_REQ_OUTBOUND
ET_ACTIVITY_OUTBOUND = ld_ET_ACTIVITY_OUTBOUND ).