Function module table returning empty rows but export data is getting

Hi,
I am executing function module through JCO after setting importing parameter and when i retrieve the table i get table with empty data 0 rows but i am able get export parameter data . when execute the same function module in abap through sap gui i get table containing 5 rows. what may be the problem. please find below code 
      function = getDefaultJCoConnection().getJCoFunction("ZCRM_ICSS_PROJ_CUST_USR");
            function.getImportParameterList().getField("USER_ID").setValue("MLDL010");
            getDefaultJCoConnection().execute(function);
            exportTable = function.getTableParameterList().getTable("PROJCUSTLIST");
            int rowsNumber = exportTable.getNumRows(); // companies table number of rows
            log.error("rowsNumber----"+String.valueOf(rowsNumber));
  try
     if (rowsNumber > 0)
     int i = 0;
     do
     tempString="table valuesZCOMP_ID"(String)exportTable.getValue("ZCOMP_ID")"ZCOMP_SPC-"+(String)exportTable.getValue("ZCOMP_SPC")
                 + "table valuesZCOMP_DESC"(String)exportTable.getValue("ZCOMP_DESC")"ZPRICE-"(String)exportTable.getValue("ZPRICE")"---" ;
     log.error(tempString);
     while (exportTable.nextRow());
     catch (Exception th)
     log.error("The following error occured: while retrieving table values ", th);
Do you have any idea where may be the problem
Regards,
Pavan
Edited by: Pavan Reddy on Apr 10, 2010 4:46 PM

Hi Pavan,
This could be the case. The function module might be expecting a value converted into its format.
By this, I mean that the function module might be expecting 0012345678 for 12345678 (Where data element of the ID is of type CHAR 10 ).
Please check if it is so.
Best Regards,
Kris.

Similar Messages

  • SSF function module to disable pop window but OTF data is not coming.

    Hi Experts,
    My requirement is to get the PDF from the SSF function module and email it and i don want to display the pop option
    I passed these parameters
    1.no_dialog = c_x.
    2.-preview = c_x.
    3.-no_open   = c_x.--|
    4.no_close  = c_x.---| if i add these two conditions i don get printer pop up but i don get the data for " job_output_info  " also.
    to this function module ,
    Please tell me how to get data into " job_output_info "  import parameter by not displaying the pop up for printer.
    Thanks and Regards in advance.

    Hello,
    we did it using the following code.
    DATA: w_ctrlop TYPE  SSFCTRLOP,
            w_return TYPE  SSFCRESCL.
      DATA ls_job_output_info TYPE ssfcrescl.
      DATA p_pdf_len          TYPE i.
      DATA pt_tlines          TYPE TABLE OF tline.
    (function_name is the name of the smartform)
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
        CALL FUNCTION function_name
          EXPORTING
            CONTROL_PARAMETERS         = W_CTRLOP
            USER_SETTINGS              = 'X'
         IMPORTING
            JOB_OUTPUT_INFO            = ls_job_output_info
          EXCEPTIONS
            FORMATTING_ERROR           = 1
            INTERNAL_ERROR             = 2
            SEND_ERROR                 = 3
            USER_CANCELED              = 4
          OTHERS                       = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        REFRESH pt_tlines.
        CLEAR:  p_pdf_len.
        CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
            FORMAT                      = 'PDF'
         IMPORTING
            BIN_FILESIZE                = p_pdf_len
          TABLES
            OTF                         = ls_job_output_info-otfdata
            LINES                       = pt_tlines
         EXCEPTIONS
           err_max_linewidth           = 1
           err_format                  = 2
           err_conv_not_possible       = 3
           err_bad_otf                 = 4
           OTHERS                      = 5.
        IF sy-subrc <> 0.
        ENDIF.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
           bin_filesize                    = p_pdf_len
           filename                        = p_filename
           filetype                        = 'BIN'
          TABLES
            data_tab                        = pt_tlines
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
           gui_refuse_filetransfer         = 3
           invalid_type                    = 4
           no_authority                    = 5
           unknown_error                   = 6
           header_not_allowed              = 7
           separator_not_allowed           = 8
           filesize_not_allowed            = 9
           header_too_long                 = 10
           dp_error_create                 = 11
           dp_error_send                   = 12
           dp_error_write                  = 13
           unknown_dp_error                = 14
           access_denied                   = 15
           dp_out_of_memory                = 16
           disk_full                       = 17
           dp_timeout                      = 18
           file_not_found                  = 19
           dataprovider_exception          = 20
           control_flush_error             = 21
           OTHERS                          = 22.
        IF sy-subrc <> 0.
          MESSAGE s614(zef) DISPLAY LIKE 'E'.
      ENDIF.

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • ABAP Function Module table into crystal

    Hello,
    I created a ABAP Function Module with one export parameter(a structure), and another table paramemter(with table type of identical to a table in sap).
    I wrote a simple select statement and dumped the data into the internal table which I am passing it as table parameter.
    However when I access that function module from crystal, I only see export parameter(structure) with one record, BUT I DO NOT SEE the internal table(table parameter) AT ALL.
    I tried various ways of passing,but crystal doesn't seem to be recognizing the table parameter at all.
    I pulled the f_union shich shows up in crystal,but it is not returning any values at all.
    How do I pull in a function module's table parameter into crystal?
    Thanks
    Kumar

    Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly

  • Advanced Table delete empty rows

    Hi
    I added logic to add 10 empty rows and to delete the empty rows when the form is submitted. But somehow it only deletes the rows in current screen of the Advanced Table. if there are 15 rows and I click next to go the last 5 and submit the form it deletes only the 5 empty rows but not the other 10 rows in the previous section.
    where am I doing wrong?
    Thanks
        Row [] row = null;
        ExpAttendeesVORowImpl rowi = null;
        if( expattendeesvoimpl1 != null )
            row = expattendeesvoimpl1.getAllRowsInRange();
            System.out.println("No of items "+row.length);
        for (int i=0;i<row.length;i++)
             pageContext.writeDiagnostics(this, "in loop ", 2);
             rowi = (ExpAttendeesVORowImpl)row;
    pageContext.writeDiagnostics(this, " in loop row "+ rowi.getName(), 2);
    if((rowi.getName() == null))
    pageContext.writeDiagnostics(this, "deleting row"+ rowi.getName(), 2) ;
    rowi.remove();
    Thanks

    you could instead try using:
    expattendeesvoimpl1.getFilteredRows("Name", null);

  • Function Module TABLES parameters

    Hi All,
           I want to pass my internal table to a function module but when I try to access the componenbts of the table it is giving me syntax error. Is it required that I should create DDIC structure for this? Is there any other option?
    I have declared the internal table using types. And in function module tables parameters just declared internal table.
    Regards,
    Dilip

    Hi
    In the function
    Say import parameter is TAB ( with no type definition )
    From program you pass an internal table ITAB .
    You don't need to define TAB in your function.
    In the code you can diretcly use
    LOOP AT TAB.
    ENDLOOP.
    ( At runtime TAB will take the structure of ITAB from program )
    Cheers

  • Function Module to return WSDL URL

    Hi,
    Is there an ABAP Function Module that returns the URL of the WSDL when passed the name of a BAPI/ RFC?
    Thanks,
    Tristan

    hi there,
    unfortunately, as far as I know, there is no official API for the functionality you are talking of.
    Inofficially you might want to have a look at cl_srt_*, especially cl_srt_registry or cl_srt_tools. those classes supply the required functionality.
    be warned though that things are changing with the latest servicepacks and the new transaction SOAMANAGER and it's underlying data model. the new functionality does again not supply an official API to query the information you (and I) would like to get from the system.
    hope it helps, anton

  • For a function module how can I find its assigned data source name?

    Hi BW Gurus,
    If i know the data source name then the  assigned fn. module/Table/Infoset I could find from RSO2. But for function module How do I know its assigned data source name?
    Thanks a lot for the response.
    Regards
    Ven

    Hi Ram,
    In SE16, enter the table name as ROOSOURCE and in contents choose field EXTRACTOR for selection and enter the name of the function module.
    It will return the list of datasources where the function module has been used.
    Best Regards,
    Ankit Agrawal

  • Function module reqd for fiscal period using current date

    Hi,
    Is there any function module which gives fiscal period using current date.
    Thnaks,
    Maheedhar

    Hi Maheedhar,
    Try the code below.
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = '1000'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm    " Current Fiscal Month
        CURRY         = w_curry    " Current Fiscal Year
        PREVM         = w_prevm    " Previous Fiscal Month
        PREVY         = w_prevy.   " Previous Fiscal Year
    Regards,
    Amit.

  • Call RFC Function Module and return 1000 records at a time

    I would like to call a Remote Enabled Function Module from a non SAP system.  This function module will select data from the database and return it to the calling program.
    Suppose there are 100,000 records that need to be returned, but the calling module would like the data in chunks of 1000 records.  Therefore the calling program would call the FM 100 times. 
    How do I code the function module to know on each subsequent call to grab the next chunk of 1000 records? 
    Let me know if additional information is needed.
    Thanks,
    Aaron

    Hello,
    Here is how you can go for this issue:
    1. Create one RFC function module with following parameter. These parameters are with respective of chunking logic.
         Import: Package Size
         Export: Total number of records
         Changing: chunk count
    Implement following logic:
    1. First of you need to know how many chunks you need to fetch for that get the count of total number of records. This is one  
        time activity so you better maintain one flag import parameter will be set to 'X' only first call.
    2. Get the number of chunk using total number of records / chunk size for e.g. 1000 / 100 so chunk count = 10.
    3. Define internal chunk counter in function module which will be used to locate the correct chunk depending on the chunk
        counter value sent from calling program.
    4. Send first call with package size 100 and chunk count = 1, execute select statement and increment internal
        chunk count check if chunk count = internal chunk count in current case chunk count = 1 so exit select statement and return
        with first chunk.
    5. Send second call with package size 100 and chunk count = 2. Execute select statement and check chunk count with internal
        chunk counter, in current case it will be 1 so skip that data and go for next chunk of 100 records increment internal chunk  
        counter. In this case it will match with external chunk count = 2. load output table with that data and return to calling program.
    6. Repeat step 4 until you reach last chunk.
    You need to use SELECT...ENDSELECT with PACKAGE SIZE addition so for every loop it will return number of records mentioned in package size.
    Hope this helps.
    Thanks,
    Augustin.

  • Functional module table parameters values not getting displayed in Java sys

    Hi,
    We are calling the Table parameter through Java code from functional
    module ZCRM_ICSS_PROJ_CUST_USR is not giving any rows value .If I execute
    the same functional module with passing the import parameter value User
    id: MLDL010 its giving value in CRM.
    I am checking Function module( Remote enabled ) in Debugging mode,
    before displaying values it is raising message like
    SY-MSGNR - 005
    SY-MSGTY - CRM_LINK
    in T100 Table
    SPRSL : EN
    ARBGB : CRM_LINK
    MSGNR : 005
    TEXT :'No Links corresponding to the specified data could be determined'
    Is that related to any communication problem CRM & JAVA ICSS System ?
    Regards,
    Pavan.

    The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
    Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
    So, to make this simpler - what is that you are trying to do?
    BTW, try not to create multiple threads for the same issue..

  • Function module not returning revisision level in Report

    Hello Abap Gurus,
    I am not a regular ABAP programmer, but i do few changes here and there if programmer is busy.
    My dilemma is, When i use REVISION_LEVEL_SELECT function module via SE37 it works fine:
    Import parameters               Value
    AENNR
    AEOBJ                           4
    DATUV                           07/29/2010
    DOKAR
    DOKNR
    DOKTL
    DOKVR
    MATNR                           1234-555-1234-A
    REVLV
    DOKOB
    OBJKY
    Export parameters               Value
    AAENNR                          105145628
    ADATUV                          04/22/2006
    ADOKVR
    AREVLV                          04
    But when i use this in the z report it doesnt give me any thing.
    Import parameters               Value
    AENNR
    AEOBJ                           4
    DATUV                           SY-DATUM
    DOKAR
    DOKNR
    DOKTL
    DOKVR
    MATNR                           1234-555-1234-A
    REVLV
    DOKOB
    OBJKY
    Export parameters               Value
    AAENNR                         
    ADATUV                         
    ADOKVR
    AREVLV                         
    Any help will be appreciated..
    Edited by: Owais Khan on Jul 29, 2010 9:55 PM
    Edited by: Owais Khan on Jul 29, 2010 9:56 PM

    Please post the code where you call the FM and check the return code.
    Rob

  • RFC function module without RETURN parameter thows error in XI. Please help

    Hi Experts,
       I have a File to RFC scenario in XI. The RFC function module that I am using at the receiving end does not have "RETURN" parameter. So when I test my scenario I get "RETURN" parameter not found error on SXMB_MONI.
    So is it mandatory that RFC function module must have RETURN parameter when used in XI?
    Is there any work around to avoid the error without changing the RFC function module?
    Please help!
    Thanks
    Gopal

    In my senario the QOS is best effort because it is a Sync.
    But the function module is sync in nature as it is returning a parameter called SO_Docs and Ret_Msg. The Ret_Msg contains the error info but it not of BAPIRET2 type.
    So is there any way to avoid this error when my QOS is best effort?
    Please help!
    Gopal

  • Function module works correctly in debugger, but hangs otherwise.

    I am having an issue with a standard function module that 'hangs' when ran.  If i look in sm37, the calling job will just continuously run.  If i look in SM50, there aren't any sql statements which are bringing back large results, it seems to be running a large number of sequential reads against a certain table.  The odd thing is, if i break in this function module, then press F8 to continue, the function module successfully executes and the job finishes. 
    The function module in question is ISU_DUNNING_DEACT_INSTPL_0350, which i have attached to a dunning activity.  This function module SHOULD deactivate any active installment plans for the dunned account.  The FM is odd, as it calls another FM and does a hard EXIT, even though there is code below this line that it can never access. 
    If I set a breakpoint in the function module, and run FPVB (dunning transaction), it will break into the function module.  I can then press F8, the FM completes successfully, then the job completes.  If i do NOT break it (just run in background as normal), the job just continuously runs.  SM50 reveals reads to the BUT000 table (even though i cannot find any calls to this table in the fm).
    Any ideas?

    Nishikant,
    Thanks very much for the help. 
    I did this, and I can see where its getting stuck.  The following entries are repeated indefinitely (until i stop it )
          374 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
          420 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
          365 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
    If i double click the SQL statement, i see these details
    SQL Statement
      SELECT
        "CLIENT"
      FROM
        "BUT000"
      WHERE
    "CLIENT" = :A0 AND "PARTNER" = :A1
    Variable
    A0(CH,3)  = 120
    A1(CH,10) = 0007024125
    I caught it in SM50 where the read was, and it says the select exists in Function Pool SAPLBPT1.  I have done a search in this for anything containing BUT000, but have found nothing.  Any suggestions on how to find where this is occurring, or what might be going on?

  • Can Universe be on SAP-R3(Function modules,tables)

    Hi Folks,
    I know we can create Crystal reports from SAP-R3 and as well as BW. Likewise is there any way to create a Universe based on R/3 Function modules and tables? I am able to see only 'SAP Business Warehouse' as a 'Database driver' under 'SAP Database middleware'. Please let me know whether it is feasible or not?
    Thank you,
    Best Regards,
    Preetham

    Hi Dider,
    Thanks for your information. But, I wanted to know that we have to bring the data from R/3 to BW (warehousing) then create a universe on top of it or is there any plug-in or patch required to create a universe on or Business objects will be working on it to support it in the near feature or its not at all possible to create a universe on top of R3?
    Thank you once again!!!
    Best Regards,
    Preetham

Maybe you are looking for

  • Parameter passing

    Hi All please help me on how to pass parameter in report , apex 4.1 Thanks

  • SCCM 2012 - Automatic User Device affinity - Not Working

    Hi, I need to enable the Automatic User Device affinity. Have enabled following two group policy settings: Audit account logon events Audit logon events In client settings User and Device Affinity following is enabled: User device affinity threshold

  • UI delay when dragging

    When dragging a key frame or object it takes about 10 seconds to let go of that object or key frame. I'm working in a after effects comp that uses 3d lights solids and ai vector imaged. The file was started on a Windows machine in which it had no iss

  • Flash Builder 4.5 Fails to Start

    Folks, I have just installed Flash builder 4.5 on a windows vista machine. When I launch the flash builder, I get the message"Failed to create Java Virtual Machine" and flash builder doesn't start. In the past, I have installed, Flex Builder 3 in the

  • I can't login into iphone 6 app store

    i can't login into iphone 6 app store