I am working in CRM. I am trying to analyze some BAPI programs.
Here the definition name of the BAPI impemented is EXEC_METHODCALL_PPF.
Here I am checking that description field must not be empty. To do this as far I know the field must be accessed in the method -endmethod. But in the program I am analyzing simple message is given and the BADI is triggered when the description field is empty.
Here is the following code.
method IF_EX_EXEC_METHODCALL_PPF~EXECUTE .
message W208(00) with 'Enter a value for Description'.
Can anyone explain me how the BADI is triggered ? And also how the fields of the tcode are accessed in the BADI.
Message was edited by: varun sonu
Suresh Datti replied
I haven't had a chance to work on CRM but... lets say your EXEC_METHODCALL_PPF is filter dependent & the implementaion has the filter values 1,2,3& 4.
then the methods in the implementation can have the following code..
case flt_val. when '1'. * do something when '2'. * do something else. when '3'. * do something else. when '4'. * do something else. when others. endcase.