One row as editable and other row as non-editable in table control

Hi Experts,
           Is this possible to make one row as editable and another row is non editable in table control?
My Requirement is
1st row non editable field
Customer code, description,amount will come from the previous screen this will be non editable for user.
2nd row editable
User has to enter the amount in 2nd row here the customer code description will be empty.
If 4 customer are there
1,3,5,7 should be non editable and 2,4,6,8 should be editable..
Pls help me in this issue..
Thanks in Advance!

hI
This is a simple Module POOL program with only Table control and nothing else
" This is Tested to Enable one row and disabling the next row
in TOP Include
controls : tc type tableview using screen 100.
DATA : OK TYPE SY-UCOMM.
DATA : ITAB TYPE TABLE OF SPFLI WITH HEADER LINE.
in PBO
PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  LOOP AT itab WITH CONTROL tc.
   MODULE TC_MOD.
  ENDLOOP.
in PAI
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
  LOOP AT itab.
  ENDLOOP.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'TEST'.
  SET TITLEBAR 'TEST'.
  DESCRIBE TABLE itab LINES tc-lines.
  IF tc-lines = 0.
    tc-lines = 20.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
MODULE tc_mod OUTPUT.
  DATA : mod TYPE i.
  LOOP AT SCREEN.
    mod =  tc-CURRENT_LINE MOD 2  .
    IF mod = 1.
      IF screen-name = 'SPFLI-CARRID'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDMODULE.                 " TC_MOD  OUTPUT
Edited by: Ramchander Krishnamraju on Jan 25, 2011 7:17 AM

Similar Messages

  • Make only the new row in a table editable and other rows display mode.

    Hiii all,
    I am working on the component GSWISET, there is a table view for substitutes, the requirement is to show all the rows in the table view in display mode. Whenever the user clicks the button (Add employee), a search popup triggers and the user selects an employee from that and it will come as a new row in the table view. Here I need to be able to make only the new row editable and all the other rows in display mode.
    Could you please suggest a way to achieve this. Thanks for your time..

    Hi,
    Try with  the code below in.htm page
    data: lv_displaymode  TYPE string.
      IF controller->view_group_context->is_view_in_display_mode( controller ) = abap_true.
        lv_displaymode = 'X'.
      ELSE.
        lv_displaymode = ' '.
      ENDIF.
    if lv_displaymode = 'X'.
    <chtmlb:tableExtension tableId = "Substitutes"
                           layout  = "FIXED" >
      <chtmlb:configTable actions               = "<%= controller->gt_button %>"
                          id                    = "Substitutes"
                          onRowSelection        = "select"
                          selectedRowIndex      = "<%= substitutes->SELECTED_INDEX %>"
                          selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
                          table                 = "//Substitutes/Table"
                          width                 = "100%"
                          selectionMode         = "<%= substitutes->selection_mode %>"                    
                          visibleFirstRow       = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
                          usage                 = "ASSIGNMENTBLOCK"
                          headerText            = "<%= controller->gv_header_text %>" />
    </chtmlb:tableExtension>
    else.
    <chtmlb:tableExtension tableId = "Substitutes"
                           layout  = "FIXED" >
      <chtmlb:configTable actions               = "<%= controller->gt_button %>"
                          id                    = "Substitutes"
                          onRowSelection        = "select"
                          selectedRowIndex      = "<%= substitutes->SELECTED_INDEX %>"
                          selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
                          table                 = "//Substitutes/Table"
                          width                 = "100%"
                          selectionMode         = "<%= substitutes->selection_mode %>"
                          allRowsEditable       = "TRUE"
                          visibleFirstRow       = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
                          usage                 = "EDITLIST"
                          headerText            = "<%= controller->gv_header_text %>" />
    </chtmlb:tableExtension>
    endif.
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Dec 24, 2010 12:49 PM

  • I have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    i have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

  • In smartforms i want to display one page in A4 and other in A3 size paper.

    1)in smartforms i want to display one page in A4 and other in A3 size paper.  How?
    2) in front page all the values and in back page all the terms and condition of the company. this will b going on for all the printed documents.pls brief me about this.
    Thanks in advance
    gouranga

    Hi,
    In case of sap script u can not. But in case of smartforms u can assign one format for 1 page and 2 format for 2 page it is possible.
    In Global setting -> Form Attributes -> Output Options define your format.
    Rewards points if it is useful.

  • Cannot update my keynote, pages and numbers from my ipad. I have different accounts, one for app store and other for icloud. What can I do?

    Cannot update my keynote, pages and numbers from my ipad. I have different accounts, one for app store and other for icloud. What can I do?

    You can't merge accounts or transfer iTunes purchases from one Apple ID to another: but there is no problem about using two IDs.
    Use your iCloud ID for iCloud for syncing email, contacts, calendars, bookmarks, and PhotoStream.
    Use your other Apple ID as before for iTunes, iTunes in the Cloud and iTunes Match.
    There's no conflict about doing this, and you won't even notice as Keychain will log you in with the correct ID in each case. It's also better security not to have your iTunes login also your email address, given the number of complaints about hacked iTunes accounts.

  • HT4859 I have 2 phones saved on iCloud, one is old phone and other is new. How do I restore my old phone data from iCloud to my new one?

    I have 2 phones saved on iCloud storage, one is old phone and other is my new one. How do I restore my old phone data from iCloud storage to my new one?
    It shows like 4.3GB is stored on my old and 105.9MB on my new. I want to restore the 4.3 to my new, how do I do that please?

    Welcome to the Apple community.
    You will need to restore your phone and when prompted use the backup that you made yesterday.
    Before you do so, you may wish to change your wife's iCloud login details, otherwise you may find that you then overwrite her data. She should have her own iCloud account to avoid this.

  • Purchase Order Field and Cost Center Field Non Editable In F-48

    Hi Friends,
    I have a cretain requirmnet to make the PO and cost centre field non editable.I tried through shd0 bt it says i can only cretae Transcation variats for Dialiog tran.Please help
    Regards,

    Hi,
    You can speak to your functional people. I think through SPRO "Maintain Field Status Variant' under Financial Accounting ->........
    we can control this.

  • How to make a table column block editable for a row and remain non editable for other row based on some condition

    hi ,
    i need help on the below scenario ,
    we have a web dynpro table with different columns, now based on new business requirement  one of the column need to     
    dynamically editable or non editable for different row.
    for ex :
    Field 1
    Field 2 ( Dynamic field )
    Field 3
    Field 4
    Data 11
    Data 12 ( Editable with Drop down   )
    data 13
    data 14
    Data 21
    Data 22 ( Non editable )
    Data 23
    data 24
    Data 31
    data  32 ( Editable with drop down )
    data 33
    data 34
    how to achieve this ? please help on this.
    Thanks in advance
    Thanks
    Manish

    Manish,
    there is no proper way to insert two Cell Editors in a column(except variants), have a look on below scenario, it may help.
    add one more attribute to your table context node for read-only.
    create dropDown as celleditor for table and bind with newly created attribute to read-only property of dropdown.
    before binding data to table, check the condition then mention readonly value abap_true / false.
    @ we can achieve by the use of Variants.
    for ex :
    Data 11
    Data 12 ( Editable with Drop down)
    data 13
    read-only - abap_false
    Data 21
    Data 22 ( Non editable, dropdown )
    Data 23
    read-only - abap_true
    Data 31
    data  32 ( Editable with drop down )
    data 33
    read-only - abap_false

  • How to clear rows from iterator and re-fetch fresh data from the table ?

    Hi,
    I am using JDev 11.1.1.2.0
    I have generated JPA Service Facade and by using it, I have created Data Control which finally I have dragged & dropped on my .jsff file.
    In viewObject, there is a method clearCache() to clear the viewObject data.
    Iterator has also one method clear() but when it invoked, ADF framework throws StackOverFlow error.
    So, I want to clear my iterator before calling executeQuery() method.
    How Can I clear it ?
    Because In my case if I run executeQuery() method on DCIteratorBinding, it is not getting updated with the lates value from DB table.
    So I want to clear all the rows from iterator and then want to call executeQuery() method to updated latest data from DB tables.
    I have also tried below peace of code to refresh iterator but still iterator getting updated with two same rows () while in DB it is proper.
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding dcb =
    fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer iteratorbindings =
    (DCBindingContainer)dcb.getValue(fctx);
    DCIteratorBinding dciter =
    iteratorbindings.findIteratorBinding(<iteratorname>);
    dciter.releaseData();
    dciter.executeQuery();
    dciter.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    regards,
    devang

    Hi,
    Have you try to drag and drop to your refresh or query button an "Execute" operation from the Data Control Pallete?
    We are using JPA/ EJB Session Beans and that works for us.
    regards,
    pino

  • Resize only one object in selection, and other questions. InDesign CC

    I recently changed from InDesign CS4 to CC. I'm having a few problems with the interface and can't figure them out.
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!

    TopePrinting wrote:
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    I have InDesign CS5.5 - and when I select more than 1 object I get a bounding box for all the items - it's impossible to resize just one item without affecting everything selected.
    TopePrinting wrote:
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    I really don't see this behaviour at all.
    TopePrinting wrote: 3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    No - this is the way it works - annoying!
    What's really frustrating is that it will remember the amount of copies you've input too! I would like that reset to 1 after I print 100 copies. All too often I've opened a file from last year to print a copy and hit Ctrl+P and then Return as the shortcuts - and I get 100 copies printed again!!!
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    Once you have the screen setup the way you like it go to Window>Workspaces and click "New Workspace"
    Save as it something unique to you.
    Everytime you open InDesign this should be the default panel settings.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!
    They are minor for sure - and we all have niggly bits in InDesign that frustrate us.
    But unfortunately this is a user-to-user forum so it's unlikely to be picked up by Adobe employees.
    I suggest you put it in the feature request forums - http://forums.adobe.com/community/indesign/indesign_feature_requests
    There's the Adobe Feature Request page - https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    That's about as much as you can do.

  • Update Rows with info from other Rows in Same Table.

    I'm trying to update rows with information from the same table. The table gets loaded with info from a report that runs and it has to be a new entry every month but I would like to carry over some of the info from last month. This statement below runs but updates all rows in the new table load and in my test cases I only made a few match so only like 5 records should get updated. This is an example of what I'm trying to do. If I add this(C2.COL_INVC_ID = C1.COL_INVC_ID) to the last "*Where*" statement I get an invalid identifier for "C2.COL_INVC_ID". So what am I doing wrong here??? How can I update only the rows that where also in last months run???
    Thanks in advance for any help!
    Update OpenIssues OI1
    Set(OI1.Num, OI1.Status, OI1.Code, OI1.LastModifiedDate) =
    (Select OI2.Num, OI2.Status, OI2.Code, OI2.LastModifiedDate
    From OpenIssues OI2
    Where OI2.num = OI1.num and OI2.TableLoadDate = TO_DATE('01/31/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    Where and OI1.TableLoadDate = TO_DATE('02/29/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    SQLMe

    Hi,
    Welcome to the forum!
    SQLMe wrote:
    I'm trying to update rows with information from the same table. The table gets loaded with info from a report that runs and it has to be a new entry every month but I would like to carry over some of the info from last month. This statement below runs but updates all rows in the new table load and in my test cases I only made a few match so only like 5 records should get updated. This is an example of what I'm trying to do. If I add this(C2.COL_INVC_ID = C1.COL_INVC_ID) to the last "*Where*" statement I get an invalid identifier for "C2.COL_INVC_ID". If the aliases c1 and c2 aren't defined anywhere, then you can't use them anywhere.
    The WHERE clause of the UPDATE statement can only reference the table being updated, ot1 in this case.
    So what am I doing wrong here??? How can I update only the rows that where also in last months run???
    Thanks in advance for any help!
    Update OpenIssues OI1
    Set(OI1.Num, OI1.Status, OI1.Code, OI1.LastModifiedDate) =
    (Select OI2.Num, OI2.Status, OI2.Code, OI2.LastModifiedDate
    From OpenIssues OI2
    Where OI2.num = OI1.num and OI2.TableLoadDate = TO_DATE('01/31/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    Where and OI1.TableLoadDate = TO_DATE('02/29/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    ------------There's a syntax error in the last line. Either something got lost when you posted the code, or you just don't want the keyword AND. You certainly don't want AND immediately after WHERE.
    In general, if it's not obvious how to do an UPDATE, then UPDATE is the wrong tool: you want MERGE instead.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible. Remove all tables and columns that play no role in this problem.
    If you're asking about a DML statement, such as UPDATE, the CREATE TABLE and INSERT statements should re-create the tables as they are before the DML, and the results will be the contents of the changed table(s) when everything is finished.
    Always say which version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • Use one account for apps and other for itunes match

    Hello everybody
    My question today is quite simple. I use one account for apps and tv shows, but inwant to use a different itunes account for purchasing itunes match. How can I use them both on my devices? Will it be asking for my user-pass each time i play a song? What other thing should i consider?
    Thank you in advance

    I would strongly recommend you not do this.  You will regret it.
    I have played with this issue a lot.  You have to remain signed into match in order for it to show up on your phone. If you sign out to purchase an app or redownload one from your appstore id you use then match will be removed from your phone and when you go into your music app the icloud will not be there.  You then have to go sign back out of the store id you used for your app purchase and then sign back into match and everything will have to go though the download to your device process again.  This really is not what you want to do.
    Sign up to match with the apple id that you know you will use the most or has the most purchased items and use that for all purchases, i.e. books, apps, movies, and music.  You don't want to go though the other process.
    Plus apple will start not letting you sign into match because you signed out and back in, in to short a period of time.
    all store purchases on an iphone are linked to the store id.  if you sign out of your match id on the appstore and sign into another account to purchase an app then itunes match will sign out in the music app.  You can't have two store id's signed into your iphone at the same time.  They are all linked together.

  • Can I have two Time Capsules in the same network, use one as Time Machine and other to expand network?

    I need to purchase a divice to expand my Wi-fi network. I was looking at the AirPort Extreme, but a friend has a brand new Time Capsule for sale. So, for the same price of the AirPort Extreme, I´m getting the Time Capsule.
    I already own one and using it as Time Machine and wireless router. If I decide to purchase another TC would it have any conflict with the one that I already have?
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?

    If I decide to purchase another TC would it have any conflict with the one that I already have?
    No
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?
    Yes. The important thing to remember is that the "extending" Time Capsule must be located where it can receive a strong wireless signal from your "main" Time Capsule.

  • Help please is there any way to have 2 iphone 4's which are updated on the same account and not have the same stuff on each phone i.e. contactsm, apps, and calendars? we like the fact if one purchased an app and other wants to get same app its free!!!!

    we updated both of our iphone 4 on the same computer and we have always shared the same itunes account which is convenient when one purchases an app the other person can simply download app without purchasing again!!! but we do not want all same contacts and app on both phones!!! after updating and setting up icloud we both had same contacts so i went in contacts on my phone and began deleting his numerous contacts on my phone well not knowing that it was deleting on his phone also!!! oops he tried restoring from backup with no luck retrieving his contacts !!! also another issue i have noticed is the manual says that in order for it to sync ur phone must b plugged into a power source well and i have noticed it saying syncing w my phone when it was not plugged anything wall nor computer and it looks as tho in the summary at the bottom where it displays capacity and free space that it is gonna take everything off of my phone but nothing changes on my phone!?! do we just need to get him a separate itunes account to be able to get full benefits from update?!                                                                                                                                                                                                          

    Here's how to do it.
    1. App Store, iTunes Store should have the same AppleID on Computer and iPhones. (Free to share apps, music and books... )
    2. Person A uses the same purchasing account for everything (ie. email, contacts and ...).
    3. Person B have the same purchase account see no. 1 (for App Store and iTunes Store) but create a second AppleID for iCal, e-mail, contacts  and etc.

  • Elements 10 trial doesn't show guided edit and other menus

    I've just downloaded and installed the Photoshop Elements 10 trial for the second time.
    I shut down my firewall and internet security while installing.
    The program loads fine but when I click on Guided edit, the panel on the right is blank.
    This is the same for Quick edit.
    The help files also won't load.
    I'm running a Windows 7 on a 64 bit machine.
    Please help!

    Try clicking the re-set panels button on the top menu bar and see if that makes any difference. Have you tried with an image open. Certainly the Quick edit module remains grayed out usually until you have a photo in the main window.
    If that does not fix it you may need to rebuild the editor preferences to resolve any conflicts.
    Hold down the Ctrl+Shift+Alt keys and simultaneously click on the Edit button on the welcome screen. Release the three keys and look behind the welcome screen by closing it.
    You should see a pop up box with the words: Delete Adobe Photoshop Elements Settings File?
    Click on Yes
    Close down Elements and re-open it in the normal way - then wait whilst it rebuilds the preferences.

Maybe you are looking for

  • Using two or more JRE's at the same time?

    Our company uses 1.4.2-b08 as default JRE, but some departments still have 1.3.1 as standard since business applications must use this version. We've tried migrating to 1.4.2 and 1.5.0 but they were not backwards compatible (or simply not JRE complia

  • Can't add URLs to "Get Specified URLs"

    Hey. I've been making a 57-step workflow to get, download and rename each of my Google Calendars. This was working fine, but it hit some kind of snag at step 22. On reloading the workflow, I find that Automator has DELETED the content of all of my "G

  • 5508 Mobility Group

    Clients are not able to roam between WCS controllers. Our mobility groups are working but we are not able to pass DHCP addresses between controllers

  • PE51 new page

    Hello, In Screen HR Form Editor (PE51), I would like to insert a command new page at the last page. Is it possible and how ? Thanks a lot for your answer. Daniel.

  • Search Field Issue

    Hello, I am unable to create a search with the google search field in Safari. I type the what I want to search for, and hit return. Google does not come up. It's like my return key is disabled. This worked last week. The only thing I can think of tha