HR abap :  how to declare internal table to fetch data from 0585 infotype

Hi all ,
I am able to fetch the data from pa0585 infotype for set of employee no , but the problem is as the fields in pa0585 (like Contr to ULIP , NSC , Medical Treatment,Contribution to Certain Pension Funds so on ..) will be changed dynamically and will be displayed based on the amount value in descending order iam not able to store the values of the fileds into internal table . I dont understand how to declare the internal table ..Please help in if u have solved this kind of problem.
I shld get the output in this way ...
Emp No     Name    Medical treatment       Contr to ULIP             ....... so on
101          abc           10000                        150000                      .......so on
102          xyz           12000                        150000                      .......so on
My header shld be fixed and I shld display values in this way .... I can use write statement to display directly .
Thanks ....

Hi
Decalre INFOTYPE
Goto SE37 - Find FM -
READINFOTYPE*

Similar Messages

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

  • How will write SQL query to fetch data from  each Sub-partition..

    Hi All,
    Anyone does have any idea about How to write SQL query to fetch data from Sub-partition.
    Actually i have one table having composite paritition(Range+list)
    Now if i want to fetch data from main partition(Range) the query will be
    SELECT * FROM emp PARTITION(q1_2005);
    Now i want to fetch data at sub-partition level(List) .But i am not able to get any SQL query for that.
    Pls help me to sort out.
    Thanks in Advance.
    Anwar

    SELECT * FROM emp SUBPARTITION(sp1);

  • How to fill internal table with no data in debugging mode

    Hi all,
             I modified one existing program.Now I want to test it.I am not given test data.So in the middle of my debugging, I found that one internal table with no data.My problem is how to fill that internal table with few records in that debugging mode just as we change contents in debugging mode.If I want to proceed further means that internal table must have some records.
    Please I dont know how to create test data so I am trying to create values temporarily in debugging mode only.
    Thanks,
    Balaji

    Hi,
    In the debugging do the following..
    Click the Table button..
    Double click on the internal table name..
    Then in the bottom of the screen you will get the buttons like CHANGE, INSERT, APPEND, DELETE..
    Use the APPEND button to insert records to the internal table..
    Thanks,
    Naren

  • How to declare internal table in SMARTFORM

    Hi experts,
    I have an Internal table in my program and I want to declare in the smartform as well. How and where can I declare? Should I use global definitions and tpyes tab? How can I pass the content of the internal table to the smartform?

    Click Global Defiitions
    In TYPES :
    TYPES : BEGIN OF gty_add,
             name1      TYPE ad_name1,                          " name1
             city1      TYPE ad_city1,  " City
             country    TYPE adrc-country, "Coutnry
             post_code1 TYPE ad_pstcd1, " post code
             street     TYPE ad_street, " street
             house_num1 TYPE ad_hsnm1,  " house number
             tel_number TYPE ad_tlnmbr1," tele number
            END OF gty_add.
    In Global DATA
    GT_ADD     TYPE TABLE OF     GTY_ADD ( Internal table)
    WA_ADD     TYPE     GTY_ADD ( work area)

  • How to declare internal table in BADI with variable name beginning with 0..

    Gurus,
    How to declare an internal table within a BADI. I have to implement a BADI UC_TASK_CUSTOM for BCS to BW load and there i have to  declare an internal table like:
    TYPES:          BEGIN OF t_cube_data,
                    0cs_version       TYPE /bi0/oics_version,
                    0sem_cgcomp       TYPE /bi0/oisem_cgcomp,
                    bcs_vers          TYPE /bic/oibcs_vers,
                    bcs_lcus          TYPE /bic/oibcs_lcus,
                    bcs_ldch          TYPE /bic/oibcs_ldch,
                    bcs_invcom       TYPE /bi0/oibcs_invcom,
                    bcs_litem         TYPE /bic/oibcs_litem,
                    bcs_llob          TYPE /bic/oibcs_llob,
                    bcs_lmay          TYPE /bic/oibcs_lmay,
                    0move_type        TYPE /bi0/oimove_type,
                    pcompany         TYPE /bi0/oipcompany,
                    bcs_lprg          TYPE /bic/oibcs_lprg,
                    figlxref3         TYPE /bic/oifiglxref3,
                    fiscyear         TYPE /bi0/oifiscyear,
                    fiscper3         TYPE /bi0/oifiscper3,
                    fiscvarnt        TYPE /bi0/oifiscvarnt,
                    curkey_gc        TYPE /bi0/oicurkey_gc,
                    unit             TYPE /bi0/oiunit,
                    cs_trn_gc        TYPE /bi0/oics_trn_gc,
                    cs_trn_qty       TYPE /bi0/oics_trn_qty,
              END OF t_cube_data
    But with this declaration it gives a error saying that u cannot have a variable beginning with 0...like 0cs_version....
    but i have to do it for my functionality to wrk...
    Please help me do it....
    how can i declare a internal table that allows me to have variable names that start with 0....
    Please help....Its URGENT....
    Thanks
    Sam

    Murali,
    I need to have 0 before the variable name in the declaration of the internal table....how can i attain that....
    Please suggest...
    Thanks
    Sam

  • How to display internal table or DDIC data into Form

    Hi
         can anybody help me that how can i show the field data from internal table or DDIC into SAPscript form.
    Pls let me know the example of both se38 code and text element screen.

    Why cant u refer a standard sapscript program.
    refer form RVORDER01
    in SE38 refer program RVADOR01
    Thi sis simple example.
    DATA: IT_INVOICEDETAIL LIKE TABLE OF ZINVOICEDETAIL WITH HEADER LINE.
    DATA: TOTAL LIKE ZINVOICEDETAIL-AMOUNT,
          CARRY LIKE ZINVOICEDETAIL-AMOUNT.
    SELECT * FROM ZINVOICEDETAIL INTO TABLE IT_INVOICEDETAIL.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       FORM                              = 'ZDEMO1'.
       CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'HEAD'
      FUNCTION                       = 'SET'
       TYPE                           = 'TOP'
       WINDOW                         = 'MAIN'.
    LOOP AT IT_INVOICEDETAIL.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'BOX'
       WINDOW                         = 'MAIN'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'ITEM'
       WINDOW                         = 'MAIN'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'SUMMARY'
      FUNCTION                       = 'SET'
       TYPE                           = 'BOTTOM'
       WINDOW                         = 'MAIN'.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'.
    In SE71 form u have to create the text element.
    BOX, ITEM,SUMMARY.
    /E  ITEM.
    P1 &IT_INVOICEDETAIL-TOTAL&

  • How to make a table of annual data from a table of quarterly data?

    I've got a table of quarterly data. I'd like to create a table of annual data, where each cell has the sum of the four cells for the four quarters that make up a calendar year.
    I can do this by pasting a formula into every 4th cell of a second column, but I'd really like a way that doesn't require so many paste operations. Also, when I try doing the same thing into a column that doesn't leave three blank cells, I don't get the annual totals I want (the totaling just moves down one cell, rather than four).
    Two related questions:
    Is there anyway to move my data so that the four quarters appear side-by-side in 4 columns? (Then the annualizing would be easy.)
    Is there any way to take every 4th element from a column and put it somewhere?

    pmbrewer
    I'm having trouble picturing what you have. Correct me if I'm wrong, but I see a single column blocked off in groups of 4 cells. You don't mention them, but you must have additional columns with some sort of identifiers including quarter numbers and items? With this picture in mind let's go to your questions.
    pmbrewer wrote:
    I've got a table of quarterly data. I'd like to create a table of annual data, where each cell has the sum of the four cells for the four quarters that make up a calendar year.
    I can do this by pasting a formula into every 4th cell of a second column, but I'd really like a way that doesn't require so many paste operations.
    This can be done but you're right, it's awkward and can be handled better as you suggest in the first question below.
    Also, when I try doing the same thing into a column that doesn't leave three blank cells, I don't get the annual totals I want (the totaling just moves down one cell, rather than four).
    Can you explain this more clearly? Perhaps give an example?
    Two related questions:
    Is there anyway to move my data so that the four quarters appear side-by-side in 4 columns? (Then the annualizing would be easy.)
    This can be done and you're right, it's easier. How much data has to be moved?
    Is there any way to take every 4th element from a column and put it somewhere?
    What do you mean by this?
    I'm sure members of the forum will be able to help you with a better understanding of your problem. Ultimately I see a table looking something like below:
    pw

  • Please let me know how to write the Query to fetch data from tables

    Hi Folks,
    Please let me know how to get the data from  different tables using the functionality SQ03,SQ02  and SQ01 .
    Helpful answers will points awarded.
    Regards,
    Ram.

    Dear Ram,
    Please find the below link which gives in detail with screen shots.
    [SAP Query|http://media.techtarget.com/searchSAP/downloads/Teach_yourself_SAP_C20.pdf#search=%22CREATE%20REPORT%20USING%20SQVI%20%2C%20SAP%22]
    Thanks
    Murtuza

  • How to find the table in which data from a structure sits

    Hi,
    I want to know how to find the exact table where data sitting in various structures during runtime are stored.
    For instance,in ME23N we have various tabs and data in those are held in various structures. This we can see by checking the technical setting of each field.
    I want to know in which table the data is actually stored for each field and how to find them.
    Any other means other than using "WHERE USED" option?
    Thanks
    CM

    After checking for technical field from the screen, when you reach out to structure, you can dbl click on the particular field's data element. From this data-element you can get to know in which tables it is used. Also if the data element refers to some master data field then you can check out its domain and in the domain you can refer the<b> value table</b> for that domain. This is what i will do if i am not sure about anything.
    Hope it will help a little.
    Jignesh.

  • How to update a table AUTOMATICALY with data from a .txt file??

    HI ,
    I want to upload data which is in a notepad file and Create a table. This notepad file stores a string of datas. Here, the data comes in to the .txt file every second.
    (The data is actually stored into the notepad file when a program is executed in Processing.js software)
    Is it possible to do the following using APEX ? ?
    1. This table has to be updated automatically once in 2 minutes (I want this completely automatic, no human intervention -- no update buttons)
    2. A report is to be created in a apex application with this table, it should reflect the updates in the table every 2 minutes.
    Is it possible?? give your ideas.. I want to do this soon for my engineering project :) Any help from you is appreciated. :)
    Edited by: user13301695 on 28-Mar-2011 10:09

    And how do you expect your database server to access a local file in your machine ?
    Is the file accessible from outside your machine say inside a webserver folder so that some DB process can poll on the file ?
    Or, is your DB server in the same machine where you have the text file ?
    You will have to figure out the file acess part before automating user interaction or even auto-refreshing.

  • How to fill the table UD_SAPHR with data from SAP HR Connector

    Hi, I`ve searched all the forrum but didn`t find how to map fields from connector form to the any field in OIM. I tryied with entity adapters but failed to reach any result. The problem is that I even cant put incoming data with connector to the table of the connector form (UD_SAPHR).
    I will be grateful for any help. Below is the cut of the log. In few words - how to map, for example, field "Department=40000260" to the field in the USR table or UD_SAPHR table (or any other - to have this information in OIM).
    OIM-9101Upd5, OS-Oracle Enterprise Linux4x64,SAP COnnector-SAP-ER90460, Database-Oracle 10gx64, Appication server-SOA(Oracle Application server)
    INFO,01 Jul 2009 14:08:11,504,[XL_INTG.SAPHRMS],getDetailsForRecon(): *****************************
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getDetailsForRecon(): 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],reconcileEmp(): SAPUserRecon for SAP : SAP HRMS IT Resource:EmployeeId=00000017
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],SAPUserRecon:returnDate(): Employee Status***3
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],EmpStatus***3
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,506,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@790a37
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@282f10
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],sEmployeeUserID***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],UserKey***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus fetch from target System is 3
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus Mentioned in Task scheduler is 3
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sUser get from Resource Object Table ***
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sXelUser get from Xellerate Table***
    el Number=00000017, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п⌠п╣пҐпҐп╟пЄп╦п╧, Last Name=п■п╟п╡я▀пЄп╬п╡, Role=Consultant, Middle Name=FromHRMS=1}╣п╡п╦я┤, Userr
    INFO,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1888/12/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п⌠п╣пҐпҐп╟пЄп╦onnel Number=00000017, EmployeeId=00000017, Country=RU, Title=Mr, Department=40000260, MiddleName=п░пҐпЄя─п╣п╣п╡п╦я┤, LastName=п■п╟п╡я▀пЄп╬п╡}
    INFO,01 Jul 2009 14:08:11,711,[XL_INTG.SAPHRMS],disableEnableXelUser(): Get UserKey of user with reconKey: 00000017 for SAP SAP HRMS IT Resource
    DEBUG,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],disableEnableXelUser(): Xellerate RS Count*** 0
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp(): User Reconciliation for Create & Modify User is completed.
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp() **** DONE RECONCILIATION

    That is my problem. I get only those fields, that are in the xellerate user standard form. And I need also fields "Department" and "City".
    This information connector gets from SAP (as it is seen in log) but doesn`t save it anywhere inside the OIM, though such fields exists in the UD_SAPHR table (and correspondend form) but this table remains empty after reconciliation.
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create XL user reconciliation event***{Email=, Organization=Xellerate Users, User ID=00000072, Personnel Number=00000072, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п°пҐп╣, Last Name=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟, Role=Consultant, Middle NamomHRMS=1}
    INFO,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1970/01/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п°пҐп╣, Person Number=00000072, EmployeeId=00000072, Country=RU, Title=Mr, Department=40000240, MiddleName=п·я┌п©я┐я│п╨, LastName=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟}
    Edited by: user6645106 on 03.07.2009 10:12

  • Report question: how to use external table to bring data from excel file?

    i need to import excel data into oracle report, how to do that? thanks.

    Hi... What is the error message you get when using external tables?
    You must create a control center connection in the Connection Explorer.
    I recommend you read this:
    http://download-east.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/toc.htm
    Look for the following sections:
    - Using External Tables (and the "External Tables versus Flat File Operators" sub section)
    - About Flat File Modules
    - Chapter 16, Deploying Target Systems
    Regards,
    Marcos

  • How to pass internal table with data in ABAP OO

    Hi experts ,
    Here is the problem...
    I create a screen 100 and use the internal table to get data from database, and then press the button on screen 100 , it will call screen 200.
    I use ABAP OO code in screen 200, and i want to keep the internal table with data that i get from the sceen 100 parts, but it seems that it just supports to create a new internal table and get data from database in ABAP OO. That means i need to create a new table to save the data in internal table ? Or there is any other solution something like exporting or memory id ...
    ps . the internal table in screen 100 is declared in global area, the beginning of the code.
    Please give me some advice, thanks a lot!
    Regards ,
    Claire

    I have already know how to do, here is my code:
    METHODS fill_tree importing itab2 like itab1.
    CALL METHOD: me->fill_tree exporting itab2 = itab1.
    In METHOD fill_tree,
    declare
    data: itab3 TYPE STANDARD TABLE OF itab,
    itab3[] = itab1[].
    It is useful to me, thanks a lot.

  • How to Convert internal table data into text output and send mail in ABAP

    Hi All,
    Good Morning.
    Taking a glance at a code that converts internal table data to an Excel file in ABAP. also checked how to send this excel to mailing list as attachment.
    But thought of doing it without excel.
    I mean, I have an internal table which contains fields of all types (character,integer,date,time). Since it is only around 4 to 5 rows in it (output),why to convert it to excel. not required!!.  Instead I  want to send this output to User's mails as Normal mail body with No attachments.
    Could anybody please suggest me a way as to how to send internal table data as a mail ( not as an excel or PDF etc).
    as of now my findings are, it is quite complex to convert internal table data to email (Text) format. but i believe if there is some way of doing it.
    Best Regards
    Dileep VT

    here's something I have used in the past where we send out information about failed precalculation settings (which are stored in internal table gt_fail)
    notice we use gt_text as "mail body"
    TRY.
    *     -------- create persistent send request ------------------------
           gv_send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document -------------------------------
    *     create text to be sent
           wa_line = text-001.
           APPEND wa_line TO gt_text.
           CLEAR wa_line.
           APPEND wa_line TO gt_text.
           LOOP AT gt_fail ASSIGNING <fs_fail>.
             MOVE <fs_fail>-retry_count TO gv_count.
             CONCATENATE text-002
                         <fs_fail>-setting_id
                         text-003
                         gv_count
                         INTO wa_line SEPARATED BY space.
             APPEND wa_line TO gt_text.
             CLEAR wa_line.
           ENDLOOP.
           APPEND wa_line TO gt_text.
           wa_line = text-007.
           APPEND wa_line TO gt_text.
    *     create actual document
           gv_document = cl_document_bcs=>create_document(
                           i_type    = 'RAW'
                           i_text    = gt_text
                           i_length  = '12'
                           i_subject = 'Failed Precalculation Settings!' ).
    *     add document to send request
           CALL METHOD gv_send_request->set_document( gv_document ).
    *     --------- set sender -------------------------------------------
           gv_sender = cl_sapuser_bcs=>create( sy-uname ).
           CALL METHOD gv_send_request->set_sender
             EXPORTING
               i_sender = gv_sender.
    *     --------- add recipient (e-mail address) -----------------------
           LOOP AT s_email INTO wa_email.
             MOVE wa_email-low TO gv_email.
             gv_recipient = cl_cam_address_bcs=>create_internet_address(
                                               gv_email ).
             CALL METHOD gv_send_request->add_recipient
               EXPORTING
                 i_recipient = gv_recipient
                 i_express   = 'X'.
           ENDLOOP.
    *     ---------- set to send immediately -----------------------------
           CALL METHOD gv_send_request->set_send_immediately( 'X' ).
    *     ---------- send document ---------------------------------------
           CALL METHOD gv_send_request->send(
             EXPORTING
               i_with_error_screen = 'X'
             RECEIVING
               result              = gv_sent_to_all ).
           IF gv_sent_to_all = 'X'.
             WRITE text-004.
           ENDIF.
           COMMIT WORK.
    *   exception handling
         CATCH cx_bcs INTO gv_bcs_exception.
           WRITE: text-005.
           WRITE: text-006, gv_bcs_exception->error_type.
           EXIT.
       ENDTRY.
    with the following declarations
    * TABLES                                                               *
    TABLES:
       adr6,
       rsr_prec_sett.
    * INTERNAL TABLES & WORK AREAS                                         *
    DATA:
       gt_fail          TYPE SORTED TABLE OF rsr_prec_sett
                             WITH UNIQUE KEY setting_id run_date,
       gt_text          TYPE bcsy_text,
       wa_fail          LIKE LINE OF gt_fail,
       wa_line(90)      TYPE c.
    FIELD-SYMBOLS:
       <fs_fail>        LIKE LINE OF gt_fail.
    * VARIABLES                                                            *
    DATA:
       gv_count(4)      TYPE n,
       gv_send_request  TYPE REF TO cl_bcs,
       gv_document      TYPE REF TO cl_document_bcs,
       gv_sender        TYPE REF TO cl_sapuser_bcs,
       gv_recipient     TYPE REF TO if_recipient_bcs,
       gv_email         TYPE adr6-smtp_addr,
       gv_bcs_exception TYPE REF TO cx_bcs,
       gv_sent_to_all   TYPE os_boolean.
    * SELECTION-SCREEN                                                     *
    SELECT-OPTIONS:
       s_email          FOR adr6-smtp_addr NO INTERVALS MODIF ID sel.
    DATA:
       wa_email         LIKE LINE OF s_email.

Maybe you are looking for