Reg parameter table

Hi ,
plz check my below program and exaplain me how to make use of parameter table
CLASS cl_abap_objectdescr DEFINITION LOAD.
CLASS add DEFINITION.
  PUBLIC SECTION.
    METHODS add IMPORTING x TYPE i
                          y TYPE i
                EXPORTING z TYPE i.
ENDCLASS.                    "add DEFINITION
CLASS add IMPLEMENTATION.
  METHOD add.
    z = x + y.
  ENDMETHOD.                    "ADD
ENDCLASS.                    "ADD IMPLEMENTATION
TYPE-POOLS: abap.
START-OF-SELECTION.
  DATA : x TYPE i VALUE 10,
         y TYPE i VALUE 20,
         z TYPE i.
  DATA :  it_ptab TYPE abap_parmbind_tab,
          wa_ptab TYPE abap_parmbind.
  DATA : obj TYPE REF TO add.
  DATA : add TYPE string VALUE 'ADD'.
wa_ptab-name = 'X'.
wa_ptab-kind = cl_abap_objectdescr=>exporting.
GET REFERENCE OF  X INTO wa_ptab-value.
INSERT wa_ptab INTO TABLE it_ptab.
wa_ptab-name = 'Y'.
wa_ptab-kind = cl_abap_objectdescr=>exporting.
GET REFERENCE OF  Y INTO wa_ptab-value.
INSERT wa_ptab INTO TABLE it_ptab.
wa_ptab-name = 'Z'.
wa_ptab-kind = cl_abap_objectdescr=>importing.
GET REFERENCE OF  Z INTO wa_ptab-value.
INSERT wa_ptab INTO TABLE it_ptab.
  CREATE OBJECT obj
    TYPE
      (add)
    PARAMETER-TABLE
      it_ptab.
  WRITE : z.
The dump analysis is as follows
Runtime Errors         DYN_CALL_METH_PARAM_NOT_FOUND
Except.                CX_SY_DYN_CALL_PARAM_NOT_FOUND
Date and Time          2008.07.28 02:10:02
Short text
     Formal parameter not found during dynamic method call.
regards

Hi,
Parameter table in Method call is Basically used when call method Dynamically and pass the actual parameter dynamically.
The error you have mentioned occured when the specified and actual parameter are different.
Just follow the procedure and criteria for using parameter table in case of method call in this link.Hope you will get to know the reason for the runtime error.
http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
Regards,
Sujit

Similar Messages

  • How to change value in v$parameter table

    hi ,
    i am installing metadata repository for oracle application server,
    i have to change the value of query_rewrite_enabled to TRUE,
    but i am not able to change its value in v$parameter table because it is a fixed table/view.
    pls help

    One does not 'update' any V$, DBA_, USER_ or ALL_ views. Nastiness occurs to the health of the database when you update individual SYS tables without ensuring the integrity of the remainder of the system dictionary, so you should always update those tables using the system DDL commands (CREATE, ALTER, DROP, GRANT, REVOKE). These commands simply do the appropriate insert/update/delete to all the related tables owned by SYS.
    If you are running with an SPFILE parameter file, as the DB superuser (SYS) you would alter the database system configuration using
    ALTER SYSTEM SET QUERY_REWRITE_ENABLED=TRUE SCOPE=BOTH;
    If you are using an older style PFILE (INITsid.ORA) you shut down the database, create or update a line in the PFILE with
    *.QUERY_REWRITE_ENABLED=TRUE
    and it will b e enabled on restart
    (Which are you using? One way to find out is to go to the $ORACLE_HOME/dbs directory and look at the time stamp of the init?.ora and spfile?.ora files.)
    By the way, such parameters and the permitted ways of changing them are discussed in the database Reference manual, which for 10g database is http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm

  • Material delta load parameter table it_marc is empty

    Hi,
    we are on SRM 7.0 using classic szenario. We use middleware to download material master from ECC. We us BADI Method IF_EX_PRODUCT_CUSTOMER2~MAP_R3_TO_CRM_MATERIAL to set the material status in SRM depending on MARC data.
    When we do the initial download then the parameter table IT_MARC is not empty, and we can use it to set the material status depending on MARC data.
    But when the material in ECC is changed, and the delta load runs, the parameter table is empty! Even when values in ECC table MARC are changed. In R3AC1 Filter the table is activ.
    Does anyone have an idea why the parameter table IT_MARC is empty in BADI Method?
    Best Regards,
    Ben

    Hi Ben,
    I suggest you check documentation in note 428989. This should be of help to use this BADI.
    Regards,
    Ivy

  • JVM issue with applet - Duplicate Key in Parameter Table - Bad Magic Number

    Hey, I have Googled this one to death and have seen a few vague references to this problem, but nothing I can relate back as solution.
    I wonder if I need to tell the customer to reinstall the OS and, ultimately, the JRE. I'm just looking for a little guidance on what any of you may think. Am I missing a setting or something?
    The user is trying to download an applet with IE with 1.3.1_16 and Firefox 1.07 with the Java Embeded Plug-in.
    Even though JRE 1.3.1_16, 1.4.2_09 and 1.5 are all installed and Firefox has the JEP also installed, Firefox still wants to use 1.3.1_16 as does IE. I'm guessing that the JEP didn't work.
    They can't use Safari which does seem to be using 1.4.2_09 because their RSA ID won't authenticate through it.
    On my machine, when I run with the same OS,browsers, and Java 2 plug-ins, I can successfully load the applet.
    This is the error that the user gets in the java console is:
    Duplicate key in parameter table: code using the htmlAttribute.
    first: com.ibm.eNetwork.HOD.HostOnDemand
    second: com.ibm.eNetwork.HOD.HostOnDemand.class
    java.lang.ClassFormatError: com/ibm/eNetwork/HOD/HostOnDemand (Bad magic number) at java.lang.ClassLoader.defineClass0(NativeMethod)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)...
    Would you reinstall the OS and Java? or look at another setting? or look at the JEP installation again?
    Thank you.

    Without reading the full post (sorry for that) my guess is that the applet needed to be fetched through a
    proxy, the proxy corrupts the applet because it's signed (finjan is one that does that).
    The reason why a proxy would do so is because the default settings of sun jre will ask the user the
    "do you trust" question to the user which could result in the user loading an applet that is allowed to do
    anything the programmer wants (4us, spyware, nasty stuff).
    Try to do the following:
    1. create a html file locally with the following content:
    rightclick and save target as
    2. open the page, right click the link and save the file
    3. apen the file with an unzip programm (winzip) and check if the content has changed.
    4. If the content has changed than the proxy might have done this, contact the system administrator
    It might allso have been done by a firewall installed locally.

  • Where we can find ESB parameter table

    Hi Guys,
    I am not able to find ESB parameter table. where exactly we can find this ESB parameter table, I need to set load balancing on only ESB ,for that I have to set these parameters in ESB table
    DT_OC4J_HTTP_PORT= "LoadBalancer PORT"
    DT_OC4J_HOST="LoadBalancer IP"
    What are the values we need to assign to this parameters,
    please give me the suggestions on this.
    Thanks in advance
    Bollineni

    Here is the doc,
    http://download.oracle.com/docs/cd/E10291_01/core.1013/e10294/toc.htm
    Section 3 is the section you are interested in. ESB sits inside a oc4j so your question is a bit misleading. Therefore you have to cluster the oc4j.
    You can have many topologies . If you just want ESB then just install ESB not BPEL. You will need to get the proper Installes as these are not avaliable via OTN.
    http://edelivery.oracle.com may have it.
    cheers
    James

  • GW Function Import: pass parameter table (e.g. multiple parameters of same type)

    Hello GW experts,
    we have defined a Function Import "CreatePOWithReference" with a parameter "Reference" which contains a string with information about a reference document which shall be used to create a new Purchase Order (PO):
    Now I would like to pass not only a single reference but multiple reference all of the same type "Reference".
    I tried calling the function import with two references like this:
    /sap/opu/odata/sap/ZMP_ODATA_PO_SRV/CreatePOWithReference?Reference='123'&Reference='456'
    But in method "/IWBEP/IF_MGW_APPL_SRV_RUNTIME~EXECUTE_ACTION" my parameter table "IT_PARAMETER" only contains 1 single record:
    How can I achieve that the table "IT_PARAMETER" contains two records (Reference='123' and Reference='456')?
    Thanks and best regards,
    Oliver
    PS: As there can be any number of references, it is not an option to create several parameters "Reference1", "Reference2", "Reference3" and so on... .

    Hello Thomas,
    In my opinion, i do not think you can pass same property multiple times as you are trying now. I really doubt if GW supports this and IT_PARAMETER has only one Reference ( which is sent 1st i.e., 123 ) as you have already shared values read at runtime.. As per my understanding it is the correct behavior of GW where only one reference number - 123 is present in IT_PARAMETER table.
    Other standard way of accomplishing your business case would be implementing CREATE operation and operate it on BATCH.
    Regards,
    Ashwin

  • Parameter table

    Hi All,
    Why the below procedure gives me wrong results when I input the values from a parameter table ? The values in the parameter table is as 'EF123','EF12','EF','DDD'
    Do I have to make this a dynamic query in order for it to work ?
    Please help. Let me know if I am not clear.
    PROCEDURE getOtherEmp(pApplication in varchar2,
                          pSubRole in varchar2,
                          pEmpId in varchar2,
                          pSearchVal in varchar2,
                          refOthEmp OUT REFCUR)
    is
      errmsg     VARCHAR2(4000);
      cccode  VARCHAR2(4000);
    BEGIN
    SELECT get_parameter_value('BCS_OTHER_EMP')
    INTO cccode
    FROM dual;
          open refOthEmp for
            SELECT A.EMPNO, A.NAME EMPNAME
             FROM   EMP A
             WHERE  (Upper(A.NAME) Like Upper('%'||pSearchVal||'%')
             OR A.STAFFNR Like '%'||pSearchVal||'%')
             AND A.emp_type='S'
        AND A.Ccc in (cccode)
             ORDER BY a.name;
       EXCEPTION
          WHEN OTHERS THEN
         errmsg := SQLERRM;
         DBMS_OUTPUT.PUT_LINE(errmsg );
               inserterrorlog('getOtherEmpDetails',sqlcode,sqlerrm);
    END;Message was edited by:
    user532086

    Problem is that cccode contains 1 string and not 4. So the condition a.ccc in (cccode) is looking for employees with a ccc that is equal to 'EF123','EF12','EF','DDD' (including the quotes!).
    There are several possibilities to solve this:
    a) make your function get_parameter_value returning an array which is defined in the database (create type) so you could do a
    and a.ccc in (select column_value from table(function_calll))
    b) use an instr function
    c) use dynamic sql

  • Reg: Parameter Value in CRMPAROLTP table in ECC 6.0

    Hi,
    While trying to build a middle ware for CRM 5.0 and ECC 6.0 we came across CRMPAROLTP table in ECC 6.0. In this we need to maintain Parameter Name and Parmaeter value. If the Parameter name is CRM_RELEASE wht will be the parameter value for CRM Version 5.0?
    Regards

    Hi Veerendra,
    Parameter value is 500.
    Regards
    Nadh.

  • Reg : FM tables parametrs

    Hi All,
             I heard that tables parameters is going to be outdated in the function modules as we can achieve the same functionlaity using the import and export parametrs.
             Can anyone give me the some  more details reg this?
    Thanks in advance.
    Regards
    Abhilash.

    Hi Abhilash,
    To some extent what u said is correct.
    We are gradually moving from conventional ABAP to Object oriented ABAP. In OOPs concepts we have EXPORTING, IMPORTING and CHANGING parameters(TABLES parameter will be replaced with CHANGING) but not IMPORT and EXPORT).
    All new technologies in ABAP like WebDynpro, Netweaver are mostly based on OOPs and linked with JAVA concepts.
    Hope i gave u some idea.
    Thanks,
    Vinod.

  • Reg: internal table?

    hello friends?
    i have one basic doubts,
    please clear this things,
    what are all the ways we can create the internal table?
    how we create internal table using data statement?
    how we create internal table using types statement?
    what is the difference between these two methods?

    FYI..
    DATA - Defining an Internal Table
    Variants:
    1. DATA itab TYPE itabtype [WITH HEADER LINE].
    2. DATA itab {TYPE tabkind OF linetype|
                  LIKE tabkind OF lineobj}
              WITH [UNIQUE|NON-UNIQUE] keydef
              [INITIAL SIZE n] [WITH HEADER LINE].
    3. DATA itab {TYPE TABLE OF linetype|LIKE TABLE OF lineobj}.
    4. DATA itab TYPE RANGE OF type.
    DATA itab LIKE RANGE OF f.
    5. DATA itab [TYPE linetype|LIKE lineobj] OCCURS n
              [WITH HEADER LINE].
    6. DATA: BEGIN OF itab OCCURS n,
          END   OF itab [VALID BETWEEN f1 AND f2].
    In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See New naming conventions and LIKE references to Dictionary Types not allowed.
    Effect
    Defines an internal table.
    To fill and process internal tables, use the statements INSERT, APPEND, READ TABLE, LOOP, SORT, and so on.
    The OCCURS or INITIAL SIZE parameter (OCCURS value) determines the number of lines that are created when the table itself is created. However, the table is extended dynamically on demand. For details, refer to Performance Notes for Internal Tables. The OCCURS value, has no other semantic meaning (apart from one exception in the APPEND SORTED BY statement). If you do not specify an INIT IAL SIZE , the system uses the default value 0.
    If you specify WITH HEADER LINE, the table is created with a header line, that is, a field with the same name. It has the same type as the line type of the table.
    This addition is not allowed in an ABAP Objects context. See Tables with header line not allowed.
    Variant 1
    DATA itab TYPE itabtype [WITH HEADER LINE].
    Effect
    itabtype must be an internal table type that you have already defined using TYPES. The statement creates an internal table in the program with this type.
    In general, the type specification for the table object must be complete. The exception to this is a standard table, in which the key definition may be missing. In this case, the system automatically uses a default key.
    Example
    Creating a hashed table by referring to an existing table type:
    TYPES: BEGIN OF STRUC, NAME(10), AGE TYPE I, END OF STRUC,
           HTAB TYPE HASHED TABLE OF STRUC WITH UNIQUE KEY NAME.
    DATA : PERSONS TYPE HTAB.
    Variant 2
    DATA itab {TYPE tabkind OF linetype|LIKE tabkind OF lineobj}           WITH [UNIQUE|NON-UNIQUE] keydef
              [INITIAL SIZE n] [WITH HEADER LINE].
    Effect
    Creates an internal table in the program with the type tabkind. Since there are no generic field definitions, you cannot use the table types ANY TABLE or INDEX TABLE.
    The structure of the table lines is defined by the type linetype if you use a TYPE reference) or by the type of the referred object lineobj (when you use a LIKE reference).
    The same rules apply to the UNIQUE and NON-UNIQUE additions in the DATA statement as in a TYPES definition. You may only omit the definition when defining a standard table.
    If you do not specify the INITIAL SIZE the system uses a default initial size of 0.
    Variant 3
    DATA itab {TYPE TABLE OF linetype|LIKE TABLE OF lineobj}.
    Effect
    This is a shortened form of the definition of a standard table. It corresponds to
       DATA itab {TYPE STANDARD TABLE OF linetype|
                  LIKE STANDARD TABLE OF lineobj} WITH DEFAULT KEY.
    or the old definition (compare variant 4)
       DATA itab {TYPE linetype|LIKE lineobj} OCCURS 0.
    Variant 4
    DATA itab TYPE RANGE OF type. DATA itab LIKE RANGE OF f.
    Additions:
    1. ... INITIAL SIZE n
    2. ... WITH HEADER LINE
    Effect
    Creates an internal table itab with table type STANDARD. The line type is a structure with the following components:
      SIGN(1)   TYPE C
      OPTION(2) TYPE C
      LOW       TYPE type bzw. LIKE f
      HIGH      TYPE type bzw. LIKE f
    Addition 1
    ...INITIAL SIZE n
    Effect
    The INITIAL SIZE specification determines how many table lines are created when the table itself is created. The table is also dynamically expanded as required. For further information, refer to Performance Notes for Internal Tables. The INITIAL SIZE value has no semantic meaning (apart from one exception in the ei APPEND SORTED BY statement). If you do not specify the INITIAL SIZE, the system uses the default value 0.
    Addition 2
    ... WITH HEADER LINE
    This addition is not allowed in an ABAP Objects context. See Tables with Header Lines Not Allowed.
    Effect
    Creates an internal table and a header line for it, that is, a field with the same name as the internal table and the same type as the line type of the internal table.
    Variant 5
    DATA itab [TYPE linetype|LIKE lineobj] OCCURS n                                        [WITH HEADER LINE].
    This variant is not allowed in an ABAP Objects context. See Declaration with OCCURS not allowed.
    Effect
    This variant exists to ensure compatibility with Release 3.x. If you do not specify a line type, the system uses type C with length 1. Otherwise, the variant is the same as
       DATA itab {TYPE STANDARD TABLE OF linetype|
                  LIKE STANDARD TABLE OF lineobj}
                 INITIAL SIZE n [WITH HEADER LINE].
    Example
    TYPES: BEGIN OF LINE_TYPE,
             NAME(20) TYPE C,
             AGE      TYPE I,
           END   OF LINE_TYPE.
    DATA:  PERSONS    TYPE LINE_TYPE OCCURS 20,
           PERSONS_WA TYPE LINE_TYPE.
    PERSONS_WA-NAME = 'Michael'.  PERSONS_WA-AGE  = 25.
    APPEND PERSONS_WA TO PERSONS.
    PERSONS_WA-NAME = 'Gabriela'. PERSONS_WA-AGE  = 22.
    APPEND PERSONS_WA TO PERSONS.
    The internal table PERSONS now contains two entries.
    Variant 6
    DATA: BEGIN OF itab OCCURS n,         ...
          END   OF itab [VALID BETWEEN f1 AND f2].
    This variant is not allowed in an ABAP Objects context. See Declaration with OCCURS not allowed.
    Effect
    Creates an internal table itab with type STANDARD and a header line. The line type consists of the fields between "BEGIN OF itab OCCURS n" and " END OF itab".
    Use the VALID BETWEEN f1 AND f2 addition to specify that the components f1 and f2 of the internal table itab contain a line-based validity interval. You can only use this addition in conjunction with the PROVIDE statement.
    Example
    DATA: BEGIN OF PERSONS OCCURS 20,
            NAME(20),
            AGE TYPE I,
          END   OF PERSONS.
    PERSONS-NAME = 'Michael'.
    PERSONS-AGE  = 25.
    APPEND PERSONS.
    PERSONS-NAME = 'Gabriela'.
    PERSONS-AGE  = 22.
    APPEND PERSONS.
    The internal table consists of two entries. PERSONS also has a header line (work area), which is an interface between the program and the actual table contents.
    Additional help
    Internal Table Objects
    Ramesh

  • Reg parameter filtering ./.

    Hi.
    This is ranganadh,
    i am generating very simple report, but under laying it has very huge table and lot of joins .. but i have a proper indexing to get results much faster ..
    i have taken new report, and given oracle command for data source, i wanted to make some fields are as a parameters to that report. let us take ..
    i have a query like ..
    select phoneno,contactno ... from contacts where phoneno =1000 some thing
    i wanted to make phone no as a parameter to the report, so that i removed where class for the phoneno=100 .. and put it in record selection formula ..
    but report is taking ages to run, i am thinking that report is trying to get all the data from query after on-words it is puting filter operations.
    is there any way some thing like, pass a report parameters as a query parameters to the database from Crystal report.
    some kind of feature is allredy there in SQL server reporting tools, just i want to know that is there any feature in crystal reports like that ..
    pls reply ASAP

    Hello,
    Quite ofen if CR can't directly generate the SQL with the WHERE clause it does mean all of the records will be returned to CR and on the second pass then the filtering is done.
    You can try checking on the options under the Report Options - Use Indexing or Server for Speed and Perform grouping on Server. If those don't fix the issue then your best bet would be to write a Stored Procedure with parameters and make the phoneno a SP parameter.
    This way all of the data collection is done server side which is much more efficient that passing the data to CR to filter. CR will then just get the final data set and will display the report very quickly.
    Thank you
    Don

  • Reg Parameter .

    Hi.
    This is ranganadh,
    i am generating very simple report, but under laying it has very huge table and lot of joins .. but i have a proper indexing to get results much  faster ..
    i have taken new report, and given oracle command for data source, i wanted to make some fields are as a parameters to that report. let us take ..
    i have a query like ..
       select phoneno,contactno ... from contacts where phoneno =1000 some thing
    i wanted to make phone no as a parameter to the report, so that i removed where class for the phoneno=100 .. and put it in record selection formula ..
    but report is taking ages to run, i am thinking that report is trying to get all the data from query after on-words it is puting filter operations.
    is there any way some thing like, pass a report parameters as a query parameters to the database from Crystal report.
    some kind of feature is allredy there in SQL server reporting tools, just i want to know that is there any feature in crystal reports like that ..
    pls reply ASAP

    If you want to create a dynamic parameter you can create using business view manager. This is possible when you are using server(BOE or CRS) and you need to have client installation in the client machine. Try to create  List of Values using business view and save that in repository. Now create a report using add command like this
    select * from table where phone_num={?Parameter}
    {?Parameter}  is a command level parameter and now edit this paraemter in the report and make it as dynamic and select the option existing and point this parameter to LOV created in repository. Now the prompt will show all te numbers from LOV and you can run the report using add command.
    Regards,
    Raghavendra

  • Dynamic Parameter Table definition?

    This might have been asked before, but I don't think I saw an authoritative answer.
    I'm using Crystal 2008 SP2 in a Visual Studio 2008 C# project. I need to build a WPF UI that prompts for the values of the report parameters. Nothing new there. For the most part I have the static parameters figured out. But when it comes to dynamic parameters, I need to know how to drill into the API to figure out what table and columns were setup as the source of values for a pick-list (i.e. a combobox/listbox) type parameters.
    Any suggestions?
    Ken.

    Why not?
    I really hate to post rants to a forum as usefull as this, and Ludek I know you always reply with very usefull info, but I think it's time that your developers get on the ball.
    There are so many things missing in Crystal 2008:
    I really need 64 bit support. And native WPF/Silverlight support. A truely efficient means to run reports in distributed applications. And there is always something in the API that throws up road blocks like this.
    In this case I don't want Crystal to prompt my user because I have no control over the look and feel of the prompt screen. I'm using WPF and have a highly stylized user interface. If I let Crystal pop-up the parameter prompts it looks terrible. So I have to build the parameter prompts myself, but the lack of metadata about the prompts is a huge road block for me.
    Ken.

  • Reg : MSEG Table

    Hi Friends,
                   i've a dobut dobut regarding MSEG table....
                   In Mseg table we have Movment Types field (BWART), Now I've two movement types Namingly
                   101  -  (GR goods receipt)   and  261 (GI for order).  Now My Qusetion is .....
                   1. How can we link any two MBLNRs with movemnt  types 101 &   261 in the MSEG table?
       Regards,
       Kalyan.
    Moderator Message: What happened to this one: Reg : Movement Types MSEG Table?.
    Edited by: kishan P on Sep 16, 2010 5:52 PM

    Hi,
    Check MSEG-SMBLN, u will get first material do in SMBLN of 102 material doc.
    Regards,
    Prashant

  • Reg parameter options

    Hi Experts,
    Im executing a report program.Parameter option is provided for the User to enter/select the value from the search help.but the particular field dont have any help assigned to it.Is there any alternates to do this .?
    Thanks !

    Check this code...
    PARAMETERS:p_matnr TYPE mara-matnr.
    DATA:BEGIN OF itab OCCURS 0,
    matnr TYPE mara-matnr,
    END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
      SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
      UP to 10 rows.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'MATNR'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'P_MATNR'
          value_org   = 'S'
        TABLES
          value_tab   = itab.

Maybe you are looking for