Skip to Content

Alternate of CREATE_PROCESS_FORECAST for CTR

Hi all,


I need to add a validation in badi BBP_DOC_CHECK_BADI depending on the approval data.


I'm trying to use the method   /SAPSRM/CL_WF_APV_FACADE=>CREATE_PROCESS_FORECAST within this badi, but doesn't work fine.


I've found this thread of Ashish Shah with a similar problem, but for PO. In this thread Konstantin Anikeev suggested using the method  /SAPSRM/IF_PDO_DO_APV_EXT~GET_PROCESS_INFO_REF of class /SAPSRM/IF_PDO_BO_PO_ADV.

I've found the class /SAPSRM/IF_PDO_BO_CTR_ADV for CTR, but the method GET_PROCESS_INFO_REF doesn't exist there.

Do you know which method can I use for CTR?

Thanks in advance.
Regards,

Ricardo.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 13, 2015 at 02:32 PM

    Hmmm.


    0000.png (46.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Something like

      lo_pdo = /SAPSRM/CL_PDO_FACTORY_CTR_ADV=>CREATE_NEW_INSTANCE(...)

      For OO approach you create first the empty class and then put the data...

      lo_pdo->/SAPSRM/IF_PDO_BO_CTR~UPDATE_HEADER(...)

      lo_pdo->/SAPSRM/IF_PDO_BO_CTR~UPDATE_ITEM(...)

      etc.