09-14-2010 12:17 PM
Hello all,
i want to get recipe blast for all plan numbers just like tcode C203.
My RFC will give plan number, material number and the phases of that plans.
I tried to filter the datas from PLPO, MKAL, PLKO but i couldnt filter as i wanted.
i have some datas from PLPO tables those they dont exist in C203 screen.
I also coulndnt get a result from ST05 properly.
Is there a function for this blast? or is there a table that im not checking?
Thanks for your help
09-14-2010 3:06 PM
Hi,
you can use function module CP_EX_PLAN_READ to get the routing details.
Hope it helps.
Sujay
09-14-2010 3:06 PM
Hi,
you can use function module CP_EX_PLAN_READ to get the routing details.
Hope it helps.
Sujay
09-15-2010 4:16 PM
10-14-2010 11:10 AM
hello
I am trying to download the routing o ca03 from zprogram.I have also usd PLPO table for gettin operation,suboperations and other detail.But it's not giving the relevant answer for my query.Can you plz help.As you have used this function module CP_EX_PLAN_READ ,Can you brief me?
10-14-2010 12:18 PM
I used this function as below. But i think CA03 uses the plans with type "N". so maybe you should change the PLNTY_IMP field with "N".
Also you whould consider the PVZKN and PHFLG fields in PLPO table.
CALL FUNCTION 'CP_EX_PLAN_READ'
EXPORTING
CMODE_IMP = 'R'
PLNTY_IMP = '2'
PLNNR_IMP = gt_itab1-plnnr
PLNAL_IMP = '03'
STTAG_IMP = sy-datum
CHECK_IMP = 'X'
CUOBJ_IMP =
PARNT_IMP = ' '
FCAPO_IMP = ' '
TCA11_IMP = ' '
FLG_VAL_REC_IMP = ' '
STLNR_IMP =
I_PLAS_KEY_TAB =
PRODCOST = ' '
I_BUSINESS_OBJECT =
I_FLG_CHARACTERISTICS_PLANNING = ' '
I_EDGNO =
VBELN_IMP = ' '
POSNR_IMP = 0
LOSGR_IMP = 1
I_PLANT =
IMPORTING
RES_APPR_CHK_EXP =
ERROR_EXP =
E_MAPL =
PI_SET_USED =
TABLES
MLST_EXP =
PLAB_EXP =
PLAS_EXP =
PLFH_EXP =
PLFL_EXP =
PLFT_EXP =
PLFV_EXP =
PLKO_EXP =
PLMZ_EXP =
PLPO_EXP = GT_COPLPO
PLTX_EXP =
AENNR_EXP =
PLMK_EXP =
PLMW_EXP =
EXCEPTIONS
NOT_FOUND = 1
PLNAL_INITIAL = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.