Hi guys, This is very urgent, Creating radio button dynamically.

Hi guys,
I have this requirement where i need to access a table and depending on the possible answers for that question i need to display radio buttons on the next screen.
lets say if i have the possible answers as YNX. i have to display three radio buttons besides the text one for YES, one for NO, one for N/A. I know this is kind of tricky but one more thing. if the possible answers are YN then i shud only have 2 radiobuttons one YES, one NO.
and there are not only one text that im printing but there are multiple texts and radio buttons for each of them besides it.
its urgent,
Thanks

Hi,
here a short example:
DATA: BEGIN OF SPOPLIST OCCURS 15.
        INCLUDE STRUCTURE SPOPLI.
DATA: END   OF SPOPLIST.
DATA: ANTWORT TYPE C.
DATA: VALUE(3).
VALUE = 'YNX'.
SPOPLIST-VAROPTION = 'Yes'.
APPEND SPOPLIST.
SPOPLIST-VAROPTION = 'No'.
APPEND SPOPLIST.
IF VALUE = 'YNX'.
  SPOPLIST-VAROPTION = 'N/A'.
  APPEND SPOPLIST.
ENDIF.
CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
  EXPORTING
    TITEL            = 'Set your Answer'
    TEXTLINE1        = 'Please select'
    TEXTLINE2        = 'You can chosse this'
    TEXTLINE3        = 'Options'
  IMPORTING
    ANSWER           = ANTWORT
  TABLES
    T_SPOPLI         = SPOPLIST
  EXCEPTIONS
    TOO_MUCH_ANSWERS = 1
    TOO_MUCH_MARKS   = 2.
IF ANTWORT = 'A'.
  WRITE: 'Popup canceled.'.
ELSE.
  WRITE: 'This is select:'.
  LOOP AT SPOPLIST WHERE SELFLAG = 'X'.
    WRITE: SPOPLIST-VAROPTION.
  ENDLOOP.
ENDIF.
in the Docu of the FM there is another example with checkboxes.
Hope it helps.
Regards, Dieter

Similar Messages

  • Create Radio button dynamically in Table column.

    HI All
       I have used following code to create radio button dynamically. but it's getting dump saying that Could not find attribute STATUS. 
    Here STATUS is the attribute of the node in View context. But why this dump is coming. 
    Please correct me if any thing worng.
      DATA: lr_radio TYPE REF TO cl_wd_radiobutton.
      DATA: lr_containr TYPE REF TO cl_wd_transparent_container.
      DATA: lr_data TYPE REF TO cl_wd_flow_data.
      IF first_time = abap_true.
        lr_containr ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
        lr_radio = cl_wd_radiobutton=>new_radiobutton(
        view = view
        id = 'RADIO'
        text = 'Enroll'
        bind_selected_key = 'STATUS'
        key_to_select = 'STATUS' ).
        lr_data = cl_wd_flow_data=>new_flow_data( element = lr_radio ).
        lr_radio->set_layout_data( lr_data ).
        lr_containr->add_child( lr_radio ).
      ENDIF.
    Thank you very much
    Ram

    Hi Rama,
    I solved it.check this code.
    i think u did mistake in creating radio button you are not passing the 
    BIND_KEY_TO_SELECT
      instead you are passing KEY_TO_SELECT.
    data:lr_column2 type ref to cl_wd_table_column,
         lr_radio type ref to cl_wd_radiobutton.
       lr_column2 = obj_table->get_column(
                   id         = 'TABLE1_PLANETYPE'
    *              INDEX      = INDEX
    lr_radio = cl_wd_radiobutton=>new_radiobutton(
    *      BIND_ENABLED        = BIND_ENABLED
           BIND_KEY_TO_SELECT  = 'STATUS'
    *      BIND_KEY_VISIBLE    = BIND_KEY_VISIBLE
    *      BIND_READ_ONLY      = BIND_READ_ONLY
           bind_selected_key   = 'STATUS'
    *      BIND_STATE          = BIND_STATE
    *      BIND_TEXT           = BIND_TEXT
    *      BIND_TEXT_DIRECTION = BIND_TEXT_DIRECTION
    *      BIND_TOOLTIP        = BIND_TOOLTIP
    *      BIND_VISIBLE        = BIND_VISIBLE
    *      ENABLED             = ABAP_TRUE
    *      EXPLANATION         = EXPLANATION
           ID                  = 'RAD1'
    *      KEY_TO_SELECT       = KEY_TO_SELECT
    *      KEY_VISIBLE         = KEY_VISIBLE
    *      ON_SELECT           = ON_SELECT
    *      READ_ONLY           = READ_ONLY
    *      STATE               = E_STATE-NORMAL
           TEXT                = 'Test'
    *      TEXT_DIRECTION      = E_TEXT_DIRECTION-INHERIT
    *      TOOLTIP             = TOOLTIP
    *      VIEW                = VIEW
    *      VISIBLE             = E_VISIBLE-VISIBLE
    lr_column2->set_table_cell_editor( the_table_cell_editor = lr_radio  ).
    Thanks,
    Suman

  • Pls help me , this is very urgent

    I have a column called description with values as follows
    Admin Support
    Admin Support
    Admin Support
    Air Support
    Cable - Disaster Response
    Cable - Operational Support
    Cable - PMPP (Preparedness)
    Cable - Program Support
    Capacity Building
    Capacity Building
    Chemical, Biological, Radiological, & Nuclear
    Commodity Procurement Contract
    Communications
    Computer Support
    Contract Services (warehousing)
    Coordination
    Coordination
    Disaster Assistance Response Program
    I have another column in this table for which i have to update with the sequence nos. The update should happen in such a way that if the description is same then i have update with sequence.currval and if the description is different then i have to update with sequence.nextval for each row as follows
    Admin Support----- 1
    Admin Support----- 1
    Admin Support----- 1
    Air Support----- 2
    Cable - Disaster Response----- 3
    Cable - Operational Support----- 4
    Cable - PMPP (Preparedness)----- 5
    Cable - Program Support----- 6
    Capacity Building----- 7
    Capacity Building----- 7
    Chemical, Biological, Radiological----- 8
    Commodity Procurement Contract----- 9
    Communications----- 10
    Computer Support----- 11
    Contract Services----- 12
    Coordination----- 13
    Coordination----- 13
    Disaster Assistance Response----- 14
    Pls help me how do i do this, this is very urgent
    Thanks
    Vinod

    If you want your sequence to start from 1, you can eliminate creating a special sqeuence for this, you can do it using ROWNUM in SQL,update your_table a
    set (a.description, a.col1)
       = (select c.description, c.rn from
            (select b.description, rownum rn from
               (select distinct description from your_table order by description) b) c
         where c.description = a.description);P.S Just an alternative.
    Thx,
    SriDHAR

  • What is the diffrence  between "Key to Select" and "Selected Key" while creating Radio  Buttons?

    While creating radio buttons there is a confusion regarding two properties "Key to Select" and "Selected Key".Can anybody explain it with example?
    Thanks,
    Vimal

    Hi Vimal,
    Please find my explanation as below
    Key to Select: This is the unique key for each radio button to identify which one is selected
    Selected Key: This holds the "KEY" of selected radio button
    Example:
       Let us say we have 2 radio buttons : Male & Female
         Create a context attribute SELECTED_KEY of type STRING.
         Create an action ON_SELECT for radio button select event
         Now,
         the properties for "MALE" radio button as below
              KEY_TO_SELECT = 'M'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
         The properties for 'Female" radio button as below
              KEY_TO_SELECT = 'F'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
    If we select radio button 'Male', we get the key as 'M' and for 'Female' radio button 'F'.
    check inside the event handler method ONACTIONON_SELECT, you get the 'KEY' of selected radio button.
    So, the context attribute 'SELECTED_KEY'  gets filled with the key of selected radio button
    Hope this helps you in distinguishing the 'KEY TO SELECT' & 'SELECTED KEY' .
    Regards,
    Rama

  • Urgent regarding radio buttons

    hi friends i created radio buttons with the if else i am checking the output is coming wight..but can we ktake case statement..? if so after case what i have to wright..?
    .ParameterS:a1 type c radiobutton group radi .
    ParameterS:a2 type c radiobutton group radi.
    ParameterS:a3 type c radiobutton group radi.
    start-of-selection.
    *if a1 = 'X'.
    *WRITE: ' A1 SELECTED'.
    *ELSEIF A2 = 'X'.
    *WRITE: '   A2 SELECTED'.
    *ELSE.
    *WRITE: '  A3 SELECTED'.
    *ENDIF.
    as follows..?
    CASE radi.
    when a1.
    write: ' a1 selected'.
    when a2.
    write: ' a2 selected'.
    when a3.
    wruite: 'a3 selected'.
    when others.
    WRITE: 'A2 SELECTED'.
    endcase....
    but this radi is not accpetin can my question is can i write case here if so how..?plz reply asap

    Hi,
    You cannot do so... since Case-EndCase can be used to value of a single variable, and depending on its value, you perform some action.
    Though it is meaningless to use Case-Endcase for your version of code, since it is not appropriate here, I am just writing it down the corresponding CASE-ENCASE version of your IF-ELSE-ENDIF so that you can better understand how it works.
    Data: v_param(2) type c.
    If a1 = 'X'.
        v_param = 'A1'.
    ELSEIF A2 = 'X'.
        v_param = 'A2'.
    ELSE.
        v_param = 'A3'.
    ENDIF.
    Case v_param.                       " so here you are checking the value of a single variable
      When 'A1'.                           " checking value using When statement
        write: ' a1 selected'.
      When 'A2'
        write: ' a2 selected'.
      When 'A3'
        write: ' a3 selected'.
    EndCase.
    Hope it clears your doubt and answers your question.
    Regards, Tapas
    <Pls reward if useful or answered>

  • Creating radio buttons in XML Forms Builder

    Hi everyone,
    I can't seem to find any instructions on how to create Radio Buttons in XML Forms builder, anyone has a link or instruction on how to?
    Thanks,
    Samer

    Hi Samer,
    So taking the example for the slides, you need first to create a new child under DataModel for the DataSchema. You can name it "Gender".
    Click on the Radio Button in the Toolbar and drag "Gender" from the left hand site into the Edit Form.
    It should have already a first radio button and in the box on the bottum right you should see the reference in the Schema Reference field (/DataShema/DataModel/Gender).
    You can now drag a second button from the toolbar and place it behind the first one. Make sure you add the same value in the Schema Reference field.
    On the Show form or RenderListItem you need a Control Selector as mentioned on slide 18. You can just use right mouse click -> Add. Go on the new item on the right hand side, and click on "Add Multiple Labels". You can choose now how many radio buttons you have, here 2.
    In our example enter in one Label "Condition" = "true" and "Label" = "Male" and in the other "Condition" = "false" and "Label" = "Female".
    Finally, make sure that the Control Selector has the Schema Reference also as defined above (/DataShema/DataModel/Gender).
    Hope this helps,
    Robert

  • How to create radio button in reports

    Hi Friends,
    Can any body please tell how to create radio button in reports.
    Thanks,
    Nagendra

    Hi Nagendra,
        But why do u need a single radio button, any specific reason...
      try this
    REPORT  ZCHA1.
    PARAMETERS : P_RAD1 RADIOBUTTON GROUP RAD,
                 P_RAD2 RADIOBUTTON GROUP RAD.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'P_RAD2'.
          SCREEN-INVISIBLE = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Creating Radio Button in Module Pool

    Hi All,
    I have created a Two radio button on screen 100.
    When I run this I will get both radio button selected.
    I am unable to group these.
    How can I group both?
    I am using 4.7. I am not getting Graphical Layout of the screen.
    How to group in classical only.

    Hi Praveen,
    Steps to group radiobuttons with alphanumeric editor.
    <li>Place the cursor on first radiobutton and click on Graphical element button in the application toolbar.
    <li>Now place the cursor on 2nd radiobutton and click on Define graph.group button in the application toolbar.
    <li>Now radiobuttons are grouped and first one is defaulted.
    Thanks
    Venkat.O

  • How to create radio button between two slection screen

    hello all.
    could you please guide me how to create radio button between two SELECTION-SCREEN  in screen painter.
    Thank you,
    srinivas

    hi
    SEE THIS CODE
    REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R4 RADIOBUTTON GROUP G2.
    SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    <b>rEWARD IF USEFULL</b>

  • How to create radio button in module pool

    Hi All,
    Please tell me step by step procedure for creating radio button in module pool.give code for two radiobutton and at a time only one should be selected.
    Thanks
    Narendra

    Hi naren,
    In the layout of screen painter click on radiobutton option in the left icons and create in the layout and give name as Radio1 and again select the radiobutton icon and create another and give the name as radio2 and by dragging the cursor select the 2 radiobuttons and goto menubar->edit->grouping->radiobuttons grouping->define.
    Double clcik on the 2 radiobuttons and give FCT code for the coding purpose of the 2 radiobuttons.
    Cheers!!
    VEnk@

  • Creating radio button and make it ennable

    Hello All ,
    Please help me out in creating radio button and make it ennable in web dynpro in java application .
    If Possible please send the sample code as well.
    Thanks
    jyothi.

    Hi Venkat,
    The default value needs to be set manually as John has suggested. To be more precise, if the context node is "RadioButtonValues" and the context attribute is 'RadioBtnVal', then in wdDoInit() method, include the following:
    wdContext.currentRadioButtonValuesElement.setRadioBtnVal("Male");
    Regards,
    Pavithra

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • How can I add radio buttons dynamically?

    Hi,
    I need to add radio buttons dynamically. I will be having a set of options which will be coming form a web service call and I need to convert those options into radio buttons and show it to the user. How can I do it?
    Thanks,
    Hali George

    Yep .... I too would  rather have seen more time put into that kind of stuff than parallax scrolling.

  • Hi this is very urgent

    could u plz explain how to populate the data into  the final internal table in this program.
    i need how to add this all select statement into one final internal table
    plz provide me
    i am using ALVgrid repors
    could u plz explain clearly with comments 
    very urgent
    TABLES: eban,                 "Purchase Requisition
            ekko,                 "Purchasing Document Header
            mereq3328,            "Purchase Requisition: Contact
            cdpos,                "Change document items
            cdhdr,                "Change document header
            dd04t.                "R/3 DD: Data element texts
    TYPE-POOLS: slis.
    TYPES :
    *declaration of type for internal table to be passed in ALV report as
    *internal table.
          BEGIN OF typ_req1,
             statu               TYPE    eban-statu,                        "Processing status of purchase requisition
             banpr               TYPE    eban-banpr,                        "Requisition Processing State
             bsart               TYPE    eban-bsart,                        "Purchase requisition document type
             banfn               TYPE    eban-banfn,                        "Purchase requisition number
             bnfpo               TYPE    eban-bnfpo,                        "Item number of purchase requisition
             ebeln               TYPE    eban-ebeln,                        "Purchase order number
             ebelp               TYPE    eban-ebelp,                        "Purchase order item number
             matnr               TYPE    eban-matnr,                        "Material Number
             txz01               TYPE    eban-txz01,                        "Short text
             creator_name        TYPE    mereq3328-creator_name,            "Creator
             afnam               TYPE    eban-afnam,                        "Name of requisitioner/requester
             lifnr               TYPE    eban-lifnr,                        "Desired vendor
             flief               TYPE    eban-flief,                        "Fixed Vendor
             ekgrp               TYPE    ekko-ekgrp,                        "Purchasing Group
             tabkey              TYPE    cdpos-tabkey,                      "Item Number
             ddtext              TYPE    dd04t-ddtext,                      "Short Text
             chngind             TYPE    cdpos-chngind,                     "Action
             value_new           TYPE    cdpos-value_new,                   "New Value
             value_old           TYPE    cdpos-value_old,                   "Old Value
             username            TYPE    cdhdr-username,                    "Name
             udate               TYPE    cdhdr-udate,                       "Date
             utime               TYPE    cdhdr-utime,                       "Time
             changenr            TYPE    cdhdr-changenr,                    "Doc Number
             tcod                TYPE    cdhdr-tcode,                       "Transaction Code
          END OF typ_req1,
    Type declaration for EBAN table fields
          BEGIN OF typ_eban,
             statu               TYPE    eban-statu,                        "Processing status of purchase requisition
             banpr               TYPE    eban-banpr,                        "Requisition Processing State
             bsart               TYPE    eban-bsart,                        "Purchase requisition document type
             banfn               TYPE    eban-banfn,                        "Purchase requisition number
             bnfpo               TYPE    eban-bnfpo,                        "Item number of purchase requisition
             ebeln               TYPE    eban-ebeln,                        "Purchase order number
             ebelp               TYPE    eban-ebelp,                        "Purchase order item number
             matnr               TYPE    eban-matnr,                        "Material Number
             txz01               TYPE    eban-txz01,                        "Short text
             afnam               TYPE    eban-afnam,                        "Name of requisitioner/requester
             lifnr               TYPE    eban-lifnr,                        "Desired vendor
             flief               TYPE    eban-flief,                        "Fixed Vendor
          END OF typ_eban,
    Type declaration for ekko table fields
          BEGIN OF typ_ekko,
             ekgrp               TYPE    ekko-ekgrp,                        "Purchasing Group
          END OF typ_ekko,
    Type declaration for cdpos table fields
          BEGIN OF typ_cdpos,
             fname               TYPE    cdpos-fname,
             changenr            TYPE    cdpos-changenr,                    "Doc Number
             objectclas          TYPE    cdpos-objectclas,                  "Object class
             objectid            TYPE    cdpos-objectid,                    "Object value
             tabkey              TYPE    cdpos-tabkey,                      "Item Number
             chngind             TYPE    cdpos-chngind,                     "Action
             value_new           TYPE    cdpos-value_new,                   "New Value
             value_old           TYPE    cdpos-value_old,                   "Old Value
            CHNGIND    type    cdpos-CHNGIND
          END OF typ_cdpos,
    Type declaration for cdhdr table fields
          BEGIN OF typ_cdhdr,
             objectclas          TYPE    cdhdr-objectclas,                  "Object class
             objectid            TYPE    cdhdr-objectid,                    "Object value
             username            TYPE    cdhdr-username,                    "Name
             udate               TYPE    cdhdr-udate,                       "Date
             utime               TYPE    cdhdr-utime,                       "Time
             changenr            TYPE    cdhdr-changenr,                    "Doc Number
             tcod                TYPE    cdhdr-tcode,                       "Transaction Code
             change_ind          TYPE    cdhdr-change_ind,
             objectid1(10)       TYPE    c,
          END OF typ_cdhdr,
    Type declaration for dd04t table fields
          BEGIN OF typ_dd04t,
             ddtext              TYPE    dd04t-ddtext,                      "Short Text
            END OF typ_dd04t,
    Type declaration for dd04t table fields
          BEGIN OF typ_mereq3328,
             creator_name        TYPE    mereq3328-creator_name,            "Creator
          END OF typ_mereq3328.
    *&   delcaratilon of internal table                                   *
          DATA:
      Internal table for final internal table
             it_req1             TYPE    STANDARD TABLE OF typ_req1,
      Internal table for eban table
             it_eban             TYPE    STANDARD TABLE OF typ_eban,
      Internal table for ekko table
             it_ekko             TYPE    STANDARD TABLE OF typ_ekko,
      Internal table for cdpos table
             it_cdpos            TYPE    STANDARD TABLE OF typ_cdpos,
      Internal table for cdhdr table
             it_cdhdr            TYPE    STANDARD TABLE OF typ_cdhdr,
      Internal table for cdhdr1 table
             it_dd04t            TYPE    STANDARD TABLE OF typ_dd04t,
      Internal table for mereq3328 table
             it_mereq3328        TYPE    STANDARD TABLE OF typ_mereq3328,
    Internal table for ALV Field Catalog
           it_fieldcat_alv     TYPE   slis_t_fieldcat_alv,
    Internal table for ALV Event
           it_events           TYPE   slis_t_event.
    *& Declaration of Work Area
      work area for final internal table
         wa_req1 TYPE typ_req1,
      work area for eban table
             wa_eban             TYPE    typ_eban,
      work area for ekko table
             wa_ekko             TYPE    typ_ekko,
      work area for cdpos table
             wa_cdpos            TYPE    typ_cdpos,
      work area for cdhdr table
             wa_cdhdr            TYPE    typ_cdhdr,
      work area for dd04t table
             wa_dd04t            TYPE    typ_dd04t,
      work area for mereq3328 table
             wa_mereq3328        TYPE    typ_mereq3328.
    Declaration  of work area for Field Catalog
           wa_fieldcat         TYPE    slis_fieldcat_alv,
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_bsart    FOR     eban-bsart   OBLIGATORY
                               DEFAULT 'znb1' TO 'znb2',                 "Purchase requisition document type
                    s_banfn    FOR     eban-banfn,                       "Req Number
                    s_bnfpo    FOR     eban-bnfpo,                       "Req Item Number
                    s_ebeln    FOR     eban-ebeln,                       "Purchase Order Number
                    s_ebelp    FOR     eban-ebelp,                       "Purchase Order Item Number
                    s_matnr    FOR     eban-matnr.                       "Material Number
    PARAMETER:      p_txz01    TYPE    eban-txz01.                       "Short text
    SELECT-OPTIONS: s_creat    FOR     mereq3328-creator_name,           "Creator
                    s_afnam    FOR     eban-afnam,                       "Requester
                    s_lifnr    FOR     eban-lifnr,                       "Desired vendor
                    s_flief    FOR     eban-flief.                       "Fixed Vendor
    SELECTION-SCREEN END OF BLOCK b.
    SELECT objectclas
                 objectid
                 changenr
                 username
                 udate
                 utime
                 tcode
                 change_ind FROM cdhdr
                 INTO TABLE it_cdhdr
                 WHERE objectclas = 'BANF'
                 AND   udate      =  sy-datum .
    SELECT    objectclas
                    objectid
                    changenr
                    chngind
                    tabkey
                    value_new
                    value_old
                    FROM cdpos INTO TABLE it_cdpos
                    FOR ALL ENTRIES IN it_cdhdr
                    WHERE changenr EQ it_cdhdr-changenr AND
                          chngind EQ it_cdhdr-change_ind AND
                          objectclas EQ it_cdhdr-objectclas AND
                          objectid EQ it_cdhdr-objectid.
    IF NOT it_cdhdr[] IS INITIAL.
            SELECT banfn
                   bnfpo
                   bsart
                   statu
                   afnam
                   txz01
                   matnr
                   lifnr
                   ebeln
                   ebelp
                   banpr
                   FROM  eban INTO TABLE it_eban
                   WHERE "banfn = it_cdhdr-objectid
                      banfn IN s_banfn
                     AND bnfpo IN s_bnfpo
                     AND bsart IN s_bsart
                     AND matnr IN s_matnr
                     AND lifnr IN s_lifnr
                     AND flief IN s_flief.
          ENDIF.
    IF NOT it_cdpos[] IS INITIAL.
            SELECT rollname
                   ddtext
                   FROM dd04t INTO TABLE it_dd04t
                   FOR ALL ENTRIES IN it_cdpos
                   WHERE rollname = it_cdpos-fname.

    hi rajeshreddy,
    create one global internal table for the all output fields,
    then move all these fields into this global internal table  and pass into your gird FM.
    i.e. see the below code for reference ,
    loop at <itab> into <wa>.
    read table <itab1> into <wa1> with key <keyfield> = <wa-field>.
    if sy-subrc = 0.
    move-correspondig <wa1> to <globalwa>.
    move-correspondig <wa> to <globalwa>.
    endif.
    then read another <itab2> into <wa2> with key <keyfield> = <wa-field>.
    if sy-subrc = 0.
    move-correspondig <wa2> to <globalwa>.
    endif.
    endloop.
    like this u can move all output fields into one global internal table but u should have relation among all the internal tables.
    reward points if helpful,
    regards,
    seshu.

  • I have forgotten my passcode, how can I access my phone without restoring it!! PLEASE HELP!! THIS IS VERY URGENT

    I always change my password and with this particular one I somehow managed to forget it, I have gone completely blank and I can't remember it. I dont want to restore my phone because I don't want to delete my photos and my songs in itube....PLEASE HELP THIS IS VERY URGENT

    iTunes
    If you've synced your device with iTunes, you can restore your device.
    Connect the device to the computer you normally sync with.
    Open iTunes. If iTunes asks you to enter your passcode or asks you to allow access, try another computer that you've synced with. Or use recovery mode. (Click the link to be taken to the steps.)
    iTunes will automatically sync your device and create a backup. If it doesn't, sync the device with iTunes.
    After the sync is complete, restore your device.
    I

Maybe you are looking for