cancel
Showing results for 
Search instead for 
Did you mean: 

Forecast value in SPP

Former Member
0 Kudos

Hello,

Iam an ABAP developer in ECC, i have very minimum knowledge in APO / SPP , so please bear with me here.

I need to get the forecast value in SPP(Service parts and planning) and would like to know if there is any BAPI which will retrive it for me.

I know in APO we can use BAPIs like BAPI_PBSRVAPS_GETDETAIL2 to retrive the forecast details from a planningbook keyfigures, but i do not know if we have planning books in SPP.

Please suggest.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

     Please use the below Function module with the specific key figure u need.

U can compare data with TDL Tools:-

* OLD data

****************************** Body  **********************************

***----------------------------- TSDM call  --------------------------*

     TRY.

* Read data from TSDM buffer first if specified in is_ctrl-nobuffer

         CALL FUNCTION '/SCMB/TDM_TSDM_TS_GET'

           EXPORTING

             is_ctrl       = is_ctrl

             it_kprm       = lt_sem_keyfcst

             it_matidlocid = lt_matidlocidfcst

             it_chobj      = it_chobj

             it_ch         = it_ch

           IMPORTING

             et_ts         = it_ts_n

           CHANGING

             ct_period     = lt_tdl_period

             cv_msgty      = cv_msgty

             ct_return     = et_messages.

         APPEND LINES OF et_messages TO zit_msg.

       CATCH cx_sy_dyn_call_illegal_func INTO lr_exception.

         CLEAR lv_text.

*   call_illegal_func

*        RAISE EXCEPTION TYPE /scmb/cx_tdl_tsdm_ts_dao

*          EXPORTING

*            textid = /scmb/cx_tdl_tsdm_ts_dao=>illegal_funct_tsdm_get.

     ENDTRY.

Thanks,

Salim

rohnaela
Explorer
0 Kudos

Hi,

SPP wont use Planning Books as standard APO DP does.

Try using this TXN - /n/sapapo/sppfcst, from here you get the technical details you want in a ABAPer way.

Or

GOTO TXN  /n/scmb/tdl_tools

Thanks

Vinoth