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

Similar Messages

  • 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 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.

  • 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

  • IBASE Status update Function Module/ Table Field for status

    Dear Experts
    We need function module to change status of IBase. Please tell me standard function module if any. Or if no standard fuction moudle exists, please tell me tables which contains user and system status.
    Thanks and regards

    Hi,
    Try using FM CRM_IBASE_CHANGE and please remember to call FM CRM_IBASE_SAVE to save the changes made. Thanks.
    Regards, AC

  • 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

  • Function Module/Table to retrieve check table for standard fields

    Hi,
    Is there any function module or database table that holds the check table for standard field? Ex. BUKRS = T001.

    Hi MArc,
    Goto DD03L table
    Enter fieldname and tablename, you will get check table in CHECKTABLE field.
    e.g. fname - MATNR, tbname MARD then CHECKTABLE - MARA
    Reg,
    Sachin

  • Function module / table to get information about CUBE & ODS

    Hello All,
    I would like to compare ODS & Info cube structures between DEV & Quality systems. Could you please let me know is there any best practice available for this activity.
    I hope we could do this activity by using FM / reading Data base tables directly, all helpful answers will be rewarded with points.
    Regards,
    Venkat

    Hi Venkat,
    The function module BAPI_CUBE_GETDETAIL provides you the detials of infocube (including dimension, characteristics, keyfigures etc).
    Moreoverthis FM is RFC enabled; so you can call this FM from DEV and pass RFC connection of PROD to get detials of the cube in prod. This compare the structures between DEV and PROD.
    Similarly you can use BAPI_ODSO_GETDETAIL from DSO structure comparision across the system landscape.
    Thanks
    Vasu

  • How to get planning area if I have planning book - Function module/table

    Hello All,
    Our basic requirement is to find out whether the planning book we are using is DP relevant or SP relevant. (inside the custom program)
    One way is to find out the relevant planning area and find out if the planning area is DP relevant or SP relevant.
    But can anyone suggest if there are any tables or function modules to achieve the same?
    Thanks a lot.
    Regards,
    Chandan

    Dear Chandan,
    You can use the table "/SAPAPO/PBMVW" for your issue. "APP_SNP" field tells if it SNP planning book or not. Thee tables gives all planning books present in the system.
    If you want dataview's you can use table ""/SAPAPO/PBDVW"".
    I hope the information solves your issue.
    Thanks and Regards,
    Nithin.

  • Regarding function modules return parameters

    hi experts,
    thnx in advance
    i have requirement to make a rfc enabled function mudule, that will return some messages mat be error or information , such as 'read is implausible in sap-isu' etc, so how can make the export parameters of  this fm, so that it return such mesages thru export parameters but not thru exceptions
    pls help

    either you can create a string table as return parameter which will hold your messages, then you can display them.
    or a better method can be as seen in BAPIs..
    a table of type BAPIRETURN.
    just goto SE37, open any BAPI (BAPI* - then F4).
    see in the table of type BAPIRETURN.
    here you can pass the message details ... and use them from where you have called it.

  • Functional module /table vs changing parameter

    Hi ,
    I am working in release 6.0 .
    In program i have internal table and i have to pass it's content to FM. In FM  I tried to declare TABLE parameter but it was not accepted because table parameter is obsolete. I declare Change parameter.  like it was suggested in error message dialog.The parameter is declared after same table like internal table from program .
    When I run program I saw that only one record is passed to FM parameter. Question is how to pass whole body content of IT to FM parameter .
    Thanks
    Source code /
    - gt_cartscan & cartscan are created after the same DB table.
    loop at scantbl.
      gt_cartscan-zzcartag = scantbl-zzcartag.
      append gt_cartscan.
    endloop.
    call function 'Z_WM_UPD_ZDTS_GR'
      changing
        cartscan       = gt_cartscan.

    Hi
    See the below example:
    types:begin of ty_employee,
    pernr type pa0002-pernr,
    begda type pa0002-begda,
    endda type pa0002-endda,
    vorna type pa0002-vorna,
    nachn type pa0002-nachn,
    end of ty_employee.
    *// Declate a types for employee data table
    types:tt_employee  type  standard  table  of  ty_employee.
    *//Declate a workarea  to hold the Employee data
    data: gf_employee     type  ty_employee.
    *Declate a table  to hold the Employee data
    data: gt_employee     type  tt_employee.
    Letz say the gt_employee has 5 records when it is populated.
    Then you have all the records of gt_employee when called through below perform in the subroutine.
    perform shuffle_records changing gt_employee.
    *&      Form  SHUFFLE_RECORDS
          text
         <--P_GT_EMPLOYEE[]  text
    form shuffle_records  changing p_gt_employee type tt_employee.
    endform.                    " SHUFFLE_RECORDS
    Regards
    Raj

  • Function Module/Table to Retrieve subobjects for a main object.

    Hi experts,
    Is there any FM or table to find subobjects for a main object for example, in SE80 when you give an object say MP000100, it gives the list of subobjects associated with it like screens, inlcudes fields...etc, or is there any other way?
    Thanks in Advance.

    Hi Mahesh,
    Thanks for your reply. The Table which you have given me is helpful, but I need to find the subobjects of any given object. For example, for module pool mpXXXX00, i need to know all the subobjects, related to this module pool. The main object can be anything. If it is a (report, WDA program etc) I need to get the list of sub objects tied to the main object.
    Hope you can understand my requirement.
    Thanks and regards.

  • Function module / table which lists screen numbers in module pool program

    Hi everyone,
    I wish to make a list of all screen numbers used in my module pool program Is there any FM / table which maps module pool program name with all the screens used in it?
    For example, if my module pool is SAPMZPROG and it has screens 9001, 9002 and 9003, then I want to have a report as follows:
    Input to the report (selection screen): SAPMZPROG
    Output:
    9001
    9002
    9003
    Thanks,
    Shailesh

    Hello
    Try tables D020S, D020T

  • Function Module/Table to get language of a user.

    Hi All,
    I need to find the language configured of a user programatically. If we see in SU01d, we see the language maintained for that user. This is particularly different than sy-langu.
    We also tried changing the language in SU3 and running the SQL trace. But the resultant trace was too big to easily spot the right table. Also, we observed there were multiple Update/Insert and Delete operations. So we can deduce that there would not just be one table that would contain the required information.
    Could you please suggest an FM which can take in UserID as a parameter and returns Language.
    Thanks,
    Tirth

    Hi Debaraj,
    Thanks for suggesting the FM. But when i run this FM for my Id, I dont find any value coming in result USER_DEFAULT-LANGU.
    Could you please suggest why is this happening. I see in SU01d that my language is configured as English.
    Thanks,
    Tirth

  • Function Module tables

    Folks
    In the FM EXIT_SAPLCMAT_001, I have the below code for an enhancement CIFMAT01.Basically , I believe its using one free attribute field to get the value from another field and updating the same in APO through CIF. however I am not sure and wld appreciate if you can interpret the code for me.
    Why are there always two tables one without sufix 'x' and one with suffix 'x'.
    Ex :   CT_CIF_MATKEY,   CT_CIF_MATKEYX
    From the below code, I didn't understand why a field value thats already existing in the table CT_CIF_MATKEY is being assigned to a free attribute and then the same free attribute is assigned to 'X' in   CT_CIF_MATKEYX. what is the purpose of doing this ?
    LOOP AT CT_CIF_MATKEY
      CT_CIF_MATKEY-ATT01 = CT_CIF_MATKEY-TRAGR
      MODIFY CT_CIF_MATKEY.
    ENDLOOP.
    LOOP AT CT_CIF_MATKEYX.
      CT_CIF_MATKEYX-ATT01 = 'X'.
      MODIFY CT_CIF_MATKEY.
    ENDLOOP.
    PS: If a table doesnt have a free attribute, can I define one and use it ?
    Thanks

    CIF_MATKEY is Outbound Structure for Product/Material )
    CIF_MATKYX is structure for Checklist for CIF_MATKEY.
    Can see further details in  SE11 ( data type )
    You activate free attribute in APO IMG :
    Advanced Planning and Optimization-> Master Data->Maintain Freely-Definable Attributes
    " In this IMG activity, you release those fields in the product or
    location master in which product or location attributes can be
    maintained. These fields are not available by default as they are for
    additional information that is not required as a general rule.
    Product master: The fields for global product master data can be found
    on the tab Properties. Attribute fields for location-specific product
    master data can be found on the tab Extras, which is only available if
    at least one of these fields is released.
    Location master: Attributes for location mster data can also be found on
    the tab Extras, the existence of which requires that such a field be
    released.
    o   An attribute is defined by its field and table name. A field name
         must be maintained for this attribute in order for you to open a
         field in the product master. The definition of the field name can be
         language-dependent.
    o   An attribute is activated when the language of the field name and
         the language in which you have logged onto the system are identical,
         or when the field name was maintained independent of a language.
    Manish

Maybe you are looking for