Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding the Routing extraction

Former Member
0 Likes
1,463

Hi All,

I am extracting the data from legacy system for routings CA01 transaction . Could any body help in giving the standard function modules to extract the data based on the plant . Because i need to extract the data based on the plant and task list type. Its urgent .

Full rewards if useful.

Thanks,

Satheesh

Hi All,

I am extracting the data from legacy system for routings CA01 transaction . Could any body help in giving the standard function modules to extract the data based on the plant . Because i need to extract the data based on the plant and task list type. Its urgent .

Full rewards if useful.

Thanks,

Satheesh

1 REPLY 1
Read only

Former Member
0 Likes
624

check FM CP_EX_PLAN_READ. before you call the FM flush the structures with FM CP_EX_DATA_REFRESH

Regds, Murugesh

code example:

-



*- Flush buffer
        CALL FUNCTION 'CP_EX_DATA_REFRESH'.
*- Read plan
        CALL FUNCTION 'CP_EX_PLAN_READ'
             EXPORTING
                  cmode_imp                      = 'R'
                  plnty_imp                      = l_t_plan-plnty_imp
                  plnnr_imp                      = l_t_plan-plnnr_imp
                  plnal_imp                      = l_t_plan-plnal_imp
                  sttag_imp                      = l_t_plan-sttag_imp
*         CHECK_IMP                      = 'X'
*         CUOBJ_IMP                      =
                  parnt_imp                      = l_t_plan-parnt_imp
*         FCAPO_IMP                      = ' '
*         TCA11_IMP                      = ' '
*         FLG_VAL_REC_IMP                = ' '
*         STLNR_IMP                      =
*         I_BUSINESS_OBJECT              =
*         PRODCOST                       = ' '
*         I_FLG_CHARACTERISTICS_PLANNING = ' '
                 i_plant                        = l_t_plan-i_plant
    IMPORTING
*         RES_APPR_CHK_EXP               =
*         ERROR_EXP                      =
                 e_mapl                         = l_s_mapl
             TABLES
                 mlst_exp                       = l_t_mlstd
                 plab_exp                       = l_t_plab
                 plas_exp                       = l_t_plas
                 plfh_exp                       = l_t_plfh
                 plfl_exp                       = l_t_plfl
                 plft_exp                       = l_t_plft
                 plfv_exp                       = l_t_plfv
                 plko_exp                       = l_t_plko
                 plmz_exp                       = l_t_plmz
                 plpo_exp                       = l_t_coplpo
                 pltx_exp                       = l_t_pltxd
                 aennr_exp                      = l_t_rc280
                 plmk_exp                       = l_t_plmkb
                 plmw_exp                       = l_t_plmw
            EXCEPTIONS
                 not_found                      = 1
                 plnal_initial                  = 2
                 OTHERS                         = 3
                  .

-