Sales area on selection screen

Hi friends,
i have a requirement,
on my selection screen i need a field called sales area which is a combination of
sales organization,
distribution channel,
division
how can i get all the 3 in one single field called sales area on my selection screen.
Regards
priyanka

Hi Priyanka,
In SAP ABAP if you wish to concatenate 2 or 3 strings together then you can use the following function module.
STRING_CONCATENATE_3
The above mentioned function module excepts 3 strings and concatenates them into 1. Please see the example given below.
REPORT ZEX_STRINGCON .
parameters: p_str1(100),
                      p_str2(100),
                      p_str3(100).
Data:       d_str(500).
CALL FUNCTION 'STRING_CONCATENATE_3'
  EXPORTING
    STRING1         = p_str1
    STRING2         = p_str2
    STRING3         = p_str3
IMPORTING
   STRING           = d_str
EXCEPTIONS
   TOO_SMALL       = 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.
Write: d_str.
If the input is as follows.
p_str1 = 'This'
p_str2 = 'Is'
p_str3 = 'ABAP'
The output would be as follows.
String Concatenate     
THISISABAP          
Hope it helps you
Regrds
Mansi

Similar Messages

  • Transaction BP start in sales area - status view screen

    I'm calling from outside of R/3 (from CRM).
    I want to start online transaction BP started, but I want to start up in the sales area, and the screen status. This is crucial because it is must be done several times by the users.
    I have tried to see examples in the code how memory with structure BUS_NAVIGATION is filled. But it does not work.
    Any suggestions?
    BR
    Bent Holm Nielsen
    [email protected]
    FUNCTION ZE_SD_CIC_CALL_TRANS_BP.
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(TCODE) TYPE  TCODE
    *"     VALUE(KUNNR) TYPE  KUNNR OPTIONAL
      DATA lv_key(34) TYPE c.
      DATA ls_indx    TYPE indx.
      constants: gc_shared_buffer_id type INDX-SRTFD value
                'BUPA_NAVIGATION_REQ'.
      data: ev_instance type ref to CL_BUPA_NAVIGATION_REQUEST.
      data GS_NAVIGATION type BUS_NAVIGATION .
      data GS_NAVIGATIONX type BUS_NAVIGATIONX .
      data GV_TITLE type BUS_SCREEN-TITLE .
      if tcode eq 'BP' and not kunnr is initial.
        SELECT single PARTNER_GUID into gs_navigation-PARTNER_GUID
               FROM  BUT000
               WHERE  PARTNER       = kunnr.
        if sy-subrc gt 0.
          exit.
        endif.
        data: lt_role type BU_role_t,
              ls_role type BU_RLTYP,
              lin type i.
        refresh lt_role.
        SELECT RLTYP appending table lt_role
               FROM  BUT100
               WHERE  PARTNER  = kunnr.
        describe table lt_role lines lin.
        if lin le '1'.
          read table lt_role into ls_role index 1.
          if sy-subrc eq 0.
            gs_navigation-BUPA-PARTNER_ROLE = ls_role.
          else.
            exit.    "The function module
          endif.
        else.
          read table lt_role into ls_role
                     with key 'ZCRM01'.  "sold-to
          if sy-subrc eq 0.
            gs_navigation-BUPA-PARTNER_ROLE = ls_role.
          else.
            read table lt_role into ls_role index 1.
            if sy-subrc eq 0.
              gs_navigation-BUPA-PARTNER_ROLE = ls_role.
            else.
              exit.    "The function module
            endif.
          endif.
        endif.
    * Start Export data to the ABAP memory
        gs_navigation-bupa-activity       = '02'.
        gs_navigation-bupa-sub_header_id  = 'LOCU90'. "Status screen at bp
        gs_navigation-bupa-sub_header_tab = 'LOCU90'. "Status screen at bp
    *Break sapbhn.
    *data: lt_fields type table of BUS0FLDVAL,
    *      ls_fields type BUS0FLDVAL.
    *    ls_fields-TBFLD = 'RF02D-VKORG'.
    *    ls_fields-FLDVL = 'S001'.
    *    insert ls_fields into table lt_fields.
    *    gs_navigation-bupa-FIELD_VALUES[] = lt_fields[].
        CONCATENATE gc_shared_buffer_id sy-uname INTO lv_key.
        gs_navigationx-partner_guid      = 'X'. "Guid
        gs_navigationx-bupa-partner_role = 'X'. "Role
        gs_navigationx-bupa-activity     = 'X'. "Change mode
        EXPORT gs_navigation  FROM gs_navigation
               gs_navigationx FROM gs_navigationx
               gv_title       FROM gv_title
               TO DATABASE indx(bp) FROM ls_indx ID lv_key.
    * End  Export data to the ABAP memory
        call transaction 'BP'.
      endif.

    Hi,
    have you found any solution?
    Please, if you have, send me an email to [email protected]
    I would appreciate so much your explanations.
    Best Regards,
    Rosa

  • Default sales org on selection screen using set and get parameter!!

    Hi,
    I need to default value on selection screen using SET n GET parameter...logic to be used should be:
    Sales Organisation:
    This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...
    Hope i need to write the code in initialisation and what shud b the content?
    Regards
    Gunjan

    hi,
    TABLES <table name>.
      SET PARAMETER ID VKO FIELD <tablename-fieldname>.
    call transaction 'zxx'.
    try this sample program,
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    regards,
    siva
    Message was edited by:
            Shan

  • How to find out the selection screen values

    Hi All,
    in BI we are having the maximum allowed cells as 500000 for a report.
    for some of the reports execution fetching the data morethan 500000 by different users.
    i could findout the report and user who has executed, But i wanted to findout for which selection user has executed.
    is it possible to find out...please help.
    Thanks,
    Krishna.

    Hi,,
    Yes it is possible.
    Open your query result in the design mode by going to BEx Analyzer->Design ToolBar
    Now take one text element and assign it to the variable which you have used for the selection screen.
    Take the same number of text element as there are in selection screen.
    Exit the design mode. In place of the text element you will find the value of the variables assigned to them.

  • RE: HR ABAP Multiple selection problem on input selection-screen

    hi friends,
    I AM Facing one problem in HR abap report  selection-screen , in my report  employee details data getting based on payroll area
    of selection-screen. Here iam  SELECTION-SCREEN  declarations made in program level NOT created REPORT CATEGORY FOR
    PNP LDB.
    ACTUAL MY PROBLEM IS IF I SELECT SINGLE PAYROLL AREA IN SELECTION-SCREEN IT GETTING DATA PERFECTLY FOR THAT
    PAYROLL AREA  
    EX. ZA - PAYROLL AREA IF I SELECT IN SELECTION SCREEN IT FETCHING THAT PAYROLL  AREA DATA PERFECTLY, PROBLEM
    IS IF I SELECT MULTIPLE PAYROLL AREAS IN SELECTION-SCREEN PAYROLL AREA FIELD  ZA AND ZB PAYROLLS IT FETCHING
    ONLY ZA -PAYROLL DATA ONLY IT IS NOT FETCHING DATA FROM ZB PAYROLL AREA.MY REQUIREMENT IS IT SHOULD FETCH
    BOTH PAYROLL DATA  AND SHOWING  .
    HERE  IAM GIVING MY SELECTION SCREEN DECLARATION SYNTAX.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
                    S_ABKRS FOR P0001-ABKRS NO INTERVALS," NO-EXTENSION,     " PAY ROLL AREA
                    S_PERSA FOR P0001-WERKS NO INTERVALS," NO-EXTENSION,     " PERS.AREA
    SELECTION-SCREEN END OF BLOCK B2 .
    PLEASE Any body knows solution for this selection give me reply.
    regards,
    gopal

    If you are using Logical DB PNP why are you coding Selection Fields for ABKRS and WERKS?   Both of these fields are defined in the PNP Selection Screen and if you use those fields then SAP will handle filtering the data.

  • How to make selection-screen block as unvisible?

    hi,
    in report program there are two selection screen blocks like this.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
         parameters: rb1 as radiobutton group r1 user-command ucomm,
                  rb2 as radiobutton group r1,
                  rb3 as radiobutton group r1,
                  rb4 as radiobutton group r1,
         SELECTION-SCREEN BEGIN OF BLOCK b2.
              parameters: ip1 type string.
              select-options: date for pernr-begda.
         SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OD BLOCK b1.
    Now when i clicked on rb4 the selecetion screen block b2 has to be visible.
    And rest of things i.e for rb1, rb2, rb3 it should not visible. it should be disabled.
    Regards,
    Shankar.

    hi,
    i am doing like this.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text.
      SELECTION-SCREEN SKIP 1.
      SELECT-OPTIONS: pernr FOR person-pernr.
      SELECTION-SCREEN SKIP 1.
      PARAMETERS: tempname LIKE rlgrap-filename.
      SELECTION-SCREEN SKIP 1.
      PARAMETERS: rb_p1 TYPE c RADIOBUTTON GROUP r1 USER-COMMAND rbg,
                  rb_p2 TYPE c RADIOBUTTON GROUP r1,
                  rb_p3 TYPE c RADIOBUTTON GROUP r1,
                  rb_p4 TYPE c RADIOBUTTON GROUP r1.
      SELECTION-SCREEN SKIP 1.
        SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text1.
            PARAMETERS: country(25) TYPE c MODIF ID ccc.
            SELECT-OPTIONS:Fromdate FOR person-begda NO-EXTENSION MODIF ID ccc.
        SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
    IF rb_p4 = ' ' .
      LOOP AT SCREEN.
          IF SCREEN-NAME = 'COUNTRY'
          OR SCREEN-NAME = 'FROMDATE-LOW'
          OR SCREEN-NAME = 'FROMDATE-HIGH'
          OR SCREEN-GROUP1 = 'CCC'.
              screen-input = 0. "Disable
          ENDIF.
          MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
    IF rb_p4 = 'X' .
      LOOP AT SCREEN.
          IF SCREEN-NAME = 'COUNTRY'
          OR SCREEN-NAME = 'FROMDATE-LOW'
          OR SCREEN-NAME = 'FROMDATE-HIGH'
          OR SCREEN-GROUP1 = 'CCC'.
              screen-input = 1. "Disable
          ENDIF.
          MODIFY SCREEN.
      ENDLOOP.
    ENDIF.
    Now it's making as disabled the fields which are in block B2.
    Acutually my requirement is when i ever user selects RB_P4 then only that screen has to appear. and for rest of 3 RB it should not visible. it should be invisible.
    for this wat to do....
    Regards,
    Shankar.

  • At-selection-screen modification

    Hi Experts,
    I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item number field.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-005.
    SELECTION-SCREEN: position 32.
    parameter:p_sh type c radiobutton group rg.                "Sales header
    selection-screen: comment 35(15) for field p_sh.
    selection-screen: comment 60(20) for field p_vbeln.
    parameter:p_vbeln like vbak-vbeln MODIF ID gp5.            "Sales Document
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: position 32.
    parameter:p_si type c radiobutton group rg.                "Sales Item
    selection-screen: comment 35(15) for field p_si.
    selection-screen: comment 60(20) for field p_posnr.
    parameter:p_posnr like vbap-posnr MODIF ID gp6.            "Sales Document Item
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: skip.
    This is the selection screen  code where for sales document i have assiged Modif id GP5 for Item Modif id GP6.  so when i check radio button p_sh ( header ) then sales document ( p_vbeln) shoudl be active for input .
    if i check p_si (item) then both saleds document (p_vbeln) and p_posnr both have different group names i.e GP5 & GP6 should be active. i.e screen-inpu = 1.
    I have written the following code for header but for item i am unable to make screen-input = 1 for two different groups. how to do that?
    LOOP AT SCREEN.
        IF ( P_SH NE 'X' AND SCREEN-GROUP1 EQ 'GP5' ) OR
           ( P_SI NE 'X' AND SCREEN-GROUP1 EQ 'GP6' ).
          screen-input = 0.
          MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    This code is working when i click header radio button but for when i click item radio button (p_si) only item field is active i am unable to make sales docuemnt active at same time. please help me in this regard.
    Regards,
    sunil kairam.

    Hi,
    Check this piece of code changed a bit.
    PARAMETERS : p_ct  RADIOBUTTON GROUP grp .
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr,
    PARAMETERS : p_sh RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln  FOR vbak-vbeln,                
    PARAMETERS : p_si  RADIOBUTTON GROUP grp.
    SELECT-OPTIONS : s_vbeln1  FOR vbak-vbeln,
                                   s_posnr   for vbak-posnr.
    IF p_ct  IS NOT INITIAL .
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF p_sh IS NOT INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'S_KUNNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
             WHEN 'S_KUNNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
               WHEN 'S_VBELN-LOW'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN-HIGH'.
              screen-input = 1.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_VBELN1-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-LOW'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'S_POSNR-HIGH'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
    now one more  ELSEIF p_si  IS NOT INITIAL
    now make s_vbeln1 and s_posnr as input 1 and rest others as input 0.
    endif.
    Regards,
    Nagaraj

  • How to add profit center in fbl5n selection screen

    how to add profit center in fbl5n selection screen
    and
    it is save to copy  ddf from sap to cus
    wll it affect anything else

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Selection-screen problem:need to go back to selectionscreen not source code

    Hello experts,
    Please help me on my dillema. I have 2 reports, zreport1 and zreport2. Now, zreport1 submits
    values via selection-screen to zreport2. Now here is the problem, when I press 'BACK' on the
    selection-screen of zreport2(rememeber we used submit statement via selection-screen on zreport1)
    instead of going back to the selection-screen of zreport1 it goes to the source code of zreport1 which
    is wrong. And there are 2 selection-screens on zreport1 depending on the user if he is controller or not.
    So what I need to do here is that whenever I press 'BACK' either I'm adding or modifying or displaying records
    it should go back to whatever screen I called in zreport1.
    Here's a diagram.
    ZREPORT1**
      if v_controller = 'X'
        display selection-screen 1500
      else
        display selection-screen 500
      endif.
      if user wants to add records, submit values from zreport1 to zreport2
      and return via selection-screen.
      *same goes for edit option.
      if user wants to display, get all records then display in ALV.     
    ZREPORT2**
      So lets assume user decides not to add records and decides to go back. so he presses
      the BACK button in selection-screen of zreport2. Now here's the nasty part, instead of going back to either
      selection-screen 500 or 1500 in zreport1, it goes to the source code of zreport1!. I hope I explained it clearly.
      Again, thanks a lot guys for your help!

    Hi,
    Try this
    START-OF-SELECTION.
    *----------Sumbit Report-------*
    Sumit Report......AND RETURN
    *----------Check Condition & back to select screen-------*
      IF condition.
        MESSAGE s207(zusm_gen) DISPLAY LIKE lc_e .
        EXIT.
      ENDIF.
    Set something in the memmory.
    this can be used to check the completion of the report.
    if the 2nd report executed porperly then u further execute the code.
    If u dont have any thing to execute after sumbit report
    then u can do is.
    START-OF-SELECTION.
    *----------Sumbit Report-------*
    Sumit Report......AND RETURN
        MESSAGE s207(zusm_gen) DISPLAY LIKE 'S' .
        EXIT.
    Message was edited by: Manoj Gupta

  • How to shift cursor from one field to another on selection screen

    Hi,
    On the selection screen, I have many fields, like material code, plant, valuation type etc.
    Materoal Code,
    Serial Number
    Plant
    Valuation type,  and many other fields
    those fields are on selection screen my requirement is when user enter the material code in Material code field and when he press the enter the cursor should come in the second filed Plant and so on, how to do this i dont want to use keyboard keys lik TAB, Arrow key, because I am entering the data on selection screen., with a scanner device and on that device there is one command which act as ENTER key of the keyboard. after after entring the data in first field when the scanner gives the enter command i am doing som e validation for the given field value then want to shift the curson position to next field..
    regards,
    zafar

    Hi,
    after entring the data in first field when the scanner gives the enter command i am doing som e validation for the given field value then want to shift the curson position to next field
    After doing the validation, write the code - SET CURSOR FIELD 'SELECTION_SCREEN_FIELD_NAME'.
    Eg - SET CURSOR FIELD 'P_SERNR'.
    Thanks

  • Problem:  Disabling fields on selection screen

    There are two date fields on my selection screen that should always remain disabled.  In the INITIALIZATION event I have the following code:
    LOOP AT SCREEN.
        IF screen-name EQ 'S_BEGDA' OR screen-name EQ 'S_ENDDA'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    This works fine when the screen starts up.  However, in the AT SELECTION-SCREEN event Iu2019m getting these two dates from the database based on some other fields and want to put the dates in these fields but have them remain disabled.  However, after the AT SELECTION-SCREEN event the fields are editable.
    Here's my AT SELECTION-SCREEN event code (s_begda s_endda are the selection screen param names)
    AT SELECTION-SCREEN.
      DATA: lt_t549q TYPE TABLE OF t549q WITH HEADER LINE.
      SELECT * INTO TABLE lt_t549q
        FROM t549q
        WHERE permo = '02' AND pabrj = '2008' AND pabrp = '01'.
      IF sy-subrc EQ 0.
        READ TABLE lt_t549q INDEX 1.
        s_begda = lt_t549q-begda.
        s_endda = lt_t549q-endda.
      ELSE.
        MESSAGE text-m01 TYPE 'E' DISPLAY LIKE 'I'.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-name EQ 'S_BEGDA' OR screen-name EQ 'S_ENDDA'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    I tried using the above loop again at the end of this event but it seems to be being ignored. 
    Anyone have a suggestion?

    Hi,
    Check this code,
    REPORT  ZTEST.
    TABLES: t549q.
    SELECT-OPTIONS: S_BEGDA FOR t549q-BEGDA,
                    S_ENDDA FOR t549q-ENDDA.
    INITIALIZATION.
      DATA: lt_t549q TYPE TABLE OF t549q WITH HEADER LINE.
      SELECT * INTO TABLE lt_t549q
        FROM t549q
        WHERE permo = '02' AND pabrj = '2008' AND pabrp = '01'.
      IF sy-subrc EQ 0.
        READ TABLE lt_t549q INDEX 1.
        s_begda-SIGN = 'I'.
        s_begda-LOW = lt_t549q-begda.
        s_begda-OPTION = 'EQ'.
        APPEND S_BEGDA.
        s_ENDda-SIGN = 'I'.
        s_ENDda-LOW = lt_t549q-endda.
        s_ENDda-OPTION = 'EQ'.
        APPEND S_ENDda.
      ELSE.
        MESSAGE text-m01 TYPE 'E' DISPLAY LIKE 'I'.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-name EQ 'S_BEGDA-LOW' OR screen-name EQ 'S_ENDDA-LOW'
                    OR SCREEN-NAME EQ S_BEGDA-HIGH OR SCREEN-NAME EQ S_ENDDA-HIGH.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Thanks & regards,
    nagaraj kalbavi

  • Hide Tab in Selection Screen After Pressing Button

    Hiii All..
    My requirement is I have to disable the tab in the selection screen when the user presses the button 'Disable Tabstrip' which is present in Application toolbar..
    And it should come back if the user presses another button 'Enable Tabstrip' and that time the above screen should hide.
    I am showing u the screen..
    Link : [https://www.filesanywhere.com/FS/M.aspx?v=8972698c58616eb771af]
    If anyone knows then please help.
    Regards,
    Jhings.

    Thanks For the reply Anju...
    But the problem is.. this selection screen is not the default screen.. this is user defined screen.. and SY-UCOMM is not giving any value on the "AT SELECTION SCREEN OUTPUT" Event..
    I am giving u the code.. How I defined this..
    * This is screen where we are inclucing tab screen
    SELECTION-SCREEN : BEGIN OF SCREEN 100.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-005.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) CUS_TXT.
    SELECT-OPTIONS : CUST_ID FOR VBAK-KUNNR.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT1 USER-COMMAND CLICK1 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) MAT_TXT.
    SELECT-OPTIONS :  MATNR FOR VBAP-MATNR.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT2 USER-COMMAND CLICK2 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN : COMMENT 1(15) CRE_TXT.
    SELECT-OPTIONS : CRE_BY FOR VBAK-ERNAM.
    SELECTION-SCREEN : PUSHBUTTON 79(20) BUT3 USER-COMMAND CLICK3 VISIBLE LENGTH 20.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    PARAMETERS : A AS CHECKBOX USER-COMMAND UC.
    SELECTION-SCREEN : COMMENT 5(33) CHK_TXT.
    PARAMETERS:        NUM TYPE I MODIF ID M1.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN: END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK T1 FOR 20 LINES.
    SELECTION-SCREEN TAB (10) NAME1 USER-COMMAND UCOMM1 DEFAULT SCREEN 101.
    SELECTION-SCREEN TAB (20) NAME2 USER-COMMAND UCOMM2 DEFAULT SCREEN 102.
    SELECTION-SCREEN TAB (30) NAME3 USER-COMMAND UCOMM3 DEFAULT SCREEN 103.
    SELECTION-SCREEN END OF BLOCK T1.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    SELECTION-SCREEN : END OF SCREEN 100.
    * These are subscreens
    SELECTION-SCREEN : BEGIN OF SCREEN 101 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B6 WITH FRAME TITLE TEXT-006.
    PARAMETERS : CUS_NAM1(30) TYPE C,
                 CONTACT1(12) TYPE C,
                 CITY1(30) TYPE C.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT11 USER-COMMAND CLICK11 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT12 USER-COMMAND CLICK12 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B6.
    SELECTION-SCREEN : END OF SCREEN 101.
    SELECTION-SCREEN : BEGIN OF SCREEN 102 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B7 WITH FRAME TITLE TEXT-007.
    PARAMETERS : MAT_DES1(30) TYPE C MODIF ID M1,
                 UNT1(12) TYPE C MODIF ID M1,
                 MAT_TYP1(30) TYPE C MODIF ID M1.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT13 USER-COMMAND CLICK13 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT14 USER-COMMAND CLICK14 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B7.
    SELECTION-SCREEN : END OF SCREEN 102.
    SELECTION-SCREEN : BEGIN OF SCREEN 103 AS SUBSCREEN.
    SELECTION-SCREEN : BEGIN OF BLOCK B8 WITH FRAME TITLE TEXT-008.
    PARAMETERS : F_NAM1(30) TYPE C MODIF ID M1,
                 L_NAM1(12) TYPE C MODIF ID M1,
                 C_NO1(30) TYPE C MODIF ID M1.
    SELECTION-SCREEN : SKIP.
    SELECTION-SCREEN : PUSHBUTTON 1(20) BUT15 USER-COMMAND CLICK15 VISIBLE LENGTH 10.
    SELECTION-SCREEN : PUSHBUTTON 25(20) BUT16 USER-COMMAND CLICK16 VISIBLE LENGTH 10.
    SELECTION-SCREEN: END OF BLOCK B8.
    SELECTION-SCREEN : END OF SCREEN 103.
    Hope This could help u..
    Regards,
    Jhings

  • Default value for selection screen field

    Hi all,
      I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
    How can I do it?
    Thanks
    Rahul

    Hi Rahul,
    In the INITIALIZATION event we can set the default values for selection screen fields.
    INITIALIZATION.
    loop at screen.
    if screen-name = 'S_MATNR-LOW'.
    CLEAR S_MATNR.
    s_matnr-low = '1234'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr.
    CLEAR S_MATNR.
    s_matnr-high = '5678'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr
    clear s_matnr.
    endif.
    endloop.
    Hope it helps.
    Mark if useful
    Regards,
    Saumya

  • Selection screen option for Screen type like inDEMO_SEL_SCREEN_AS_SUBSCREEN

    hello,
    in this program there are 2 selection screens,called from MAIN screen.
    DEMO_SEL_SCREEN_AS_SUBSCREEN
    i want to create similar..
    In main screen i will have 3  screens (which should have of screen type 'Selection screen ' ) and 1 BOX (in which I will have Table control)..
    I created the main screen 0100 and 3 sub screens..(1001,1002,1003)
    But when i want to create these I cannot choose Screen Type as 4 Selection screen (the other options are 1.normal 2.Subscreen 3 Modal dialog box)..
    I have gone through other threads..they simply say its not possible..
    then how was it done in DEMO_SEL_SCREEN_AS_SUBSCREEN..
    Also i have seen Zprograms with 3 sub screens as Selection screen ...
    Also interestingly the  short description of this screen is
    SEL_SCREEN 1100 INFO:140000140000000000000000000005490892784

    Hi,
    This code form teh same program creates them as selection screen.
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1100.
    SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-020.
    PARAMETERS: q1(10) TYPE c OBLIGATORY,
                q2(10) TYPE c OBLIGATORY,
                q3(10) TYPE c OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 1200.
    check this out:
    [http://wiki.sdn.sap.com/wiki/display/ABAP/Select-OptionsinModulePoolProgramming]
    Edited by: sap_wiz on Jun 23, 2011 1:33 PM

  • Selection screen inside a custom container

    hey guys,
    I have a requirement to display a selection-screen inside  a container,How can we solve this problem?
    Hey guys Help me out.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 7, 2008 7:08 AM

    you can call a selection screen in sub screen area
    declare selection screen as
    begin of selection-screen 0100 as subscreen.
    end of selection-screen...
    then,
    in flow logic of your module pool screen
    PBO
    call subscreen <sub_area> including sy-repid '0100'.
    " at selection-screen output event is called
    PAI.
    call subscreen <sub_area>.
    "at selection-screen is called

Maybe you are looking for

  • Itunes has stopped working on PC

    itunes has stopped working on PC

  • List format output to excel sheet

    Hi,     I have a report output in list format. I need to download that into excel sheet. Is it possible to download a list format output to excel sheet or shall I need to convert that into grid format? Thanks Barnita.

  • Regarding OM Infotype Enhancement

    Hi Friends, I got a requirement to enhance a OM Infotype HRP5122 and HRP5126. Please give me a hint to do the enhancement. Thanks, Anil.G

  • SCCM client online status

    Guys, Coming from an Altiris background, does SCCM 2012 R2 console have any quick checks to see if the machine is on or off? Thanks in advance.

  • CRM Tables and Relationships

    Hi, ANyone can you provide me CRM tabels along with their relationship to this mail id. Mail id : [email protected] Thanks in advance, DOnald