Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Tags:
replied

You can get the reference directly to the class, not to interface, just writing

lo_pdo ?= ....

instead of

lo_pdo = ...

In this case, you can try to define lo_pro TYPE REF TO /SAPSRM/CL_PDO_BO_CTR_ADV

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question