ABAP routing in info package

Hi All,
I have a requirement where about 1000 document numbers are to be used in the info package. I can wite an abap routine at the info package. Since there are many documents numbers, can I create an info object and load the numbers in it and use a simple select on the info object and compare it with the document no inside the abap routine. Though I have the idea I have not done anything like this before. Does anyone know how I can use l_t_range internal table with many individual document numbers?
Example code will be appreciated.
Thanks,
Alex.

Hi Alex,
I used the following code to upload from a TXT file to the infopackage selection criteria.
Note ": This does not work in Background as GUI UPLOAD does not work in background, so you will not be able to schedule it in a processchain.
data: l_idx like sy-tabix.
          read table l_t_range with key
               fieldname = 'MATERIAL'.
          l_idx = sy-tabix.
          modify l_t_range index l_idx.
          p_subrc = 0.
DATA s_line(18) TYPE N.
  DATA t_line LIKE STANDARD TABLE OF s_line.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = 'C:\input2.txt'
      filetype                      = 'ASC'
  HAS_FIELD_SEPARATOR           = ' '
  HEADER_LENGTH                 = 0
      read_by_line                  = 'X'
  DAT_MODE                      = ' '
  CODEPAGE                      = ' '
  IGNORE_CERR                   = ABAP_TRUE
  REPLACEMENT                   = '#'
  CHECK_BOM                     = ' '
IMPORTING
  FILELENGTH                    =
  HEADER                        =
    TABLES
      data_tab                      = t_line
   EXCEPTIONS
     file_open_error               = 1
     file_read_error               = 2
     no_batch                      = 3
     gui_refuse_filetransfer       = 4
     invalid_type                  = 5
     no_authority                  = 6
     unknown_error                 = 7
     bad_data_format               = 8
     header_not_allowed            = 9
     separator_not_allowed         = 10
     header_too_long               = 11
     unknown_dp_error              = 12
     access_denied                 = 13
     dp_out_of_memory              = 14
     disk_full                     = 15
     dp_timeout                    = 16
     OTHERS                        = 17
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  l_t_range-sign = 'I'.
  l_t_range-option = 'EQ'.
  LOOP AT t_line INTO s_line.
    l_t_range-low = s_line.
    IF sy-tabix = 1.
      MODIFY l_t_range INDEX l_idx.
    ELSE.
      APPEND l_t_range.
    ENDIF.
  ENDLOOP.
If you already have the document numbers, I guess it is easier to load it from a text file instead of creating an Infoobj.
You might need to change the declaration to suit your requirement.
The following piece to be changed as required
DATA s_line(18) TYPE N.
  DATA t_line LIKE STANDARD TABLE OF s_line.
Cheers,
Praveen.

Similar Messages

  • Varaible in Info Package

    HI Experts,
    I need to create a variable in Info Package for field Fiscalyear/Period, so that we can pull the data for current quarter and for future 3 quarters.
    We can do this by OLAP variable and by ABAP Routine in Info Package.
    If we go with option ABAP Routine (Type - 6) in Info Package can you please provide me the sample code (for field Fiscalyear/Period to tirgger for current quarter and for future 3 quarters.)
    Millions of thanks in Advance
    Warm Regards,
    Reddi

    I'm suggesting an adjustment to that, because what has been presented here will get you the current fiscal period and subsequent 11 months, assuming that the fiscal period is the same as the calendar month.
    To get the current and 3 subsequent quarters as requested by xys redd, I'd modify this to something like the following.  I've also given a bit of code to determine the current fiscal period if you have a fiscal year variant that does not line up with calendar dates.
    DATA: l_per LIKE t009b-poper, "Period
          l_year LIKE t009b-bdatj, "Year
          l_fisc TYPE /BI0/OIFISCPER,
          l_fisc1 TYPE /BI0/OIFISCPER.
    * Determine the fiscal period.  Use this if the fiscal
    *   calendar difers from the month in SY-DATUM
    *  CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    *   EXPORTING
    *      i_date         = SY-DATUM
    *      i_periv        = '<YOUR FISCAL YEAR VARIANT HERE>'
    *    IMPORTING
    *      e_buper        = l_per
    *      e_gjahr        = l_year
    *    EXCEPTIONS
    *      input_false    = 1
    *      t009_notfound  = 2
    *      t009b_notfound = 3
    *      OTHERS         = 4.
    * Take the easy way out if the fiscal calendar is simple.
    l_per = sy-datum+4(2).
    l_year = sy-datum+0(4).
    * Move back to the beginning of the quarter (assuming 3-month quarters)
    l_per = ( ( ( l_per - 1 ) DIV 3 ) * 3 ) + 1 .
    CONCATENATE l_year l_per into l_fisc.
    * Figure out the ending period.
    CASE l_per.
      WHEN '001'.
        l_per = '012'.
        l_year = l_year.
      WHEN others.
        l_per = l_per - 1.
        l_year = l_year + 1.
      ENDCASE.
    CONCATENATE l_year l_per INTO l_fisc1.
    DATA: l_idx LIKE sy-tabix.
    READ TABLE l_t_range
      WITH KEY fieldname = 'FISCPER'.
    l_idx = sy-tabix.
    l_t_range-low = l_fisc.
    l_t_range-high = l_fisc1.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    MODIFY l_t_range INDEX l_idx.
    p_subrc = 0.

  • Info Package ABAP Routine

    Hi
    For FIGL_4 there is both open items and closed items. i want to filter only Open Items Accounting doc no's records for Customers,Vendors,GL account at info package level.
    There are 3 ODS's in BW side for Open items Customers,Vendors,GL accounts. i want to filter open items based on these 3 ODS's Active data table.But i am getting error when i execute the request in Info Package.
    *Error Message "For sel. field 'BELNR ', no selection with SIGN = ' '; OPTION ' ' allowed     RSM1     607     *
    Below is the Info package Routine code
    program conversion_routine.
    Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    TABLES: /BIC/AZOCFFIGL00,/BIC/AZOCFBSID00,/BIC/AZOCFBSIS00
            ,/BIC/AZOCFBSIK00.
    DATA:   ...
    TYPES : BEGIN OF TY_ZOCFBSID,
            /BIC/ZMCFADCNO LIKE /BIC/AZOCFBSID00-/BIC/ZMCFADCNO,
            END OF TY_ZOCFBSID.
    TYPES : BEGIN OF TY_ZOCFBSIS,
            /BIC/ZMCFADCNO LIKE /BIC/AZOCFBSIS00-/BIC/ZMCFADCNO,
            END OF TY_ZOCFBSIS.
    TYPES : BEGIN OF TY_ZOCFBSIK,
            /BIC/ZMCFADCNO LIKE /BIC/AZOCFBSIK00-/BIC/ZMCFADCNO,
            END OF TY_ZOCFBSIK.
    DATA : TB_ZOCFBSIS TYPE TABLE OF TY_ZOCFBSIS WITH HEADER LINE,
           WA_ZOCFBSIS TYPE TY_ZOCFBSIS.
    DATA : TB_ZOCFBSID TYPE TABLE OF TY_ZOCFBSID WITH HEADER LINE,
           WA_ZOCFBSID TYPE TY_ZOCFBSID.
    DATA : TB_ZOCFBSIK TYPE TABLE OF TY_ZOCFBSIK WITH HEADER LINE,
           WA_ZOCFBSIK TYPE TY_ZOCFBSIK,
           FLAG TYPE I.
    $$ end of global - insert your declaration only before this line   -
        InfoObject      = ZMCFADCNO
        Fieldname       = BELNR
        data type       = CHAR
        length          = 000010
        convexit        = ALPHA
    form compute_BELNR
      tables   l_t_range      structure rssdlrange
      using    p_infopackage  type rslogdpid
               p_fieldname    type rsfnm
      changing p_subrc        like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'BELNR'.
              l_idx = sy-tabix.
           SELECT
           /BIC/ZMCFADCNO
           FROM /BIC/AZOCFBSID00
           INTO TABLE TB_ZOCFBSID.
            SELECT
            /BIC/ZMCFADCNO
            FROM /BIC/AZOCFBSIK00
            INTO TABLE TB_ZOCFBSIK.
            SELECT
            /BIC/ZMCFADCNO
            FROM /BIC/AZOCFBSIS00
            INTO TABLE TB_ZOCFBSIS.
           LOOP AT TB_ZOCFBSID INTO WA_ZOCFBSID.
           l_t_range-sign = 'I'.
           l_t_range-option = 'EQ'.
           l_t_range-low = WA_ZOCFBSID-/BIC/ZMCFADCNO.
           Append l_t_range.
           CLEAR l_t_range.
           ENDLOOP.
           LOOP AT TB_ZOCFBSIK INTO WA_ZOCFBSIK.
           l_t_range-sign = 'I'.
           l_t_range-option = 'EQ'.
           l_t_range-low = WA_ZOCFBSIK-/BIC/ZMCFADCNO.
           Append l_t_range.
           CLEAR l_t_range.
           ENDLOOP.
           LOOP AT TB_ZOCFBSIS INTO WA_ZOCFBSIK.
           l_t_range-sign = 'I'.
           l_t_range-option = 'EQ'.
           l_t_range-low = WA_ZOCFBSIS-/BIC/ZMCFADCNO.
           Append l_t_range.
           CLEAR l_t_range.
           ENDLOOP.
              modify l_t_range index l_idx.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    Edited by: AtulMohan Mishra on Dec 27, 2010 1:11 PM

    Hi
    Now i am facing an error during data extraction from Source system
    error message in BW system "Error occurred in the data selection " Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
    when i checked in  SM37 (R3 system) i found the job has been cancelled and Log of this job says
    "Asynchronous sending of InfoIDOCs 2 in task 0001 (0 parallel tasks) DATASOURCE = 0FI_GL_4 
    ABAP/4 processor: SAPSQL_WHERE_CANT_SCAN                                   
    Job cancelled      "   
    it seems to me the Problem in Routine at Info Package level.
    My Requirement is to fetch only those Accounting Doc. No. RECORDS from 0FI_GL_4 data source which are present in Active data table of BSID,BSIK,BSIS ODS's.
    So i want to put logic at Info Package routine .
    1) fetch all Accounting Doc. No.  from Active data table of BSID,BSIK,BSIS Ods's and Match those Accounting Doc. No.'s with the 0FI_GL_4 data source Accounting Doc. No's.if a Accounting Doc. No. match with 0FI_GL_4 data source Accounting Doc no then that corresponding record from 0FI_GL_4 will go to the ODS
    Regards
    Atul

  • ABAP Routine in selection of Info package in 3x

    Hello Experts
    We need to load distinct PO data in 3x server.
    I have added this distinct po values in range table of info package abap routine.
    However its not loading for range table values more than two selections/pos.
    If I try to append more than 2 values,only last one is uploaded.
    However after load, in monitor tab-header , selection paramenters I can see all PO values in selection.
    Some how it works only for two inputs (rows) in range table of ABAP routine in infopackage.
    Anybody has faced such issue? any help is appreciated!
    Edited by: Kanchan Angalwar on Jan 30, 2010 9:59 AM

    Hi,
    Please post your ABAP code here

  • Data selection in info package using ABAP routine.

    Hi,
    when we are  scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO  Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.
    this is very urgent.delivery is tomorrow.

    hi Lekha,
    try following code.
    seems you post the same question twice, one posting is sufficient. and please don't forget to reward helpful answers.
    data: l_idx like sy-tabix.
    read table l_t_range with key
    iobjnm = '0CREATEDON'.
    l_idx = sy-tabix.
    DELETE l_t_range
    WHERE iobjnm = '0CREATEDON'.
    L_t_RANGE-SIGN = 'I'.
    L_t_RANGE-OPTION = 'EQ'.
    if not work, try
    L_t_RANGE-OPTION = 'BT'.
    BT = between
    last 6 month
    L_t_RANGE-LOW = sy-datum - 180.
    current date
    L_t_RANGE-HIGH = sy-datum.
    append l_t_range.
    modify l_t_range index l_idx.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line -
    endform.

  • How to control data load in Info-Package using ABAP?

    Hello Gurus:
    I am trying to resolve couple of issues. 
    1.  I need to load data DAILY Full Load into a Planning cube.  I have the 0NETDUEDATE   for selection in the
         Info-package.  I am getting data from anothe base A/R cube.  I want to Load Daily ONLY those records
         for which the "0NETDUEDATE" is Greater than "System Date".  I think the logic would be IF 0NETDUEDAT
         .GT. SYS-DATUM, bruing the record. What should be the statement in 'Result' for keeping the record? 
         (I don't know ABAP, so need help here...!)
    2.  Similalry, before loading the data above, I want to delete all the existing records from Planning cube where
         0NETDUEDATE is GT System date (records loaded the previosu day need to be deleted as the amounts may
         have changed).  How can I achieve this selective deletion automatically  in PC??
    Appreciate your feedback very much.
    Thanks... SMaa

    Hi Shruti,
    1) If i understand your requirement correctly you need to load only data which has 0NETDATE greater then sydatum.
    So you can do this in infopackage .Infopackage>Data selection->0NETDATE(field)-->type(colum).here you can selecy ABAP type(6).Now you create ABAP code in this.
    Here in ABAP code you need to specify high and low range ,Also the relation character like GT or BT(between).
    i guess some how ur code will look like this
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
        InfoObject      = 0NETDUEDATE
        Fieldname       = NETDUEDATE
        data type       = NUMC
        length          = 0000010
        convexit        = PERI6
    form compute_NETDUEDATE
      tables l_t_range structure rssdlrange
      changing p_subrc like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
              l_idx = sy-tabix.
              l_t_range-low = sy-datum.
              l_t_range-option = 'GT'.
              modify l_t_range index l_idx.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.
    i am not sure about coding but you can surely do it it is like specifying the ranges dynamically(you need to try it out)
    (also as mentioned by others you can do this in traansformation routines)but infopackage routine you can directly write in PROD system.
    2) And regarding the Selective deletion you donu2019t have nay process type in Process chain which does this
    But there is function module u201C rsdri_infoprov_delete " which can be used to develop a program( I guess you must be having a existing ZProgram in ur system already available because this is used commonly.
    Other wise you need to develop a ZProgram for this.
    Thanks and Regards
    Arun

  • Run info package from an ABAP program

    Hi all,
    I need to run an info-package based on values entered by user in a selection screen.
    How can I implement these values in the info-package using the abap program?
    I've searched the forum and found FM RSSM_SDL_START_INFOPACKAGE and BAPI_IPAK_START but there is no option to enter the selections, also I have found the option to select var type 6 - abap code in the info-package (tab  data selection) but didn't understand if I can connect it to an external abap program.
    Thanks,
    Hagit

    Along with BAPI_IPAK_START, you need to use the FM "BAPI_IPAK_CHANGE"...
    there you have the table with structure BAPI6109SEL, which is used to pass selections to infopackage at the run time...
    Sequence u can use is BAPI_IPAK_START, then BAPI_IPAK_CHANGE and finally BAPI_IPAK_START as per ur requirements...

  • Info package ABAP Routine to populate date from and To filed

    Hello Experts,
    I have requirement to populate the From and To dates with the: T-1 to T (Current Date u2013 1 to Current Run Date aka Sy-Datum) at info package level.I have written a code for this but see that From filed is not getting populated but TO filed is filled with current date.Can someone please tell me wats wrongwith my code?It is a delta info pacakage.
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'CPUDT'.
    l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = sy-datum - 1.
      l_t_range-High = sy-datum.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Thanks,

    Was able to tackle this using the following code.
    data: l_idx like sy-tabix.
    data: V_date type sy-datum.
    v_date = sy-datum - 1.
    read table l_t_range with key
         fieldname = 'CPUDT'.
    l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = v_date.
       l_t_range-High = sy-datum.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Thanks,
    I am closing this thread

  • ******Creation of a loading selection for cube in info package level

    Hi,
    when we are  scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO  Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.
    this is very urgent.delivery is tomorrow.
    Regards
    lekha

    hi Lekha,
    try
    data: l_idx like sy-tabix,
    l_month(6) type c,
    l_dtlast6month like sy-datum.
    read table l_t_range with key
    iobjnm = '0CREATEDON'.
    l_idx = sy-tabix.
    DELETE l_t_range
    WHERE iobjnm = '0CREATEDON'.
    L_t_RANGE-SIGN = 'I'.
    L_t_RANGE-OPTION = 'EQ'.
    if not work, try
    L_t_RANGE-OPTION = 'BT'.
    BT = between
    current month
    concatenate sy-datum3(2) sy-datum0(4) into l_month.
    L_t_RANGE-HIGH = l_month.
    last 6 month
    clear l_month.
    l_dtlast6month = sy-datum - 180.
    concatenate l_dtlast6month4(2) l_dtlast6month0(4) into l_month.
    L_t_RANGE-LOW = l_month.
    append l_t_range.
    modify l_t_range index l_idx.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line -
    endform.
    Re: routine as selection in infopackage
    Re: routine as a selection in infopackage 2. Paolo Siniscalco and A.H.P
    Re: abap routine

  • Data selection options in info package

    hi,
    I am using filter for current month while loading data into info provider (let us say 0calmonth). I am using below code in info-package after selecting type '6'  (ABAP editor),
    data: l_s_range type rssdlrange,
    l_date type d.
    l_date = sy-datum.
    l_year = l_date+0(4).
    l_mth = l_date+4(2).
    concatenate l_year l_mth into l_month_high.
    concatenate l_year '01' into l_month_low.
    loop at l_t_range into l_s_range where fieldname = 'CALMONTH'.
    if dy-subrc = 0.
    l_s_range-low = l_month_low.
    l_s_range-low = l_month_high.
    modify l_t_range from l_s_range.
    endif.
    endloop.
    But now I would like to use created date as filter instead of calmonth/year (yyyymm). please note that calmonth has only one value but calendar day will have both from and to values. Please give me code to use created date (mm/dd/yyyy).
    please help me with your code.
    thanks,

    I have got the solution by myself (trial and error method). Solutions: there is a SAP delivered variable to calculate current month (Variable name is 0CMONTH).
    Is there any variable to calculate both previous month and current month as filter value? pls reply.

  • Data Selection in Info Package

    Hi Gurus:
    How to exclude say doc type 'ER' in a Info package...Where can I mention the <> operator in I.pKG..
    Thanks & Regards

    hi MK K,
    or try with infopackage routine, there is button to choose type 'abap routine' and try following code
    DELETE l_t_range
    WHERE fieldname = '[doc type]'
    AND LOW = 'ER'.
    hope this helps.
    sample code
    routine as selection in infopackage

  • Info package Routine - How to write

    Hi ,
    Can any body give me the step step by process on how to write Info package routine. Actually my requirement is to load the current month Data automatically through infopackge . I can write the ABAP code , but i am told to write in Infopackage level.
    Thanks in advance..

    Hi,
    In our case we had a requirement to load the data for the transactions occuring in the last 15 days only, so we have write the routine on the last modified date feild  in the infopackage.so as to select only records modified or created in the last 15 days..
    attached is the sample code....
    data: l_idx like sy-tabix.
      read table l_t_range with key
           fieldname = 'LAST_MODIFIED_DA'.
      l_idx = sy-tabix.
      data : w_cdate type d .
      l_idx = sy-tabix.
      w_cdate = sy-datum.
      w_cdate = w_cdate - 15 .
      L_t_RANGE-LOW  = w_cdate .
      L_t_RANGE-HIGH = sy-datum .
      L_t_RANGE-SIGN = 'I'.
      L_t_RANGE-OPTION = 'BT'.
      append l_t_range.
      modify l_t_range index l_idx.
      p_subrc = 0.
    Hope it helps...
    Regards,
    Umesh.

  • Regarding Info package

    Hello All,
    I am using SAP BW 3.0.
    In data Selection tab of Info package , there is one ABAP routine on 0calday and I want to delete it .
    Could please let me how to do it ?
    Thanks a lot for your reply.

    Hi,
    Goto InfoPackage and in data selection for 0calday, under Type you can find NO 6, so click on Details and see teh code then remove it an dthen remove thr number 6,  and save it it becomes normal.
    Thanks
    Reddy

  • Problem in function BAPI_IPAK_CHANGE : Changing info-package parameter.

    Dear All,
    Would you like please kindly help me regarding my problem ??
    My problem is when i'm gonna run this function (written in subject). It's error, because One of parameter in info-package is mandatory.
    But I have already input value for the mandatory field one, but it always mention that the corresponding field is not input yet.
    Could you kindly help me please ??
    This is my code:
    p_selections-low = 'TSS-ACTIVE'.
    p_selections-sign = 'I'.
    p_selections-OPT = 'EQ'.
    p_selections-fieldname = '9AVERSION'.
    append p_selections.
    IF sy-mandt = '100'. " Development.
      IT_INFOPACKAGE-tINFOPACKAGE = 'ZPAK_4EY7D32RZXLLOJSLAWDNGX6G1'.
      append IT_INFOPACKAGE.
    ENDIF.
    loop at IT_INFOPACKAGE.
      clear P_BAPIRETURN.
      CALL FUNCTION 'BAPI_IPAK_CHANGE'
        EXPORTING
          INFOPACKAGE = IT_INFOPACKAGE-tINFOPACKAGE
        TABLES
          SELECTIONS  = p_selections
          RETURN      = P_BAPIRETURN.
    How can I solve it yah ??
    Is there any idea regarding this ?
    Thanks a lot all for ur time.
    Best regards,
    Daniel Nurindra

    Hi
    this seems to be an APO datasource hence any further testing wont b possible at my system
    You can try this thing
    write a abap routine in infopackage to provide the value 'TSS-ACTIVE'   to the Field 9AVERSION
    p_selections-low = 'TSS-ACTIVE'.
    p_selections-sign = 'I'.
    p_selections-OPT = 'EQ'.
    then try to execute the  infopackage to check no issue with the value of field
    and
    Also try including IOBJNM  in p_selections while FM BAPI_IPAK_CHANGE

  • Problem with info package :Type variables in dataselection tab

    hi,
    i am facing a problem with the info package where, instead of date 'from and to' values if i am providing a Variable, info package is not loading data and the request status flag is in yellow for a long time though the no of records are less.
    the same is working fine if i am providing values for from to to values in the 'data selection' Tab.
    the field i am giving input is date field,i'm converting date into char format and  giving the input in the same format.info package will not work if i provide  '0' or '7' as the variable values.
    anybody having any ideas, that would be help ful.
    Thanx in advance

    Hi Loknath,
              Have a look at this help documents on the creation of Routine.
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a64fae07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b9/2d9778476b11d4b2b40050da4c74dc/frameset.htm
              Also go through this previous thread on the same issue.
    ABAP Routine
              Hope it helps.  Reward if the answer is helpful.
    Cheers,
    Aravindhan

Maybe you are looking for