RFC_ERROR_INTERNAL (when trying to set values on my remote function)

Hi everyone,
I've been playing with JCo for a few days now, and I got it to work to a certain point, that being, I am able to query my sap tables and add records to them.
My problem is:
I've set a function with two import parameters, let's say USERNAME and PASSWORD, both LIKE two other fields from one of my tables, and an export parameter called return with type C, which is supposed to be 0 or 1. (user good or not)
I ran this remote function in standalone mode and everything works out like I want it to, so guess no problems here.
<i>For clarity sake, i should say i'm not trying to build an authentication remote function like them standard BAPI's so please don't point me in that direction. I don't have R/3 access for the time being, so this is being done on MBS, which, while limited, should be more than enough to fulfill my purposes.
</i>
Unfortunatelly when i try to execute this function from a simple java test app i get the following exception thrown:
[code]com.sap.mw.jco.JCO$Exception: (108) RFC_ERROR_INTERNAL: Internal error: rec->cdata == NULL
[/code]
And this is how i'm trying to do it in Java:
[code]public boolean checkPassword(String username, String password) {
    JCO.Function function = getFunction("Z_RFC_CHECK_LOGIN");
    JCO.ParameterList listParams = function.getImportParameterList();
    listParams.setValue(username, "USERNAME");
    listParams.setValue(password,"PASSWORD");
    try
            aConnection.execute(function); // <<<------Exception points here when debugging!
    catch(Exception e)
        System.out.println("ERROR -" +e);
        //e.printStackTrace();
    JCO.ParameterList resultParams = function.getExportParameterList();
    JCO.Field field = resultParams.getField("RETURN");
    String reply = field.getString();
    System.out.println("REPLY: "+reply);
    if (reply.equals("0"))
    return true;
    else
    return false;
    }[/code]
So basically I can't seem to send out values to my RF, and for that matter, nor can i get a return value.
I can, however make the following code work successfully:
[code]JCO.ParameterList stParams = function.getImportParameterList();
            JCO.Structure est_clientes = stParams.getStructure("WA_PEOPLE");  
            est_clientes.setValue("1","PERSON_CODE");
            est_clientes.setValue("Duarte", "NAME");
            est_clientes.setValue("Porto","ADDRESS");
            aConnection.execute(function);[/code]
But, on my <i>problematic</i> previous example, still won't work if I try for example:
[code] JCO.Field p_code = params.getField("PERSON_CODE"); [/code]
and then setting the value with:
[code] p_code.setValue("Duarte"); [/code]
I know the code is kinda junky right now but like i said it's just for testing my skills with JCo for now. Any help on this would be apreciated, thank you in advance for any replies.
Best Regards,
Duarte

Thanks for replying,
It's working now, it turned out I was wrong about the problem being with my java code.
I basically forgot to set the Remote-Enabled option on my FM attributes.
Imagine how i felt after a full day of head banging on this matter, i guess the joke was on me for today
Anyway sorry if i wasted anyone's time with this, I genuinelly thought i had it all figured out.
Regards,
Duarte

Similar Messages

  • HT2105 Continually get a message saying "We are experiencing technical difficulties, please try later" when trying to set up allowances. Not very helpful. Any ideas. I am running the latest itunes with Windows 7 Professional.

    Continually get a message saying "We are experiencing technical difficulties, please try later" when trying to set up allowances. Not very helpful. Any ideas. I am running the latest itunes with Windows 7 Professional.

    Not a solution yet, but received the following from one of the tech people I've been e-mailing back & forth with.
    "I'm sorry that you have been unable to submit your podcast. The podcast submission form is currently offline. When trying to submit the podcast you will receive this message "We are Currently Experienced Technical Difficulties". Once the issue has been resolved, I would be glad to inform you.
    Apple is currently working toward a resolution for the issue you have reported. You will receive an email after the matter has been investigated and further information is available."
    Who knows, maybe the problem isn't with my feed after all.

  • HT1553 I did the back up as instructed... Installed a larger hard drive and followed the restore instructions... Now I get a white screen with a folder icon and blinking question mark. When trying to set startup with new drive I get a bless tool error...

    I did the back up as instructed... Installed a larger hard drive and followed the restore instructions... Now I get a white screen with a folder icon and blinking question mark. When trying to set startup with new drive I get a bless tool error... Help!!

    If you have installed a new hard drive , you will need to have formatted it in Disk Utility correctly. This may explain your problem.
    Boot  into your 10.6 Install disk again at the top menubar > Utilities > select Disk utility and in there select your new hard drive, and select the tab Erase and choose to make the format as  Mac OS Extended Journaled. When that is finished look in the main window to make sure that the partition map scheme says GUID Partition Table.
    Now go to the Restore tab and reinstall from your backup.

  • HT201320 when trying to set up my email account, i enter add account tap in my details for my virgin media email account, after going through the veryfying, it comes back with cannot connect using ssl.

    when trying to set up my personal email account, following the on screen instructions, it comes back with CANNOT CONNECT USING SSL, do you want to try setting up the account without ssl? Yes or No

    Since Thunderbird does not run on iPads, what does this have to do with Thunderbird?

  • Trouble in BEx Analyzer when try to set values to the variables in ZXRSRU01

    Hi Experts!
    I have the trouble in BEx Analyzer when try to set values to the variables in ZXRSRU01 on i_step = 1.
    When variable's screen apeares the values is not those what was set in ZXRSRU01. When I try to trace
    this in RSRT I have no this problem, all the values are same as was set in ZXRSRU01.
    Thanks in advance.
    Best regards,
    Andrey Bychkov

    Hi
    Check this
    Documentation about variable types & their processing in i_step = 1, 2 etc.
    It may help you....
    Cheers

  • When trying to set up my eprint account. I get an error message my email

    When trying to set up my eprint account. The error message is my email address is on file and I need to sign in, then when using my password, I am told I need to set up an account for the eprint center.

    The issue you're experiencing is most likely due to an old Snapfish account registered under your email address. ePrintCenter and Snapfish account information is stored in the same place and I've seen this conflict before. You will need to go to http://www.snapfish.com/snapfish/welcome, click the "Sign In" in the top right hand corner of the page and then click the "forgot password" link and enter the email address that is causing your problems, you should receive an email from Snapfish that will let you create a new password there. Once you've created a new password for Snapfish, try to Sign In on ePrintCenter (http://www.eprintcenter.com/) using your email address and the new password you created for Snapfish.
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • I have recently downloaded sentinel mobilesafe to my iphone.When trying to set it up,it asks for my phones name.What is this and where do i find it?

    Hi,I recently downloaded sentinel mobilesafe to my iphone 4s. When trying to set it up,it asks for the phones name. What is this and where do i find it? Thanks

    Thanks Clyde will try it.

  • When trying to set up automatic  syncing , on my iPod Nano, I get a notice that I am synced to another unknown computer.  How do I get unsynced from this other computer ? Have I been hacked ?

    When trying to set up automatic  syncing , on my iPod Nano, I get a notice that I am synced to another unknown computer.  How do I get unsynced from this other computer ? Have I been hacked ?

    Well, most of what we can tell you is already stated in the message you are getting.  A phone can only sync with one library at a time.  You have apparently synced your phone with a different iTunes library in the past, or changes have been made to this library so the phone no longer recognizes it as the library with which it was synced.  To know which you will have to provide the information.
    If you bought them using the AppleID you use with this phone it may simply be easier to re-download them directly to the phone rather than sync them, though you will want to resolve that issue at some point.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519

  • When trying to set up syn with outlook 2010 - it does not show as an option

    When trying to set up syn with outlook 2010 - outlook it does not show as an option

    Hi smrkevin,
    Welcome to the BlackBerry Support Community.
    What version of BlackBerry Desktop Software do you have installed? If you do not have the latest version listed here: http://bbry.lv/ds97JW I would advise upgrading it.
    If you already have the latest version of Desktop Software, can you verify if you are running a Click to Run installation of Outlook? You can check this in Outlook -> Help -> About Microsoft Outlook. If you are using a Click to Run installation, you will need to install a full version of Microsoft Outlook to setup synchronization. For more information, see: http://bbry.lv/qDIoXO
    Hope this helps.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • When trying to set up an email account I keep receiving ssl errror message. Any advice please.

    When trying to set up an email account I keep receiving ssl errror message. Any advice please.

    Error is: Cannot connect using SSL. Do you want to try setting up the account without SSL?
    Answer: Yes
    Then "Verifying" appears at top of screen but nothing happens.
    Tiscali/Talk Talk is the provider.

  • Getting error message (-3150) when trying to set up itunes home share

    getting error message (-3150) when trying to set up itunes home share

    Hey there dahliafromphiladelphia,
    If you're unable to set up Home Sharing in iTunes on your computer, then I'd like you to please follow the directions in the article below.
    Troubleshooting Home Sharing - Apple Support
    Thanks for using the Apple Support Communities!
    Cheers,
    Alex H.

  • HT2731 when trying to set up an account why am i being asked to put a card number and billing address in? I just wanted the free apps??

    when trying to set up an account and register my ipod touch it is asking for a card number, and billing address. Why is it doing that i just want to get free apps

    Apple wants your money. Is it really that hard to figure out?
    Here's a work around.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
      http://support.apple.com/kb/HT2534

  • TS4036 hello there, my old phone was stolen and when trying to set up the new one using icloud it says: No backups available, even though i can see my last backup saved both on the new phone and my ipad, any bright ideas please?

    My old phone was stolen and when trying to set up a new one and restoring my last backup from icloud it says: No backups available, even though i can see my last backup is saved/still there both on the new phone and my ipad, can one only restore from an earlier saved backup during the intitial set up of the phone, or are you also able to restore/pick up an older version later after is i set it up as a new phone?  is any bright ideas please?

    Did you figure this out? I'm having a similar issue.
    Thanks!

  • When trying to set up iCloud the setup manager refers to a no longer used telephone

    I am trying to setup my iCloud (keychain) on (all) my devices... "when trying to set up iCloud, the setup manager refers to a no longer used telephone number that was the old number on my iPhone". I have not used this number for over a year... and had erased and changed my number in my main account (Apple). How can I get the iCloud setup agent to (see) use the (new) latest telephone number?

    You can change the number from the device you have keychain set up on from the keychain options in the iCloud settings.

  • Cannot get email verification when trying to set up iCloud settings on my iPad.

    Cannot get email verification when trying to set up iCloud settings on my iPad

    I ignored my laptop for a couple of days and last night noticed that it had been updated by the cloud.
    I had added a test contact to my iPhone and it has appeared on outlook on my laptop.

Maybe you are looking for

  • A7600-H Software Update

    Good day, I have been try (with no success) since yesterday late evening to update multiple A7600-H devices to android 4.4.2 (Specifically: a7600H_A442_000_016_140627_row). Unfortunately, the OTA updates don't seem to work and neither does the Lenovo

  • Jpg jagged edges

    Hi, I'm making a video from jpgs -- all were taken by a professional photographer, really big file sizes, so that they are down to about 26% to fill the screen. Problem is the jagged edges, particularly on straight lines -- and there are a lot of the

  • Reference columns from another query

    I've made XML data template in Report Builder, which consists of multiple data queries and groups. When I use for each XML structure in Word template builder to obtain data, I get data only from one data query, and blanks for fields that I referenced

  • Connect to Oracle8i Lite v4.0.1

    Upon trying to get a connection: eg) con = DriverManager.getConnection("jdbc:polite:polite", "system", "manager"); I get this mean error: javaw.exe - Entry Point Not Found The procedure entry point SQLCreateBlob could not be located in the dynamic li

  • Sending an email to an agent that is not logged in telling them to log in.

    We have users here on nights and weekends that will answer a very small amount of phone calls.  One agent in particular has trouble remembering to log in when they get in the building.  I have looked and searched, but I can't find any specific inform