AbapOO-event data_changed and F4- not in correct sequence (unwanted popup)
Hi,
I have a splitter screen as a docking container to screen 100.
This splitter has a tree and an alv.
The alv part is editable and has the event data_changed is defined for the editable field.
The fieldcatalog on the alv (which has a dynamic field symbol as the data table) had the flag F4AVAILABE=X on the editable field.
The problem:
when I change the value on the editable field from invalid value to valid value, I still get the automatic SAP popup that says that my old value is not found in the check table.
WHY DO I GET THIS POPUP?
OR
HOW TO CONTROL THAT THE POPUP WILL BE AFTER THE VALUE CHANGE IS CAUGHT?
I checked the field symbol table and the value is being changed in the table before I get the message (for some reason on the data_changed event, the table er_data_changed->mt_good_cells is initial but the table er_data_changed->mt_mod_cells is filled with my changed data).
The ugly solution:
I put 'leave to screen 100' command after the update and I do not get the popup message anymore. but I would like to do so without refreshing the whole screen with this trip to the server.
I tried to put dispatch and flush (doesn't make sense to put them here but it can't damage) but this didn't help.
any ideas?
Thanks guys.
Thanks for your reply.
I did several programs with this method and the data always appears. you can also examine the SAP program I mentioned down.
I think that will not work but I may be wrong.
do you have any exape using this handler?
This event does not have a reference to the changed data so you would not know what field was changed.
if you look at the SAP example program BCALV_GRID_EDIT you will see that they use the same thing:
class lcl_event_receiver definition.
public section.
methods handle_data_changed
for event data_changed of cl_gui_alv_grid
importing er_data_changed.
class lcl_event_receiver implementation.
method handle_data_changed.
perform data_changed using er_data_changed.
endmethod.
form data_changed using rr_data_changed type ref to
cl_alv_changed_data_protocol.
data: ls_mod_cells type lvc_s_modi.
loop at rr_data_changed->mt_good_cells into ls_mod_cells.
case ls_mod_cells-fieldname.
when 'CARRID'.
Itay
Similar Messages
-
OO ALV validation check without event DATA_CHANGED and results via popup
Hi Gurus,
I'm working on SAP ECC 6.0 and I'm facing a problem during the ALV validation check. My requirement is to show an ALV with one editable field. In addition I have to pre-initialize this field in order to give a reference value to the user, but this is not always correct, or better, this field represent the maximum amount available, but, because of other validation checks, this field is not always correct (and it's ok, it's not a problem), and if it is greater than another amount I have to display an error.
I was thinking about catching the event DATA_CHANGED and do the checks inside of it. It works but not completely, because if the user do not change anything the event is not raised and I cannot do my checks.
My solution is to do the checks without catching the DATA_CHANGED event and display the errors in a separate popup window.
The checks are ok, but I have problems during the displaying of the results: I would like to use the class CL_ALV_CHANGED_DATA_PROTOCOL in order to display the errors, I tried creating the Object:
Data: go_Error Type Ref To CL_ALV_CHANGED_DATA_PROTOCOL.
Create Object go_Error
Exporting
* i_container =
i_calling_alv = go_0200_Alv
giving it a reference to the ALV (the go_0200_Alv is my CL_GUI_ALV_GRID object).
Then I did many Call Methods to the Add_Protocol_Entry to add the message in the protocol and then display them calling the Display_Protocol Method of my "go_Error".
The Popup is shown and the "links" to the ALV are correct (if I double click a message it selects the corresponding row of the ALV, but (and it's my problem) I cannot see the Description of the Column with the error: the popup window is an ALV grid itself with 3 columns ("Message Type", "Name of the Column" and "Message Text") where I can see correctly the Message Type and the Message Text but not the name of the column.
Debugging the code I found that If I catch the event, the parameter er_Data_Changed (the class CL_ALV_CHANGED_DATA_PROTOCOL) is filled with some other informations like Modified Rows and other attributes like FieldCatalog, Row-ID, so I thought the problem was related to that, and that's why I replicated the whole case in my processing, filling every table I would see if I use the "standard way" for validation. Bu it didn't correct the error. I still don't see the name of the Column.
This is my code, it's only the part interested, If you need other informations, please ask me and I will copy them.
form CHECK_ALV_0200_0110 Changing pc_Error Type Char01.
Data: lt_MatchK1 Type tp_Matches1_Key_t,
l_Message Type Char100,
l_MessX Type String,
l_QtaRes Type ZDM_AMT_ASSIGNED,
l_QtaAcc Type ZDM_AMT_ACCRUED,
l_QtaStep Type ZDM_AMT_ASSIGNED.
Field-Symbols: <fs_Table> Type Standard Table,
<fs_Master> Type Standard Table,
<fs_Mod_Cell> Type LVC_S_MODI,
<fs_Line> Type Any,
<fs_Field> Type Any,
<fs_Any> Type Any.
Data lt_Matches_Alv_Mod Type tp_Matches1_Alv_t.
Data ls_Modi Type LVC_S_MODI.
Data: l_Row_ID Type I,
l_Tabix Type I.
Field-Symbols: <fs_Match_ALV> Type tp_Matches1_Alv_s.
Free go_Error.
CREATE OBJECT go_Error
EXPORTING
* i_container =
i_calling_alv = go_0200_Alv
* Validation Checks
Clear pc_Error.
Clear ls_Modi.
Loop At gt_Matches1_Alv Assigning <fs_Match_ALV>.
l_Tabix = Sy-Tabix.
Check <fs_Match_ALV>-Status Eq con_Status_Temp.
* Set the Modified Row for the CL_ALV_CHANGED_DATA_PROTOCOL object
Append <fs_Match_ALV> To lt_Matches_Alv_Mod.
Add 1 To ls_Modi-Row_Id.
ls_Modi-FieldName = 'AMT_DEDUCTED'.
Write <fs_Match_ALV>-Amt_Deducted To ls_Modi-Value Currency <fs_Match_ALV>-Waers.
Condense ls_Modi-Value No-Gaps.
ls_Modi-Tabix = l_Tabix.
Append ls_Modi To: go_Error->mt_Mod_Cells,
go_Error->mt_Good_Cells.
l_Row_ID = ls_Modi-Row_Id.
Clear l_Message.
If <fs_Match_ALV>-Amt_Deducted Eq 0.
pc_Error = con_X.
CALL METHOD go_Error->Add_Protocol_Entry
EXPORTING
i_msgid = 'ZDMV'
i_msgty = 'E'
i_msgno = '005'
* i_msgv1 =
* i_msgv2 =
* i_msgv3 =
* i_msgv4 =
i_fieldname = 'AMT_DEDUCTED'
i_row_id = l_Row_ID
* i_tabix =
Continue.
EndIf.
Case g_Dynnr.
When '0110'.
Perform Get_ResQtaDispute1 Using lt_MatchK1
<fs_Match_ALV>
Changing l_QtaRes.
Perform Get_ResQtaAccrued1 Using <fs_Match_ALV>
Changing l_QtaAcc.
* When '0111'.
* Perform Get_ResQtaDispute2 Using lt_MatchK2
* <fs_Match_ALV>
* Changing l_QtaRes.
* Perform Get_ResQtaAccrued2 Using <fs_Match_ALV>
* Changing l_QtaAcc.
EndCase.
Add <fs_Match_ALV>-Amt_Deducted To l_QtaStep.
If l_QtaStep > l_QtaRes.
* Store the Error
pc_Error = con_X.
Write l_QtaRes To l_Message Currency <fs_Match_ALV>-Waers.
Condense l_Message No-Gaps.
CALL METHOD go_Error->Add_Protocol_Entry
EXPORTING
i_msgid = 'ZDMV'
i_msgty = 'E'
i_msgno = '002'
i_msgv1 = l_Message
* i_msgv2 =
* i_msgv3 =
* i_msgv4 =
i_fieldname = 'AMT_DEDUCTED'
i_row_id = l_Row_ID
* i_tabix =
EndIf.
If l_QtaStep > l_QtaAcc.
* Store the Error
pc_Error = con_X.
Write l_QtaAcc To l_Message Currency <fs_Match_ALV>-Waers.
Condense l_Message No-Gaps.
CALL METHOD go_Error->Add_Protocol_Entry
EXPORTING
i_msgid = 'ZDMV'
i_msgty = 'E'
i_msgno = '002'
i_msgv1 = l_Message
* i_msgv2 =
* i_msgv3 =
* i_msgv4 =
i_fieldname = 'AMT_DEDUCTED'
i_row_id = l_Row_ID
* i_tabix =
EndIf.
EndLoop.
If pc_Error Eq con_X.
* If there was at least one error, Display the Popup
go_Error->mt_FieldCatalog[] = gt_0200_FCat[].
go_Error->ms_Layout-Zebra = con_X.
Get Reference Of lt_Matches_Alv_Mod[] Into go_Error->Mp_Mod_Rows.
CALL METHOD go_error->display_protocol
* EXPORTING
* i_container =
* i_display_toolbar =
* i_optimize_columns =
EndIf.
EndForm.
Do you know if there is a particular issue about that? Or, maybe, I'm doing something wrong...
Please help me
Regards,
Claudio
Edited by: Claudio Distrutti on Oct 31, 2008 12:38 PMHello Claudio
Nobody prevents you from calling your event handler method go_grid->HANDLE_DATA_CHANGED directly!
What do I mean with that?
I assume you are calling method go_grid->CHECK_CHANGED_DATA at the beginning of the PAI module to catch any changes from the editable ALV grid. Within the event handler method you do your validation and send the error popup if necessary.
Now when the user closes the error popup and pushes e.g. the SAVE button then I can happen that method HANDLE_DATA_CHANGED does not trigger event DATA_CHANGED because nothing was indeed changed on the ALV grid. Yet the invalid value is still there.
However within the FORM routine for saving the data you can just call your event handler method directly:
FORM save_data.
CALL METHOD go_grid->handle_data_changed
EXPORTING
* er_data_changed =
e_ucomm = 'SAVE'.
ENDFORM.
Now within your event handler method you always know when the method was called because if method CHECK_CHANGED_DATA triggers event DATA_CHANGED the IMPORTING parameter ER_DATA_CHANGED is bound whereas it is empty when the method is called from your SAVE routine.
METHOD handle_data_changed.
DATA: lo_log TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
IF ( er_data_changed IS BOUND ).
lo_log = er_data_changed.
ELSE.
CREATE OBJECT lo_log.
ENDIF.
" Do the validations and send error log if necessary
lo_log->DISPLAY_PROTOCOL( ).
ENDMETHOD.
Regards
Uwe -
After an iTunes update failed to install, iTunes won't open and I get the following two windows. Program can't start because MSVCR80.dll is missing from your computer, and iTunes not installed correctly. Please reinstall iTunes. Error 7 (windows error 126) When I reinstall I get the same messages and ITunes won't open.
Click here and follow the instructions.
(98815) -
Special characters such as è and À are not displayed correctly on my iphone but are no problem in my Outlook.
Emails are sent from a blackberry Z10
ThanksSpecial characters such as è and À are not displayed correctly on my iphone but are no problem in my Outlook.
Emails are sent from a blackberry Z10
Thanks -
Processor 3.4 GHz Intel Core i7
Memory 16 GB 1333 MHz DDR3
I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive. It is telling me the harddrive is full and is not functioning correctly. How can I adjust so that all files are managed on the harddrive rather than the SDRAM. (BTW - design flaw here.)
Older Macs with a single Harddrive would simply expand OS management on the drive, and I think I understand the new Fusion Drive to do just that, but how do I get this product that I spent a great deal of money on to be more than a pretty screen?I was confused by this statement
It is telling me the harddrive is full and is not functioning correctly.
OS X manages ram and when you run out, it create swapfiles to extend your ram on the HDD (Hard Disk Drive). The OS itself, takes about 16 gig of space and that too resides on the HDD. Your 16 gig of RAM is really a temporary space that holds things from the HDD so the processor can work on them. There is no design flaw between your ram and HDD. Something else is going on and there are a lot of smart people here to help you figure out what that "something else" is.
I would do three things. First I would create a backup, backups are important. Second, I would reboot into recovery and repair my HDD. Lastly while still booted in recovery I would repair permissions.
Can you capture a screen shot of the exact error you are getting? -
IPS event monitor and reports not working
Dear after upgrading my IPS from E3 to E4 the event monitor and reports not working, can you please advice my to solve this issues
Hi All,
Filter settings below:
The filter works partially as I don't get alerts on the IPS itself.
Firewall LOG:
4 Feb 14 2014 15:33:22 39715 514 IPS requested to drop UDP packet from SOURCE_VLAN_NUMBER:/39715 to DESTINATION_VLAN_NUMBER:/514
IPS LOG (when enabled):
evIdsAlert: eventId=1352793300955167909 vendor=Cisco severity=low
originator:
hostId: SSM02
appName: sensorApp
appInstanceId: 1192
time: Feb 14, 2014 15:33:22 UTC offset=0 timeZone=GMT00:00
signature: description=IP Fragment Too Small id=1206 version=S212 type=anomaly created=20030801
subsigId: 0
sigDetails: Too many small IP fragments in datagram
interfaceGroup: vs0
vlan: 0
participants:
attacker:
addr: 172.x.x.x locality=OUT
port: 39715
target:
addr: x.x.x.x locality=OUT
port: 514
os: idSource=unknown type=unknown relevance=relevant
alertDetails: InterfaceAttributes: context="single_vf" physical="Unknown" backplane="GigabitEthernet0/1" ;
riskRatingValue: 50 targetValueRating=medium attackRelevanceRating=relevant
threatRatingValue: 50
interface: GigabitEthernet0/1 context=single_vf physical=Unknown backplane=GigabitEthernet0/1
protocol: udp
Our next step is to make a service policy exception on the firewall itself. We are also considering reloading the IPS device or at least the analysis engine.
Thanks for all your help so far. Any more suggestions are most welcome. I'll keep you up to date.
Regards
Mariusz -
How do I correct Install failed "APS DAEMON.EXE error. MSVCR80.dll missing" and "iTunes not installed correctly. Error 7
Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
(100246) -
Event viewer filtered log not exported correctly
Hi all,
I have a very strange problem, or better, I'm missing something.
I can open the event viewer and there are many events in there (45'000). I can filter for the last 7 days and this shows me only 1925 events which is correct.
Now, if I click on SAVE FILTERED LOG FILE AS, I can save the file in XML or TXT format (or others). It's not important the format because the export is incorrect! What I mean is that once the file has been exported to a TXT or others file's format, it contains
just some events, in this case maybe 50-60 events, not more! The strange thing is that in that file I can see ONLY the events from the most recent day in the filter (right now the 14 of june).
Now the funny part: if I save THE SAME LOG as .XML, it doesn't show all the events, but more than the TXT file (in this case, it shows until the 2nd of june), but the last event on the filtered event viewer, is on 13 may.
I hope somebody can help me, and excuse me for my explanation.Hi ripp3r,
Thank you for your post.
I test to save event log following your description with same result. When I save log to evtx format file, the log show correctly.
Then I find KB2417105 (for Windows 2008) to express that logs are truncated because the saving event log operation is not synchronized appropriately with the fetching-event operation.
When I installed the KB2417105, event log saved to txt file successful.
If your server OS is Windows 2008 R2, please install
KB981466.
If there are more inquiries on this issue, please feel free to let us know.
Regards,
Rick Tan -
I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is button click event message box or popup window will not working correctly. Please any one suggest me the steps to overcome this not responding or slowness in the responding problem of Button click event.
Hello,
In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentially damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.
However, the option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on.
'''about:config'''
# In the address bar, type "about:config" (with no quotes), and press Enter.
# Click "I'll be careful, I promise"
# In the search bar, search for "javascript.enabled" (with no quotes).
# Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
To Re-enable JavaScript, repeat these steps.
'''Add-ons'''
You can alternatively install an add-on that lets you disable JavaScript, such as
*[https://addons.mozilla.org/firefox/addon/noscript/ No-Script] (to disable JavaScript on a per page basis, as required)
*[https://addons.mozilla.org/firefox/addon/quickjava/ QuickJava] (to easily disable and enable JavaScript, automatic loading of images, and other content)
Thank you and I hope this helps! -
Yesterday I updated my Itunes account and it stopped working. I tried installing itunes version 11.1.4 and once done it came back with 2 error messages MsvCR80.dll was not found and I tunes was not installed correctly Error 7 (windows error 126) I have removed Itunes completely and redownloaded several times with the same result. Is there an easy fix or can I download an older version of Itunes that works?
None of the solutions mentioned in this forum work for me. I've not ever had a problem with your software before. I installed and uninstalled itunes 3 times. No itunes directories exist. I've uninstalled everything labled Apple on my pc withe the same results. The problem is with your software not Windows.
-
Date and time not showing correct whe imported to Power query
Hi,
I have an Excel list that I imported to another Excel file via Power query. A few of the imported columns contains date and time, for example 2013-11-09 20:19. When imported to Power query this will show as 41587.84652777778 and only dates/times with zero
hours and minutes will show correctly. When trying to change the data type to Date/Time it returns an error for all cells containing hours and minutes.
I use a Swedish version of Excel that uses a different time format compared to standard excel and also uses a , as a delimiter between date and time compared to the . used as delimiter in standard excel. Don't know if that can explain
this problem?
Brgds,
CI updated Power query earlier this week, so it should be the latest version. When I created the sample file now the problem appears, so if it is a bug it has not been solved.
You find the sample file on the link below. 4 sheets with some info on the problem, the data, the query result and one sheet with the data and query result as pictures as it shows in my version of Excel, I guess it will look somewhat different when you open
the file due to local date/time settings.
Appreciate feedback on what you find!
//Caj
https://skydrive.live.com/redir?resid=94DF9214E3A6D4!107&authkey=!AEuAXX_kPC7yKaI&ithint=file%2c.xlsx -
PDF's in Mail and Preview not displaying correctly
Ever since upgrading to Yosemite PDF's are not displaying correctly. Every time i generate a PDF of a sales quote it seems to lose a lot of information.
But the strange thing is.....
Preview and Mail both show PDF with missing text.
When I open using "Quick Look Attachment" within Mail or Adobe Acrobat it looks perfect.
When emailed, recipients (mostly Windows users) seem to have no problem opening it and seeing all text.
So far seen that issue is only in Preview and Mail
Only has happened since upgrading to Yosemite
PDF is created using web based ZOHO CRM to build quotes.
See image below to see the difference in what Mail and Preview sees compared with how other apps open the same PDF.
NOTE: sensitive info has been purposely blurred on image.Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
Isolating an issue by using another user account
Try booting into the Safe Mode using your normal account. Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
Safe Mode - Yosemite
Safe Mode - About -
I have an iPhone 4 on contract and its not working correctly , what should I do ?
I have an iPhone 4 on contract , I only have this 5 and a half months and the iPhone is not working correctly and i do not have insurance .. What should I do ??
It sounds like you did not purchase it at the Apple store? That doesn't matter - you can still take it to Apple to troubleshoot it.
You can also try to troubleshoot it with the help of the folks here - if you want to do that, let me know and I'll ask that your post be moved to the iPhone forum where you're more likely to get knowledgeable answers, ok. -
Mail with image and PDF not displaying correctly on Outlook
Environment and problem
OS X Mountain Lion, Mail 6.1 (everything up to date)
Emails with mixed image and PDF attachments send from my MacBoox Pro are not being displayed correctly when received on Outlook. It is not an Outlook problem.
Multiple inline images - ok
I compose an email, rich text format, insert severnal inline images, send to colleage on Windows 7 using Outlook, all received ok. He sees the message with inline images.
Multiple inline images and PDF - not ok
I compose a similar email with multiple inline images, but attach a PDF. This time all of the attachments (images and PDF) appear at the end of the message when viewed in Outlook.
Gmail browser comparison
I repeat the above from a Gmail account via Safari and I can make an email with inline images and PDF attachments and it works.
Any thoughts, tips, bug reports, etc appreciated.
JonNo - can't be an Apple fan and then critisise MS for being proprietry
My problem was solved by installing Attachment Tamer.
It could also have been solved by emailing from Gmail directly.
The guys I work with use Outlook and were suprised to see this behaviour.
It's only basic OS X email that has a problem.
I wholeheartedly agree that the standard for emails are not conducive for rich layout control.
But - when my email just has images I had no problems. Take for example the email notifications we're getting from this thread - there are images and layout etc and work fine.
The key feature from Attachment Tamer hints at the problem (and its solution):
send images embedded in HTML layout and safely mix embedded images with other attachments; -
Theme and Template not importing correctly
I have exported the theme and template file. At the import site the template and theme did not install correctly.
I can see that it is using the same theme as the source environment, but it will not appear.
Any ideas?You've got two issues going on.
One- never put anything besides the .dwt template files in
the Templates
folder.
Also- the paths need to work IN the template.
The images aren't showing here:
http://www.und.edu/dept/art/Templates/MAIN.dwt
So dw is making wrong paths to them in the child pages.
Use the "browse to file" dialog box to pick the images.
And if any of them are in the Templates folder, use the Dw
files panel to
move them.
Second issue:
Your dw "site" is defined to a subfolder of the domain,
/dept/art/ as far as
i can guess. But you've used site root relative paths in the
Template. Site
root relative paths start with a leading /slash. It tells the
browser to
start from the domain name's root level.
Only use Document Relative paths if the site is defined to a
subfolder of a
domain. (look for the pulldown in the bottom of the browse to
file dialog
box)
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
Maybe you are looking for
-
How to retrieve old purchases with the same Apple ID but from a different country
I used to be on the US app store and purchased apps, music and books on it. Now I have changed it to a South African account but can't update apps or download my old apps onto new devices. Any advice would be appreciated. Thanks
-
Hi all Two questions about budAPI: 1) I wonder if there is any way to make two MIAW to appear on top of the stage window in a full screen mode. Currently my two MIAW disappear in a full screen mode but work fine when i uncheck this option 2) I have t
-
Links here in Welcom msg not working Heads Up
Perhaps this is well known and time has not been allotted to repair, but the two links in the Welcome message, which is locked, to the WikiFAQs and the Rules of Engagement are not live.
-
I wanted to know what is the difference between these two types of database links: create public database link <> connect to <> identified by <> using 'XYZ'; and create public database link <> connect to <> identified by <> using '(DESCRIPTION = (ADD
-
Mountian Lion Install Problems ?
Hi last night i backed everything to a harddrive manually i didn't use time capsule that was my first mistake then secondly i booted into CMD+R From there i formatted my harddisk as i needed a clean install second mistake.... Now i got no OSX Mountai