Populating selection screen of one prog by calling from another prog

This is regarding variant population.
I need to populate values in selection screen fields of one program (program 2)by calling from another executable ABAP program(.Program 1)
I can identify the variant that i need ot populate.But there is a pushbutton in the selection screen of Program 2 which on clicking leads to some more fields in a pop up screen.How can I populate values in those fields there ?Please help.
Thanks & Regards,
Savitha

I got a problem like that, then I tried to do a BDC, but it doesn't accept BDC's so I made a vbs program. This could help:
FORM exec_vbs .
  DATA:BEGIN OF it_file OCCURS 0,
           line TYPE string,
       END OF it_file.
  DATA:filename     TYPE     string.
  CLEAR it_file[].
  it_file-line = 'msgbox "Variant will be updated, please don''t move or minimize the screen"'.
  append it_file.
  it_file-line = 'Dim objShell:Set objShell = CreateObject("WScript.Shell")'.
  append it_file.
  it_file-line = 'do while(ObjShell.AppActivate("R/A Settlements")=FALSE)'.
  append it_file.
  it_file-line = '  wscript.sleep 2000'.
  append it_file.
  it_file-line = 'loop'.
  append it_file.
  it_file-line = 'wscript.sleep 500:ObjShell.SendKeys "%ye":wscript.sleep 1999'.
  append it_file.
  it_file-line = 'do while(ObjShell.AppActivate("SAP Easy Access")=FALSE)'.
  append it_file.
  it_file-line = '  wscript.sleep 1000'.
  append it_file.
  it_file-line = 'loop'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "cj8g":wscript.sleep 940:ObjShell.SendKeys ""'.
  append it_file.
  it_file-line = 'wscript.sleep 1500'.
  append it_file.
  it_file-line = 'do while(ObjShell.AppActivate("Actual Settlement")=FALSE)'.
  append it_file.
  it_file-line = '  wscript.sleep 1000'.
  append it_file.
  it_file-line = 'loop'.
  append it_file.
  it_file-line = 'wscript.sleep 1950'.
  append it_file.
  it_file-line = '''controlshiftF7'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "^+":wscript.sleep 3100'.
  append it_file.
  it_file-line = '''shift+F2'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 2199'.
  append it_file.
  it_file-line = '''shift+F10'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 500:''SCROL DOWN'.
  append it_file.
  it_file-line = 'for x = 1 to 2: ObjShell.SendKeys "":wscript.sleep 500:next'.
  append it_file.
  it_file-line = '  wscript.sleep 500:ObjShell.SendKeys "":Wscript.Sleep 950'.
  append it_file.
  it_file-line = '''shift+F4'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1999:ObjShell.SendKeys "+ it_file-line = 'Wscript.Sleep 1000:ObjShell.SendKeys "C:\TEMP\Worksheet.txt"'.
  append it_file.
  clear it_file-line.
  concatenate 'Wscript.Sleep 500:ObjShell.SendKeys "' TEMP_FOLDER '\Worksheet.txt' '"' into it_file-line.
  append it_file.
  it_file-line = 'Wscript.Sleep 400:ObjShell.SendKeys "":Wscript.Sleep 2500:ObjShell.SendKeys "":Wscript.Sleep 1900'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "^s":Wscript.Sleep 2900'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
  append it_file.
  it_file-line = 'ObjShell.SendKeys "%"'.
  append it_file.
  it_file-line = 'Wscript.Sleep 1700'.
  append it_file.
  concatenate TEMP_FOLDER '\settle.vbs' into filename.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename = filename
    TABLES
      data_tab = it_file.
  CALL FUNCTION 'WS_EXECUTE'
    EXPORTING
      PROGRAM = filename.
  IF SY-SUBRC <> 0.
  ENDIF.

Similar Messages

  • Causing an event in one VI when called from another

    Hi All
    I wonder if anyone could give me some advice on this. I have a VI, which displays the value of a text control, as a ‘value change’ event using an indicator. If I run this, having checked the ‘update will typing’ parameter for the control, the VI runs as expected and the indicator displays what I type. If I call the VI by reference from another and pass a string to the text control using the Set Control Value [Variant] method, the indicator remains blank, even though I can see the text control is being updated. I’m guessing this is because the event structure is expecting a user generated event which is no longer occurring. Is there any way to re-configure the code so that a value passed in this way, would be seen as an event? I've tried to get some idea from the Labview examples but not being too familiar with the way events work, I'm struggling to make sense of it. (I’m using Labview 7.1)
    Thanks
    Bruce

    knight2 wrote:
    Thanks tbob & Christian.
    Can I just check this? I need to create a new control or indicator in the main VI and create a reference to it. This would then be passed to the subvi and I’m assuming, wired to the Value (signaling) property? If not, where should it go? I'm not too clear on this bit.
    That said, I currently call the subvi from main, by reference. This was because I needed the subvi front panel to be visible before sending text to it. As I’m not passing any values via the connector pane, can the control/indicator reference still be passed?
    Thanks
    Bruce
    Yes, your first paragraph is correct.  Pass the ref to the subvi and use Value(Sgnl) property node in the subvi.  This causes an event for the control, and since it is a reference, the event gets carried to the source of the reference, which is in Main.
    To pass control references (or any object) to a subvi that is called by reference, you can use the Call by Reference method as shown in the attached Main vi.  This allows you to pass items into and out of the subvi called by reference.  If you use the standard way and use GetControlValue and SetControlValue, I don't think you can cause an event in Main by changing a value in the subvi.  If you use the method in my vi, you can use the Value(Sgnl) property in the subvi to cause an event in the Main vi.  This is the only way I know how to send events from a subvi to the main.
    Download the subvi first and put it in some directory.  Then download the main and put it in the same directory as the subvi.  Then when you open Main, it should find the subvi.
    - tbob
    Inventor of the WORM Global
    Attachments:
    MainVI_Ref.vi ‏14 KB
    SubVI_Ref.vi ‏11 KB

  • 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

  • Getting two selection screen in one report

    Hello Friends,
    I am Making report, In my report on first screen i have given two pushbutton, like this :
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    PARAMETERS : p1_but RADIOBUTTON GROUP g1,
                             p2_but RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b2.
    now i want when user click on any one pushbutton it shows another selection screen, whose select options are:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: so_erdat FOR lf_date,
                    so_vbeln FOR lf_vbeln MATCHCODE OBJECT zvbeln..
    SELECTION-SCREEN END OF  BLOCK b1.
    Please guide me can i use two selection screen in one report?, If yes then how can I use? Please revert back me as soon as possible.........

    Hi,
    you can achieve it only by using two USER_DEFINE_SELECTION SCREEN.
    For detail check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba83d35c111d1829f0000e829fbfe/content.htm
    Regards,
    anirban

  • 2 selection screen in one report.

    hi,
    i need to have 2 selection screen in one report....based on the input of 1st selection screen i need to display another selection screen. The 1st selection screen consist of three radio buttons....selecting one of them should allow me to further input data....
    i tried user command, modif id...but the problem is the 2nd selection screen is also displayed initially and den after clickin d radio button i get only the 2nd selection screen...
    i cannot use module pool programming coz of user requirement.
    could anybody help with the code??

    Hi
    Please this code ..
    SELECTION-SCREEN: BEGIN OF BLOCK c1 WITH FRAME TITLE text-001.
    Upload table
    PARAMETER: p_upload TYPE char01  RADIOBUTTON GROUP rsel
                        DEFAULT 'X'  USER-COMMAND ucomm,
    Edit Tables
               p_edt_tb TYPE  char01 RADIOBUTTON GROUP rsel.
    SELECTION-SCREEN: END OF BLOCK c1.
    Upload table
    SELECTION-SCREEN: BEGIN OF BLOCK c2 WITH FRAME TITLE text-002.
    PARAMETERS: p_tab   TYPE char16     MODIF ID m1,
                p_comp  TYPE char18     MODIF ID m1,
                p_plant TYPE werks_d    MODIF ID m1,
                p_excel TYPE localfile  MODIF ID m1.
    SELECTION-SCREEN: END OF BLOCK c2.
    Edit Table
    SELECTION-SCREEN: BEGIN OF BLOCK c3 WITH FRAME TITLE text-003.
    Replace component
    PARAMETER: p_rp_cmp TYPE char01  RADIOBUTTON GROUP edtb
                          DEFAULT 'X' USER-COMMAND ucomm MODIF ID m2,
    Edit Lines
               p_edt_ln TYPE  char01 RADIOBUTTON GROUP edtb MODIF ID m2.
    SELECTION-SCREEN: END OF BLOCK c3.
    SELECTION-SCREEN: BEGIN OF BLOCK c4 WITH FRAME TITLE text-004.
    Replace component
    PARAMETERS: p_tab_r   TYPE char16 MODIF ID m3,   "Assembly Table Name
                p_comp_r  TYPE char18 MODIF ID m3.   "Upload Table Name
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31)  FOR FIELD p_fcomp  MODIF ID m3.
    PARAMETER: p_fcomp  TYPE zpart  MODIF ID m3.
    SELECTION-SCREEN COMMENT 62(20) FOR FIELD p_tcomp  MODIF ID m3.
    PARAMETER  p_tcomp  TYPE zpart  MODIF ID m3.
    SELECTION-SCREEN END OF LINE.
    Edit Lines
    PARAMETERS: p_fexcel TYPE localfile  MODIF ID m4,
                p_texcel TYPE localfile  MODIF ID m4.
    SELECTION-SCREEN: END OF BLOCK c4.
    SELECTION-SCREEN: BEGIN OF BLOCK c5 WITH FRAME TITLE text-005.
    validate data
    PARAMETERS: p_valid AS CHECKBOX DEFAULT space
                        USER-COMMAND ucomm MODIF ID m5,
    Background Processing
                p_back  AS CHECKBOX DEFAULT space
                        USER-COMMAND ucomm.
    SELECTION-SCREEN: END OF BLOCK c5.
    AT SELECTION-SCREEN OUTPUT.
    Design selection parameters dynamically
      PERFORM sub_set_file_param.
    FORM sub_set_file_param .
      LOOP AT SCREEN.
    If Upload is check
        IF  NOT  p_upload IS INITIAL.
          IF screen-group1 = 'M2' OR
             screen-group1 = 'M3' OR
             screen-group1 = 'M4'.
            screen-active = 0.
          ENDIF.
        ELSE.
    If Edit Tables is check
          IF screen-group1 = 'M1'.
            screen-active = 0.
          ENDIF.
        ENDIF.
    If Replace Component is check
        IF p_rp_cmp IS NOT INITIAL.
          IF screen-group1 = 'M4' OR
             screen-group1 = 'M5'.
            screen-active = 0.
          ENDIF.
        ELSE.
    If Edit Lines is check
          IF screen-group1 = 'M3'.
            screen-active = 0.
          ENDIF.
        ENDIF.
    Modify the screen
        MODIFY SCREEN.
      ENDLOOP.
    ENDFORM.

  • Help on having TWO selection screen in one report

    Hi experts,
    I do not know if this can be done. I need to have 2 selection screen. The first selection screen will get all the values from the database table based on the inputs.
    After the user select the values already, it will do a database quay after which it will go to another selection screen for user to make further selection and after which it will display the results.
    So i am wondering can this be done. And how do i do it?
    Thanks!
    Lawrence

    Hi,
    I getting the below code while browsing
    ===========================================
    REPORT ztest.
    TABLES : mara ,
             t001 ,
             t001w .
    CONSTANTS : c_yes TYPE c VALUE '1' ,
                c_no TYPE c VALUE '0' .
    PARAMETERS : p_opt1 TYPE c RADIOBUTTON GROUP radi USER-COMMAND op1 ,
                 p_opt2 TYPE c RADIOBUTTON GROUP radi ,
                 p_opt3 TYPE c RADIOBUTTON GROUP radi .
    SELECT-OPTIONS : s_mara FOR mara-matnr MODIF ID op1 , "Material
                     s_bukrs FOR t001-bukrs MODIF ID op2 , "Company Code
                     s_werks FOR t001w-werks MODIF ID op3 . "Plant
    AT SELECTION-SCREEN OUTPUT .
    LOOP AT SCREEN .
      IF screen-group1 = 'OP1' .
        IF p_opt1 = 'X' .
          screen-invisible = c_no .
            screen-active = c_yes .
        ELSE.
            screen-invisible = c_yes .
            screen-active = c_no .
        ENDIF.
        MODIFY SCREEN .
      ENDIF.
      IF screen-group1 = 'OP2' .
        IF p_opt2 = 'X' .
            screen-invisible = c_no .
            screen-active = c_yes .
        ELSE.
            screen-invisible = c_yes .
            screen-active = c_no .
        ENDIF.
        MODIFY SCREEN .
      ENDIF.
      IF screen-group1 = 'OP3' .
        IF p_opt3 = 'X' .
            screen-invisible = c_no .
            screen-active = c_yes .
        ELSE.
            screen-invisible = c_yes .
            screen-active = c_no .
        ENDIF.
        MODIFY SCREEN .
      ENDIF.
    ENDLOOP.
    =======================

  • Action link URL calling from another screen from the same web server not work

    Hi there,
    I have an action link URL calling from another screen from the same web server, used the following syntax:
    /analytics/saw.dll?Go&path=.....
    But it is not working, when open the page, it shows error message
              Oops! Google Chrome could not find analytics
    Any help? Thanks!
    Ling

    That's a +1 from me... same issue and yes, isn't inelegant or a shortcoming for some might be the cause of boldness as they rip their hair off their head so thanks in advance for keeping the refinement of the magic potions making the EA secret magic sauce... which may help stop hairloss
    Cheers!
    tfbkny

  • My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    Clean iPhone charging port with clean dry toothbrush. See if better. If still problem clean charging port again with toothbrush and small amount of Isopropyl Alcohol.

  • My Gf has my iphone. How can I see recent messages and calls from another device?

    My Gf has my iphone. How can I see recent messages and calls from another device?

    Depending on your carrier, you may be able to see recent calls by logging into your account on the carrier's web site, if they offer such a feature, though incoming calls being shown is not usual. There will, as diesel said, be no way to see messages already received, either SMS/MMS or iMessages, without having the phone.
    Regards.

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • Initialization section vs call from another code block in package.

    hi,
    why is it intialization section in package body is more than call from another code block the package .

    The initialization section is only called once upon the initial loading of the package into memory, which is just once per session. So, accessing any function or procedure etc in the package causing it to load into memory will automatically run the initialization section first. It doesn't have to be called specifically.

  • Populating selection screen

    Hi i have a requirement wherin i will select a value on the selection screen using F4 help and then based on the value selected some other fileds on the selection screen will get populated.
    For this i am using the below code but somewhere i am going wrong.Can you please point out where i m going wrong.
    AT SELECTION-SCREEN ON VALUE-REQUEST  FOR s_accno-low.
      PERFORM z_search_help.
    FORM z_search_help .
      CLEAR:   inttab,
               fieldtab_rt,
               returntab.
      REFRESH:   inttab,
                 fieldtab_rt,
                 returntab.
      SELECT accountnumber customerid FROM zskd_tab INTO TABLE inttab WHERE accountnumber = lv_accno.
      fieldtab_rt-tabname = 'ZSKD_TAB'.
      fieldtab_rt-fieldname = 'ACCOUNTNUMBER'.
      APPEND fieldtab_rt.
    fieldtab_rt-tabname = 'YHR_EPAY_PM_DE_HRBP_HELP'.
    fieldtab_rt-fieldname = 'ZZENAME'.
    APPEND fieldtab_rt.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          retfield               = 'ACCOUNTNUMBER'
      PVALKEY                = ' '
         dynpprog               = sy-cprog
         dynpnr                 = sy-dynnr
         dynprofield            = 'ACCOUNTNUMBER-LOW'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
         value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
        TABLES
          value_tab              = inttab
        field_tab              = fieldtab_rt
        return_tab             = returntab
      DYNPFLD_MAPPING        =
       EXCEPTIONS
         parameter_error        = 1
         no_values_found        = 2
         OTHERS                 = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at returntab.
    s_custno-sign = 'I'.
        s_custno-option = 'EQ'.
        s_custno-low = returntab-fieldval.
    endloop.

    Hi,
    Please see the below code. In this example if you give carrid automatically connid and fldate will be filled.
    PARAMETERS: carrid TYPE scarr-carrid ,
                connid TYPE spfli-connid,
                fldate TYPE sflight-fldate.
    TYPES : BEGIN OF typ,
                carrid TYPE s_carr_id,
                connid TYPE s_conn_id,
                fldate TYPE sflight-fldate,
            END OF typ.
    DATA : t_scarr TYPE TABLE OF typ,
          fs_scarr TYPE typ.
    DATA : t_fill TYPE TABLE OF  dselc,
           fs_fill TYPE dselc,
           t_return_tab TYPE TABLE OF ddshretval,
           t_field_tab TYPE TABLE OF dfies.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR carrid.
      SELECT carrid
            connid
             fldate
        FROM sflight
      INTO TABLE t_scarr.
      fs_fill-fldname = 'F0001'.
      fs_fill-dyfldname = 'CARRID'.
      APPEND fs_fill TO t_fill.
      CLEAR fs_fill.
      fs_fill-fldname = 'F0002'.
      fs_fill-dyfldname = 'CONNID'.
      APPEND fs_fill TO t_fill.
      CLEAR fs_fill.
      fs_fill-fldname = 'F0003'.
      fs_fill-dyfldname = 'FLDATE'.
      APPEND fs_fill TO t_fill.
      CLEAR fs_fill.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'CARRID'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'CARRID'
          value           = 'CARRID'
          value_org       = 'S'
        TABLES
          value_tab       = t_scarr
          field_tab       = t_field_tab
          return_tab      = t_return_tab
          dynpfld_mapping = t_fill
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards,
    Supriya.
    Edited by: Supriya.ch on Feb 23, 2012 3:27 PM

  • Creating Transaction code for selection screen of one ztable

    Hi ,
        i have one Ztable in order see the data in it , he wants one new transaction . by executing tht transaction he wants to view the data inside the table.
    i have created one transaction code by taking the transaction type as report transaction and program name i gave the selection screen program of tht table.
    when i executed tht t code  selection screen of table contents should come and on executing it i have to get  data.
    but im not getting data on executing tht selection screen .
    why? for this scenario which tcode type i have to select.

    Hi Pavan,
    Check this,
    Step 1
    Create parameter transaction (i.e. via SE93)
    Select the fourth options
    Step 2
    Enter transaction details. Within the Proposed values section there are a number of value which
    can be setup, simply use drop down menu to view the list. The 2 values assigned in the following
    example are as follows:
                   VIEWNAME:        Set table name to maintained
                   UPDATE:               Open table for update
    Mohinder

  • Selection screen validation  - one field based on another field

    Hi all,
    i'm getting Month in Select option and Year in Parameter.
    When i execute the report, it should check whether one is entered without the other one. If so, it should throw error message. 
    How to do this in selection screen ?
    this is what the coding should be...
      if s_month[] is not initial and p_year is initial.
        Message 'Enter Payroll Year' type 'E'.
      endif.
      if s_month[] is initial and p_year is not initial.
        Message 'Enter Payroll month' type 'E'.
      endif.
    But under which event i should write this..
    can anyone pls help me..
    Regards,
    Shanthi

    Hi Shanti,
    Define your selection-screen elements between
    SELECTION-SCREEN BEGIN OF BLOCK <block name>
    Select-options....
    Parameters:
    SELECTION-SCREEN END OF BLOCK <block name>
    You specify ur code in AT SELECTION-SCREEN ON BLOCK <b1>.
    This would help you if either one of the entry is missing...
    And even you can mention in AT SELECTION-SCREEN event...
    But if you have any other parameters there its not necessary for the user to specify if he had entered...
    As month and year are interrelated for your program its better you go for the first procedure ie in BLOCK event.
    Hope this would help you,
    Regards
    Narin Nandivada.

  • Selection screen in one line

    this is ma code SELECTION-SCREEN : BEGIN OF BLOCK A WITH FRAME TITLE TEXT_001.
    *SELECTION-SCREEN : BEGIN OF LINE .
    *SELECTION-SCREEN : COMMENT 3(20) TEXT_002 for field s_fkart.
    *SELECT-OPTIONS   : S_FKART FOR VBRK-FKART NO INTERVALS NO-DISPLAY.
    *SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE .
    SELECTION-SCREEN : COMMENT 3(23) TEXT_003.
    PARAMETERS       : P_VKORG TYPE VBRK-VKORG OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE .
    SELECTION-SCREEN : COMMENT 3(20) TEXT_004.
    SELECT-OPTIONS   : S_VTWEG FOR VBRK-VTWEG NO INTERVALS.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE .
    SELECTION-SCREEN : COMMENT 3(23) TEXT_007.
    PARAMETERS       : P_SPART TYPE VBRK-SPART OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE .
    SELECTION-SCREEN : COMMENT 3(23) TEXT_006.
    PARAMETERS       : S_FKDAT2(4) TYPE C OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE .
    SELECTION-SCREEN : COMMENT 3(23) TEXT_008.
    PARAMETERS       : P_MONTH(2) TYPE C OBLIGATORY.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : END OF BLOCK A.
    i want s_fkdat and p_month in same line how to do ?

    Hi,
        SELECTION-SCREEN : BEGIN OF LINE .
        SELECTION-SCREEN : COMMENT 3(23) TEXT_006.
        PARAMETERS : S_FKDAT2(4) TYPE C OBLIGATORY.
        SELECTION-SCREEN : COMMENT 45(23) TEXT_008.
        PARAMETERS : P_MONTH(2) TYPE C OBLIGATORY.
        SELECTION-SCREEN : END OF LINE.
    Change the Position of the comment for second parameter.
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Sep 12, 2008 12:57 PM

Maybe you are looking for

  • Questions about the Program "Renamer4Mac" (file renamer program)

    Does anyone use this program? Or does anyone know of a good program that can be used to rename a large group of files? I have been trying to use this program to get rid of all the ",jpg" and ".doc" and ".ppt" etc, on my files. However, when I use the

  • How to avoid Wait upto 5 seconds

    Dear Friends, I have used the below code for generating the spool by submitting the standard program. CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = lv_job_name IMPORTING jobcount = lv_job_nr EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_

  • PDF Convert to Excel

    I exported a PDF file to convert to excel and the information is all over the place. Not in the right columns. How do I fix this?

  • Trouble with image restore on dreamweaver cs3

    I am a GoLiver trying to learn Dreamweaver. I am having a problem with image restore on the rollover.  Here is the url http://www.allthegills.com/meadowcroftweb Not sure where I went wrong. Thanks for any help.

  • Captivate 6 Audio not playing in preview

    I have been inserting audio recordings into my Captivate 6 project slides with no problem. I inserted them, clicked play, and they worked. This morning, however, I found none of my audio would play when I click Play at the bottom of my Timeline. It w