Edit mode of field catalog
Hi Experts,
I have a problem to handle data changing on screen although I put edit mode in field catalog. How can i trace the error. please ....
FORM SET_FIELDCAT.
DATA: L_COL_POS TYPE I.
PERFORM ADD_FDCAT TABLES GT_LVC_FCAT
USING: 'X' L_COL_POS 'ZTNBOOK' 'B_ID' '' 'BOOK ID',
'X' L_COL_POS 'ZTNBOOK' 'BOOK' '' 'BOOK',
'X' L_COL_POS 'ZTNBOOK' 'ZPRICE' 'WAERS' 'PRICE',
'X' L_COL_POS 'ZTNBOOK' 'WAERS' '' 'CURR',
'X' L_COL_POS 'ZTNBOOK' 'STATUS' '' 'STATUS',
'' L_COL_POS 'ZTNBOOK' 'STATUS_T' '' 'DESCRIPTION'.
ENDFORM. " SET_FIELDCAT
FORM ADD_FDCAT TABLES PT_FCAT_ALV TYPE LVC_T_FCAT
USING P_COL
P_COL_POS
P_REF_TABLE
P_FIELDNAME
P_CFIELDNAME
P_TEXT.
ADD 1 TO P_COL_POS.
GS_LVC_FCAT-COL_POS = P_COL_POS.
GS_LVC_FCAT-EDIT = P_COL.
GS_LVC_FCAT-REF_TABLE = P_REF_TABLE.
GS_LVC_FCAT-FIELDNAME = P_FIELDNAME.
GS_LVC_FCAT-CFIELDNAME = P_CFIELDNAME.
GS_LVC_FCAT-SCRTEXT_L = GS_LVC_FCAT-SCRTEXT_M = GS_LVC_FCAT-SCRTEXT_S
= P_TEXT.
GS_LVC_FCAT-QFIELDNAME = SPACE.
APPEND GS_LVC_FCAT TO PT_FCAT_ALV. CLEAR GS_LVC_FCAT.
ENDFORM. " ADD_FDCAT
FORM edit_mode_field.
LOOP AT t_fieldcat ASSIGNING <fieldcat>.
CASE <fieldcat>-fieldname.
WHEN 'FIELD1'.
MOVE mark TO <fieldcat>-edit.
WHEN 'FIELD2'.
MOVE mark TO <fieldcat>-edit.
ENDCASE.
ENDLOOP.
CALL METHOD alv_grid->set_frontend_fieldcatalog
EXPORTING
it_fieldcatalog = t_fieldcat.
ENDFORM.
Similar Messages
-
Af:selectOneChoice value not disply in edit mode
Helo Team,
I have the following functionality..
i have one Table.. & one Add button when i click on the add button one popoup will open i enter the data when i say ok then data will show in table & in table when i click the particular row..& click edit button & othe popup will open with edit mode all field which i entered previously are disply in edit mode...But only the value of Af:selectOneChoce value not disply in that componant ...
How can i solve this problem ?Hi,
How ur LOV(ie.SelectOneChoice) is attached to the field from a viewObject.. Is it attached through a viewAccessor?
I think ur update page is a separate page having a form layout and if so please drag and drop the selectone choice field(ie.attribute has LOV entry) from respective
viewObject shown in the datacontrol. this will create a LOV entry in ur pagedef file and try the same.... :)
regards,
Suganth.G -
Item field to non-editable mode(display mode) in Purchase Order(ME22n).
Hi SDN,
Based on the Comany code i need to modify the item level fields like <b>Item, Account Assignment, Material</b> to non-editable mode(display mode) in Purchase Order(ME22n).
So i modifed in the method MODIFY_SCREEN_TC_LINE of class CL_TABLE_VIEW_MM and set the value L_FIELD_STATUS = * for the screen filed MEPO1211-EBELP. When i execute, the whole column changed to display mode and the empty rows filled with 0(zero). But i want only grey mode for the line items that are present for that PO but not for the whole column. So can any one guide me to do so. I am using 4.6c.
Thanks in Advance
Regards
BashaHi Ramesh,
Normally you can change the currency field, after entering information in Data base's table, go to Detail's table and change the rate as you want, then directly choose your PO number.
so the system accept the rate entered aven though the PO had another rate.
Regards. -
Custom field in Edit mode in Sourcing
Hi,
We are using Classic scenario. I have to add one custom field in Sourcing. So, I have added the field in Shopping cart. Now the custom field is displaying in surcing cockpit. But we have few PRs which has created through RFC users from ECC. When I am creating sourcing, the PRs which are created in ECC are in Display mode only. But I need my custom field in edit mode to add values in that field. So, Is there any BAdI is there to change the mode of sourcing from Display mode to Edit? It's urgent. If anybody came accross such issue, please let me know.
Thanks and Regards,
Nowsath
Edited by: Nowsath RM on Mar 31, 2008 2:30 AMThanks. But in BBP_CUF_BADI_2, IV_mode field is there in methods MODIFY_INPUT, MODIFY_OUTPUT and MODIFY_MODE_QUOT. Out of which in methods MODIFY_INPUT and MODIFY_OUTPUT, the iv_mode field is import parameter not export parameter. So, you cant change the mode over there. Also in method MODIFY_MODE_QUOT, the iv_mode is as changing parameter. But this method will not trigger when ur creating sourcing. Please correct me if I am wrong...
-
The note field is in non-editable mode in appraisal document
Hi all,
In appraisal document,
the reviewer can give his comment in the status u201CIn Processu201D and in the Sub Status u201CAnnual Review by Addl Managers/Reviewersu201D in an appraisal document. It is editable when I am trying via web but when I try to upload the comment from backend GUI ( using phap_admin) the note field is in non-editable mode. My client requires it in editable mode at the back end.
Can any one help me on thisu2026Hello Girish,
Can you please check the appraisal template, Proper access has been given to use the note column. If still faces problem can look for the BADI HRHAP00_COL_ACCESS.
You can look for the following notes also :
1554467 column access does not work
Best Regards,
Deepak.. -
How to maintain the Goods reciepent field in edit mode while SHC creation
Hi Experts,
Can any one suggest me a solution, this is the requirement in SRM 5.0 version classic.
Business wants to keep the Goods recipent field in edit mode instead of in grey mode, so that User can edit and assign someone at the time of creation of shopping cart.
This is because If i raise a shopping cart i will be goods recpient by default, but business does not want that they want to edit and assign a person at the time of creation of shopping cart .
Can it be possible in the standard template.
If so what has to be done. Please suggest !!!
Regards
Srujan.KHi
Srujan:- while creating a cart you might get a list of good recipient right so you can assign whoever you wish to be a good recipient right. while creatiing a cart good recipient was determined and partner functions are created for good recipient. do you want to edit them again.
Can we change Goods Recipient after shopping cart is ordered
nagaraj:- in old srm it helps but srm 550 say no
http://help.sap.com/saphelp_srm50/helpdata/en/84/a7e3389870c05ce10000000a114084/content.htm
we can not make default good recipient
for eg srujan create a cart by default naga become a good recipient . that is old. this requester attribute dont work for dual purpose.
it uses sfor only on behalf of only
br
muthu -
How to make the field in no edit mode
Hi Experts,
In the selection screen with default value I am giving one date field. But user wants it in NO EDIT mode. only display.. how to do this. pl. give me sample code. Thanks & Rewards.hi
in at selection screen o/p event
in the screen table
make its input = 0
tables : mara.
SELECT-OPTIONS : s_matnr for mara-matnr MODIF ID m default 1000 to 1002.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-group1 = 'M'.
screen-input = 0.
modify screen.
endif.
endloop.
reward if helpful
prasanth -
Assign focus on text field associated with tree item in edit mode
The JavaFX home page has an example for how to edit the label associated with a tree item using a cell factory (see sample code below). However, if you select a tree item and then either mouse click or select the Enter key to start editing, the text field doesn't get focus even though the startEdit() method invokes textField.selectAll(). I tried invoking textField.requestFocus(), but that didn't work. Is there a way to ensure that the text field gets focus when the tree item is in edit mode?
I'm using JavaFX 2.1 GA version on Windows 7.
Thanks.
Stefan
@Override
public void startEdit() {
super.startEdit();
if (textField == null) {
createTextField();
setText(null);
setGraphic(textField);
textField.selectAll();
public class TreeViewSample extends Application {
private final Node rootIcon =
new ImageView(new Image(getClass().getResourceAsStream("root.png")));
private final Image depIcon =
new Image(getClass().getResourceAsStream("department.png"));
List<Employee> employees = Arrays.<Employee>asList(
new Employee("Ethan Williams", "Sales Department"),
new Employee("Emma Jones", "Sales Department"),
new Employee("Michael Brown", "Sales Department"),
new Employee("Anna Black", "Sales Department"),
new Employee("Rodger York", "Sales Department"),
new Employee("Susan Collins", "Sales Department"),
new Employee("Mike Graham", "IT Support"),
new Employee("Judy Mayer", "IT Support"),
new Employee("Gregory Smith", "IT Support"),
new Employee("Jacob Smith", "Accounts Department"),
new Employee("Isabella Johnson", "Accounts Department"));
TreeItem<String> rootNode =
new TreeItem<String>("MyCompany Human Resources", rootIcon);
public static void main(String[] args) {
Application.launch(args);
@Override
public void start(Stage stage) {
rootNode.setExpanded(true);
for (Employee employee : employees) {
TreeItem<String> empLeaf = new TreeItem<String>(employee.getName());
boolean found = false;
for (TreeItem<String> depNode : rootNode.getChildren()) {
if (depNode.getValue().contentEquals(employee.getDepartment())){
depNode.getChildren().add(empLeaf);
found = true;
break;
if (!found) {
TreeItem<String> depNode = new TreeItem<String>(
employee.getDepartment(),
new ImageView(depIcon)
rootNode.getChildren().add(depNode);
depNode.getChildren().add(empLeaf);
stage.setTitle("Tree View Sample");
VBox box = new VBox();
final Scene scene = new Scene(box, 400, 300);
scene.setFill(Color.LIGHTGRAY);
TreeView<String> treeView = new TreeView<String>(rootNode);
treeView.setEditable(true);
treeView.setCellFactory(new Callback<TreeView<String>,TreeCell<String>>(){
@Override
public TreeCell<String> call(TreeView<String> p) {
return new TextFieldTreeCellImpl();
box.getChildren().add(treeView);
stage.setScene(scene);
stage.show();
private final class TextFieldTreeCellImpl extends TreeCell<String> {
private TextField textField;
public TextFieldTreeCellImpl() {
@Override
public void startEdit() {
super.startEdit();
if (textField == null) {
createTextField();
setText(null);
setGraphic(textField);
textField.selectAll();
@Override
public void cancelEdit() {
super.cancelEdit();
setText((String) getItem());
setGraphic(getTreeItem().getGraphic());
@Override
public void updateItem(String item, boolean empty) {
super.updateItem(item, empty);
if (empty) {
setText(null);
setGraphic(null);
} else {
if (isEditing()) {
if (textField != null) {
textField.setText(getString());
setText(null);
setGraphic(textField);
} else {
setText(getString());
setGraphic(getTreeItem().getGraphic());
private void createTextField() {
textField = new TextField(getString());
textField.setOnKeyReleased(new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent t) {
if (t.getCode() == KeyCode.ENTER) {
commitEdit(textField.getText());
} else if (t.getCode() == KeyCode.ESCAPE) {
cancelEdit();
private String getString() {
return getItem() == null ? "" : getItem().toString();
public static class Employee {
private final SimpleStringProperty name;
private final SimpleStringProperty department;
private Employee(String name, String department) {
this.name = new SimpleStringProperty(name);
this.department = new SimpleStringProperty(department);
public String getName() {
return name.get();
public void setName(String fName) {
name.set(fName);
public String getDepartment() {
return department.get();
public void setDepartment(String fName) {
department.set(fName);
Edited by: 882590 on May 22, 2012 8:24 AM
Edited by: 882590 on May 22, 2012 8:24 AMWhen you click on a selected tree item to start the edit process is the text in the text field selected? In my case the text is not selected and the focus is not on the text field so I have to click in the text field before I can make a change, which makes it seem as if the method call textfield.selectAll() is ignored or something else gets focus after method startEdit() executes.
-
Assignment fields in edit mode in vf01
Hi,
Have requirement in assignment fields in header of vf01 as to make in Editable mode is there any options in settings or through any enhancements(user exit name) if there any please suggest how to do it.
Regards,
San
Edited by: santosh jajur on Nov 3, 2010 11:15 AM
Moderator Message: Do some research first.
Edited by: kishan P on Nov 3, 2010 4:30 PMi hope that the PBO screen is designed in that form. for the function code in edit button will give u a good idea.
u do one thing before pressing edit keep in debugging mode and press edit then if u observe PBO,PAI then u will definately get the reason behind that. -
Hi
I am displaying one quanity field in alv. which is in Editable mode. while running and editing it is behaving strangly. if I enter the value 7,00 it is becoming 0,07 in the internal table .
Please guide me in this regard.
jaffer vali shaikJaffer Please check the Below.
Case#1.
REPORT ztest_alv_oo22.
TYPE-POOLS: slis.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_cat TYPE slis_fieldcat_alv.
DATA: BEGIN OF it_data OCCURS 0,
vbeln TYPE vbeln,
matnr TYPE matnr,
menge TYPE p DECIMALS 2,
END OF it_data.
DO 10 TIMES.
it_data-menge = '10.00'.
APPEND it_data.
ENDDO.
wa_cat-fieldname = 'VBELN'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Test'.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
wa_cat-fieldname = 'POSNR'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Test'.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
wa_cat-fieldname = 'MENGE'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Qty'.
wa_cat-edit = 'X'.
wa_cat-decimals_out = 2.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_data
EXCEPTIONS
program_error = 1.
*& Form user_command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.
BREAK-POINT.
ENDFORM. "user_command
Case#2. with out Decimals_out option.
REPORT ztest_alv_oo22.
TYPE-POOLS: slis.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_cat TYPE slis_fieldcat_alv.
DATA: BEGIN OF it_data OCCURS 0,
vbeln TYPE vbeln,
matnr TYPE matnr,
menge TYPE p DECIMALS 2,
END OF it_data.
DO 10 TIMES.
it_data-menge = '10.00'.
APPEND it_data.
ENDDO.
wa_cat-fieldname = 'VBELN'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Test'.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
wa_cat-fieldname = 'POSNR'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Test'.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
wa_cat-fieldname = 'MENGE'.
wa_cat-tabname = 'IT_DATA'.
wa_cat-seltext_l = 'Qty'.
wa_cat-edit = 'X'.
APPEND wa_cat TO it_fieldcat.
CLEAR wa_cat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_data
EXCEPTIONS
program_error = 1.
*& Form user_command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.
BREAK-POINT.
ENDFORM. "user_command
Change the Qty in the output and use refresh .
and see. -
How to make a field in non Editable mode
Hi All:
Now i created one form through wizard method this consists of following details
Table name:T1
Fields:No,Name
here my requirement is how to make this "No" field in non editable mode after the insertion of the first record.You can make it a display item, you can disable the item, or you can set the update property to No. See the set_item_property in the Help documentation.
-
ALV Grid fields from editable to non-editable mode
Hi,
I am displaying my data through ALV Grid. In my grid the non-key fields are in editable mode.
When I edit any of the editable fields and place the cursor on other field the field which I have edited should become disable(non-editable). Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it.
Thanks & Regards,
Adithya M.Hi Adithya,
I am confused by your statement "place the cursor on other field the field which I have edited should become disable" -- are you stating that this is the requirement or what is currently happening with your program. The way the edit fields should work by default is they are editable at all times unless you tell it otherwise.
If you are saying your requirement is to change the field to disabled once the field is edited (runtime change), first you want to handle the event on data changed then within your method of handling on data changed, you can disable the field from being edited by using cell styles and changing the value to disabled.
If you look at program BCALV_GRID_EDIT,
You will find code where it disables the field for edit using Cell Style -- this will give you an idea how Cell Style controls editable fields and display fields:
ls_cell-style = cl_gui_alv_grid=>mc_style_enabled.
ls_cell-maxlen = 4.
ls_cell-fieldname = 'CARRNAME'.
append ls_cell to gt_sflight-cell.
This specific code will set the field disabled when the program is first exectued, in your case if you need to do this at run time, after someone edits the field, you need to implement handling the event on data changed, in the same program you will find:
method handle_data_changed.
perform data_changed using er_data_changed.
endmethod.
It is within this method that you can disable a field for editing.
However, once it is disabled you will not get back into the handle_data_changed method. I'm not sure I understand your statement "Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it." Why would you want the user to be able to edit something, then show it disabled, then let them click on it and edit it again? Why not just leave it in edit mode? Maybe if I understand the requirement better, I can answer this portion of the question.
If this is based on security or changing from edit to display for the entire grid, you can run the same program mentioned above and click on the Change/Display button in the top left to see how it enables and disables the entire grid for editing.
Cheers,
Bonnie -
Fields are still in EDIT mode even after Saving the Transaction in UI
Hello Experts ,
We are facing one problem in UI .
We have added the BLOCK " Subject" in Complaint transaction ( BT120H_CPL) .
We are able to fill the data in the fields for subject block like " Code, Code Gruppe etc, but even after saving the transaction these fields are in Edit mode .
Can anyone give some pointers/solution to this ?
Regards
VBHello,
if the fields are in Edit mode or closed is controlled by the attribute VIEW_GROUP_CONTEXT of the controller class (*IMPL).
There are also methods to change this VIEW_GROUP_CONTEXT depending on the requirement like "DISABLE_VIEW_GROUP_CONTEXT".
But as i understood you correctly you do not have a own developed view but a SAP standard view. In this case i would create a OSS-Message for the issue.
But feel free to do some debugging on this VIEW_GROUP_CONTEXT.
Best regards
Manfred -
Project Definition field to be editable mode.
Hi Experts,
we have uploaded the open projects with bdc in to production.
Project Definition field for all the clients are i editable mode.
But only in production client,t only project definition field is display mode. rest of all the fields are in editable mode in the same client.
we have not mentained any controls for the above.
thanks for sharing in advance, since it is emergency.
regards,Check field control settings fro Proejct defination filed and infulences.
With Regards
Nitin P. -
Field catalog not found...
hi all,
when i try to create billing request for a service order (using dp90), i am getting the following message :
Field catalog not found
Message no. 0K530
Diagnosis
The field catalog cannot be determined because the output table
structure name was not specified.
what can i do?I assume this error happens when you save the billing document, and it is a billing output issue. As said, you could verify this by removing all outputs before saving, and afterwards in change mode add them again one by one to figure out which is failing. Alternatively use the blue i icon to analyze the outputs.
Transaction NACE can be used for output setup across all modules. If the assumption regarding billing is correct, we are dealing with application V3. Mark this in the left side. Press 'output types' button and check the output types you saw in the billing document by double clicking. On the 'General data' is the access sequence assigned. Double click that. Probably will multiple output types be attached to the same access sequence. Mark the access sequence, and unfold the 'Accesses' to the left. Check out the condition tables in the Tab column. All condition tables below 599 is standard and probably OK. Note down the high numbers.
Go back to the initial screen of NACE. With the application (V3) marked, select EDIT - CONDITION TABLES in the menu.
Check each of the used condition tables here. Use utilities - Generate in the menu. Mark all boxes and execute. You can even select the entire range 500-999 at one time if you prefer. At least one condition table should give errors in the generation.
Maybe you are looking for
-
Create a UK based image for VMs
Hello, We are trying to install an application which requires a UK (en-GB) locale, however have not had much success in trying the default images, then converting them to UK regional settings (via group policy, copy settings..." function in Region a
-
[SOLVED] Remapping keys using udev hwdb doesn't work on rightAlt
hi, I had posted this topic in the [ newbie corner ] subforum for days, but got no repliy. I hope I can find luck here. I'm trying to use udev hwdb for swapping pairs of keys ( esc, caps_lock ) and ( rightAlt , rightCtrl ) . I followed the instructi
-
Bulk API issue with contact imports
Is the bulk API having validation issues? I can update any existing or create any new imports. Simply posting the content below from the tutorial now results in a validation error: "name": "Docs Import Example", "fields": { "firstName": "{{Contact.Fi
-
MDB's and determining queues/topics
Hi, I was reading recently that MDB's only allow you specify whether they consume queues or topics in their deployment descriptors, not which particular queue or topic. There were further comments to the effect that app server vendors will provide th
-
Kernel Panic Immediately After Full Time Machine Backup
Hi, after I reinstalled my OS from a previous Time Machine backup, I've been getting a kernel panick: panic(cpu 0 caller 0xffffff80005418bf): "Process 1 exec of /sbom/launchd failed. errno 88"@/SourceCache/xnu/xnu-1699.32.7/bsd/kern/kern_exec.c:3546