How to declare a param. of type RANGE OF in a method (or function module)?

Hello,
I've got a following problem.
I want to pass a value of type RANGE OF to a method declared in
an interface (the interface is built using Class Builder). I don't know
how to do that and I did not manage to find a solution using both
SAP help and google.
Did anybody have the same problem before?
Best regards
Pawel

Ok, I find a workaround. Maybe it will be useful for somebody in the future.
Declare the parameter type as ANY TABLE and then cast it to the expected type
in the body of the method.
So for example.
Parameter          Type        Typing Method        Associated Type     
I_RNG_DATUM Importing Type                         ANY TABLE
In the body of the method.
TYPES:
    erdat_range TYPE RANGE OF erdat.
  FIELD-SYMBOLS:
    <l_fs_rng_erdat> TYPE erdat_range.
  DATA:
    l_ref_to_range TYPE REF TO data.
  GET REFERENCE OF i_rng_datum INTO l_ref_to_range.
  ASSIGN l_ref_to_range->* TO <l_fs_rng_erdat> CASTING.
However, if somebody know how to pass type RANGE OF
explicitely, the right answer is still welcome.
Best regards
Pawel

Similar Messages

  • How to declare a workarea of type index table

    Hi Experts,
    I am getting error as CT_RESULT is a generic type.Use of this type is only possible for typing field symbols and formal parameters  when using the below code. Please help me and let me know how to declare it.
      TYPES:BEGIN OF  ty_guid,
            guid TYPE guid,
            END OF ty_guid.
      DATA:it_guid TYPE STANDARD TABLE OF ty_guid INITIAL SIZE 0,
           it_item TYPE STANDARD TABLE OF bbp_pds_sc_item_d INITIAL SIZE 0.
      DATA:wa_guid TYPE ty_guid,
                wa_item TYPE bbp_pds_sc_item_d.
      FIELD-SYMBOLS: <fs_result> like LINE OF ct_result.
      SELECT guid FROM crmd_orderadm_h INTO TABLE it_guid
                  WHERE object_id IN ct_result.
      IF sy-subrc = 0.
        LOOP AT it_guid INTO wa_guid.
          CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
           EXPORTING
              i_guid                           = wa_guid
    *   I_OBJECT_ID                      =
    *   I_ATTACH_WITH_DOC                = ' '
              i_with_itemdata                  = 'X'
    *   I_ITEM_SORTED_BY_HIERARCHY       =
    *   I_WITHOUT_HEADER_TOTALS          =
    *   I_READ_FROM_ARCHIVE              = ' '
    * IMPORTING
    *   E_HEADER                         =
    *   EV_IS_PD                         =
    *   ET_ATTACH                        =
           TABLES
              e_item                     = it_item
    *   E_ACCOUNT                        =
    *   E_PARTNER                        =
    *   E_CONFIRM                        =
    *   E_LONGTEXT                       =
    *   E_LIMIT                          =
    *   E_ORGDATA                        =
    *   E_TAX                            =
    *   E_PRIDOC                         =
    *   E_HCF                            =
    *   E_ICF                            =
    *   E_MESSAGES                       =
    *   E_ACTVAL                         =
    *   E_ACC_ACTVAL                     =
    *   E_HEADER_REL                     =
    *   E_ITMLIM_REL                     =
    *   E_STATUS                         =
        ENDLOOP.
      ENDIF.
      IF it_item[] IS NOT INITIAL.
        LOOP AT it_item INTO wa_item.
          LOOP AT ct_result ASSIGNING <fs_result>.
           <fs_result>-zzpurchase_cat = wa_item-be_tracking_no.
    *        MODIFY ct_result FROM wa_result.
            CLEAR wa_result.
          ENDLOOP.
          CLEAR wa_item.
        ENDLOOP.
      ENDIF.

    Hi,
    i'm not quite sure where ct_result is first introduced. There seems to be no declaration?
    Judging by the name-prefix, it would be a changing parameter of which form?
    Where is it populated, since you intend to loop it?
    And then, from which hat do you draw wa_result? it neither seems to be declared nor is there an assignment of values.
    On the other hand, you're trying to change table ct_result directly by altering a field of an assigned field-symbol. Why do you feel it necessary to follow up with a modify statement?
    After so many question-marks i have lost the point of your initial question.
    Maybe, you can start with a short description of your intention and a more accurate code-snippet.
    Best regards - Jörg

  • Unable to write, type anything in source code of a function module.

    Hi all,
    We have a registered name space for our client called /ABCD/EFG.
    I need to create a function module in the name space.
    So first I created a Function Group called /ABCD/EFG_FG in /ABCD/EFG. I activated it in se80.
    Then I created a Function Module called /ABCD/EFG_FM in /ABCD/EFG. I declared the import and export paramters and now I am trying to add the code in source code and the editor does not let me change the source code donu2019t know why.. and every thing is in grey color.
    Can some one tell me what is going wrong? Cant we write any logic in the function module that we create in registered name spaces? When I created the same function module as a local object in $TMP package I dint have any problem. Similarly I created the function module in a Z package and I dint have any problem but if I try to create the same function module in a registered name space it is getting created but it doesnu2019t not let me type anything in the source code of the function module.
    Did any body encounter this problem earlier? Kindly please help.
    Regards,
    Jessica Sam

    Rich,
    Thanks a lot, that worked. Now it lets me type and change the source code of the editor.
    But while i was turing off the assistant it showed me 2-3 messages saying that "i cannot track the changes" and that "during upgrade i cant track the changes " etc.
    So now i can type in source code and i am able to change in source code..but will the trurning of this assistant cause any problmes in future or during upgrade?
    Regards,
    Jessica Sam

  • How to set quality status of a request in an infocube  by a function module

    Hi folks,
    in the maintenance of an infocube you have the possibility to go to a dialog called "maintenance of the automatism". That dialog allows you to set a flag therewith the quality status of a processed request is  set automatically to green.
    Does anybody know how to do that with a function modul or which tables have to be updated in order to do that by a litte ABAP?
    Thanks+Cheers, Thomas

    Hi Bhanu,
    thanks for that one, pretty helpful.
    Think of the following scenario:
    1. untick the automatic setting of the quality status
    2. load 4 requests into the infocube
    3. once last request has been loaded tick the automatic setting of quality status
    would that mean that once the status flag is ticked all 4 requests become available  for reporting?
    Cheers, Thomas

  • How to mantain restriction on condition type range

    Hi,
    Our sd consultant want to make restriction  on condition type on discount range,
    under VA01 when we create the sales order, there we give discount, which should fall under some range , say about 1 to 15 not beyond that,
    please assist how to go about it.
    Regards,
    SM

    hello, friend.
    when you create condition records for prices and discounts using VK11 or VK31, you can define upper and lower limits for your condition type.  in the FAST ENTRY screen, just highlight the condition type and click on DETAILS.  you will be brought to another screen where you can enter the limits.
    there are also settings in IMG.  will give you more details if this is helpful.  also, please do reward if so.
    regards.

  • How to declare variable for Table type in the ABAP Editor

    Hi!
    I have Table Type 'FIELDNAME_TAB' (Table of fieldnames). I want to pass the list of fieldnames to this Table Type in the ABAP Editor.
    Can anyone help me in this?

    You would declare the internal table like so.
    data: itab type FIELDNAME_TAB.
    data: wa like line of itab.
    wa = 'This_value'.
    append wa to itab.
    Regards.
    Rich Heilman
    Message was edited by:
            Rich Heilman

  • SSIS Programming- How to declare a variable of type Object?

    Hello, I have a very specific coding question. I am trying to create a pkg using SSIS Object model. I am trying to create a variable of type Object. But I could not find any reference in KB or forums on creating variable of this data type.
    Example:
    // Create the package.
    Application a = new Application();
    Package p = new Package();
    p.Name = "MyDataExtractPkg";
    //Add Variables to the pkg
    Variables pkgVars = p.Variables;
    Variable var8 = p.Variables.Add("varHour", false, "User", (System.Int16)0);
    Variable var9 = p.Variables.Add("varHourDiff", false, "User", 0);
    Variable var10 = p.Variables.Add("varIntervalWaitInMS", false, "User", 5000);
    Variable var11 = p.Variables.Add("varJobCnt", false, "User", 0);
    Variable var12 = p.Variables.Add("varjobID", false, "User", 0);
    Variable var13 = p.Variables.Add("varJobRS", false, "User", (System.Object)0);
    Variable var14 = p.Variables.Add("varProcessDate", false, "User", "abc");
    As you can see I was able to successfully variables of Type Int16, Int32(default) & String.
    But I need to create a variable of type Object for "varJobRS" and above code is generating int. Appreciate any direction or help on how to create Object variable type.
    Thanks,
    DW Guy

    I have been continuing with my work with intention to approch MS, but I came across the solution in one of the Blog site. The solution is :
    var13.Value =
    new
    Object();
    This converts the variable of type Object.
    The link that gave this soluion is:
    http://ssisbi.com/building-ssis-packages-programmatically-part-5/
    Thanks,
    DW Guy

  • How to import a range in Function module?

    I am using a Function module in which material is getting imported.
    In the import tab we have
    Parameter Name    Typing     Associated Type       optional          pass value
    IM_MATERIAL       TYPE       MATNR                 <checked>         <checked>
    So when the Function module is execute we can enter only one value into the IM_MATERIAL.
    But now it has to be enhanced for entering multiple values. How to import the material as a range?
    Please throw light.
    Thanks.

    Hi
    If you are using a select-options you can use this approach.
    TABLES: MARA.
    DATA: RANGE TYPE WRF_MATNR_RANG_TTY.
    SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.
    START-OF-SELECTION.
      RANGE[] = SO_MATNR[].
    CALL FUNCTION 'ZTEST'
    EXPORTING
       I_RANGE       = RANGE.
    Where I_RANGE is defined using this table type WRF_MATNR_RANG_TTY
    Parameter Name    Typing     Associated Type     optional          pass value
    I_RANGE       TYPE       WRF_MATNR_RANG_TTY      <checked>     <checked>

  • Declare work area of type = standard table

    Hi All,
    How to declare a workarea of type standard table in ABAP Objects..
    the syntax check of ABAP Objects showing error for the general ABAP Code
    for the same..
    Thanks in Advance, Sudeep..

    Hi Sudeep,
    I had shown the declarations for internal table and work area as well
    if you just want work area
    just use the second statement
    data : is_vbak type vbak. " work area of VBAK
    Regards
    Gopi

  • Type range of

    Hi,
        I am trying to create a range object using type range of decalration in a class, but when trying to select data using the range object as one of the condition the program throws an error stating "The in operator with it_pernr-low is followed be neither by an internal table nor by a value list".Listed below is the sample code
    data: it_pernr type range of p0001-pernr,
            wa_pernr like line of it_pernr.
    wa_pernr-low = '343243'.
    wa_pernr-sign  = 'I'.
    wa_pernr-option = 'EQ'.
    append wa_pernr to it_pernr.
    wa_pernr-low = '12343'.
    append wa_pernr to it_pernr.
    select * from pa0001
                into table it_p0001
               where pernr in it_pernr.
    If I cannot use the "in it_pernr"  because it does not have a header line then what would be the alternative efficient solution. All answers wud be awarded suitably.
    Thanks
    Vick
    This is a duplicate post, I accidentally posted it in the wrong place. Will close both the posts once answered
    Edited by: vick vennav on Jan 2, 2008 10:58 PM

    Actually Vick, I'm having no problem whatsoever using the TYPE RANGE OF within a method.  Not sure what you are doing wrong.  Here is my example code.
    REPORT  rich_0001.
    *       CLASS lcl_app DEFINITION
    CLASS lcl_app DEFINITION.
      PUBLIC SECTION.
        DATA: it_t000 TYPE TABLE OF t000.
        DATA: it_mandt TYPE RANGE OF t000-mandt,
              wa_mandt LIKE LINE OF it_mandt.
        METHODS : test.
    ENDCLASS.                    "lcl_app DEFINITION
    *       CLASS lcl_app IMPLEMENTATION
    CLASS lcl_app IMPLEMENTATION.
      METHOD test.
        wa_mandt-low = '100'.
        wa_mandt-sign = 'I'.
        wa_mandt-option = 'EQ'.
        APPEND wa_mandt TO it_mandt.
        wa_mandt-low = '200'.
        APPEND wa_mandt TO it_mandt.
        SELECT * FROM t000
                INTO TABLE it_t000
                       WHERE mandt IN it_mandt.
      ENDMETHOD.                    "test
    ENDCLASS.                    "lcl_app IMPLEMENTATION
    DATA: o_ref TYPE REF TO lcl_app.
    START-OF-SELECTION.
      CREATE OBJECT o_ref.
      o_ref->test( ).
    Regards,
    Rich Heilman

  • How many types of function modules are there

    hi gurus,
    how many types of function modules are there...
    what type of function module bapi  is....
    i don't know much about that...
    pls help me...
    regards,
    praveen

    hi
    hope it will help you.
    <REMOVED BY MODERATOR>
    Function Modules Used in Script:
    In the Driver Program we must use all or some of the function modules that are listed below to transfer the data.
    • Open_Form
    • Close_Form
    • Start_Form
    • Write_Form
    • Write_Form_Lines
    • End_Form
    • Control_Form
    • Read_Form_elements
    • Read_Form_Lines
    Any driver program must contain Open_Form, Close_Form and Write_Form. Other function modules are optional.
    OPEN_FORM: This function module opens layout set printing. One must call this function module before he uses any of other layout set function modules like Write_Form, Start_Form, Control_Form etc., You need specify a layout set name in the export parameters of this function module. If nothing is passed to Open_Form then one should use Start_Form function module to open layout set before starting the output. The layout set opened by Open_Form should be closed by Close_Form function module, other wise output doesn’t appear. We can use any number of Open_Form, Close_Form functions in one single program. But Close_Form must be there for every Open_Form in the program.
    Some of the important export parameters we have to pass to Open_Form function module.
    Form: Enter the Layout set name here, which then controls the output formatting. If nothing is specified then we must use Start_Form for opening layout set.
    Language: Layout sets are Language dependent. Enter the desired language here. If the entered layout set is not in that language, then the function tries to open the Form entered in its original language. The default value is SY-LANGU.
    Device: SAP Script can format a text on different device types. The device can be ‘PRINTER’ or ‘TELEX’, ‘TELEFAX’, ’ABAP’ and ‘SCREEN’.
    Dialog: Use parameter DIALOG to determine whether to display a dialog box before printing, in which the user can set several spool parameters for print formatting. Possible values: SPACE displays no print parameter screen. 'X' display print parameter screen. Default value: 'X'
    Options: Use parameter OPTIONS to set several options for print formatting. The parameter has the structure ITCPO. The user can change some of the defined settings on the print control screen. The default value for Options is ‘ ‘. We will discuss about ITCPO structure in detail later.
    Other Export, Import and Exceptions are self-explanatory.
    Close_Form: The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set. No Export parameters for this Function Module.
    Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are
    Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.
    Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.
    Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.
    Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM.
    Exceptions and other Export, Import parameters are self-explanatory.
    Write_Form: The system outputs the layout set element specified in parameter ELEMENT into the currently opened layout set. In the parameter WINDOW we can specify the name of a window for the output. Remember that the layout set element must be defined in this window. The parameter FUNCTION specifies how to merge the text lines to be output with any existing contents in the window. In this case, there are differences between the different window types or areas. Some of the important export parameters used in Write_Form.
    Element: Specify the name of the text element you want to output into the layout set window specified in the parameter WINDOW. The element must be defined in that layout set window. If you specify no element, the system uses the default element, if one is defined in the layout set.
    Window: Specify the name of the window into which you want to output the layout set element specified in the parameter ELEMENT. Default value for Window is ‘MAIN’.
    Function: The parameter determines how to output the text element into the respective window. The output type depends on the window type and area:
    Window Type: MAIN Area: BODY
    SET/APPEND: Appends to previous output.
    Window Type: Main Area: Top/Bottom and
    Window Type: Other than Main and all areas
    SET : Delete the old element contents and prints the new elements
    APPEND: Appends the new content to existing elements.
    Type: The system interprets this parameter only for output to the main window. The parameter determines the area of the main window into which we want to output the element. Possible values: 'TOP' header area
    'BODY' main area
    'BOTTOM' footer area
    Default value: 'BODY'
    Write_Form_Lines: This function module outputs the text lines in table LINES into the specified layout set window. The text lines must have the SAP script ITF format. From the data in the text header, the system uses only the field TDSTYLE to apply the formatting attributes defined in the specified style for this text. If the field is empty, the system uses the identically named formatting attributes (character and paragraph formats) of the layout set.
    Use parameter WINDOW to specify into which of the windows defined in the layout set we want to output the text. We can specify any window used in the layout set. The parameter FUNCTION determines how to merge the text lines to be output with any existing contents in the window. There are differences between the different window types or areas.
    Header: This parameter contains the header of the text module we want to output in the current layout set. For the formatting process, the system uses only the entries in the header fields TDSTYLE and TDFORM. Structure: THEAD
    WINDOW: Enter the name of the window into which we want to output the layout set element specified in parameter ELEMENT. Default value: 'MAIN'
    FUNCTION: This parameter determines how to output the text element into the respective window. The output type depends on the window type and area: Window type MAIN, area BODY: 'SET' append to previous output 'APPEND' same as SET. DELETE' no effect. Window type MAIN, areas TOP and BOTTOM; all other windows: 'SET' delete old window or area contents and output the element 'APPEND' append the element to the existing elements 'DELETE' no effect Default value: 'SET'
    TYPE: The system interprets this parameter only for output to the main window. The parameter determines the area of the main window into which you want to output the element. Possible values: 'TOP' header area 'BODY' main area 'BOTTOM' footer area Default value: 'BODY'
    END_FORM: END_FORM ends the currently open layout set and executes the required termination processing. After calling this function module, no more layout set is active. For further output, we must start a new layout set using START_FORM. No Export parameters.
    CONTROL_FORM: Use this function module to pass SAP Script Control Commands to the layout set. The Control command is passed through the export parameter ‘COMMAND’ in quotes.
    READ_FORM_ELEMENTS: This function module fills a table with all text elements that appear in one layout set. If we specify no layout set name, the system includes all elements of the currently open layout set. If we specify a layout set, the system uses the information about the active version of the layout set, retrieved from the database. Here we have two export parameters, Form and Language and a table parameter Elements.
    READ_FORM_LINES: Use this function module to transfer the lines of a layout set element into an internal table. If we specify no layout set name, the system transfers the text lines of the currently open layout set. If we specify a layout set, the system uses the text lines of the active version of the layout set from the database. The Export parameters are Form, Language, Window and Element. If we pass these 4 parameters the function module returns a table with the lines from layout set.
    Function modules are one element. There are no types. However sometimes an RFC enabled function module is referred to as RFC Function module, but really it is just a function module. Also BAPIs are function modules, but are usually referred to as just BAPI as opposed to BAPI Function module.
    There is no different function module types , but calling the function module will be different.
    check this function calls syntax
    1. Calls a function module:
    CALL FUNCTION func.
    2. Call a function module in a different mode (asynchronous Remote Function Call):
    CALL FUNCTION func STARTING NEW TASK taskname.
    3. Call a function module in the update task:
    CALL FUNCTION func IN UPDATE TASK.
    4. Call a function module in a remote system (Remote Function Call, RFC ):
    CALL FUNCTION func DESTINATION dest.
    5. Asynchronous call to a function module with transactional processing (transactional Remote Function Call):
    CALL FUNCTION func IN BACKGROUND TASK.
    qRFC with output queue
    6. Call a function module that can be activated in the context of enhancements:
    CALL CUSTOMER-FUNCTION func.
    Cheers,
    Chandru
    Edited by: Alvaro Tejada Galindo on Feb 27, 2008 11:53 AM

  • Unknown table type in function module

    Hello,
    i try to create a function module, which has one internal table as a result table. The structure is unknown during design time, because the table has the structure like a range table, therefor the fieldtype of the 'low and high' values, depends on the declaration of the calling programm, and is not knowing in the function module during design time.
    The function module load the results of a DDIC-Customizingtable and shell fill the sign, option, low and high field of the result table.
    Is there anybody with an idea how to solve this.
    Thanks in advance
    Michael

    For example.....  here is a program which calls the function module.  Notice that ITAB in the TABLES section is not defined.
    Program Code.
    report zrich_0002.
    ranges: r_datum for sy-datum.
    call function 'Z_TEST'
         tables
              itab = r_datum.
    check sy-subrc  = 0.
    Function Module Code.
    function z_test.
    *"*"Local interface:
    *"  TABLES
    *"      ITAB
    * Fill with data
      itab = 'IBT2006010399991231'.
      append itab.
    endfunction.
    Regards,
    Rich HEilman

  • How to pass a SELECT-OPTION to a FUNCTION-MODULE

    Hi forum:
              How can i pass a selection-option like an input parameter of a function-module?. Put one example in the answer, please.
              After pass this value i want to put this into an IN select condition.
       But for i only need know how to pass this value
    thnks
    Josué
    Thnks
    Josue Cruz

    Hi Rich.
       this is a little example of my code.
       DATA: wa_bukrs TYPE bkpf-bukrs,
                  wa_budat TYPE bkpf-budat,
                  wa_gjahr TYPE bkpf-gjahr.
       SELECT-OPTIONS: se_bukrs FOR wa_bukrs OBLIGATORY,
                    se_gjahr FOR wa_gjahr OBLIGATORY,
                    se_budat FOR wa_budat OBLIGATORY.
      HERE i can to put the call to the function.
    Thnks

  • How to remove function module error?

    Hi Iam using a FM to get the database value of project name(PROJ-PSPID),Iam using this in my module pool program,when I enter wrong project name,the FM itself throwing the error,I want my own error message rather FM error message.How to achieve it?
    Thanks in advance.

    Hi Rock,
    After executing the function module , check for sy-subrc value as shown below
    data: w_return type bapiret2,
            it_return type table of bapiret2.
    call function '.....'
    IF SY-SUBRC EQ 0.
        PERFORM fm_update_return_msg
                      USING  'E'
                             your Message class
                             'msg no'
                      CHANGING w_return.
          APPEND w_return TO IT_RETURN.
          clear w_return.
       ENDIF.
    FORM fm_update_return_msg  USING    p_msgty  TYPE sy-msgty
                                        p_msgid  TYPE sy-msgid
                                        p_msgno  TYPE sy-msgno
                                        p_msg_v1 TYPE sy-msgv1
                                        p_msg_v2 TYPE sy-msgv2
                                        p_msg_v3 TYPE sy-msgv3
                                        p_msg_v4 TYPE sy-msgv4
                               CHANGING p_return TYPE bapiret2.
      CALL FUNCTION 'BALW_BAPIRETURN_GET2'
        EXPORTING
          type   = p_msgty
          cl     = p_msgid
          number = p_msgno
          par1   = p_msg_v1
          par2   = p_msg_v2
          par3   = p_msg_v3
          par4   = p_msg_v4
        IMPORTING
          return = p_return.
    ENDFORM.                    "fm_update_return_msg

  • Function Module for separating a date range into days

    Hi all,
    Does anyone know if there is a function module which gives back the list of days when we give a date range as input parameter to the function module. For example, we enter the range 10.07.2006 - 13.07.2006 and the function module gives back a table  in form 10.07.2006, 11.07.2006, 12.07.2006, 13.07.2006.
    Thanks,
    Sükrü

    Hi suekrue,
    1. Exactly for this purpose,
       i have written an
       INDEPENDENT FORM (subroutine)
      wherein we pass
       a) fromdate
       b) todate
       c) ITAB
    2. and it gives all the dates in the internal table.
    3. just copy paste
    4.
    data :  itab type table of sy-datum with header line.
    parameters : fromdate type sy-datum default '20060701'.
    parameters : todate type sy-datum default sy-datum.
    perform getdays tables itab using fromdate todate.
    break-point.
    FORM
    form getdays
    tables itab
    using fromdate todate.
      data : curdate type sy-datum.
      curdate = fromdate.
      do.
        if curdate > todate.
          exit.
        endif.
        itab = curdate.
        append itab.
        curdate =  curdate + 1.
      enddo.
    endform.                    "getdays
    regards,
    amit m.

Maybe you are looking for

  • I recently brought a HD PVR, i put in the disk to install the hard drive and it said " This program doesn't support DOS Mode! how do i get out of DOS Mode?? Please Help

    I recently brought a HD PVR, i put in the disk to install the hard drive and it said " This program doesn't support DOS Mode! how do i get out of DOS Mode?? Please Help

  • Buying my first i-pod

    Hi Which is the latest available i-pod and will there be a newer model released before Christmas? I've always stored my itunes stuff on a laptop, and have never owned an i-pod before. However, I now realise that owning one would be a far more conveni

  • Saving dynamically populated pdf forms

    We have forms developed in Live Cycle that are dynamically populated. We have extended these forms in Acrobat so that users may save them with the pre-populated data. Our issue is that the user must manipulate the form in some manner, such as changin

  • Erro Handling in ESB

    Hi All, I want to know how can we achieve error handling in ESB as we can handle in BPEL through Catch and Throw activity is there any way to catch the errors in ESB? Thanks in Advance Raju

  • Cucm web gui

    trying to setup a home lab to study for the ccna voice cert. i installed cucm 8.6 on vmware workstation and worked fine. i was able to get to the login page but when i login with the admin account, none of the navigation buttons are dropdowns like th