Only can use JCo to access default BAPIs but can't access developed  BAPIs

Hi,
My problem is I can't use JCo to access the BAPI developed by myself, but can access the default BAPI like BAPI_COMPANY_GETLIST.
These BAPIs developed by myself can be tested in BAPI Explore correctly.
But It can't work in java program using JCo. (can't work means it can run without any bug and I can set values into ImportParameters, but I can't get ExportParameters and Table Parameters)
It sounds like the BAPI can't access remotly but I'm sure that I set the "remote enabled" in attribute tab.
I really don't know what's the problem, and spent many hours try to solve it but it still can't work.
Is there anything I should check? I really need some help.
Here is some part of my source code. The biggest problem is I can't retrieve the returned internal table, but if I change the function module from BAPI_ZAB02_TH2 to any other default function module (like BAPI_COMPANY_GETLIST) and I can retreive the returned internal table....
Thanks in advance.
createConnection();
IFunctionTemplate functionTemplate =
mRepository.getFunctionTemplate("BAPI_ZAB02_TH2");
JCO.Function function = new JCO.Function(functionTemplate);
JCO.ParameterList Input = function.getImportParameterList();
Input.setValue("80013145","VBELN");
mConnection.execute(function);
JCO.ParameterList outnput = function.getExportParameterList();
JCO.Structure returnStructure = function.getExportParameterList().getStructure("RETURN");
JCO.Table ODTable = null;
//retrieve table
ODTable =function.getTableParameterList().getTable("ITAB2");
System.out.println(ODTable.getNumRows());
for (JCO.FieldIterator e = ODTable.fields(); e.hasMoreElements(); )
JCO.Field field = e.nextField();
if (field.getName().equals("VBELN"))
Ship_to_party = field.getString();

I find the answer of this problem.
I forget the leading spaces. Need to add some "0".

Similar Messages

  • I use Firefox as my default browser but, on any site, keep getting some words underlined in green from which an ad pops up. Really peeing me off! Doesn't happen on IE or Chrome. How can I stop this?

    I use Firefox as my default browser but, on any site, keep getting some words underlined in green from which an ad pops up. Really peeing me off! Doesn't happen on IE or Chrome. How can I stop this?

    From what you have described, I don't think you are ever going to pick that up as malware at all. But I did look at the site you mentioned in Google Chrome, and in IE9. First thought was maybe Chrome suppresses it, but that would be contrary to trying to convince you that their AdSense or IntelliTXT is "helping" you.
    What I did find in Chrome was
    "Google Chrome's connection attempt to ad-apac.doubleclick.net was rejected. The website may be down, or your network may not be properly configured."
    Since I don't have ad blockers in Chrome or IE, that tells me that my hosts file is doing its job, you can draw you own conclusions. There is something similar displayed in IE, but I can't read what was there because the font-size was too big. for the space. In Firefox with "Adblock Plus" extension it is all wiped out. The hosts file works across the entire system but is directed at blocking malware sites more than advertising. "Adblock Plus" is very good at blocking ads and can do its blocking with more generic filters, and can block a lot of malware from coming in but it can't block at the system level that a hosts file can.
    In IE although I can only see "It appea" because the font is too large and text does not wrap it does actually say "It appears you are connected to the Internet, but you might want to try to reconnect to the Internet."
    I would certainly suggest installing "Adblock Plus" extension and the "Easylist (USA)" filter subscription -- links are in the links previously provided, and installing the hosts file as well also in the links.
    It takes a bit more work to install and maintain a hosts file but the directions should be clear enough.

  • How can i use Firefox as my default browser but still use/see my original MSN email account without having to go through hotmail?

    I would like to sign on to the internet using Firefox, MSN Internet Explorer, but still be able to go to my MSN account, not thru Hotmail...

    You can place that bookmark on the Bookmarks Toolbar (View > Toolbar > Bookmarks Toolbar) for easy access.
    See also [[Bookmarks]]

  • I am using firefox as my default browser but it keep crashing when browsing. It will logout by regularly while browsing. what is it?

    I am using andriod tablet. W I open any web page it crash out

    Are there any crash reports listed in the url about:crashes ?

  • Error while creating PO using JCO......?

    hello all,
    i am trying to create po by using jco. i have done everything
    but at time of execution its throw following error
    please try to help..
    thanks in advance..
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILURE" raised.
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
         at org.apache.jsp.pocreate1$jsp._jspService(pocreate1$jsp.java:167)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:595)

    check user Authorization in R/3
    nikhil

  • Using JCO with callback

    Hi,
    I'm not sure if there may be a better forum for my problem as I'm not using JCO on an application server (but I couldn't find a better one).
    I'm currently trying to call some function modules that use callbacks. in order to have a easy understandable example I tried to call the function "STFC_CONNECTION_BACK". Well, as soon as I request a callback the program terminates with some kind of error (the error itself doesn't help me).
    Has anybode here ever tried to implement necessary RFC-Callbacks using JCO? I'm curious that i couldn't find any documentation about callbacks regarding JCO while LIBRFC or .NET-Connector seem to cover that topic.
    Any helpful answer will be rewarded,
    thanks in advance,
    Michael

    Hi,
    After getting the value list from the r/3 you need to addthe value list into an arraylist and then set the arraylist in the application scope.
    Now use the html:options collection tag :
    eg
    <html:select property="selectedItem">     <html:options collection="customers" value="id" label="name" /></html:select>
    Where customers is the bean name.
    This is will solve the problem
    Thanks
    Ritu

  • Does ipad mini 2 wifi only can access to LTE signal by using pocket wifi 4g lte?

    Does ipad mini 2  WIFI ONLY can access to LTE signal by using  pocket wifi 4g LTE.,THANKS

    Hello Aaryn D
    You should be able to connect to that hotspot without issue as an iPad will see it within the Wi-Fi networks and you would not need the cellular model unless you want the iPad to constantly have a data connection.
    iOS: Connecting to Wi-Fi
    http://support.apple.com/kb/HT5569
    Regards,
    -Norm G.  

  • Why can't I use my VTone I just purchased from Verizon Market as my phone ringer?  It game me an option to mark it as my default ringer but when I go to 'settings' it only gives me the same generic ringtones, how do i get my new ringtone to use?

    Why can't I use my VTone I just purchased from Verizon Market as my phone ringer?  It game me an option to mark it as my default ringer but when I go to 'settings' it only gives me the same generic ringtones, how do i get my new ringtone to use?

        I like to customize my phone with ring tones too! Let’s get this working for you.
    Did you purchase the ring tone on our website or on the phone?
    If it was purchased online the ring tone is sent to you in a message and you need to save the ring tone first http://bit.ly/PKUfUg and it is saved as a ring tone you can go in and set it as your default ring tone http://bit.ly/R5Xa4o.
    If the ring tone was purchased on the phone you just need to go into your ring tone to set it up http://bit.ly/R5Xa4o.
    Hope this is helpful. Keep me posted if you need further assistance.
    John B
    Follow us on Twitter @VZWSupport

  • How can I move my old iPhoto library into a Referenced Library format and use that as my default?

    Hi, I have been using iPhoto for photo management where all the jpegs have been living, in organized events by date and subject for some time. I recently upgraded to aperture and am using the same iPhoto library. The issue I have is that I use Carbonite for my cloud back up and I am able to look at the pictures I have on my PC with the same folder organization I have them on my PC hard drive. This is apparently not possible for iPhoto library. The only way to access a picture on the iPhoto library in the cloud is to go through the master and hope you can find the specific picture since they are not organized in a comprehensible manner (like events or folders) in there.
    So the only solution I can think of is to move the current iPhoto library to a referenced image library and use that as my default library from now on. This way I get cloud access and the events will hopefully turn into folders with dates and subjects that I can continue to keep organized to satisfy my OCD tendencies.
    So the question I have is that:
    1. How can I make a reference Library for Aperture/iPhoto?
    2. How do I move the current library to the Referenced Library in an Organized manner? My wish list would be a series of folders labeled with the date and the subject, like I have in my iPhoto library right now.
    3. If there is any alternative, your suggestions and recommendations would be much appreciated.
    My computer: Mac Mini (Mid 2012), Lion, 16GB RAM.
    Thank you kindly,

    Or is there a way to go through aperture to make a new reference library that I can move the masters into later?
    you do not move the masters into a references library - you turn your current library into a referenced library.  As Terence Devlin said:
    File -> Relocate Masters
    What you should set up:
    Select a folder, where you want to store your referenced files - probably on an external drive.
    Decide on a hierarchical folder structure inside this folder - that is completely up to you.
    Select a project from your library and use the command "File -> Relocate Masters/Originals" to move the original image files to the folder where you want to go them to. Only take care not to send two projects to the same folder.
    Alternatively, if you do not care about the folder structure Aperture will use, select all images at once from the "Photos" view and let Aperture decide how to assing the folders - in the "Relocate Originals" dialoge you can specify a subfolder format.
    Regards
    Léonie

  • Bapi Call using JCO

    Hi all,
    Please share your views on the below scenario:
    A WD Java app, deployed on WAS and an iView created in portal, is calling a BAPI and works fine when assigned to the role.
    Now the same application when viewed directly using
    http://<host>:<port>/webdynpro/dispatcher/local/<appname> does not execute the bapi and gives
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    The JCO are using a service user to connect to the backend, so SSO still exist.
    Let me know what we could be doing wrong here.
    Meanwhile I can check the connection pool to see the property value.
    Thanks for your time
    Avinash

    Hi Prashant
    Thanks for your quick response.
    The application when accessed directly does not ask for user id/password.
    If I set the application property 'authentication' as true, would this authentication be done against UME?
    Also since there is no "SSO using logon tickets" why is there a need for issuing a logon ticket?
    I will try what you suggested in the earlier post.
    Thanks
    Avinash

  • How can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?

    Good afternoon friends.
    Please help me and tell how can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?
    I started using Apple ID in 2011 when iCloud was not exist and was forced to use non-apple e-mail adress as primary ID.
    So I used GMail mailbox.
    When iCloud was started I created my account but unfortunatelly can't remove this Gmail address from my Apple ID and replace it with icloud mail address.
    I was VERY dissapointed because I don't want to use "outside" mailbox to get letters from Apple and ny ID.
    In fact I see the Apple old users and fans discrimination.
    When creating new user accounts are free to create a box on the iCloud mail and use it as a primary ID, and the only ONE.
    At the same time the old user is obliged to keep third-party mail box like Gmail etc. as the primary and can not get such an opportunity, as a new user
    This is extremely inconvenient and a VERY strange logical.
    For example, now I want to stop using this mailbox on Gmail but I can not do that because in this case I lose access to my ID, or run the risk that someone in the future will create a box with the same name on Gmail (when name will be free and available) and will automatically get access to my accounts on Apple and to my Apple ID.
    Now, to avoid this, your team, I offer the only way out: ID, create anew.
    Of course it's possible, but then:
    - I lose all my purchases for 3 years and will be forced to make them again and pay money for the second time for my purchases
    - Lose access to the familiar iCloud e-mail address who now serves as secondary ID because this e-mail address is almost no longer available and will never be released in future.
    And now answer me for ONLY TWO questions:
    - WHERE IS LOGIC?
    - WHAT ABOUT TO BE FRIENDLY FOR YOUR USERS AND FANS?
    Thank you!
    Hopefully for your GOOD answers.

    You cannot make your @icloud.com address the login address for the ID. However you can change your ID, currently a Gmail one, to any other functioning non-Apple email address. The Gmail address would then no longer access your account, and so even if someone were to obtain posession of it (is that even possible) it wouldn't allow them to get into your account.
    If you want to change your ID to another email address please follow the procedure outlined below, particularly noting the first step.
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Create a new email address, for example  at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
    Enter your new address and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.

  • Error while calling BAPI_PARTNEREMPLOYEE_CREATE BAPI using JCO

    Hi All,
    Our requirement is to create and update customer contact details from java application. For this purpose we are trying to call BAPI_PARTNEREMPLOYEE_CREATE BAPI for create contact and BAPI_PARTNEREMPLOYEE_EDIT for updating contact information. As these BAPIs are of online version, error is coming while calling these BAPIs.
    So is there any way to call these BAPIs through JCO or are there any alternative BAPIs available for same purpose?
    Thanks in advance,
    Arati.

    Hi,
    All the bapi or function module available in SAP to create contact person will internally do a call transaction to VAP1 and VAP2 tcodes in order to create or change contact person respectively.
    We had a similar problem when we were creating and updating customer contact person using inbound idoc. We then created a bdc recording for the same and then created two function module with name Z_CREATE_CONTACT and Z_CHANGE_CONTACT. In your case you can make this function modules as RFC enabled FM and call them using JCO I guess.
    KR Jaideep,

  • I have an iPhone with an unlimited data plan. Is there a way to go online with a wifi only iPad using my phone for access?

    I have an iPhone with an unlimited data plan. Is there a way to go online with a wifi only iPad using my phone for access?

    If your iPhone cell carrier allows you to use Tethering, you can turn your iPhone into a wifi hotspot, then your iPad Air can connect to that for internet access.  Not all cell carriers allow tethering without you signing up for additional fees/services.  For example, AT&amp;T in the US still has grandfathered "unlimited" data plans, but they do not allow tethering for those plans.  With AT&amp;T you need to switch to a Mobile Share plan (or a tiered plan if still available) to use tethering (legally).

  • How can I remotely wake up my sleeping iMac using a remote access app?

    I am using Splashtop Remote Access on my iPad (gen. 1) to connect to any of 3 Macs: Intel iMac; MacBook Pro; Mac Mini; and a Win 7 Toshiba Laptop. The connection works very well with each of the computers allowing complete control of each. The only problem is I can't connect if the target is asleep. I don't see any setting in System Preferences to enable a wakeup when my remote access is attempted. Any suggestions?

    The only problem is I can't connect if the target is asleep.
    That's to be expected.

  • Item category S can only be used with account assignment category

    Hello Gurus,
    When i tried to create a PO then error "Item category S can only be used with account assignment category" is coming
    for my plant and material.
    Could you please tell me where i have to maintain the setting of account assignement for a plant or material.
    In TA:-OMG0 item catergory S is maintained for a account assignement F but still this issue is coming.
    I think there is a problem in plant or a material.
    Please help me.
    BR

    Hi,
    How you are creating PO  ,so that you have error "Item category S can only be used with account assignment category"
    Check what t.code used for your PO creation and what document type used for your PO creation- which result defaulting item category S which in turn asking for  with account assignment category.
    Cross check transaction variant or screen variant used for your PO creation!
    Regards,
    Biju K

Maybe you are looking for

  • Migration for BW 7.0..

    Hi all, Please suggest the best approach for migrating the transfer rules,update rules into the transformations and migrating the data sources in BI7.0 During the migration system going to migrate the routines(start/update routines) as well or we hav

  • Cannot change dimension type in EAS - 11.1.2.1

    Hello, I was trying to change a dimension from sparse to dense in the outline properties' tab in EAS 11.1.2.1. But when I click in the drop-down and change it to Dense, all the buttons (Save, Verify, Help, Close) are grayed out and I cannot seem to m

  • Javax.management.AttributeNotFoundException: Attribute is readonly.

    Hello,           I've received such an Exception:           javax.management.AttributeNotFoundException: Attribute is readonly. : com.bea:Name=CTCFuzzyMultiDataSource,Location=ctcdomain,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceParamsBean,Parent

  • What happened to the Welcome Screen in InDesign CC?

    It seems that I'm the only one missing it, because I've searched everywhere and I couldn't find a way to bring it back.

  • How to start the job immediately ?

    Hello, In program we submit another program in background job using JOB_OPEN. SUBMIT program .... and JOB_CLOSE. But this job will be schedule, Now we need that it will be started immediately after we submit it, How can we do that ? Thanks