‎2006 Nov 21 5:08 PM
Hi All,
I'm trying to implement the BADI NETW_USER_FIELDS_F4 to be able to define a search help for an user field in transaction CJ20N.
The Badi implemenation, class are active. But upon executing the F4 help, the program dumps with the following description
" CREATE OBJECT: Class "\CLASS=CL_EX_NETW_USER_FIELDS_F4" could not be found. "
The dump is from the get_instance method at the following line -
CREATE OBJECT exit TYPE (abs_type_classname).
The parameter 'exit' which is a type ref to object returns "illegal reference". Not sure where am I making the mistake.
Pls note that the dump is even before the program reaches the BADI implementation, so the code I have in the AT_F4 method is not of significance I suppose.
Any help would be highly appreciated.
Thanks
Uday
‎2006 Nov 21 6:50 PM
Hi
Try to see the <a href="https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=865187">note 865187</a>, it could be helpful for you.
If you can't see the note, this is an extract:
Summary
Symptom
You have implemented BAdI NETW_USER_FIELDS_F4 to provide F4 help for Network Activity User Fields.
You go to transaction CJ20N or CN22 and press 'F4' on a Network Activity User Field. Short Dump occurs because of
Runtime errors CREATE_OBJECT_CLASS_NOT_FOUND
Exception CX_SY_CREATE_OBJECT_ERROR
OR
You go to transaction SE18 and do a Check(CTRL + F2) on BAdI NETW_USER_FIELDS_F4. The system gives a Message:
Message no. ENHANCEMENT367
"BAdI class CL_EX_NETW_USER_FIELDS_F4 does not exist."
Other terms
BAdI NETW_USER_FIELDS_F4, BAdI class CL_EX_NETW_USER_FIELDS_F4 does not exist, F4 help for Network Activity User Fields
Reason and Prerequisites
This is because BAdI Adapter Class CL_EX_NETW_USER_FIELDS_F4 is not present.
Solution
You will have to create the exit class by performing the following steps:
1. Go to Transaction SE18.
2. Enter BAdI Definition name NETW_USER_FIELDS_F4.
3. Go to menu path Utilities->Regeneration.
Now the BAdI class CL_EX_NETW_USER_FIELDS_F4 should get generated.
Max
‎2006 Nov 21 6:15 PM
‎2006 Nov 21 6:31 PM
I already tried those threads. But this time, the program is still at the instance creation step when it dumps.
Dumps at this step
call method cl_exithandler=>get_instance
exporting
exit_name = 'NETW_USER_FIELDS_F4'
null_instance_accepted = const-flg_yes
changing
instance = ref_netw_f4.
This is later !!!
if not ref_netw_f4 is initial.
call method ref_netw_f4->at_f4
exporting i_caufvd = caufvd
i_afvgd = afvgd
i_user_field = user_field
importing e_value = return_value.
‎2006 Nov 21 6:43 PM
‎2006 Nov 21 6:48 PM
SE38 -> LCONWF31
Noticed in debugging the data declaration
ref_netw_f4 type ref to if_ex_netw_user_fields_f4
returns the value "illegal reference". Not sure why this is the case.
‎2006 Nov 21 6:50 PM
Hi
Try to see the <a href="https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=865187">note 865187</a>, it could be helpful for you.
If you can't see the note, this is an extract:
Summary
Symptom
You have implemented BAdI NETW_USER_FIELDS_F4 to provide F4 help for Network Activity User Fields.
You go to transaction CJ20N or CN22 and press 'F4' on a Network Activity User Field. Short Dump occurs because of
Runtime errors CREATE_OBJECT_CLASS_NOT_FOUND
Exception CX_SY_CREATE_OBJECT_ERROR
OR
You go to transaction SE18 and do a Check(CTRL + F2) on BAdI NETW_USER_FIELDS_F4. The system gives a Message:
Message no. ENHANCEMENT367
"BAdI class CL_EX_NETW_USER_FIELDS_F4 does not exist."
Other terms
BAdI NETW_USER_FIELDS_F4, BAdI class CL_EX_NETW_USER_FIELDS_F4 does not exist, F4 help for Network Activity User Fields
Reason and Prerequisites
This is because BAdI Adapter Class CL_EX_NETW_USER_FIELDS_F4 is not present.
Solution
You will have to create the exit class by performing the following steps:
1. Go to Transaction SE18.
2. Enter BAdI Definition name NETW_USER_FIELDS_F4.
3. Go to menu path Utilities->Regeneration.
Now the BAdI class CL_EX_NETW_USER_FIELDS_F4 should get generated.
Max