cancel
Showing results for 
Search instead for 
Did you mean: 

Function calls in BSP

Former Member
0 Kudos

Hi guys,

Can I call a function module in a BSP application? Everytime when I call a function module, I get the error message :'The page cannot be displayed'. Could anyone help me on this? Thanks.

Regards,

Conrad

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Turn off the friendly HTTP Error messages in your browser to get more detailed errors. I would suspect that you are getting a short dump. Check ST22 to see if it provides more details.

Former Member
0 Kudos

Please post that code sample as well.

Former Member
0 Kudos

I tried to call 'CRM_SVY_DB_CONVERT_STRING2HEX' in the 'OnInitialization' Event handler and I have also tried to put it into a class. But I still get the same error message. Do I need to declare something somewhere in the program?

Former Member
0 Kudos

How do you try to call is what we are all asking.

Do you use this format?


CALL FUNCTION 'CRM_SVY_DB_CONVERT_STRING2HEX'

Please also do as Thomas asked and turn off your friendly HTTP errors

<a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>

Have you debugged your BSP yet to see exactly where it blows up?

Do you have a short dump in the system? (ST22)

Former Member
0 Kudos

I use the same format. CALL FUNCTION 'CRM_SVY_DB_CONVERT_STRING2HEX'

I have turn off the HTTP errors and this is what I get.

Error message: An exception that could not be caught occurred. ( type of termination: RABAX_STATE )

I have also tested the function module in a program I worte and it works.

Message was edited by: Conrad Chia

Former Member
0 Kudos

Check the Attributes tab of the Function and see if it is "REMOTE ENABLED"

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

RABAX_STATE should mean you are getting a short dump. Please have a look at ST22.

athavanraja
Active Contributor
0 Kudos

Hi Craig,

It doesn't need to be a RFC.

As thomas mentioned RBAX_STATE means dump whould have been generated(ST22).

Regards

Raja

Former Member
0 Kudos

Hi Raja,

If the FM is not Remote Enabled then it could be the cause of the dump and is something that can be quickly checked and eliminated form the list of possible causes.

And since they test the FM and it works, I've learned that this is a common reason that it doesn't work in the BSP.

athavanraja
Active Contributor
0 Kudos

> Hi Craig,

>

> If the FM is not Remote Enabled then it could be the

> cause of the dump

<b>WHAT I MEANT WAS THAT FM DOESN'T NEED TO BE REMOTE ENABLED ONE TO BE ABLE TO CALL FROM BSP</b> and is something that can be

> quickly checked and eliminated form the list of

> possible causes.

>

> And since they test the FM and it works, I've learned

> that this is a common reason that it doesn't work in

> the BSP.

FROM ST22 YOU CAN GET THE EXACT CAUSE OF THE DUMP.

Regards

Raja

Former Member
0 Kudos

Depends on how you call it Raja, CALL FUNCTION '' DESTINATION yes. And since we have no code sample of how they are calling it - it's called process of elimination while shooting in the dark.

Now let's not argue here. We're all just trying to help out. Hopefully the short dump will tell us all more.

athavanraja
Active Contributor
0 Kudos

You are right Craig. Without the person posting the actual code which he/she is using we cant help much.

Thanks.

Regards

Raja

Former Member
0 Kudos

Hi guys,

Sorry for the late reply but I was not feeling well the last few days. Anyway, I have manage to solve the problem. By going check st22 solve my problem. It was a stupid mistake made by me. Thanks.

Regards,

Conrad

Former Member
0 Kudos

DO share

Former Member
0 Kudos

I define a string and an Xstring. I forgot to convert my string to the Xstring before I import it into the function module. Simple as that. Silly me.... Thanks guys....

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes.

Where are you calling this function module and what do you intend to do , by calling the function module ?

If possible, please post code as well

Regards,

Subramanian V.