We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] Alternating Enabled/Disabled for an Input Field in ALV Grid

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from TerryB on Nov 26 at 2:25 PM
The ALV grid is a "frontend control," and typically does not communicate back to your ABAP program until some user action is taken, such as hitting the enter key or clicking a command button. Just changing the value in a cell of the grid does not initiate a "round trip" back to your ABAP program. The toggling of the input-capable attribute of field 3 has to be set in your ABAP program, so your challenge is to figure out a way to trigger this round trip when the user clicks on the checkbox. Off the top of my head I'm thinking maybe identifying the checkbox field in the field catalog as a "hot spot." That will make it act like a "link" upon a single click, thus triggering the necessary round trip. You could then put the required code in a USER_COMMAND subroutine tied to the hotspot.
Good luck,
TerryB

---------------Original Message---------------
From: jcastro2703
Sent: Tuesday, November 26, 2013 2:00 PM
Subject: Alternating Enabled/Disabled for an Input Field in ALV Grid

Hello guys,
Please, consider the following situation that I need to:
By using REUSE_ALV_GRID_DISPLAY_LVC, are displayed 3 fields:
1) A checkbox;
2) A description for a value;
3) A field that accept values.
I can change the value on field (3) freely, but once I do the check the
field 1 (checkbox), the field (3) is closed for edition.

I tried to change the values in is_layout_lvc table, but I have no idea how I should do
to "reload it" in real-time - I mean: Unchecking the field (1), field (3) become enabled to edition; checking the field(1), field (3) become disabled to edition. Is that possible?

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2013 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
TerryB  

10 achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language