Field not validated from ABAP dictionary
HI ,
I have created ALV using OOP. . I implemented F4 functionality on the field AUFNR on output . for validation on AUFNR i passed ref field(aufnr) and ref tab(aufk) in field catalog but still it is not validating .
field catalog :
i_fieldcat_line-fieldname = c_aufnr.
i_fieldcat_line-coltext = c_prod.
i_fieldcat_line-scrtext_m = c_prod.
i_fieldcat_line-col_opt = c_x.
i_fieldcat_line-edit = c_x.
i_fieldcat_line-f4availabl = c_x.
i_fieldcat_line-ref_table = 'AUFK'.
i_fieldcat_line-ref_field = 'AUFNR'.
* i_fieldcat_line-checktable = c_aufk.
i_fieldcat_line-key = c_x.
i_fieldcat_line-col_pos = 2.
i_fieldcat_line-outputlen = 12.
could you please help me ?
Thanks ,
Mayank
Hi Mayank ,
In OO provided you have an editable grid register the event ENTER.
Once this is done you can use two methods HANDLE_DATA_CHANGE which will be entered if any data is actually changed and the user presses ENTER and HANDLE_DATA_CHANGE_FINISHED which is entered after you've done your changes.
If no data is changed then the event is not raised and you don't have to do any validation etc.Using your method with the &SAVE functionality you don't know if the user has actually entered anything or not. You'd have to validate your whole table before saving and also decide what to do on any error(s). Your table could have say 20,000 lines or more -- to validate this would definitely be a beginners way - very inefficient and totally elephantine.With the Data changed method you can work interactively and you are only dealing with changed data. You get control at data entry time which is far better than waiting until you get to SAVE and then have to decide what to do.
In these methods you should be able to examine your data and take the appropriate action.
You don't need any special toolbar functionality unless you want to say re-display the changed grid and save it to SAP tables / run transactions / create IDOCS etc etc.
I think this is actually better than using a toolbar function as there is nothing to stop the user from either pressing the toolbar when nothing has been changed or you then have to do a whole set of validation after the user has entered a whole lot of data (and you still have to get the user's data anyway).
Why not let the system give it to you in the data changed method --there you can validate it.
By all means add a toolbars for SAVE / UPDATE etc if you want.
You do this by adding the functions to the alv toolbar in ON_TOOLBAR and use the ON_USER_COMMAND method to execute the function when the toolbar button is pressed.
Look for some of my previous posts -- I've posted the code often enough.
However for the Data changed stuff.
in your program add these events, methods and handlers
DATA: g_handler TYPE REF TO lcl_event_handler. "handler DATA grid_container1 TYPE REF TO cl_gui_custom_container . DATA grid1 TYPE REF TO cl_gui_alv_grid.. CLASS lcl_event_handler DEFINITION . PUBLIC SECTION . METHODS: .... your other methods * data changed handle_data_changed for event data_changed of cl_gui_alv_grid importing er_data_changed, *data changed finished handle_data_changed_finished for event data_changed of cl_gui_alv_grid. ...... ENDCLASS. "lcl_event_handler DEFINITION CLASS lcl_event_handler IMPLEMENTATION. * Your other methods ........... method handle_data_changed. perform data_changed using er_data_changed. endmethod. "data_changed method handle_data_changed_finished. perform data_changed_finished. endmethod. "data_changed_finished ENDCLASS.
In your application program
form data_changed using er_data_changed. break-point 1. * code validation routines etc here endform. form data_changed_finished. * code any requirements after all changes finished break-point 1. endform. * before displaying the grid struct_grid_lset-sel_mode = 'D'. CREATE OBJECT g_handler. SET HANDLER g_handler->handle_double_click FOR grid1. SET HANDLER g_handler->handle_hotspot_click FOR grid1. SET HANDLER g_handler->handle_toolbar FOR grid1. SET HANDLER g_handler->handle_user_command FOR grid1. SET HANDLER g_handler->handle_data_changed FOR grid1. SET HANDLER g_handler->handle_data_changed_finished FOR grid1. CALL METHOD grid1->register_edit_event EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_enter.
just add your own code in the forms data_changed and data_changed finished.
You can get the contents of the parameter er_data_changed from cl_gui_alv_grid via SE24.
Hope this will help you.........
Regards ,
Yogendra Bhaskar
Similar Messages
-
Field -RLTYP is not defined in ABAP-dictionary
Hello, gurus!
We have upgraded to ERP 6.0 (from 4.6c).
Now I have a problem with search help in TX.1
1. Transaction TX.1
2. F4 on the field KONTRH
3. Choose the "Partners by BP Role" tab
4. F4 on BU_PARTNERROLE
Next I see message "Field -RLTYP is not defined in ABAP-dictionary" instead of the roles list.
I appreciate any help!
Thanks in advance,
Anton.I've found the solution!
Note 1525604 -
Comments not imported from Data Dictionary of SQL Server. SDDM 3.3.0.747
Hi,
SDDM 3.3.0.747 32-bit on Windows 7 64-bit.
Comments are not imported from Data Dictionary of SQL Server 2008. Connection through Microsoft JDBC Driver 4.0 for SQL Server or jTDS 1.2.7
What I have tried? In SDDM DDL generation, Comments in DBRMS for SQL Server are generated with "EXEC sp_addextendedproperty 'MS_Description' , 'Test Comment' ..." so I added extended property named "MS_Description" into SQL Server database, both on table and column. None of them were imported from Data Dictionary into SSDM. I have tried both drivers stated above. Is it a bug or am I missing something?
I've found similar question thread Re: Data dictionary import doesn't import column comments for SDDM 3.0.0.665, so I guess it is a bug when importing with JDBC drivers.
MiGli
Edited by: MiGli_1006342 on May 25, 2013 8:32 AM
Edited by: MiGli_1006342 on May 25, 2013 9:02 AMExtended properties were not imported correctly from SQLServer databases at DM 3.3.0.747.
Calls to sp_addextendedproperty and fn_listextendedproperty have been modified.
I don't think it is a problem with JDBC drivers.
A bug fix should be available in the next release of DM. -
InfoSource copied from 0BPARTNER_ATTR is not found in ABAP dictionary
Hello friends,
I am migrating 0BPARTNER_ATTR flow from 3.5 to BI 7.0 which has InfoSource.
So i copied update rules and trasfer rules from the existing flow as both have routines.
When i tried to create transformations from update rules, it propted me for an InfoSource and i gave a new infosource name ZBPARTNER_ATTR as it has not accepted the old one 0BPARTNER_ATTR.
So now new flow is as follows: 0BPARTNER_ATTR(DS) - ZBPARTNER_ATTR(IS) - 0BPARTNER(IO).
Now the problem is i don't see this commmuncation structure in ABAP dictionary like the old one /BIC/CS0BPARTNER_ATTR. I expected /BIC/CSZBPARTNER_ATTR. So in the update routine , it is not giving any result for new one.
But i don't have any issues with the similar model for sales statistics( but it has custom InfoSoure ZUC_ISU_01).
Please advise
VNMHi;
It's better if you create direct transformation between DS and IO.
You will save many time in maintnance and the performance is better.
Regards;
Ricardo -
LOV not validating from the list when tabbed out
Hi,
I have an item attached to an LOV generated dynamically based on another LOV. When I change the value in the parent LOV, and just click on the child item(which still has old value) and tab out, it does not validate from the list which has new values. The old value in the field is actually wrong one. However, it shows new values when I click on list of values for the child item.
I am also setting the property VALIDATE_FROM_LIST to PROPERTY_TRUE. The code to set_lov_property to the dynamic query is generic and is used by both key-listval and when-new-item-instance triggers. Except in key-listval I added list_values.
I am using forms 6i version.
Can any one tell me where I am doing wrong?
Thanks,Neeraja,
Its because the item is not validating again, as there is no change in its contents. So you have to tell oracle to validate that item. For that in the WHEN_VALIDATE_ITEM trigger of the parent item, write,
SET_ITEM_PROPERTY('<block_name>.<child_item_name>', ITEM_IS_VALID, PROPERTY_FALSE);So when you tab out from the child item, the oracle will validate that item even if there is no change in the data.
Regards,
Manu.
If my response or the response of another was helpful or Correct, please mark it accordingly -
SQL modeler can not import from data dictionary
It was very frustruted to see that the SQL Modeler hang in import from data dictionary of a database as part of revise engineering. I have to question myself if sql modeler is a serious tool and should I give up.
I am not sure if Data Modeller is still in Beta./Production. First couple off initial versions of a new product are normally buggy.
Regards
Alternatively, If this product is still in Beta, then you can contact the development team or report the issue so that they can take care of this issue in next beta release.
Edited by: skvaish1 on Mar 30, 2010 3:18 PM
Edited by: skvaish1 on Mar 30, 2010 3:26 PM -
Aperture 2 Serial Number not valid from 1.5
Hi,
I have just purchased Aperture 2 but when installing on my new mac it is saying that the serial number from Aperture 1.5 is not valid. Triple checked but still no luck.
Any ideas please would be great!Are you sure your 1.5 is not an academic version or an NFR? Those are not eligible for upgrade.
DLS -
Why are protected fields not-accessible from sub-classed inner class?
I ran across a situation at work where we have to sub-class an inner class from a third-party package. So, it looks something like this...
package SomePackage;
public class Outer {
protected int x;
public class Inner {
package OtherPackage;
public class NewOuter extends Outer {
public class NewInner extends Outer.Inner {
}Now the NewInner class needs to access protected variables in the Outer class, just like the Inner class does. But because NewOut/NewInner are in a different package I get the following error message.
Variable x in class SomePackage.Outer not accessible from inner class NewOuter. NewInner.You can still access those protected variables from the NewOuter class though. So, I can write accessor methods in NewOuter for NewInner to use, but I am wondering why this is. I know that if NewOuter/NewInner are in the same package as Outer/Inner then everything works fine, but does not when they are in different packages.
I have to use JDK1.1.8 for the project so I don't know if there would be a difference in JDK1.2+, but I would think that nothing has changed. Anyway, if you know why Java disallows access as I have detailed please let me know.Although I don't have the 1.1.8 JDK installed on my system, I was able to compile the following code with the 1.3.1_01 JDK and run it within a Java 1.1.4 environment (the JVM in the MSIE 5.5 browser). As long as you don't access any of the APIs that were introduced with 1.2+ or later, the classes generated by the JDK 1.2+ javac are compatible with the 1.1.4+ JVM.
//// D:\testing\SomePackage\Outer.java ////package SomePackage ;
public class Outer {
protected int x ;
public Outer(int xx) {
x = xx ;
public class Inner {
}//// D:\testing\OtherPackage\NewOuter.java ////package OtherPackage;
import SomePackage.* ;
public class NewOuter extends Outer {
public NewOuter(int xx) {
super(xx) ;
public class NewInner extends Outer.Inner {
public int getIt() {
return x ;
}//// D:\testings\Test.java ////import OtherPackage.* ;
import java.awt.* ;
import java.applet.* ;
public class Test extends Applet {
public void init () {
initComponents ();
private void initComponents() {
add(new Label("x = ")) ;
int myx = new NewOuter(3288).new NewInner().getIt() ;
TextField xfld = new TextField() ;
xfld.setEditable(false) ;
xfld.setText(Integer.toString(myx)) ;
add(xfld) ;
}//// d:\testing\build.cmd ////set classpath=.;D:\testing
cd \testing\SomePackage
javac Outer.java
cd ..\OtherPackage
javac NewOuter.java
cd ..
javac Test.java//// d:\testing\Test.html ////<HTML><HEAD></HEAD><BODY>
<APPLET CODE="Test.class" CODEBASE="." WIDTH=200 HEIGHT=100></APPLET>
</BODY></HTML> -
Subscreen field value is not transferring from ABAP program to Screen
Hi All,
I have a requirement to add a new field in a standard program subscreen( program SAPLKACB, Screen: 1006 ). This subscreen is being called from main standard program SAPMV45A.
When i see the new field value in Debug mode, some value is there. But when the subscreen is displayed value is not displayed. The value is available till end of Main program PBO. But it is displayed with no value, when the subscreen is shown.
Please let me know what could be the reason behind this. Points will be awarded for the helpful answers. It is very urgent.
Regards,
Yellappa.Hi
did you add code to the flow lgic?
INCLUDE MV45AOZZ. " User-modules PBO
INCLUDE MV45AIZZ. " User-modules PAI
Rgds,
JP -
How to get the field texts from abap dictionary into screen Text fields
Hi SapAll.
here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
but iam unable to get the field text for the text field from teh table CAUFVD.
CAN ANY BODY HELP ME IN THIS.
regards.
varmaHi Varma,
Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
Regards
Thiru -
Method needed to identify Contacts that are not valid from the Comp Screen
Problem
My Company has 65k contacts in the system, we do not delete contacts that are no longer at company, as when we buy data our data in some cases will be more up to date that the third party data available on the market. This then means when a user looks at a company record and the related contacts, he has to hover the cusor over each of the contacts to check if they are valid or not.
Goal
When a user looks at the contacts linked to the company the following fields will be presnt:
Contact Valid
Contact Leave Date.
This will then mean the user will be able to see without looking which contacts are valid and which are not.
Problems
I have tried to create a contact page layout with the fields needed however the only fields avaiable are as follows:
Company ID
Company Name
Company Status
Contact ID
Contact Name
Contact Roles
Location
Primary
Can anybody help?Thanks for the reply.
However I think I didn't make myself clear in my post in terms of the problem. The problem I have is that when a user looks at a company (account) record the user see the following information in relation to which of the available contacts to select "Primary,Last & First name,Job Title, Contact Role, Work Phone and Email". However none of these fields show if the contact is valid or if they have a leave date.
Both Contact Valid and Contact Leave date have been set up in the system within the contact record. I want to change the layout and have spent hours in the following screens and functions.
Page layout Management
Company/Contact Related Information layout
Related Information Setup
Company/Contact page layout
The problem is the screens/functions where I think I could add the two above mentioned fields end up with me turning the fileds into required or read only fields, and the section where I want to drag in the fields to display has the two fields missing. -
Active Directory cn field not updated from sap HR using ldap.
Hi,
Apologies if this is in the wrong forum area.
I am using the LDAP facility to create and modify Active Directory records from sap HR. Initially, the name field cn that was coming across into AD was in the format of the logical system and employee number, eg, RD4CLNT22000000711.
I then implemented the BADI HRLDAP_ATTRIBUTES which then changed this name field cn in the active directory listing to the format; surname, forename.
It works fine when I create a new user, however the problem comes when I update the persons name in the sap hr module. The data that comes across into Active Directory shows the change to the persons surname sn, forename and displayname fields is there but the cn field is still showing as the previous name.
In short, when a new user is created, the cn field in active directory is correct
(surname, forename) but when the employees name is modified, that change is not brought across to the cn field even though the surname, forename and displayname fields are updated correctlyon AD.
We are on release 4.70.
Anyway, if anyone could help I would be very grateful.
Thanks
DavidHi
The problem it is causing us is that the cn field is incorrect and does not mirror the change in sap HR, therefore the Active Directory entry for the employee is not totally accurate.
When an employee changes their name in SAP HR - usually their surname, we would then want to update the employees active directory account to show this change and this includes the cn field also. At the moment the firstname, lastname fields do get updated with the change so we would want the cn field to show this as well otherwise the cn field would be incorrect and not match up with the employee's AD firstname & lastname fields.
Dave -
Fields not visible from custom WIW Infoset
Hello,
a custom infoset version (ZZZHR_XX_PA_ESS) in ESS Who is who
works with molga=15 to display user details, its manager details (starting form standard field
syhr_a_p0001_af_omngr_nr) and assistant details.
When used with both the WIW functon and a test query
(ZZZHR_XX_PA_ES) and my userid 'ferramarc1' the information of the
user manager (read from field ZZZHR_XX_PA_ES) are displayed as requested.
With generic userid 'testfgpess1' the manager fields are not displayed.
Anybody can please help us on this subject?
Ferramarc1 profiles
T_BA800067
T_BA800079 Profilo per il ruolo SAP_BC_EMPLOYEE
T_FD400017
T_FD400018 Profil zur Rolle SAP_HR_EMPLOYEE_DE_ERP
T_FD400021 Profile for role SAP_HR_EMPLOYEE_US_ERP
T_PH500038 Profil zur Rolle SAP_HR_PA_XF_EXPERT
T-F1040142 Profilo per il ruolo ZZ_DEVE_ESS
T-F1040148 Profilo per il ruolo Z_SAP_ESSUSER_ERP05
T-F1040192
T-F1040194
T-F3740197 Profilo per il ruolo Z_CUST_CONS
T-F37401971 Profilo per il ruolo Z_CUST_CONS
T-F37401972 Profilo per il ruolo Z_CUST_CONS
T-F37401973 Profilo per il ruolo Z_CUST_CONS
T-F37401974 Profilo per il ruolo Z_CUST_CONS
T-F37401975 Profilo per il ruolo Z_CUST_CONS
T-F37401976 Profilo per il ruolo Z_CUST_CONS
T-F37401977 Profilo per il ruolo Z_CUST_CONS
T-F37401978 Profilo per il ruolo Z_CUST_CONS
T-F37401979 Profilo per il ruolo Z_CUST_CONS
ZDEVEALL__ Profilo per il ruolo ZZ_DEVE_ALL
ZDEVECUXI_ Profilo per il ruolo ZZ_DEVE_CUST_XI
ZHRECUSTHR Profilo per il ruolo ZZ_HRES_CUST_HR
ZZBASEALL_ Profilo per il ruolo ZZ_BASE_ALL
Ferramarc1 role
SAP_BC_EMPLOYEE
SAP_BC_ENDUSER
SAP_EMPLOYEE_ERP
SAP_ESSUSER_ERP
SAP_HR_EMPLOYEE_DE_ERP
SAP_HR_EMPLOYEE_US_ERP
SAP_HR_PA_XF_EXPERT
ZZ_BASE_ALL
ZZ_DEBUG
ZZ_DEVE_ALL
ZZ_DEVE_CUST_XI
ZZ_DEVE_ESS
ZZ_HRES_CUST_HR
ZZ_HR_C_ENDUSER
ZZ_SE16_AL11
Z_CUST_CONS
Z_SAP_ESSUSER_ERP05
testfgpess1 role
ZC_GLOB_PORTAL_AUTHORIZATIONS
ZO_GLOB_M_PORTAL_OBJ_BC
ZO_GLOB_M_PORTAL_OBJ_HR
ZZ_BASE_ALL
profile
ZC_GLOB_PORTAL_AUTHORIZATIONS
ZO_GLOB_M_PORTAL_OBJ_BC
ZO_GLOB_M_PORTAL_OBJ_HR
ZZ_BASE_ALLGerardo,
Please check the authorisations of the user
Thanks
Bala Duvvuri -
Hi,
When trying to initiate hyper-v replication from the main server i'm getting this error in the event logs.
Hyper-V failed to enable replication for virtual machine 'RECADemo': A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. (0x800B0101). (Virtual Machine ID 561591B6-567C-...)--I'm using certificate based auth and cert is installed/recognized on both machines.Please help.Thanks,Jaffer
JafHi,
This error occurs because the Microsoft Certificate Trust List Publisher certificate expired. A copy of the CTL with an expired signing certificate exists in the CryptnetUrlCache
folder. Please try to renew the Trust List Publisher certificate.
The related KB:
Event ID 4107 or Event ID 11 is logged in the Application log in Windows and in Windows Server
http://support.microsoft.com/kb/2328240
How to Renew the Site Server Signing Certificate (Microsoft Certificate Services)
http://blogs.technet.com/b/configmgrteam/archive/2009/02/11/how-to-renew-the-site-server-signing-certificate-microsoft-certificate-services.aspx
Manage Trusted Publishers
http://technet.microsoft.com/en-us/library/cc733026.aspx
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Can not select from data dictionary view from a procedure
Hi,
I wonder, which privilege is missing here:
my schema has this roles and privs:
GRANT CONNECT, RESOURCE TO cb ;
GRANT CREATE SESSION TO cb ;
GRANT SELECT_CATALOG_ROLE TO cb ;
GRANT CREATE SYNONYM TO CB;
GRANT CREATE VIEW TO CB;
I create a procedure:
create or replace procedure dd_test as
begin
dbms_output.enable(2000000);
for r in (select table_name from sys.dba_tab_partitions where owner = 'CB') loop
dbms_output.put_line(r.table_name);
end loop;
end;
sho err
4/38 PL/SQL: ORA-00942: table or view does not exist
When I run the core statement form sql prompt, it works !
so what privilege is missing here ???
thanks for any hint, Lao DeHi,
thanks for that reply, after doing that I can not select this DD-view from sql-prompt anymore (which I don't wonder ;-). Can you tell me, what idea you had behind that test ?
I found another instance, where the procedure works and I will compare those privileges, but it's hard to sort out that complex structure of nested roles and sys_privs.
How ever, I will update here, when I found the missing privilege.
regards LaoDe
Maybe you are looking for
-
Shortcut Type in Bi 4.1
Hi All, We have lots of reports in public folders. Since we dont want the users to view the actual reports, we have made shortcuts to them and have re-named to resemble as the actual reports. In XIR2, the renamed shortcut reports would inde
-
My email provider (orange) uses one username to which email addresses are attached. Its goes something like this: [email protected] [email protected] On windows this was not a problem as I could set up a rule that said do not download from server. Th
-
I have a few old PhotoCDs I'd like to import into Lightroom or open into Photoshop. CS4 does not have that option in the normal "open" box. I did some Internet searches on the topic and one said Adobe included the command as a Goodie in CS3. I put my
-
Solaris problem: libmawt.so not found
I also posted this message to the JRE group. Sorry it you've already seen it there. Not sure which group is right for this topic Whenever I try to run any graphic application on my Solaris machine, I get a fatal exception: "libmawt.so: open failed: N
-
Issue with onClick and onClientClick
Hi All, My requirement is as follows. I have 3 dropdownlist boxes namely Circle, SubCircle and Customer. When i select the Circle, its respective Sub Circles should appear in the second drop down. If i select the sub circle its repective Cus