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

Similar Messages

  • 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 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 for mass changes in Scheduling agreements in 4.7

    Dear All,
    Can any one tell me the function module for mass changes in Scheduling agreements in 4.7
    Regards
    MSR

    closing question

  • Bapi's or function modules to create, change( delete) partner functions

    Hi,
       Can anyone suggest BAPI or Function Modules for creating , changing the Partner Functions of the customer
    eg: To create customer XYZ as  bill-to-party of customer ZYX , i need  either a BAPI or Function Module.
    Thanks in Advance,
    Sabu

    Hi The following are the BAPI's to create and change the Partner Function.
    BAPI_BUS2001_PARTNER_CHANGE_M
    BAPI_BUS2001_PARTNER_CREATE_M
    Regards
    Vijay

  • Function Module/Document to change Reversal date for FI  document.

    Can anyone please provide me with the Function Module/Document to change Reversal date for FI  document.

    Hi Vikram,
    Normally, you post a reversing document in the same period you posted the original document.  The period of the original document must be open to post a reversing document. If the period is not open, you can overwrite the posting date field with a date in an open period, such as the current period.
    Regards,
    Manoj.

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

  • PB in RFC function declaring table as CHANGING

    Hi all,
    I wrote an RFC function to get data between 2 SAP systems. I've to transmit to this function select-options felds. Therefor I've created a changing parameter in the function  I_LFDAT type RSPARAMS_TT which is a table type with structure RSPARAMS.
    I did it by this way as 'Tables are obsolete' in RFC functions.
    My problem is that by calling the function I've a dump saying ' (ungültiger Datentyp 17)'. This means the parameter is not correct.
    I checked anything and the table I'm sending has the same structure as the receiving parameter
    thanks in advance for your help

    Hello Fred
    I am not really a fan of CHANGING parameters in fm's.
    Since you have the table type RSPARAMS_TT I would recommend to use the following approach:
    DATA:
      lt_seloptions   TYPE rsparams_tt.  " itab with select-options
    " fm signature with 2 parameters:
      IMPORTING
        it_selopts = lt_seloptions
      EXPORTING
       et_selopts = lt_seloptions
    The RFC-fm gets IT_SELOPTS as input, can change them, and returns them as EXPORTING parameter ET_SELOPTS.
    Regards
      Uwe

  • 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

  • Function Modules / Classes to change cProject item

    Hello,
    I'am searching for function modules or classes to change the cProject item.
    Ich want to change some fields in the task of cProject. Can everbody help me?
    Kind regards Axel

    Dear Thomas,
    I've following requirements:
    - Automated Creation of a cFolders folder structure/hierarchy from a structured uploaded from an excel file
      from R/3 ABAP program
    - Search for a particular document in cFolders using R/3 ABAP program
    Would it be possible to do the above tasks using the BAPIs mentioned in your post.
    Thanks.

  • Function module / BAPI for changing planning date (FDTAG)

    Hi everyone,
    Let's go for a problem.
    Many FI documents have been created in our system, with a wrong planning date, these documents have to be changed and I have been trying to develop a report.
    I am having a big trouble finding a function module or a BAPI which allows me to change the planning date (FDTAG field). I have been trying these function modules:
    FI_ITEMS_CHANGE
    FI_DOCUMENT_CHANGE
    The first one works for changind data in the FI documents but it seems like it can't change the planning date, it returns an error message that informs that the FDTAG field can not be changed.
    The second one is confusing, I have been unable to feed the function module with the data it needs to determine a single document.
    I am trying to use BAPI_ACC_DOCUMENT_POST right now, it doesn't seems promising but you never know.
    Has anyone had the same problem? I have been looking for an answer in both google and here but I can't find one, just some people with the same problem.
    I will keep trying to find the solution, if I find it I will post it here.
    Thanks in advance,

    Hi again Max,
    This worked perfectly, even better because we where already using the FDTAG field for mass changes (don't remember right now which note we implemented) so I have just used FI_ITEMS_MASS_CHANGE with no changes at all.
    Thank you very much for the help.

  • 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

  • Function Module for link Change number to classification

    Hello Expert.
    what is the Function Module name which will link Classificaiton (tcode:cl03) to change number (cc01) .
    regards
    srinivas

    Hi,
    Check business object BUS1003

  • 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

Maybe you are looking for

  • Problem with Adobe Creative Cloud software for PC

    Good Evening, I have a problem witg Adobe Creative Cloud software for PC I have Windows 8.0 x64. I downloaded few apps using the Creative Cloud software and had to restart my computer due to the pending windows updates. After I restarted my computer,

  • Small confirmation - urgent

    Hi All Can someone Please confirm the following? 1.]We can store XML as CLOB in Oracle 2.]Retrive the CLOB and convert it into DOM Thanx, Bhavesh

  • CANNOT USE REDEEM BY $US or $AUS (Issues)

    Hey !. I'm From Indonesian Country, I made ID Apple with Indonesian Region. And sometime I want to buy an iTunes Gift Card, "why $US or $AUS cannot Active In Indonesian Region, although I change my Region to United State or Australia on Apple ID Summ

  • Help with installing a flash player on my pc

    Hello, I need instruction on installing a flash player on my pc.

  • Photo Booth Camera Icon Crossed Out

    I have one of the most recent MacBooks. All of a sudden Photo Booth isn't working. There's a crossed out camera icon and I can't take pictures. How do I get it back?