Error in executing Function Module using ConnectorFramework

Hi All,
I am trying to call a function module in the SAPR/3 system using the Connector Framework in Portal.
I got the connection by using IGatewayService,
written a statement for accessing the function like this
IFunctionsMetaData fnMetadata = con.getFunctionsMetaData();
IFunction function1 = fnMetadata1.getFunction("ZBAPI_FM3");
By using the above code, I am able to get the description of the Function Module.
using the statement response.write("Success5    "function1.getDescription()"<br>");
But while using the MappedRecord ouput1 = (MappedRecord)ix.execute(ixspec1,input1); to execute the function,
it is raising an exception
com.sap.mw.jco.JCO$Exception: (131) JCO_ERROR_ILLEGAL_ARGUMENT: Function name equals null is not allowed
I have filled the input1 also.
Any one please help me in this regard to solve the issue.
Thanks in advance,
Bhavyasri.M
Edited by: bhavya Sri on Jun 18, 2008 5:16 AM
Edited by: bhavya Sri on Jun 18, 2008 5:40 AM

See the thread below , It ll help you
Connection to R/3 system
Koti Reddy

Similar Messages

  • Execute function module using outputs

    Hi,
    I want to create reservations automatically when a rental sales order is saved. I have the function module for creating reservations and want to know if I can execute it using outputs. I don't want to include code in user exits. Can anyone suggest how I can execute this function module using outputs?
    Edited by: carrie anderson on Jun 9, 2009 3:45 PM

    i m very thank ful for ur immediate response
    but i need to use the logical data base and put an additional code for the
    report(RPTQTA10) and calculate the qouta type and so on
    simply wat i need is to use the ldb in function module
    can u plz tell

  • Error while executing Function Module UNIT_CONVERSION_WITH_FACTOR.

    Hi experts:
        I'm trying to use the UNIT_CONVERSION_WITH_FACTOR Function Module on
    BW but an error message appears, I searched for Notes on the SAP
    Marketplace but only found a single note that describes the same
    situation that we're experiencing (SAP Note 1333415), the thing is that
    such a note is applicable for SAP BASIS version 702 but I'm using SAP
    BASIS version 700.
    Steps for Reconstruction    
    - On transaction SE37 call the u201CUNIT_CONVERSION_WITH_FACTORu201D Function
    Module.
    - Click on the u201CTest/Executeu201D button (or press the F8 key).
    - Enter the following values:
       o ADD_CONST = 0
       o DENOMINATOR = 1
       o INPUT = 20
       o NUMERATOR = 1568
    - Click on the u201CExecuteu201D button (or press the F8 key).
    - The Exception u201CTYPE_INVALIDu201D is reached and the following message
    appears: u201CUse a number field for field OUTPUTu201D.
    I also tried to use this Function Module on R/3 and the result was the same.
    Do you have any suggestion to fix this error?
    Thanks in advance for your help,
    Francisco Milán.

    Hi Francisco,
    Check with SAP Note No. 854978.
    Hope this would help you.
    Rgds,
    Mohit

  • Getting error in the function module

    Hi everybody.
    I have created one function module in se37 and i am calling that function module in the se38 report, when i am executing the report it is throwing me an error.
    here in my report i am having the select option fields ex matnr, in the function module importing i have given the parameter matnr over there and when i am running the report it is through an error that 
    "The function module interface allows you to specify only 
    fields of a particular type under "MATNR".               
    The field "S_MATNR" specified here is a different        
    field type                                                "
    IF i am giving the parameter instead of select-options in the report and executing, then the function module is getting triggered and receiving the data what ever the code is available in the source code.
    can anyone help me out in this issue so that i can get the data while using the select-option instead of parameter.
    Thanks in advance

    Hi,
    Actually, I wouldn't recommend the use of that tables parameter...
    From sap help:
    Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
    Exceptions
    So i definitely would go with either importing or changing parameter...
    Cheers,
    m.

  • Execute function module from Custom Table Value?

    Hi,
    I have custom table with following field
    FUNNAME        CHAR    1000
    That contains records like the following
    CALL FUNCTION 'ZMATF' EXPORTING MATNR = P_MATNR IMPORTING MATDESCRIPTION = V_MATERIALDESC.
    CALL FUNCTION 'Y_CHECK_EXIT' EXPORTING USEREXIT = 'EFNDTAXWAR' IMPORTING EXECUTE  =  EXECUTE TABLES I_ZA01   =  I_ZA01.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.
    CALL FUNCTION 'RS_TABLE_LIST_CREATE' EXPORTING TABLE_NAME = TABNAME.
    My requirement is according some of the user conditions i need to select entry from this table and execute the corresponding function module
    I tried to use GENERATE SUBROUTINE POOL itab NAME name. But this have limitation of 36 subroutine pools for one program.
    Any info highly appreciated.
    aRs

    If you can put the name of the FM in a variable and the parameters and exceptions in separate internal tables, then you can call the function modules using the statement:
    <b>call function NAME
      parameter-table
        PARA_TAB
      exception-table
        EXCP_TAB.</b>
    See a small example:
    Example
    type pools ABAP.
    data NAME type STRING value `READ_SPFLI_INTO_TABLE`.
    data PARA_TAB type ABAP_FUNC_PARMBIND_TAB.
    data PARA_LINE like line of PARA_TAB.
    data EXCP_TAB type ABAP_FUNC_EXCPBIND_TAB.
    data EXCP_LINE like line of EXCP_TAB.
    data CARRIER type SPFLI-CARRID.
    data JTAB type SPFLI_TAB.
    CARRIER = 'XYZ'.
    PARA_LINE-NAME = 'ID'.
    PARA_LINE-KIND = ABAP_FUNC_EXPORTING.
    get reference of CARRIER into PARA_LINE-VALUE.
    append PARA_LINE to PARA_TAB.
    PARA_LINE-NAME = 'ITAB'.
    PARA_LINE-KIND = ABAP_FUNC_IMPORTING.
    get reference of JTAB into PARA_LINE-VALUE.
    append PARA_LINE to PARA_TAB.
    EXCP_LINE-NAME = 'NOT_FOUND'.
    EXCP_LINE-VALUE = 1.
    insert EXCP_LINE into table EXCP_TAB.
    EXCP_LINE-NAME = 'OTHERS'.
    EXCP_LINE-VALUE = 4.
    insert EXCP_LINE into table EXCP_TAB.
    call function NAME
      parameter-table
        PARA_TAB
      exception-table
        EXCP_TAB.
    case SY-SUBRC.
      when 1.
        message id SY-MSGID type SY-MSGTY number SY-MSGNO.
      when 2.
        message E888(SABAPDOCU) with 'Error in  function module'.
    endcase.
    REgards,
    Ravi

  • Error in SAP_CONVERT_TO_XML_FORMAT function module

    Hi ,
    When i am executing function module : SAP_CONVERT_TO_XML_FORMAT its throwing error ,
    even i executed from SE37 also same error is coming.
    for detail i attached screen shots .
    kindly help me to resolve issue <removed by moderator>.
    Thanks & Regards,
    Meenakshi
    Message was edited by: Manish Kumar

    Hi,
    Then that solves your problem.
    Refer link for more info:http://scn.sap.com/thread/926488
    thanks,
    vidyasagar

  • Error when executing function in MSS launchpad report ???

    In MSS lanchpad report, we have the following problem:
    Error in Manager Sef-Service
    When calling the report, the following error occurred:
    System: HRP
    Error when executing function
    Basically in MSS report, I select employees in the first iView which calls another ABAP query in back-end to display back-end t-code inside iView of portal through ITS service. What could be the reason for it? please advice.
    Thanks,
    Anthony

    Please try converting the standadrd-delivered scenario RPT0, then check
    out the things.
    Also problem may be that your function code names contain
    the character '&'. This causes a problem when the selected function
    code is passed to the ITS-WebGUI as a URL parameter. Please use only
    standard characters (A..Z and _) when you define a function code.
    Then it should work.
    Please go through the following link also
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/3a/
    3198408d953154e10000000a1550b0/frameset.htm
    Please test in backend using Se38 > PWPC_RPT_START_REPORT_TEST
    The Reporting Iview in the portal has the Report category type, by
    the report category type is set to "RPT0". Therefore, when the
    application is launched, the reporting category type is also sent as URL
    parameter to the backend system. As of ECC 6.0 only the reporting
    category type "RPT0" is supported. ensure this is set for your custom reports if you are using own scenarion
    then set in the Iview property of reports as well
    ie example
    1)Change the Iview property "Scenario" of the Reporting iview from
    "RPT0" to your own "ZRPT", than this set of reports will work. however,
    the standard reports will not work.
    pwpc_convert_mdt_to_lpa >>
    The following list of reports have been converted.

  • There seems to be an error in the function module OPEN_FORM obstructing the

    Hi,
    There seems to be an error in the function module OPEN_FORM obstructing the process.
    Some vendors are not cabaple of usinf EDI and for some reason also not willing to use TTOOL solutions (example Hewlet Packard). In those cases the supplier still would like to get purchase order electronically via e-mail. Sending POu2019s via external mail (SMTP) is basically standard function in R/3 that has been possible since the version 4.5. It is not pre-configured, so (almost) all the required elements needs to be configured.
    When we send the output message through ME9F t'code i facing the problem in the above FM.
    Please help me how to solve this.
    Vijay

    Got you, the digital display for Cupertino and Frankfurt are wrong too.
    Submit feedback:
    http://www.apple.com/feedback/iphone.html

  • Unable to send table to function module using RFC

    Hi all,
    I'm trying to send a table from XI to a function module using RFC. I tested the process first using indivdual parameters. At this point there were no problems. Now I changed the import parameter of
    the FM into a table and imported the changes into XI. I changed the Message mapping and tested it with multiple records. When I run the process XI calls the FM but the FM doesn't receive any data. I tested this by puting a break-point in the FM. There are no errors in the XML Messages Monitor. I found this message in the Communication Channel Monitoring:
    Short Log:
    Server 0 10_39293 Receiver channel 'CC_BackendIn' for party '', service 'BS_Backend' (internal name 'RfcClient[CC_BackendIn]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
    Current pool size: 0, maximum pool size : 1
    Channel History
    - OK: 2009-02-18 01:35:14 CET: Message processed for interface MIIA_BapiIn
    Any ideas?
    Thanks for your help!
    Regards,
    Ivo van Ee

    Hi everyone,
    thanks for your prompt response! I tested the mapping in XI and didn't find any error here. So I concentrated on the receiver side. There were some communication channels running on the server that were generating errors. I stopped alle the communication channels and started just the two communication channels for this process. This time the table was successfully exported to the function module! Problem solved. Still not sure what caused the problem in the first place, but everything is working fine now.
    Thanks for your help.
    Regards,
    Ivo

  • Problem in executing function module: ERROR_IN_PDO: ERROR_IN_PDO

    Hi all,
    I am getting an error I can't solve until now.. Who can help?
    The Default Trace in the EP 7.0/NWA gives the following information:
    Severity:  Error
    Message: Problem in executing function module:[date]:com.sap.mw.jco.JCO$AbapException: (126) ERROR_IN_PDO: ERROR_IN_PDO
    Category:  /uwl/service
    Location:  com.sap.netweaver.bc.uwl.core.connect.abap.FunctionModuleActionHandler
    Application:  sap.com/tcwddispwda
    The UWL connection tests are correct! So, who can help!
    There is nothing to find in sap notes or sdn forum
    Best regards,
    G. Leurs

    Hi john,
    I am also facing hte same issue.
    when the user is trying to approve the Compleated shopping cart from  the button availble in  the UWL preview , I am getting the below error.
    Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.netweaver.bc.uwl.connect.ConnectorException:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.mw.jco.JCO$AbapException:ERROR_IN_PDO
    we are not passing any ABAP role from teh SRM system.
    it would be great if you can share  your views regarding this.
    Raji

  • Executing Function Module SXI_GET_SLDDATA

    Executing Function Module SXI_GET_SLDDATA with input IM_SLD_NAMESPACE = " " gives following message in EX_ERROR_TEXT
    Connection to SLD not possible: Exception in SLD client: AbapSLDRequestHandler.ping(): server connection ***failed *** on Fri Feb 01 15:50:22 GMT+05:30 2008
    Can some one please adise how do I get list of business systems defined in SLD in the output table EX_BUSINESS_SYSTEMS ?
    Please suggest a fresh approach to get any output from this FM including any particular settings that need to be done in trasaction rz70 Visual Admin of WAS, Hostfiles in respective communicating servers

    Hi Catherine ,
    The function module uses assorted tables in import parameters and hence can not be tested as others.
    SAP provides a report CRM_ORDER_READ to test the function module.
    Thanks.
    Praveen.

  • Error Error 6 in function module RSS_PROGRAM_GENERATE

    Hello Experts,
    When I attempt to run the extract checker for datasource, 0material_LPRH_HIER I receive the following error: Error 6 in function module RSS_PROGRAM_GENERATE.
    I referred to the oss notes 328948. But the note is addressing to lower versions of R/3.
    I am working on ECC 6.0 and no way that note is helpful to me. I did check for the previous posts addressing this issue and i said already those posts refer to the older version of R/3.
    I did check for the previous post and all are addressing to the lower version of release.
    KK

    This is the reply I got from SAP:
    The error error 6 RSS_PROGRAM_GENERATE is more related to Hierarchy .
    Are you creating a hierarchy data source if so you need to use
    RSA1HCAT report .But normally you will not get any errors when you
    create the data source by your own .
    705212--> Syntax error in the generated extraction program
    Please use the program RSA1HCAT in SE38 to check your hierarchy.

  • Error message for function module

    I have created a custom function module. I have activated it. But when i'm trying to use it in a program it is showing an error. The function module has 'TABLES' but it is showing error as:
    "field "TABLES" is unknown. It is neither in one of the specified tables nor defined by a DATA statement".
    Please help me!!
    Thank you.

    Hello Titan,
    Generally you get these kind of syntax errors when there is some problem with the format of the program. Please recheck the format of the program in which you are calling the newly created function module. Please check if there are any erroneous '.' or ',' in the program before the 'Tables' partameter of the function module.
    Please verify the same.
    Regards,
    Pavan

  • Errors in Update Function Modules

    Hi Gurus,
    Please provide me the ways to handle Errors in Update Function Modules.
    (I.e. I should export errors from Update Function Module)
    Warm Regards,

    Use Raise statement ...
    FUNCTION-POOL CSTR.
    FUNCTION STRING_SPLIT.
      IF STRING NA DELIMITER.
        RAISE NOT_FOUND.
      ENDIF.
    ENDFUNCTION.
    Regards,
    Santosh

  • How to find function modules used in maintenance table views

    Hi,
    How do I find the function modules used in maintenance table views?
    I'm using SM30 and trying to open the custom table but there is an error message saying CREATE DATA PROCESSING FUNCTION MODULE.
    Thanks.
    Kath

    hi
    in se80 select functon group and put your table function group name there and click display. it will show you the function modules used for that tables.
    Regards
    Madhu

Maybe you are looking for

  • Facetime fails to connect

    I am trying to FaceTime with my daughter in Sweden. I am using OS 10.9.4 on a MacBook Pro with Facetime 3.0. She is using an iPad mini with the current software. The query initally goes through and says "connecting" then fails to connect. I have chec

  • ??Spry Tabbed panels funny in Firefox

    Hello, I am using the Spry tabbed  panels in Dreamweaver CS4 and when I render in firefox there is a large  amount of space at the bottom as if the tabbed panels are allowing space  for each subsequent tab - even though the text is in the next tab. h

  • Page layout does not support "&auml".

    Hello. I used design manager to create a page layout (SharePoint 365). No matter what I am not able to fiqure out how to create characters like "&auml". Can someone confirm that SharePoint 2013 does not support non-English language page layouts. User

  • Filter Import by Number of Rating Stars and other such

    My work flow is to look at the card with Nikon ViewNX2, and assign rating stars to the keepers, then import the keepers into Lightroom.  I  can't see the stars in the import dialog, though I can see them once I  do the import.  LR clearly understands

  • Direct Deposit Through F110

    Hi, How can we do direct Deposit through F110.i got this issue.But i didnot get their requirement.Give me some suggestion. Thanks Sap Guru