Selection screen field not working in Query

Hi Gurus!
I have a small problem with one of my query that I just created for finding status of our customers. I have a code section which handles it all . The problem is that I ahve a user field called "Check date" which I ahve used in selection screen as well as the layout, when I put a value in this field in the selection screen the report dosent give any output " NO data to display" but when I leave it open it does give me the out put with the saem check date as I ahd entered earlier in my selection screen.
I am not sure where my selection code is working wrong . Could anyone please help me out please.
DATA: ls_vakpa LIKE vakpa.
DATA old_date LIKE sy-datum.
old_date = key_date - num_days.
status = 'ACTIVE'.
check_date = old_date.
* (If I entere this field (check_date) with any date
*  and run it does not give me output and without
* entry it dioes give output.
  SELECT SINGLE * FROM vakpa INTO ls_vakpa
      WHERE kunde = kna1-kunnr
   AND audat > old_date.
      IF sy-subrc <> 0.
    SELECT SINGLE * FROM vakpa INTO ls_vakpa
        WHERE kunde = kna1-kunnr
      AND audat < old_date.
      IF sy-subrc = 0.
      ls_audat = ls_vakpa-audat.
      ls_vbeln = ls_vakpa-vbeln.
    ELSE.
      CLEAR ls_audat.
      clear ls_vbeln.
    ENDIF.
    status = 'INACTIVE'.
  ELSE.
    ls_audat = ls_vakpa-audat.
    ls_vbeln = ls_vakpa-vbeln.
  ENDIF.
Edited by: Rob Burbank on Apr 7, 2010 12:08 PM

DATA: ls_vakpa LIKE vakpa.
DATA old_date LIKE sy-datum.
old_date = key_date - num_days.
status = 'ACTIVE'.
check_date = old_date.
if old_date is initial.
   old_date = key_date - num_days.
   check_date = old_date.
endif.
  SELECT SINGLE * FROM vakpa INTO ls_vakpa
      WHERE kunde = kna1-kunnr
*      AND audat > old_date.
    AND audat > check_date.
  IF sy-subrc <> 0.
    SELECT SINGLE * FROM vakpa INTO ls_vakpa
        WHERE kunde = kna1-kunnr
*        AND audat < old_date.
      AND audat < check_date.
    IF sy-subrc = 0.
      ls_audat = ls_vakpa-audat.
      ls_vbeln = ls_vakpa-vbeln.
    ELSE.
      CLEAR ls_audat.
      clear ls_vbeln.
    ENDIF.
    status = 'INACTIVE'.
  ELSE.
    ls_audat = ls_vakpa-audat.
    ls_vbeln = ls_vakpa-vbeln.
  ENDIF.

Similar Messages

  • Added field to dynamic selection screen does not work in FBL5N

    hi,
    we have added KNA1-KATR5 to the selection screen of FBL5N by using logical database DDF using "view CUS" but it does not work.
    Our system is 6.0
    is there any OSS note or program that we should add?
    many thx.

    Refer This:
    Additional field selections in FB03

  • Selection screen field not accepting 0 as a value

    i have declared a field in the selection screen as
    SELECT-OPTIONS:  s_level    FOR  crmm_territory-level_id .
    and this field will comprise of values from 0-9. but when im executing the report this field is not accepting 0 as a value, instead it is treating it as a blank and providing me all the values for s_level from 0-9.
    its working fine with any other value and is displaying their respective values for 1-9
    only problem is when i give the value as zero.
    also in the debugger i tried to IF s-level[] is not initail...its showing it as initial
    while i have provided it a value of 0.
    thanks.

    Hello Divya,
    If you are giving 0 in the select-options....
    if that field is numeric... it means that it is inital.
    If that field is character... then it will display the result accordingly.
    Check with the data element of the reference field.
    Reward If Helpful
    Regards
    Sasidhar Reddy Matli.

  • AT SELECTION-SCREEN OUTPUT not working!

    Hi,
    I am useing the statement AT SELECTION-SCREEN OUTPUT to disable some input fields based on a check box(PR_FILE).however when I execute the program the changes on the screen are not reflected!I have written the AT SELECTION-SCREEN OUTPUT stmt immediately after SELECTION-SCREEN stmt .
    Defination for the screen elements is  as  follows:
    SELECT-OPTIONS s_plants FOR  ls_selected_plant-plant
                                                         NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK filesel WITH FRAME TITLE text-012.
    PARAMETERS pr_file TYPE xfeld .
    PARAMETER : pr_path LIKE rlgrap-filename .
    SELECTION-SCREEN END OF BLOCK filesel.
    AT SELECTION-SCREEN OUTPUT.
      IF pr_file = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 's_plants'.
            screen-input    = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-name = 'pr_path'.
            screen-input    = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Can anybody suggest what wrong i have done??

    You need to use the User Command for the checkbox and the Modificaiton ID (Group) for the fields.
    Try like this:
    TABLES: VBRP.
    SELECT-OPTIONS S_PLANTS FOR VBRP-WERKS NO INTERVALS MODIF ID GP1.
    SELECTION-SCREEN BEGIN OF BLOCK FILESEL WITH FRAME TITLE TEXT-012.
    PARAMETERS PR_FILE TYPE XFELD USER-COMMAND USR1.
    PARAMETER : PR_PATH LIKE RLGRAP-FILENAME MODIF ID GP2 .
    SELECTION-SCREEN END OF BLOCK FILESEL.
    AT SELECTION-SCREEN OUTPUT.
        IF PR_FILE = 'X'.
          LOOP AT SCREEN.
            if screen-group1 = 'GP1'.
              SCREEN-active = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-group1 = 'GP2'.
              SCREEN-active = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    Regards,
    Naimesh Patel

  • Date field not working in Query definition

    Hello Experts ,
    I am trying to prepare one report which will pull some fields ( extended fields ) from Rfx header page and display in the report . For this I have made one  query definition and written SQL query .  Now all fields except the date fields are successfully fetched and displayed by the query .  Only when I am adding the date field inside "result field" tab , the query is throwing error  like -
    " ORA-00904: "EFFECTIVE_START_DATE": invalid identifier   "
    but this field name is correct  .
    Any formatting needs for this field ?
    Regards
    Sudipta

    Hi Sudipta,
    Thanks for your reply.
    Actually I have created a diferent extension field and want to add that field in Results fields of particular Query Definition. But when I use it Tablename.Extension_Field_Name, its giving below exception
    ORA-00904: "t"."fieldname": invalid identifier
    Any idea what needs to be taken care of while using extension fields in Queries.
    Thanks,
    Saloni

  • Selection screen fields are not getting detected in an infoset in code

    Hi All,
    I am developing an infoset query using logical database 'PNPCE'. I am facing problem while writing a validation on selection screen fields on an infoset query at infoset code level.
    The fields that are under program specific selection are determined at runtime with variables viz. SP$00001, SP$00002 etc. There are actually select options on selection screen of an infoset query.
    So I cannot write a direct  code on these fields as they do not exist at infoset level and hence cannot be detected.
    I want to put down a validation that if user does not select anything on selection-screen and executes the query, then he should get a pop-up message 'Narrow down your search...' and he should go back to selection screen again.
    Is there any alternative way to achieve this?

    hi,
    Your Screen resolution is more in the system that's why while creating it was fine and while executing it was gone after the next field.
    so you better create a frame and place that inside it or you can change cols size  in the properties about the columns you want

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • Selection Screen - Field dehighlight

    Hello All,
    How can i make an Selection screen field not as an Input field.
    The field is a parameter P_GJAHR which will always be set to 2005. So, i would like to see FY 2005 on the selection screen field as dehighlighted.
    Would be glad if views are provided on this.
    Regards,
    - PSK

    PARAMETERS : P_GJAHR LIKE BKPF-GJAHR MODIF ID SG1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'SG1'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Hope this helps,
    Erwan.

  • Selection screen fields in query

    experts
    i have created a query with 5 selection screen fields, now i want to change the order of the fields in the selection screen.
    Earlier:
    Material
    order
    delivery
    qty
    amount
    Now i want
    order
    material
    delivery
    amount qty
    In sq01 i tried but there are possibility to change the output fields but not selection screen field sequence.

    Hi,
    In SQ01, enter the query name and click on the change button.
    Next click on the next screen (top left) arrow button until you reach Change query xxxxx: Selections.
    Here under the column No  enter the number like 1,2,3, 4 ... against the checked fields that want to see in order. Then save the query.
    Regards,

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Selection screen fields in SAP Query

    HI friends,
    I have to make the seletion screen field as mandatory in SAP-Query.
    Please let me know the procedure to make field as mandatory or Let me know how to validate the selection-screen field in Query.
    Thanks in Advance,
    Ravi

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • Selection-screen fields validation for dialog

    Hello ABAP Gurus
    Requirements: this is a report wherein , depending upon the correct select-options , user will pick some field values from table and some will be entered by the user in the next se51 custom screen for creation of a record in a ztable .
    the problem is :without validating select-options values , it calls the se51 screen 100.
    How to keep the cursor at the selection-screen field until & unless user enters the correct i/p s .if i/p are correct then only it should call screen 100 otherwise remain in the selection screen only .
    *& Report ZSD_REP_QUOT_BANK_CREATE *
    REPORT ZSD_REP_QUOT_BANK_CREATE NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES: VBAK,VBAP,VBRK,ZSD_TABL_QOTBANK,MARA,KONV.
    DATA: OK_CODE LIKE SY-UCOMM,
    SAVE_OK_CODE LIKE SY-UCOMM,
    WA_ITAB LIKE ZSD_TABL_QOTBANK,
    ANSWER TYPE C,
    COPIED ,
    STS TYPE N,
    EMGRP LIKE MARA-EXTWG,
    QTY LIKE ZSD_TABL_QOTBANK-QTY,
    UPRICE LIKE ZSD_TABL_QOTBANK-UPRICE,
    TOT LIKE ZSD_TABL_QOTBANK-TOT,
    INO LIKE VBAP-POSNR.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: S_QTNO FOR ZSD_TABL_QOTBANK-QTNO
    NO INTERVALS NO-EXTENSION OBLIGATORY,
    S_ITNO FOR ZSD_TABL_QOTBANK-ITNO
    NO INTERVALS NO-EXTENSION OBLIGATORY.
    S_MATNO FOR ZSD_TABL_QOTBANK-MATNO
    NO INTERVALS NO-EXTENSION. "
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN.
    SELECT SINGLE VBTYP
    INTO VBAK-VBTYP
    FROM VBAK
    WHERE VBELN IN S_QTNO.
    IF SY-SUBRC EQ 0 AND VBAK-VBTYP NE 'B'.
    MESSAGE I005(ZQOTBANK).
    SET CURSOR FIELD S_QTNO-LOW.
    SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
    ENDIF.
    CLEAR WA_ITAB.
    SELECT SINGLE QTNO ITNO
    INTO WA_ITAB
    FROM ZSD_TABL_QOTBANK
    WHERE QTNO IN S_QTNO
    AND ITNO IN S_ITNO.
    IF SY-SUBRC EQ 0.
    MESSAGE I001(ZQOTBANK).
    SET CURSOR FIELD S_QTNO-LOW.
    SET CURSOR FIELD S_ITNO-LOW.
    SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
    ENDIF.
    *START-OF-SELECTION.
    END-OF-SELECTION.
    CALL SCREEN 0100.
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS '0100'.
    SET TITLEBAR '0100'.
    ZSD_TABL_QOTBANK-QTNO = S_QTNO-LOW.
    SELECT SINGLE BUKRS_VF VKORG VTWEG SPART KUNNR ERDAT BNDDT
    KNUMV
    INTO (ZSD_TABL_QOTBANK-CCODE,
    ZSD_TABL_QOTBANK-SORG,
    ZSD_TABL_QOTBANK-DISTCHAN,
    ZSD_TABL_QOTBANK-DIV,
    ZSD_TABL_QOTBANK-CUSTNO,
    ZSD_TABL_QOTBANK-QTDAT,
    ZSD_TABL_QOTBANK-QTVALDAT,
    VBAK-KNUMV)
    FROM VBAK
    WHERE VBELN IN S_QTNO
    AND VBTYP = 'B'.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE KWMENG POSNR MATNR
    INTO (QTY , INO , ZSD_TABL_QOTBANK-MATNO)
    FROM VBAP
    WHERE VBELN IN S_QTNO.
    SELECT SINGLE EXTWG
    INTO EMGRP
    FROM MARA
    WHERE MATNR EQ ZSD_TABL_QOTBANK-MATNO.
    ZSD_TABL_QOTBANK-ITNO = INO.
    ZSD_TABL_QOTBANK-EMATGRP = EMGRP.
    ZSD_TABL_QOTBANK-QTY = QTY.
    SELECT SINGLE KBETR
    INTO UPRICE
    FROM KONV
    WHERE KNUMV = VBAK-KNUMV
    AND KPOSN = INO
    AND KSCHL = 'PR00'.
    ENDIF.
    ZSD_TABL_QOTBANK-UPRICE = UPRICE.
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-CGL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-CGL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-CGL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-BHEL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-BHEL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-BHEL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-BHEL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-BHEL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-BHEL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-ALSTOM_QTY.
    UPRICE = ZSD_TABL_QOTBANK-ALSTOM_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-ALSTOM_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-SIEMENS_QTY.
    UPRICE = ZSD_TABL_QOTBANK-SIEMENS_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-SIEMENS_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-TELK_QTY.
    UPRICE = ZSD_TABL_QOTBANK-TELK_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-TELK_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-OTH_QTY.
    UPRICE = ZSD_TABL_QOTBANK-OTH_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-OTH_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
    WHEN 'SAVE'.
    INSERT ZSD_TABL_QOTBANK.
    IF SY-SUBRC EQ 0.
    MESSAGE I000(ZQOTBANK).
    COMMIT WORK.
    CALL SELECTION-SCREEN 1000.
    ELSE.
    MESSAGE E001(ZQOTBANK).
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module EXIT_COMMAND INPUT
    text
    MODULE EXIT_COMAND INPUT.
    SAVE_OK_CODE = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_OK_CODE.
    WHEN 'CANCEL'.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
    TITLEBAR = 'Quotation Bank Entry'
    TEXT_QUESTION = 'Do you want to Cancel ?'
    TEXT_BUTTON_1 = 'Yes'
    TEXT_BUTTON_2 = 'No'
    DEFAULT_BUTTON = '2'
    IMPORTING
    ANSWER = ANSWER.
    IF ANSWER = '1'.
    LEAVE PROGRAM.
    ELSE.
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    WHEN 'EXIT'.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
    TITLEBAR = 'Quotation Bank Entry'
    TEXT_QUESTION = 'Do you want to Exit ?'
    TEXT_BUTTON_1 = 'Yes'
    TEXT_BUTTON_2 = 'No'
    DEFAULT_BUTTON = '2'
    IMPORTING
    ANSWER = ANSWER.
    IF ANSWER = '1'.
    LEAVE PROGRAM.
    ELSE.
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    ENDCASE.
    ENDMODULE. " EXIT_COMMAND INPUT
    Thnx in Advance

    Put the statement
    CALL SCREEN 100
    in the event <b>AT SELECTION-SCREEN</b> and NOT in <b>END-OF-SELECTION</b>.
    Regards,
    Subramanian V.

  • SELECT DISTINCT does not work - Another Problem!

    Dear All
    Previous Post
    I just posted a thread, which has been answered by an expert. It's here:
    SELECT DISTINCT does not work. Why?
    My original problem was that the Query returned duplicate records, and SELECT DISTINCT did not work.
    The solution was to change this select:
    T0.[U_SupInv]      AS 'Link'
    ... to this:
    CAST(T0.[U_SupInv] as nvarchar(100))      AS 'Link'
    The amended Query worked.
    New Problem
    I just discovered that resolving the problem created a new one.
    The field U_SupInv (Link) is in fact a UDF.
    I created it so that all Suppliers' Invoices could be Scanned to pdf files, and these pdf could be linked
    to the respective AP Invoice.
    Originally, when I clicked 'Link' in my Query results, the pdf scan pops up.
    When the Query is amended by adding CAST, the link becomes dead.
    Help
    Could anyone tell me how I can make SELECT DISTINCT work, as well keeping the LINKS live?
    The main purpose of my Query is to help users view the pdf scans by clicking on the links.
    Thanks
    Leon Lai
    Here's my Original Query
    SELECT
    T0.[UpdateDate] AS 'Update Dt',
    T0.[TaxDate] AS 'Doc Dt',
    CASE T5.[TransType]
         WHEN '18' THEN 'PU ' + CONVERT(VARCHAR(6), T0.[DocNum])
         WHEN '19' THEN 'PC ' + CONVERT(VARCHAR(6), T0.[DocNum])
    END 'SAP Ref.',
    T1.[ImportLog]     AS 'Ship #',
    T0.[CardCode] + '' AS 'Supplier #',
    T0.[CardName]      AS 'Supplier Name',
    T0.[DocTotal]      AS 'Rs',
    T1.[BlockNum]      AS 'Reqn #',
    T0.[DocNum]        AS 'Doc No',
    T0.[U_SupInv]      AS 'Link'
    FROM klship.[dbo].[OPCH] T0
    INNER JOIN klship.[dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN klship.[dbo].[OJDT] T5 ON T0.[TransID] = T5.[TransID]
    WHERE
    (T0.[UpdateDate] >= '[%2]' AND
    T0.[UpdateDate]  <= '[%3]' AND
    T0.[U_SupInv] IS NULL)
    OR
    (T0.[UpdateDate] >= '[%4]' AND
    T0.[UpdateDate]  <= '[%5]' AND
    T0.[U_SupInv] IS NOT NULL)
    FOR BROWSE

    Dear István Korös,
    Thanks a lot for your answer.
    I will test your suggestion tomorrow, as it's night and I am returning home now.
    However, I do not think it will suit my requirements for the foll reasons:
    - I worked hard to get rid of the need to enter anything in the @Scan2 field.
    - This UDF was created solely as a text of instruction for my staff.
       Unfortunately I had to fill in something to make the Query work.
    - The problem is that if the user forgets to click the drop-down arrow and leaves @Scan2
       blank, the query does not work.
    - With the help of another expert, I succeeded in ignoring @Scan2 altogether.
    - I posted only a simplified version of my Query on the forum, without the codes relating to eliminating the
      need to enter something in @Scan2, so you may not be aware of my requirement.
    - I hope you understand my reluctance. But I will try your suggestion nevertheless.
    My Suggestion
    I think using PCH1.VISORDER may be the solution.
    If we select only those rows where visorder = 0, then
       - there will be no duplication
       - I need not use SELECT DISTINCT
       - All my LINKS to pdf files will be live because I need not use CAST
       - I may retain that part of my Query which permits ignoring @Scan2 altogether.
    - A Dream!-
    The problem is that I don't know how and where  to place that VISORDER.
    If you think I may be right, could you help me along that line?
    Best Regards
    Leon Lai

  • Regarding Search help on selection-screen field

    Hi there,
    I am working on custom tables.
    I have a requirement to maintain search pattern on a selection-screen field.
    selection-screen parameter: p_name which is company name filed from Z table.
    By giving a string like Holl* and by  pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
    Thanks in advance.
    -Tulasi

    Hi
    Go through the link given below :
    How to create a search help for my own fields in selection screen
    F4 search help on report selection screen
    also try :
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'VKORG'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_VKORG'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'C'
    TABLES
    VALUE_TAB = T_TABLE1
    FIELD_TAB = field_tab
    RETURN_TAB = RET_TAB
    DYNPFLD_MAPPING = DYN_TAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    With Regards
    Nikunj shah

  • Selection screen field problem

    Hello experts..
    i have a selection screen , in that i have a field   s_bwart for mseg-bwart.
    some times the user will input the data in the field and sometimes he wont. we have fixed movement types combination like
    11-21 , 13-24 , 13-56 , 101-543 , 101-544 etc.
    if the user did not input any thing in the selection screen , i am populating s_bwart in at-selection screen event with all the mvt types. after executing the report when user presses the back button to come to the selection screen, there the s_bwart field is containing all the mvt types in single values ie in the select options screen. So the user dont want that, if he comes back nothing should be there in the selection screen field s_bwart if he has not inputted anything. if he inputs only 11 mvt type then when he comes back after executing the report he should see only 11 in the select screen field ie s_bwart. Please send the replies on how to solve the problem.

    hi,
    in ur program try to display values for users in START-OF-SELECTION event as it triggers after the selection screen displayed for users. if user doesn't give any input then display default values in this event. and also create a variable
    for ex:
    data: ws_flag type c,
             p_value type i.
    after u display default values for users in selection screen assign the flag as ' X '
    ws_flag = 'X'.
    before leaving ur program based on flag try to do like this.
    if ws_flag = ' X '.
        clear s_data. // s_data is the select options for u.
    else.
         s_data = p_value. // the value which user gave in selection screen as i/p.
    endif.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

Maybe you are looking for

  • Itunes doen't install on my 64 bit machine "there is a problem with this windows installer package..."

    Ever since ITunes has come out with a dedicated 64 bit version, I have been unable to install Itunes. the first time I had the problem it suggested I unistall itunes which I did. Itunes still will not install however. I have cleared my temp files, mo

  • Constantly getting kicked off wifi.

    So, I've never had an issue with wifi on my iPad until I changed my security to WEP. To fix it the first time, I just "forgot network" and signed back in with the password. I didn't have an issue for months until recently. So I tried the fix previous

  • Possible to Change the Plug-Ins Folder Used by Safari?

    I'm trying to set up Firefox with no plug-ins and Safari with plugins, to switch back and forth as needed. Both want to use the same Library/Internet Plugins folder. Any way to alter the plug-ins directory for either of them? Is a Unix command going

  • Design view no styling

    Hi Recently, and I do not think it is specific to an update, Dreamweaver 2014.1.1 build 6981 is opening files and in the design view all styles are not rendering. Do all my fonts are default face and black and links blue. I work in e-mail marketing a

  • Resetting DLM profile

    Hi, I'm on BT Infinity 1 and have been recieving terrible speeds over the first quarter of the year. I used to get speeds of around 30mb download and 9mb upload, now I can only get speeds of around 2mb download and just under 1mb upload.  At the end