Regarding Selection

Hi ,
Is there any option to have flexibility to select fields for output in the selection screen.please help me.
Thanks,
Hari

Hi,
You can do this if you have ALV output.
You can have a parameter on theselection screen to select ALV layout and then output will display only those fields which are a part of thet layout.
Regards,
Pankaj

Similar Messages

  • Regarding select option in a module pool prog .

    hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??

    Hi
    Select-options won't work if you declare the program as Module POOL.
    if you wants to use select-options like utility in module pool programming
    use ranges
    declare and develop ranges and use that in select statement where condition.
    ranges: r_vbeln for vbak-vbeln.
    r_vbeln-low = '0018900678'.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    append r_vbeln.
    r_vbeln-low = '0018900456'.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    append r_vbeln.
    reward if useful
    regards
    Anji

  • Regarding selection options

    whan i am using select-options prior to this i what to display check  box on the same line.
              when i am selecting the this check box it should execute automaticall
    could u plz explain the code clearly with example.

    search forums.
    Re: Dynamic Selection Options
    Posted on: Jul 17, 2006 5:50 PM, by user: Praveen -- Relevance: 100% -- Show all results within this thread
    am doing exactly as you had stated. But the user wants to see it something like this: 1. For the selection options, he wants to see three box's. a. Technical Name of the field selection. b. ...
    Re: regarding selection options
    Posted on: Mar 15, 2007 8:46 AM, by user: SHIBA DUTTA -- Relevance: 99% -- Show all results within this thread
    you have to use begin of line and end of line. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. PARAMETERS: ...
    Re: Restricting selection-options
    Posted on: Jan 18, 2005 8:58 AM, by user: Andreas Mann -- Relevance: 90% -- Show all results within this thread
    FOR vbak-vbeln OBLIGATORY DEFAULT '5300000000'. INITIALIZATION. PERFORM init_1001. START-OF-SELECTION. SELECT belnr FROM bkpf INTO bkpf-belnr WHERE bukrs = '0001' AND ...
    Check that at least on Selection Options are filled
    Posted on: May 25, 2006 4:37 AM, by user: Boater -- Relevance: 90% -- Show all results within this thread
    I have a program that has four selection options. The user needs to enter a selection for at least one of the four selection options. ...
    possible entry for selection-options
    Posted on: Feb 22, 2007 7:32 AM, by user: Tiwa Noitawee -- Relevance: 89% -- Show all results within this thread
    F-1 At last 3 alphabets of Prod.hierarchy is Product line (EX1, PC5) that users have to choose via selection-options like this <b>EX1</b> EXCEL 251 : F-1 <b>PC5</b> POWERTOP W-200 ...
    select-options multiple selection
    Posted on: Mar 5, 2007 3:06 AM, by user: venkateswarao gangavarapu -- Relevance: 87% -- Show all results within this thread
    hi can u send code for getting multiple selections in select-options Thanks in advance venkat ...
    Submitting Report with selection screen options
    Posted on: Apr 27, 2005 5:45 PM, by user: Rajesh Nittala -- Relevance: 85% -- Show all results within this thread
    Hi all, I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that ...
    sample program to remove standard selection-options & replace user defined.
    Posted on: Dec 7, 2005 5:37 AM, by user: Josephine Clara Arokiasamy -- Relevance: 83% -- Show all results within this thread
    The standard selection-options are provided for the logical database. i need to supress the standard selection-options ...
    Adding default value for a select-options in a selection-screen
    Posted on: May 26, 2006 11:51 AM, by user: sid alpay -- Relevance: 77% -- Show all results within this thread
    hello gurus, i have a report program with the following select-options in a selection-screen block:
    select-options: so_site for MyTable-werks.
    i want the so_site ...
    Adding Selection Options Fields in Report(Using Query)
    Posted on: Aug 25, 2004 5:26 AM, by user: lijo joseph -- Relevance: 76% -- Show all results within this thread
    Hi, how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which ...
    Getting the selection parameters/options in a diffrent program
    Posted on: May 11, 2006 3:05 AM, by user: Chad Cheng -- Relevance: 75% -- Show all results within this thread
    use Submit to get a report from a diffrent program and I am using variants to get the value of the selection criteria. However, for a less tedious approach, I think it would be better if I get the selection ...
    Read options from selection-screen
    Posted on: Aug 24, 2006 3:30 PM, by user: Silke Eng -- Relevance: 75% -- Show all results within this thread
    Hi Kiran, as all other questions are answered already, remains the one on the select-options. Function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> returns those. Kind regards, Silke ...
    Selection screen for SAP Query: OR between options
    Posted on: Jun 29, 2006 3:04 PM, by user: Tania Pouli -- Relevance: 74% -- Show all results within this thread
    need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants. Thanks ...
    Pass internal table of selection-options through method!
    Posted on: Nov 22, 2004 3:49 PM, by user: Frank Roels -- Relevance: 74% -- Show all results within this thread
    I created a selection screen with multiple select-options. Now I want in a method of a class work with the internal ...
    select-options: at selection-screen on value-request
    Posted on: Sep 18, 2006 10:51 PM, by user: Sumit Agarwal -- Relevance: 72% -- Show all results within this thread
    one field is dependent on the values of the other field in the select-options. I am using the "at selection-screen on value-request event on" to populate the select-options field, S_AUFNR, that is dependent ...
    Pages: 16 [ 1 2 3 4 5 6 7 8 9 10 |

  • Can you giv me a brief introduction regarding selection screen with one eg:

    Hello
    can you giv me a brief introduction regarding selection screen with one eg:

    Hi Ranjith,
    Selection Screens
    Selection screens are one of the three types of screen in the R/3 System, along with dialog screens and lists. You use them whenever you want the user to enter either a single value for a field or fields, or to enter selection criteria.
    Function
    ABAP programs use screens to obtain input from users. The most general type of screen is a dialog screen, which you create using the ABAP Workbench tools Screen Painter and Menu Painter These tools allow you to create screens for data input and output. However, each of these screens requires its own flow logic.
    Defining and Calling Selection Screens
    You often use screens purely for data input . In these cases, you can use a selection screen. Selection screens provide a standardized user interface in the R/3 System.  Users can enter both single values and complex selections.  Input parameters are primarily used to control the program flow, while users can enter selection criteria to restrict the amount of data read from the database. You can create and save predefined sets of input values in the ABAP Editor for any selection screen. These are called variants.  Texts on the selection screen are stored as language-specific selection texts in the program text elements.  If you start an executable report using the SUBMIT statement, the input fields of the selection screen also serve as a data interface.
    Defining and Calling Selection Screens
    You define selection screens using ABAP statements in a program.  Simple statements allow you to create input fields, checkboxes, and radio buttons, and design the screen layout.  If you want to create a screen exclusively for data input, you do not need to create it using the normal dialog programming tools. When you create a selection screen, the system automatically assumes the tasks of the Screen Painter and Menu Painter.
    The rules for calling and defining selection screens in ABAP programs depend on the program type:
    ·         Executable program (type 1) without logical database
    You can use a single standard selection screen and as many user-defined selection screens as you wish. The standard selection screen is called automatically when you start the program.  User-defined selection screens, on the other hand, are called using the CALL SELECTION-SCREEN statement in a program.  The standard selection screen always has the screen number 1000. User-defined selection screens can have any screen number except 1000.
    ·         Executable program (type 1) with logical database
    The standard selection screen for an executable program linked to a logical database is made up of the logical database selections and the program selections.
    ·         Module pools (type M) and function modules (type F)
    You can only use user-defined selection screens in module pools and function modules. These can have any number apart from 1000. You can only call a selection screen from a function module using the CALL SELECTION-SCREEN statement. You can also define selection screens as Subscreens and incorporate them in screens or tabstrip controls.
    Hope this is useful.
    regards
    Ram
    Message was edited by:
            Ramanujan Chitrakootam

  • Hi Regarding selection parameters and list box

    Hi
    This is the test Progra I am Checking for List but
    When ever , After selecting from list , if press enter the value is going off,
    and after executing I couldn't read P_int
    when i am not geting any value into p_int.
    REPORT YTEST_VINESH1.
    *TYPEPOOLS
    TYPE-POOLS : vrm.
    *Tables
    DATA DICLARATION.
    DATA : name  TYPE vrm_id,
           list  TYPE vrm_values,
           value LIKE LINE OF list.
    data: itab like lfa1 occurs 0 with header line.
    DATA:P_INT1(20) TYPE C.
    *SELECTION SECREEN
    PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 20.
    *INITIALIZATION.
    initialization.
    select * from lfa1 up to 10 rows into table itab .
    AT SELEECTION EVENTS
    AT SELECTION-SCREEN OUTPUT.
      name = 'P_INT'.
    loop at itab.
      value-key = sy-TABIX.
      value-text = itab-lifnr.
      APPEND value TO list.
    endloop.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
      CLEAR list.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    MOVE P_INT TO P_INT1.
    WRITE:/ 'HAI HOW R U',P_INT1.
    Thanks & Regards,
    [email protected]

    Hi,
    Check this sample code:
    REPORT  ZDROP_DOWN_LIST.
    TABLES: LFA1.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: P_LIFNR LIKE LFA1-LIFNR AS LISTBOX VISIBLE LENGTH 20.
    DATA: BEGIN OF IT_ITAB OCCURS 0,
          LIFNR LIKE LFA1-LIFNR,
          LAND1 LIKE LFA1-LAND1,
          NAME1 LIKE LFA1-NAME1,
          END OF IT_ITAB.
    INITIALIZATION.
    SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO  IT_ITAB .
      VALUE-KEY = IT_ITAB-LIFNR.
      WRITE IT_ITAB-LAND1 TO VALUE-TEXT .
      CONCATENATE VALUE-KEY VALUE-TEXT
                  IT_ITAB-NAME1
                  INTO VALUE-TEXT SEPARATED BY '~'.
      APPEND VALUE TO LIST.
    ENDSELECT.
    NAME = 'P_LIFNR'.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        ID     = NAME
        VALUES = LIST.
    START-OF-SELECTION.
    WRITE:/ P_LIFNR.

  • Regarding selection screen output

    hi,
    i have created ALV report by using selection screen.in this i have displayed kunnr field from kna1 table.
    but it is showing someextra zero's and then code now i want to display only code not extra zero.here below i am giving example:----
    sap code
    00001562
    but i want like this....
    sap code
    1562.
    thanx/regards,
    vaneet thakur

    TABLES : VBRK,KNA1.
    TYPE-POOLS : SLIS.
    DATA : T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           L_FIELDCAT TYPE SLIS_FIELDCAT_ALV, "DECLARATION OF FIELDCAT FOR OUTPUT DISPLAY
           T_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA : BEGIN OF ITAB OCCURS 0,
           VBELN LIKE VBRK-VBELN, "PO NUMBER
           VTEG LIKE VBRK-VTWEG,   "DC
           SPART LIKE VBRK-SPART, "DIVISION
           FKDAT LIKE VBRK-FKDAT, "DATE
           KUNRG LIKE VBRK-KUNRG, "CUSTOMER PLANT
           WERKS LIKE VBRK-WAERK, "SITE
           VKORG LIKE VBRK-VKORG, "SALE ORGANIZATION
           NAME1 LIKE KNA1-NAME1,
           ORT01 LIKE KNA1-ORT01,
           END OF ITAB.
    SELECTION-SCREEN : BEGIN OF BLOCK VANEET WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS :   SITE FOR VBRK-WAERK.
    SELECT-OPTIONS :   PCODE FOR VBRK-KUNRG.
    *SELECT-OPTIONS :   INVOICE FOR VBRK-VBELN.
    SELECT-OPTIONS :   S_ORG FOR VBRK-VKORG OBLIGATORY.
    SELECT-OPTIONS :   DC  FOR VBRK-VTWEG OBLIGATORY.
    SELECT-OPTIONS :   DIVISION FOR VBRK-SPART obligatory.
    *SELECT-OPTIONS :   PO_DATE FOR VBRK-FKDAT.
    SELECTION-SCREEN : END OF BLOCK VANEET.
    SELECTION-SCREEN : BEGIN OF BLOCK VANEET1 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS :   INVOICE FOR VBRK-VBELN.
    SELECT-OPTIONS :   PO_DATE FOR VBRK-FKDAT.
    SELECTION-SCREEN : END OF BLOCK VANEET1.
    *PERFORM TOP-OF-PAGE.
    PERFORM FETCH-DATA.
    *PERFORM DISP_DATA.
    PERFORM T_FIELDCAT.
    PERFORM REUSE_ALV.
    **&      Form  TOP-OF-PAGE
          text
    -->  p1        text
    <--  p2        text
    *FORM TOP-OF-PAGE .
    *FORMAT COLOR 3 INTENSIFIED OFF.
    *FORMAT COLOR 5 INTENSIFIED OFF.
    *write : /48(120) 'NAHAR RETAIL LTD'.
    *FORMAT COLOR 3 INTENSIFIED OFF.
    *write : /48(120) 'FOCAL POINT'.
    *FORMAT COLOR 6 INTENSIFIED OFF.
    *write : /48(120) 'LUDHIANA'.
    *write : / sy-uline.
    *format color 4.
    **WRITE: /1(20) 'INVOICENO',
           25(15) 'SAP CODE',
           55(15) 'PARTYNAME',
           100(50) 'LOCATION'.
          format color 7 INTENSIFIED ON.
    *ENDFORM.                    " TOP-OF-PAGE
    *&      Form  FETCH-DATA
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH-DATA .
    REFRESH ITAB.
    SELECT AVBELN AKUNRG AFKDAT AWAERK BNAME1 BORT01 INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM VBRK AS A INNER JOIN KNA1 AS B
    ON AKUNRG = BKUNNR
    WHERE
    A~VBELN IN INVOICE
    and
    A~FKDAT IN PO_DATE
    and
    B~KUNNR IN PCODE
    GROUP BY AVBELN AKUNRG BNAME1 BORT01 AFKDAT AWAERK.
    SORT ITAB ascending BY  VBELN.
    *ENDSELECT.
    ENDFORM.                    " FETCH-DATA
    **&      Form  DISP_DATA
          text
    -->  p1        text
    <--  p2        text
    *FORM DISP_DATA .
    *loop at itab.
    *write :/1(18) itab-VBELN,
           27(5) ITAB-KUNRG,
           55(25) ITAB-NAME1,
           100(50) ITAB-ORT01.
    *endloop.
    *ENDFORM.                    " DISP_DATA
    *&      Form  T_FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM T_FIELDCAT .
    PERFORM fill_field USING 'VBELN' 'PO NO'.
      PERFORM fill_field USING 'KUNRG' 'CUSTOMER PLANT'.
      PERFORM fill_field USING 'NAME1' 'PARTY NAME'.
      PERFORM fill_field USING 'ORT01' 'LOCATION'.
    PERFORM fill_field USING 'BASME' 'UOM'.
    PERFORM SELECTION_WIDTH.
    ENDFORM.                    " T_FIELDCAT
    *&      Form  fill_field
          text
         -->P_0267   text
         -->P_0268   text
    FORM fill_field  USING   p_fieldname
                              p_seltext.
    L_FIELDCAT-FIELDNAME = p_fieldname.
    L_FIELDCAT-TABNAME   = 'ITAB'.
    L_FIELDCAT-SELTEXT_M = p_seltext.
    L_FIELDCAT-OUTPUTLEN = 10.
    APPEND L_FIELDCAT TO T_FIELDCAT.
    CLEAR L_FIELDCAT.
    ENDFORM.                    " fill_field
    *&      Form  REUSE_ALV
          text
    -->  p1        text
    <--  p2        text
    FORM REUSE_ALV .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
       IS_LAYOUT                         = T_LAYOUT
       IT_FIELDCAT                       = T_FIELDCAT
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " REUSE_ALV
    *&      Form  SELECTION_WIDTH
          text
    -->  p1        text
    <--  p2        text
    FORM SELECTION_WIDTH .
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = itab-kunrg
    IMPORTING
       OUTPUT        = itab-kunrg

  • Regarding Selection-Screen Field Display

    Hi All,
    I have issues with Selection-Screen field display.
    The Actual issue is i had declared a selection screen field as: <b>s_exgen FOR embk-exgen</b>.
    <b>EMBK-EXGEN</b> is actually <b>20</b> Char length field.
    But in output display it is being shown as <b>18</b> Char field though i can type in all <b>20</b> characters.
    But <b>display</b> restricted to <b>18</b> Characters only.
    Can anybody give me the solution for the same!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    You can decrease the visible length of the field but you can not increase more than database field length. check SAP help on this :
    select-options: s_exgen FOR embk-exgen VISIBLE LENGTH 5.
    ... VISIBLE LENGTH vlen
    Effect
    This addition allows you to shorten the visible length of the corresponding screen field on the selection screen to vlen.
    Variant 2
    SELECT-OPTIONS sel FOR (f).
    Additions as in variant 1.
    Effect
    In this variant, (f) must be a field containing the name of the actual reference field at runtime. The system creates the LOW and HIGH fields as character fields with length 45. However, their appearance on the selection <b>screen is inherited from the reference field whose name is contained in field f at runtime.</b>
    Regards
    Appana

  • Regarding : Selecting the adapter type in ID

    Hi,
    While creating the scenario in Integration Directory using wizard we will get an option of selecting sender adapter type & receiver adapter type. But while creating  manually , I am not getting the option of selecting the adapter type. Please specify, how to select the adapter type in manual process?
    regards,
    Kiran.L

    Hey Kiran,
    Create the adapter in the object tab under the relevant buisness system\service.
    add that adapter to your allready made scenario.
    enjoy.
    Nimrod

  • Regarding Selection of a row in Tree By Nesting UI Element

    Hi
    I have a table containing 2 columns mapped to a context node. Also a TreeByNestingUIElement is also there.
    I wished to implement OnLeadSelect() for the table. I mean when i select a row, the value of the first column of that row gets populated in another context attribute "selectedValue"
    It would be great if anyone tell me how to implement the code
    Regards
    Sreekar

    Sreekar,
    If you are using NW04 SP13+ version or NW04s, then add "nodeElement" parameter mapping for onLeadSelect action handler as described here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c227fb6d052
    /people/bertram.ganz/blog/2005/09/13/new-web-dynpro-sample-available--enhancing-table-performance
    Otherwise follow guidelines described in my blog:
    /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Regarding selection view in ldb KDF

    Hello All,
    In logical db KDF when i go to selection view i can see three function groups ie vendor master companycode and documents with their respective ids.
    But when i execute report related with this logical database like tcode f.42 adn fbl1n i can see only two options in dynamic selections ie vendor master and company code where as documents option is missing
    How can i get documents options back in the report or is there any program to regenerate these dynamic selections
    Thanks
    SUnny

    Hi Suny,
    When I run the T-code FBL1N at my place and click on Dynamic selections button,what I see that there are all the three options--Vendor Master,Company Code and Documents available.
    You need to observe that against Vendor number there is no input box available but all the fields available under it till Company Code belong to Vendor Master.Similarly,all the fields mentioned under Comaony Code belong to Company Code and likewise all the fields mentioned under Documents like Special G/L Indicator,Assignment,Document number etc. belong to Document.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Problem regarding Selection Text for a Variable declared in ABAP

    Hello Experts,
    I am new to ABAP development. I have declared a variable in ABAP..Then i went to GOTO>Text Elements> Selection texts.
    Then when i am selecting a date to have dictionary ref, then the text part is changed to "Date in Format YYYYMMSS in 8 C", then i can't customised it any more. But i want to display the text as "START DATE"..but while running. it's displaying "DATE" only.... How i can get rid of this situation?
    Another problem : the limitations for th text in selection text is upto 33 charcaters by default..How can i change that so that i can accomodate as many characters i want.
    Please help...I got stuck here for long time
    Thanks
    ANUPAM

    Hi,
    In the selection texts, don't use the check box to use the dictionary reference. So that you can declare your own text here.
    If any text symbol is already declared and now if you want to increase the text, by default the maximum length is assigned.
    So simply delete and insert the text symbol again. It will work.
    For the selection texts, if you want to use more length, then use as below.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS pc_check AS CHECKBOX.
    SELECTION-SCREEN COMMENT 4(60) text-020.
    SELECTION-SCREEN END OF LINE.
    Here the text-020 will come in the selection screen for the above check box.
    Regards,
    Nangunoori.

  • Regarding select statement

    Hi Expert,
    Is this select statement is ok ?
    actually i have doubt in where clause when it mix both AND and OR without braces
    SELECT SINGLE * FROM vbfa WHERE
                 vbeln = s_bkpf-awkey AND
                   vbtyp_v = 'C'   OR
                   vbtyp_v = 'E'   OR
                   vbtyp_v = 'M'  OR
                   vbtyp_v = 'J'   OR
                   vbtyp_v = 'R' .
    thanks and regards
    abaper.

    SELECT SINGLE * FROM vbfa WHERE
    vbeln = s_bkpf-awkey AND ( vbtyp_v = 'C' OR
    vbtyp_v = 'E' OR
    vbtyp_v = 'M' OR
    vbtyp_v = 'J' OR
    vbtyp_v = 'R' ).
    OR YOU CAN USE
    SELECT SINGLE * FROM vbfa WHERE
    vbeln = s_bkpf-awkey AND
    vbtyp_v IN ('C', 'E', 'M', 'J', 'R') .
    CHECK THE SPACE NO SPACE BETWEEN  ('C' AFTER , ONE SPACE AND NO SPACE BETWEEN 'R'). GIVE THE SPACE CORRECTLY ...
    REGARDS
    SHIBA DUTTA

  • Regarding select statement on structure

    hi,
    can we write select on structure?.........i hav  to get condition record from konv(which is a structure) based on ekpo-ebeln.
    for this i hav written code like this
    IF NOT it_ekpo IS INITIAL.
        SELECT knumv
               kposn
               kschl
               kbetr
               waers
               KWERT
          FROM konv
          INTO TABLE it_konv
           FOR ALL ENTRIES IN it_ekpo
          WHERE knumv = it_ekpo-ebeln
            and kposn = it_ekpo-ebelp
            AND ( kschl EQ 'ZPF3' OR kschl EQ 'ZVAT'
                OR kschl EQ 'ZCSR' OR kschl EQ 'ZFR3' ).
        IF sy-subrc EQ 0.
          SORT it_konv BY knumv kposn.
        ENDIF.
      ENDIF.

    Hi
    You cannot write the Select statement on Structures but yo have a table for that structure where you will get the same data.
    You can use komv & konp table instead of structure .
    IF NOT IT_EKPO IS INITIAL.
      SELECT KNUMV
             KPOSN
             KSCHL
             KBETR
             WAERS
             KWERT
             FROM KONV
             INTO TABLE IT_KONP
             FOR ALL ENTRIES IN IT_EKPO
             WHERE KNUMV = IT_EKPO-EBELN
             AND ( KSCHL EQ 'ZPF3' OR KSCHL EQ 'ZVAT'
             OR KSCHL EQ 'ZCSR' OR KSCHL EQ 'ZFR3' ).
    ENDIF.
    Thanks & regards,,
    Dileep .C

  • Regarding select query with code

    Hi Experts ,
    i m taking two transparent table "VBAK , VBAP" WITH CLUSTER TABLE "KONV"
    In this Table we create inner join between VBAK ,ABAP  to itab and make  itab2 with some field of KONV.
    ===========================================================
    *& Report  Z_VBAP_REPORT                                               *
    REPORT  Z_VBAP_REPORT    .
    TABLES:VBAP,VBAK,KONV.
    DATA KNUMV LIKE VBAK-KNUMV.
    DATA:BEGIN OF ITAB OCCURS 0,
         VBELN LIKE VBAK-VBELN,
         POSNR LIKE VBAP-POSNR,
         MATNR LIKE VBAP-MATNR,
         NETPR LIKE VBAP-NETPR,
         BNAME LIKE VBAK-BNAME,
         ERDAT LIKE VBAK-ERDAT,
         KBETR LIKE KONV-KBETR,
         KNTYP LIKE KONV-KNTYP,
         KNUMV LIKE VBAK-KNUMV,
         END OF ITAB.
    DATA ITAB2 LIKE ITAB OCCURS 0 WITH HEADER LINE.
    PARAMETER SALE_DOC LIKE VBAK-VBELN.
    SELECT-OPTIONS D_DATE FOR VBAK-ERDAT.
    SELECT BVBELN APOSNR AMATNR ANETPR BBNAME BERDAT INTO
    CORRESPONDING FIELDS OF TABLE ITAB FROM VBAP AS A INNER JOIN VBAK
    AS B ON ( BVBELN = AVBELN ) WHERE B~ERDAT IN D_DATE AND
    A~VBELN =  SALE_DOC.
    SELECT  KBETR KNTYP  FROM KONV INTO CORRESPONDING FIELDS OF TABLE ITAB2
    WHERE KNUMV = KNUMV .
    EXPORT ITAB TO MEMORY ID 'ASHISH'.
    EXPORT ITAB2 TO MEMORY ID 'ASHISH1'.
    SUBMIT Z_ABAP2 VIA SELECTION-SCREEN AND RETURN.
    ///////Code for report Z_ABAP2
    *& Report  Z_ABAP2                                                     *
    REPORT  Z_ABAP2   .
    TABLES:VBAP,VBAK,KONV.
    DATA:BEGIN OF ITAB OCCURS 0,
         VBELN LIKE VBAK-VBELN,
         POSNR LIKE VBAP-POSNR,
         MATNR LIKE VBAP-MATNR,
         NETPR LIKE VBAP-NETPR,
         BNAME LIKE VBAK-BNAME,
         ERDAT LIKE VBAK-ERDAT,
         KBETR LIKE KONV-KBETR,
         KNTYP LIKE KONV-KNTYP,
         KNUMV LIKE VBAK-KNUMV,
         END OF ITAB.
    DATA ITAB2 LIKE ITAB OCCURS 0 WITH HEADER LINE.
    LOOP AT ITAB.
    WRITE : / ITAB-VBELN,
               ITAB-POSNR, 25
               ITAB-MATNR,
               ITAB-NETPR,
               ITAB-BNAME,
               ITAB-ERDAT,
               ITAB-KBETR,
               ITAB-KNTYP.
    ENDLOOP.
    LOOP AT ITAB2.
    WRITE :/   ITAB2-KBETR,
               ITAB2-KNTYP.
               ENDLOOP.
    INITIALIZATION .
      IMPORT ITAB FROM MEMORY ID 'ASHISH'.
      IMPORT ITAB2 FROM MEMORY ID 'ASHISH1'.
    =========================================================
    thanks & regards ,
    Ashish

    Hi
    after the first select use for all entries of this ITAB and fetch data from KONV as below, declare I_FINAL and move the ITAB and ITAB2 data into it and display its output
    SELECT BVBELN APOSNR AMATNR ANETPR BBNAME BERDAT <b>B~KNUMV</b> INTO
    CORRESPONDING FIELDS OF TABLE ITAB FROM VBAP AS A INNER JOIN VBAK
    AS B ON ( BVBELN = AVBELN ) WHERE B~ERDAT IN D_DATE AND
    A~VBELN = SALE_DOC.
    <b>IF NOT ITAB[] IS INITIAL.
    SELECT KNUMV KPOSN KBETR KNTYP FROM KONV INTO CORRESPONDING FIELDS OF TABLE ITAB2 for all entries in ITAB
    WHERE KNUMV = ITAB-KNUMV and KPOSN = ITAB-POSNR .</b>
    Loop at itab.
      move-corresponding itab to i_final.
      read table itab2 with key knumv = itab-knumv and kposn = itab-posnr.
      if sy-subrc  = 0.
        move-corresponding itab2 to i_final.
      endif.
    append i_final.
    clear i_final.
    endloop.
    Loop at i_final.
       write: / I_final (write all the fields)
    endloop.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Regarding "select into" query and "no data found" exception

    So i have included the following into my procedure:
    select div_cd into c_div_cd
                   from division_tab d, emp_tab y
                   where d.div_name=y.div_text and y.emp_code=d.emp_code;
    and also an exception
    exception
    when no data found
    -- print something
    The above select query results into "no data found" and the control passes directly to the exception and prints something.
    How do I do the following?
    select div_cd into c_div_cd
                   from division_tab d, emp_tab y
                   where d.div_name=y.div_text and y.emp_code=d.emp_code;
    if c_div_cd is null then
    --enter this employee into some other table without raising an exception
    No need to write a code for an answer. Please just guide me with something I can incorporate or do.

    use explicit cursors
    DECLARE
    c_div_cd division_tab.div_cd%type;
    cursor c_div is
    select div_cd
    from division_tab d, emp_tab y
    where d.div_name=y.div_text and y.emp_code=d.emp_code;
    BEGIN
    open c_div;
    fetch c_div into c_div_cd;
    --You can either use c_div%NOTFOUND or c_div_cd is null in the below if condition to check the data
    -- Note if your select query returns multiple records then you have to do mutiple fetches for getting all records, so in that case your FETCH
    -- should be inside the LOOP statement
    if c_div_cd is null then
    --enter this employee into some other table without raising an exception
    end if;
    close c_div;
    EXCEPTION
    IF c_div%ISOPEN then
    close c_div;
    END IF;
    END;
    Regards
    JJ

  • Query regarding select

    How do i do string comparisons in the where clause of a select.
    Something like:
    data: c(20).
    c = 'Music'.
    Select a b from yplaylist into table i_playlist where
    a CO c.

    To Do that you ave to concatenate '%' in front and after the actual word.
    Assume that the word you want to check is in a variable v_word.
    then do like this:
    concatenate '%' v_word '%' into c.
    Select a b from yplaylist into table i_playlist where a like c.
    Regards,
    Ravi

Maybe you are looking for

  • Error while sending Bdoc data frm CRM to R3

    Hi All, We have created a BDoc containing a Ztable which is send from CRM to R/3 where it will update another Z table create for this in R3. We have tried here the follwoing steps:- a. Created the Z table in both systems. b. Created a new messaging B

  • How to Use AccessibleObjectFromWindow API in VBA to Get Excel Application Object from Excel Instance Window Handle

    I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWi

  • How to copy a JS variable to the clipboard

    I have a script that determines the distance between two guides. I would like that variable to be copied to the clipboard so that a user can enter it into the control panel if one wishes. The copy() function will only copy something that is selected

  • A way to view your memory?

    hello all, so I saw recently that my hard drive space is getting rather crammed. and I am sure there is a ton of stuff I could delete, I just don't necessarily know what's really taking up the space. my question is, is there a way to easily view, the

  • Store locator system

    I'm currently attempting to build a store locator system. I'm found zipMonger, and that does what I need as far as getting all the zip codes in a radius. What I'm having a little trouble with is taking the list of returned zips and then returning the