Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

custom badi not geting activate?

Former Member
0 Likes
2,165

Dear all

As per my requirement i have to maintain 'EMAILID' type as changeing but it is not geting activate. If maintain 'EMAILID' type as returning it is geting activate what might be the problem?

11 REPLIES 11
Read only

Former Member
0 Likes
2,133

Hi,

check  CHECKBOXs ,,,in badi interface it was throwing like there should be all importing parameter   OPTIONAL(check box) and atleast one return exporting  OPTIONAL(checkbox) should be checked.

regards.

Read only

0 Likes
2,133

'EMAILID'  type changing check button option checked but still it is not geting activate same error is coming

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
2,133

It seems the error you are getting is regarding the use of PREFERRED parameters. Have you defined any PREFERRED import parameters for your method. If yes, then try making all your import parameters as optional.

Read only

Former Member
0 Likes
2,133

This is for the method get_user_emailid

This for get_user_addresdata

what is preferred parameters?

why pass value check box?

why optional check box?

what is the error where it got structued?

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
2,133

Looks like you unintentionally ended up using PREFERRED parameters. If that's the case, you can go to the menu option Goto > Interface Section. There, you can see if the PREFERRED keyword has accidentally been used for any import parameter.

Read only

Former Member
0 Likes
2,133

no, PREFERRED keyword i haven't used, coding not yet started in methods.

i am just defineing the parameters for the methods. in type delcartion for for parameters and at check boxex i got struced. i need to make changing as parameter type in second method for second parameter. if i make return as parameter it is geting activate?

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
2,133

You may not have done coding in your methods but the PREFERRED keyword is used in the signature definitions. If you navigate to the menu option I mentioned, you would understand what I am saying.

If you created your interface by copying a standard one, it's probable that the PREFERRED addition got copied as well. In any case, it's worthwhile to have a look at the 'Interface Section' (by navigating to the menu option) because clearly the error you have reported is linked to PREFERRED parameters.

Read only

Former Member
0 Likes
2,133

http://saptechnical.com/Tutorials/ExitsBADIs/MultipleUse/page2.htm

plz go through this link once

i didn't understand at the following point

if i maintain 'EMAILID'  type as returning i am able to activate badi definition. But as mentioned in the above picture " 'EMAILID'  TYPE did not chagend from the exporting parameter to changing parameter"? what needs to be done?

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
2,133

You can read the link below to know why you can't have EXPORTING or RETURNING parameters in a multiple-use BAdI.

http://help.sap.com/saphelp_nw04s/helpdata/en/e4/5c3642eca5033be10000000a1550b0/content.htm

Read only

Former Member
0 Likes
2,133

yes i read the following thread

http://help.sap.com/saphelp_nw04s/helpdata/en/e4/5c3642eca5033be10000000a1550b0/content.htm

as per the link it self i am maintaining parameter type as changeing but badi not able to activate

Read only

0 Likes
2,133

hi,

you have cerated new badi object for the exit point, check  for whether alredy existing badi objects.

abt this Not sure,,,  ,,,,That might be problem, I had the same problem not able to create object when object refer to exit and   its interface alreday exist.

regards.