Adding field dynamically on screen.

Hi All,
I have to add fields dynamically on screen based on the no. of data records.
Is there any way to add field dynamically.
I need field like this:
first a check box       second not editable field  third editable field.
Table control is another way to solve the problem but only constraint about check box.
Please help me find out any solution.
Thanks in advance.
Piyush Mathur

write your code as :
AT SELECTION-SCREEN OUTPUT.
for making data set 2# inactive
  IF rdt1 = c_x.
    LOOP AT SCREEN.
      IF screen-name EQ 'S_BELNR-LOW' OR
         screen-name EQ 'S_BELNR-HIGH' OR
         screen-name EQ 'P_GJAHR'.
        screen-input ='0'.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
for making data set 1# inactive
  IF rdt2 = c_x.
    LOOP AT SCREEN.
      IF screen-name EQ 'S_BUDAT-LOW'
         OR screen-name EQ 'S_BUDAT-HIGH'
         OR screen-name EQ 'S_KUNNR-LOW'
         OR screen-name EQ 'S_KUNNR-HIGH'
         OR screen-name EQ 'RDS1'
         OR screen-name EQ 'RDS2'.
        screen-input ='0'.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
END-OF-SELECTION.

Similar Messages

  • Adding fields on selection screen dynamically

    Hi all,
    Can we add some fields to selection screen dynamically on pushbutton click?
    Regards,
    Dnyanesh

    just have look below code
    REPORT zrsdvsr1
           LINE-SIZE 220
           LINE-COUNT 65(5).
    TYPE-POOLS : slis.
    TABLES
    TABLES: vbak.
    DATA DECLARATIONS
    Ranges
    RANGES: r_posnr FOR vbap-posnr.
    DATA: BEGIN OF t_veramt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
          END OF t_veramt.
    DATA: BEGIN OF t_disamt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
            netwr_v TYPE vbap-netwr,
            mwsbp_v TYPE vbap-mwsbp,
            disc_val TYPE vbap-mwsbp,
          END OF t_disamt.
    *&   ALV FIELDS
    DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           alv_layout TYPE slis_layout_alv.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
                 p_sab RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
    PARAMETERS:    p_dwfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test1.txt' MODIF ID gr2,         "#EC NOTEXT
                   p_upfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test.txt' MODIF ID gr3.          "#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_upfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_dwfile.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF  p_sab = 'X'.
          IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ELSE.
          IF screen-group1 = 'GR3'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION
    START-OF-SELECTION.
    Check Radio Button
      IF p_ver = 'X'.
        PERFORM get_details_open_so_vertex.
      ELSE.
        PERFORM get_details_open_so.
      ENDIF.
    Display the output.
      PERFORM diplay_report .
    regards
    vinod

  • Adding field in pa30 screen urgent

    hi all,
    i am new to user exits.
    and my requirement is to add a field in screen for PA30 tcode screen.
    so how i can go for this .
    if anyone has added fields in any SAP standard screen
    then plz give me the doc regd that with screen shots if u have otherwise give me the steps.
    my mail id is- [email protected]
    plz i am looking urgently for it.
    i will award all ur efforts.
    thanks
    sanjeev

    Screen Exit
    Please remove the TDS-related input fields on the PO entry screen on the customer data tab  (PO line details).
    - TDS account
    - TDS cost code
    - TDS sub code
    1.     Goto Transaction Code Me21n
    Fill the following fields
    Enter
    Give the input values in following fields from  ORGDATA TAB
    Purchasing org
    Purchasing group
    Company code
    Vendor
    Enter
    Select Customer Data tab like following
    USER EXIT  : MM06E005 (Customer fields in purchasing document )
      Goto  : T.Code : SMOD
         Give the Enhacement Name : MM06E005
         Click on Display
         Click on Components Push Button
         Double click on function module EXIT_SAPMM06E_016( Export Data to Customer Subscreen for Purchasing document item)
         Double click on Include ZXM06O01.
         Insert the following coding in that include
    SET PARAMETER ID 'BUK' FIELD g_ekko-bukrs.
      LOOP AT SCREEN.
        IF screen-name = 'EKPO_CI-ISMSUBTITLE1'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>>>>>> Begin of insert CR336/BG1 >>>>>>>>>>>>>>>>>>>>>>
        IF screen-name = 'G_EAN11'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *<<<<<<<<<<<<<<<<<<<<<<< End of insert CR336/BG1 <<<<<<<<<<<<<<<<<<<<<<<
    *>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
    IF screen-name = 'EKPO_CI-TDSACCOUNT'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    IF screen-name = 'EKPO_CI-TDSCOST'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    IF screen-name = 'EKPO_CI-TDSSUB'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
    *>>>>>>>>>>>>>>>>>>>>>> Begin of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
        IF ( screen-name = 'EKPO_CI-TDSACCOUNT'
          OR screen-name = 'EKPO_CI-TDSCOST'
          OR screen-name = 'EKPO_CI-TDSSUB'
          OR screen-name = 'TDS_TXT_1'
          OR screen-name = 'TDS_TXT_2'
          OR screen-name = 'TDS_TXT_3'
          OR screen-name = 'TDSACCOUNT-DESC'
          OR screen-name = 'TDSCOST-DESC'
          OR screen-name = 'TDSSUB-DESC'  ).
          IF g_ekko-bukrs(2) <> 'U6'.       "not a theatrical company
            screen-invisible = '1'.
            screen-input     = '0'.
          ELSEIF g_flag = 0.                "display only
            screen-invisible = '0'.
            screen-input     = '0'.
          ELSEIF g_flag = 1.                "change
            screen-invisible = '0'.
    *>>>>>>>>>>>>>>>>>> Begin of Changes for K896570/501411945 <<<<<<<<<<<<<
           screen-input     = '1'.       "Fharook Syed
            screen-input     = '0'.        "Fharook Syed
    *>>>>>>>>>>>>>>>>>> End of Changes for K896570/501411945 <<<<<<<<<<<<<
          ENDIF.
          IF screen-name = 'EKPO_CI-TDSACCOUNT'.
            screen-required  = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
    *>>>>>>>>>>>>>>>>>>>>>> End of insert SM1 >>>>>>>>>>>>>>>>>>>>>>
    &#61664; save & activate.
    &#61664; Repeat the above process in ME21N to see customer data fileds in CUSTOMER DATA tab
    After the above Modifications CUSTOMER DATA is   displaying like this

  • Adding field in MIRO screen

    Hi  ,
    There is a requirement to add a new field in MIRO screen.
    I mean that a new field needs to be made visible.
    Please let me know of how to proceed with it in SPRO.
    Thanks

    Hi,
    maybe this can help you:
    https://wiki.sdn.sap.com/wiki/display/Snippets/Displaycustomerfieldsinheaderoflogisticsinvoiceverification+transactions
    Best regards.

  • Adding field to standard screen in tr. FPSEC1

    Hi,
    I need to add customer field to standard screen in FPSEC1 transaction (screen 202,second screen in transaction (non cash choice)).
    Has someone did it already?
    (please don't give me general advices as "find screen exit" and so on...)
    Point's will be given.
    Regards.
    Yossi.R.
    *sorry for crossposting

    How you solved this.
    I am facing same problem
    Please reply.

  • Adding field to IE05 screen

    Hello All,
    Is it possible to add a field for IE05 screen?
    I want to add some fields like class, characteristic etc.
    Is there a screen exit or bapi for this?
    Thanks.

    Hi,
    I am asked to indicate a package for this enhancement spot and it must be a SAP package.
    How can i find the correct package?
    Thanks.

  • Adding field to std screen mm01

    Hi folks,
      i want to add a feild( idnlf ) to mm01 transaction.iam able to add the feild, bt data is not updating in mara table.iam using enhancement mga00001.in enhancement i wrote code as:
    Tables: Mara.
    Data: idnlf type mara-idnlf.
    if sy-ucomm = 'BU' or sy-ucomm = 'YES'.
    import mara-idnlf from memory id 'IDNLF'.
      move mara-idnlf to cmara-idnlf.
    endif.
    and in function group screen :
    MODULE ASSIGN_DATA INPUT.
    if sy-tcode = 'MM01' or
       sy-tcode = 'MM02'.
    export mara-idnlf to memory id 'IDNLF'.
    endif.
    ENDMODULE.        
    My question is if im adding custom field the data is updating.but if iam using standard field(idnlf) the data is not updating.please let me know can we add standard field and update if so how.
    please do needful.
    Thanks,
    Neelima.N

    Hi,
    Did you check Re: Screen Exit for MM01.
    Hope this helps you
    Raj

  • Adding field/column in screen painter SE51

    We are trying to add field BSEG-VBUND for transaction code FSB1 fast entry screen (program SAPMF05A screen 8503). The new column will be after CoCd. However as the image below shows, TradPart is only on the first row but is needed on all rows as the other fields are.
    We tried to use grouping to include BSEG-VBUND for all rows and in screen layout editor it seems to be correct.
    But, when the syntax is checked the error states BSEG-VBUND is not assigned to a loop and that it must appear in "PBO" (PROCESS BEFORE OUTPUT) and "PAI" (PROCESS AFTER INPUT).
    We added BSEG-VBUND to PAI but then received the error that this is not assigned to a loop.
    As a functional - not technical - consultant, I am unfamiliar with how to correct this. Any suggestions are greatly appreciated.

    Siripuram,
    Thanks for tying to help. As I am not an ABAP programmer but just functional support, I am unfamiliar with where to make the change.
    The current logic is below. Any help with this is appreicated.
    PROCESS BEFORE OUTPUT.
            MODULE DYNPRO_KOPF_MODIF.
            MODULE STATUS_SETZEN_Z.
            MODULE SCHNELLERFASSUNG.
            MODULE REF_STARTZEILE_SB.
          LOOP.
            MODULE REF_BELEGZEILE_SB.
          ENDLOOP.
            MODULE REF_FUSSZEILE_SB.
    PROCESS AFTER INPUT.
            MODULE EXIT AT EXIT-COMMAND.
            MODULE PAI_ANFANG.
          FIELD BKPF-XMWST MODULE XMWST_SAKO.
          LOOP.
          CHAIN.
    * GENERATE-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-BSCHL.
            FIELD RF05A-KONTO.                                 "&FG&C
            FIELD BSEG-WRBTR MODULE STERN_BETRG ON *-INPUT.
            FIELD BSEG-MWSKZ.                                  "&F4&E
            FIELD BSEG-PRCTR.
            FIELD BSEG-KOSTL.
              FIELD BSEG-AUFNR.                                "&MC&A
            FIELD BSEG-BUKRS.
    * GENERATE-END, PLEASE DO NOT DELETE
            MODULE MWSKZ_DELETED.                    "Note1405100
            MODULE SCHNELLERFASSUNG_KB ON CHAIN-INPUT.  "Kontierungsblock
            MODULE SCHNELLERFASSUNG    ON CHAIN-INPUT.
            MODULE MWSKZ_PRUEFEN       ON CHAIN-INPUT.
            MODULE WAEHRUNGSFELDER     ON CHAIN-INPUT.
            MODULE BETRAG_PRUEFEN      ON CHAIN-INPUT.
    * MODULE-BEGIN, PLEASE DO NOT DELETE
            MODULE RW_PRUEFUNG_POS  ON CHAIN-INPUT.            "&MO&C
    * MODULE-END, PLEASE DO NOT DELETE
            MODULE GESCHAEFTSBEREICH.
            MODULE TXJCD_PRUEFEN.
          ENDCHAIN.
            MODULE ZEILE_SPEICHERN.
            MODULE ZEILE_KOPIEREN.
          ENDLOOP.
            FIELD RF05A-NEWBS MODULE MC_OBJEKT_SETZEN.
            FIELD RF05A-NEWBK MODULE MC_BUKRS_PARM_SETZEN.
          CHAIN.
            FIELD RF05A-NEWBS.
            FIELD RF05A-NEWKO.
            FIELD RF05A-NEWUM.
            FIELD RF05A-NEWBW.
            FIELD RF05A-NEWBK.
            FIELD OK-CODE.
            MODULE GET_REQUESTED_LINE.
            MODULE FUSSZEILE_BEARBEITEN.
          ENDCHAIN.
    PROCESS ON VALUE-REQUEST.
    * F4-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-MWSKZ MODULE F4_MWSKZ.                  "&M4&E
    * F4-END, PLEASE DO NOT DELETE
            FIELD RF05A-NEWKO MODULE F4_NEWKO.
            FIELD RF05A-NEWUM MODULE F4_NEWUM.
    Any help with this is greatly appreciated.

  • Adding Field on Selection Screen in Standard program

    Hiiii,
    We have a requirement to add a field Business Place (BUPLA) on the Selection Screen.
    TCode - S_ALR_87012082, Program Name - RFKSLD00
    Please give me some idea, so that i can modify this program !!
    Nitin Garg

    Hii Klaus,
    Okay, If as per your aspects there is no need of modify logical database, so Plz let me know how can i enhance  RFKSLD00 to add Business Place.
    I try to find Badi for it, but i think there is no suitable Badi findings . Plz give solution soon .
    Nitin Garg
    Edited by: Suhas Saha on Oct 19, 2011 2:22 PM

  • Adding Field to CO24 screen

    Dear All,
    V have a request where the client wants the Header Material No( AFKO-PLNBEZ) in the screen of co24.
    presently we are getting the Matrial Text from AUFK table.
    In the Trace we found that AFKO table is not accesed. But only AUFK, is being used.
    Can someone suggest, how to proceed.
    Thanx in Advance.
    Regards
    Ajju

    Hi Ajaz,
    Are you asking about how to retrive AFKO-PLNBEZ or
    to add new input-field for AFKO-PLNBEZ in the screen?
    This is answer to former, Tables AUFK and AFKO are linked
    through AUFNR i.e. order number. AFKO-AUFNR is eferencing
    AUFNR primary key of table AUFK, you can easily retrieve AFKO-PLNBEZ using this relation.  
    To add new field to screen you'll have to use user-exits.
    I have no idea about that, but you can check txn SMOD,
    CMOD.
    Hope it helps you.
    Regards,
    Narinder Hartala

  • Advanced Search Help in PCUI & adding fields to SRES screen structures

    I have linked the application COMM_IBASE to the POST_CODE1 field in CRMM_ACCOUNT (SRES area - field group ACC_SRES_CITY). When the user clicks the drop-down icon next to the post code field, a new window opens which shows COMM_IBASE.
    We use our IBase to hold locations/addresses.
    Is it possible to set up the system such that on selection of an IBase component, relevant address fields of that component are sent back to corresponding fields in the calling application, CRMM_ACCOUNT? Namely, Post code, street, city, country, region? I think my problem might be that these fields are not available in the screen structure of the COMM_IBASE Search Results area (CRMT_BSP_IBASE_RESLIST). How should you go about extending this structure? I can't see how it can be done using the EEW in the way you would extend, say, a service order.
    I have the cookbook in front of me, but am finding sections 6.1.3.2/3 a little reticent here.
    Thanks,
    Alex.

    I solved it.
    It wasn't too complicated, either, so I suspect my difficulty was down to me being totally unfamiliar with the PCUI (I usually do ICWC development) and this being the first PCUI requirement I have ever been given to work on.
    Anyhow, if any other newbies are interested in how I implemented advanced F4 help to integrate searching of an IBase of addresses with postcode field of BP creation, then please reply to this post and I will give details.
    Alex.

  • Adding a BSEG field to the FB03 dynamic selection screen

    Hello,
    We have a requirement wherein we want to add a field from BSEG in the dynamic selection screen of FB03.
    We found that the logical database behind this is BRF.  So we created a u2018CUSu2019 selection view for the logical database and added the field from BSEG to the functional group
    and checked the checkbox u201CPreselectu201D for it to appear automatically in the FB03 screen.
    But we still couldnu2019t see the field in FB03 dynamic selection.
    On analysis, we found that only tables are that are defined in the nodes (Extras  Selection views) can be used to create the dynamic selection and BSEG was not available
    as one of the node.  So we added BSEG as one of the node by adding the below code to the SELECTION of the logical database.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BSEG.
    Even after that, we couldnu2019t see the field from BSEG in the dynamic selection.
    Are we missing anything here?
    I see many threads here on similar lines but no one has posted the exact step. Any help is highly appreciated.
    Thanks a lot.
    Regards,
    Suganya

    Hi
    If you want to take the line item details than you can refer these t-codes rather than customizing.
    S_AC0_52000887 - Receivables: Profit Center
    S_AC0_52000888 - Payables: Profit Center
    S_ALR_87012332 - G/L Account Statements
    Here by using the dynamic selection you can get the results. Use object list display and select the layout for more fields.
    Thanks

  • How to add a new Field in the Dynamic Selection screen section.

    HI,
    There is a requirement in which I need to add a field in existing program of dynamic selections.
    I need to add a field KNKK-DBRTG (Customer Rating) in dynamic selections screen of some existing report
    which has a dynamic selection screen with other fields like customer account, company code etc. Along with this i need to add Customer rating field also in the selection screen.
    I have used GET KNKK statement to select this in the Dynamic selection screen. But I need to make it appear
    on the screen.
    LDB used is the Customer Database.
    I have added GET KNKK statement after GET KNA1 statement.
    Can any one help me how we can make this rating field appear in the selection screen.
    With the GET statement Credit control area Fields can be selected in the selection screen but I have to permanantly add the field in the selection screen.
    Regards
    Prashant Prabhu

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • Add certain field at dynamic selection screen in FBL3N transaction

    Hello Expert,
    I would like to add entry date field (BKPF-CPUDT) at dynamic selection screen in FBL3N transaction.
    So, I went to SE36 transaction and changed something in selection view for SDF.
    However, it didn't work.
    Is there anyone who knows how to add a certain field at dynamic selection screen in FBL3N transaction?
    Thanks in advance.
    BR,
    Chris Kim

    Hi
    Refer to the following thread
    Additional field selections in FB03
    It talks about adding Header Text field
    You should be able to add entry date similarly
    Regards
    Sach!n

  • Adding new field to MB51 screen output

    Hi All,
    I need to add a new field TCODE2 from MKPF table on the screen output of MB51. I have added my new field thro SPRO following the below steps:-
    Go to SPRO -- MM -- Inventory Management and Physical Inventory -- Reporting -- Define Field Selection for Material Document List
    Here I have give
    RM07DOCS MKPF TCODE2 Transaction code -- output box checked
    and saved.
    Now I  tried to re-execute the transaction MB51 but not able to see the Tcode2 on the output screen .
    Can any one help me out, if I am missing out something or is there any thing else i need to check on the ALV output to see the field TCODE2 on the screen og MB51?
    Regards
    Shilpa.

    Hi,
    Check these notes:
    Note 357187 - MB51: Fields in field catalog / selection screen
    Note 828104 - Enhancing MB51 for AFS
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Error while upgrading from 10.1.3.1.0 to 10.1.3.4.0

    Hi, Im trying to upgrade soa suite 10.1.3.1.0 to 10.1.3.4 The base installation for 10.1.3.1.0 works fine.. As per the instructions, this is what i did for upgrading.. connected to orabpel as msql system/manager@jdbc:polite:orabpel ran bpel/scripts/u

  • How do I have TV Playlists based on Show tags?

    I'd like to have three playlists (one for me, one for the wife, and one for kids), each with unwatched new TV Shows for the correct person as they are added to iTunes. My preference is to not have to tag every new show as it is added to iTunes but ra

  • After effects not importing .WMV files properly

    when i import a .wmv file into the timeline it shows the top half of the picture as black and the bottom half as the clip?? any help would be much apreciated thanks

  • Newbie Help with videocameras and editing software

    I am a third grade teacher who can whip around in imovie pretty well, but I want to expand and post training videos to the web. I also want to vodcast. I need a relatively easy videocamera, and of course, reasonably priced. I don't understand all the

  • Ob34 and OB33

    Hi All, I am so confused with the tcodes OB34 and OB33. What is the purpose of Field groups and how they can be used? In OB33, each field is assigned to field groups. Why is this config done? Also, in OB12, we define groups which is Credit management