I changed the DataElement of one column in SE11 transaction.
When I open the table at SE16N, the column name is the description of the older DataElement.
How do I update the column with the new description?
Example:
At first time, I created as this:
FIELD DataElement Description when show at SE16N
COD_PANEL NUMC5 numc5
At second time, I alter the DataElement:
FIELD DataElement Description when show at SE16N
COD_PANEL ZCOD_PANEL numc5
If I open the table in other language, the new name it's correct.
The reason why it doesn't work is probably the language.
You have to change the values for every language separately.
Login with the language where you want to update and do the changes again.
Then it should work.
Otherwise, did you activate the changes?
You can use transaction code SE14 to adjust DDIC objects to changes
It updates all database attributes and their corresponding representation in DDIC.
I usually do the following steps:
Manually remove the old description that is displayed.
Deliberately enter a typo in the used DDIC element name. This will make the system show an error message since that element does not exist.
Correct the DDIC element spelling. The system now considers this a big enough change to pull in the correct description of the element.
Result: The description of the changed DDIC element is now shown.
Related
I have two fields on a form. Field 1 is auto number field named 5sID. Field 2 is a lookup field named 5sType.
When I open the VBA code for both the oncurrent and on open, I try to reference either field with a "Me.5sID" or "Me.5sType". In either case when I type in the "Me." the auto list shows the other eight fields in the table, but not these two.
I have used this for years on both datasheets or continuous forms. There are only the two fields on the form and they were selected from the table field list in the design view.
If I change the name on the Other tab of the property options, the fields then appear.
I have now rebuilt the table and the form, I have created a database and linked to the same table and still get the same results.
If I add another short text field it shows up when I type "Me." in VBA, but any other type of field does not show up.
Naming an identifier with a number as first character is a bad idea! Always start with a letter!
On Access 2013 that creates a compile error as the compiler expects a=as he interprets.5as a decimal-number.
That worked for you on older versions? Hard to believe!
As workaround use square-brackets like on identifiers containing spaces or other crap.
Me.[5sID]
or turn onShow hidden Elementsin Object-Browser , what fixes Inteli-Sense and creates automatic brackets. Seems like this is a way to create hidden members ;)
I'm new to MS ACCESS, I would like to know if there is a way to clear an auto number field using a clear button. I've tried to follow some videos on you particularly this one but it seems to be not the proper way on how to deal or create an auto number field.
This is the image is the sample of the form which I'm experimenting with this particular subject.
And this image is the error code which I'm getting right after I clicked the clear button.
[![enter image description here][3]][3]
Below is the code I use for this experiment.
You don't need to clear autonumber field, it handled automatically. So, remove EnployeeID field from INSERT statement and delete rows with Me.txtEmployeeID from clear procedure
The AutoNumber Data Type is assigned automatically and can't be
changed. Also once you enter data into some other field like Employee
Name(New Record event initiated), access will assign a value to the
AutoNumber let's say 1. If you press Esc, access will cancel the edit. Next time you create a new record access will assign the value 2 and so forth. Unless you repair the database then access will reset the AutoNumber counter.
If you want a data type that you change its value, you need to change the Data Type to Number. In this case you need to assign each value by code or by the user input.
I have a problem with the workflow which I prepared for Communities users. The idea whole idea is to populate Address field according to the values which Communities users will enter. However, when I did the test it looks that the workflow doesn't work. I feel lost as everything looks fine for me. Here is the screenshot of my workflow:
and here is the action which I set up for this workflow:
At this point I was trying to refer to Description field just to be sure it works and it is not spoiled by any of Address field settings. However, it doesn't even populate the results in the Description field. Could anyone help me with that please?
I see the error in your field update. You are using description field in both places: as a field to Update and as a formula value. If you want, that description field are populated from adress field, you should chose adress field for formula value.
In an alternate application, the user has the ability to update their address and phone number. When these are changed, three fields will update: Old Value, New Value, and Field Changed. If the Field Changed was the address, I need to create two report pages - one with the old address and one with the new. However, if the Field Changed was the phone number, I only need to create one report page for the current address.
My initial plan was to do a Union that would have one record with the Old Value and another with the New Value. This should work when only the Address has changed. However, it won't whenever the Phone Number has changed. I assume I need to do some sort of case statement, but I'm not really sure if this is the right approach. Sorry if the data is a little confusing (I didn't design the data structure. This was provided by our professor's assistant). If you need more information, I'll try to provide it.
I'm not looking for exact SQL, but I am wondering if I'm approaching this the correct way.
What do you mean by a 1 or 2 page report? Are you outputting to a CSV, PDF, XLSX or something eles?
If you need to do this through "pure" sql I would recommend a stored procedure that is given a value stating whether it's the address or phone number that is being updated. It can then do the update and you can simply do an if statement which determines which report to run and return.
I'd recommend handling it programatically if possible. Have your code run the sql update and then call the appropriate function within your code to get the report you need. You can then easily re-use the code for that report in other ways.
I have selection screen with SELECT-OPTION let say the name is selection_kunnr and I want to know if user filled that selection area or not
Note: this selection_kunnr is not a mandatory field. How can I deal with it?
I have tried so far
if selection_kunnr is not initial.
"do some action here
endif.
but I think it doesn't work at all.
Any suggestions?
SELECT-OPTIONS create an internal table (same as the RANGE statement) for a field. (It creates 4 fields: SIGN, OPTION, LOW and HIGH). You can check whether the table has any contents by using:
IF SELECTION_KUNNR[] IS INITIAL.
The [] operator specifies the contents (rows) of an internal table.
I am not sure anymore, because I am not in front of an SAP system right now, but if only the initial FROM/TO fields are filled, I am not sure whether this creates an entry in the table.
HINT: In the ABAP editor, you can place the cursor on any statement, and press F1 to get help on that statement.
Given that this creates an internal table you can also use the DESCRIBE statement. Which works just as well on ranges and internal tables in your program.
DESCRIBE TABLE LINES w_count.