SelectOneRadio problem - Help!
I am using selectOneRadio for the user to select a particular report they would like to run.
When a radio button is selected though, certain fields may need to be disabled for that particular report, and other dropdowns need to be reset.
I utilized a valueChangeListener="#{form.reportChanged}" on my radio buttons, but I have been unable to do 2 things:
1. Reset some dropdowns by changing the "backing bean" value example ddvalue="";
2. Disable other components (such as dropdown lists) by using a method for example
disabled="#{form.quarterDisabled}"
Which is the only way I know how to disable a component at this point.
The form is submitted by using the onchange="submit();" Javascript.
I have also noticed some strange behavior in that the radio button I clicked is not the radio button selected when the form returns....
HELP!!!!!!!!
I have additional information about why my other components are not being disabled. I have added logging and the log shows that the disable="#{method}" are being called before the value change on the radio button is executing.
Here is a sample from the log.
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|quarterDisabled.|#]
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|yearDisabled.|#]
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollFirstDisabled.|#]
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollPreviousDisabled.|#]
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollNextDisabled.|#]
[#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollLastDisabled.|#]
[#|2004-05-19T16:12:49.840-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|reportChanged.|#]
So how do I get the disable methods to execute after the reportChange Event?
Similar Messages
-
My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!
Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?
-
I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?
If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
You may have to force iPad/iPod into Recovery Mode
http://support.apple.com/kb/ht4097 -
IPad syncing problem - HELP!
iPad sync problem - HELP! I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)" and yet I seem to have plenty of space on the iPad. This just started today. I even tried deleting some things to make even more room, but it didn't help. Any ideas???
I was thinking of restoring, but I've never done it... should I?
thank you!Hello florafromnv,
Welcome to Apple Support Communities.
The following article addresses how to resolve the issues related to this message:
iOS: "Not enough free space" alert when trying to sync
http://support.apple.com/kb/TS1503
Regards,
Jeff D. -
This topic has been moved to Overclockers & Modding Corner.
KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!Not that I am an expert o/c but here are some thoughts on the matter.
My comments are based on my experiences of the KT3 Ultra2 which is basically the same as the Ultra version.
This mobo does not have the ability to lock the PCI/AGP bus freely from the FSB. However, it does have dividers. At 133 a 1/4 divider kicks in. Above 152FSB the 1/5 divider works, so that at 166 the PCI & AGP buses will be back in sync. If you are o/c your cpu, don't go from 133 to 145, etc since you will be running the PCI/AGP buses further out of whack. Just go to either the mid 150's or to 166 in one jump. The other problem / issue relates to your cpu. From what you say you have one of the old Palominos which are not great o/c's. I would personally o/c your cpu from the BIOS rather than 'Fluffy Logic' which I would tend to stay away from.
With a 166FSB cpu a very stable o/c would be 175-177 beyond 180 gets decidedly tricky.
Hope this helps -
Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
tt2 -
i have installed photoshop elements 12.
when I try use the editing features it said that i must login to Adobe to register the product.
but each time i try to it said there is a problem.
help
the problem stated that the internet is not connected, but that is not the case.I had the same issue and I'm running Windows 7. Tried working with technical support for several hours but they were no help. They just had me doing the same things over and over, offering no real answers. I finally got fed up and have decided to return my product for a full refund.
-
I can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys
i can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys?? i don't know what to do..
Why are you unable to install the iPod Updater? Are you getting an error message? Please be specific.
Cheers!
-Bryan -
Camera (focus) problem - help?
Duplicate post, please see: Camera (focus) problem - help?
Message was edited by: Admin ModeratorWarranty is valid only in country of original purchase. You have to return
the iPhone to the US for evaluation. Either you return it personally or send
it to a friend/relative/co-worker in the US to take into Apple. Apple will not
accept international shipments for evaluation nor will Apple ship out of the
country after repair/replacement.
Have you tried the standard trouble shooting steps: restart, restore, restore
as new iPhone? -
after update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help
Connect your phone to iTunes on your computer like the diagram has indicated and restore the phone
-
Hi,
I've a problem with a selectoneradio in my jsf app.
I have a jsp page where when the user click on a button a selectoneradio embedded in a fieldset get enabled.
When the select one radio is enabled the user can chosse the radio he prefers.
In the next page there is a back button. If the user press the back button, my apps come back to the page with selectoneradio.
The sdelectone radio is disabled then my apps dont load value from bean properties.
I tryied to avoid this putting in one inputhidden with the same properties of selectoneradio. But It dont work.
Someone has a solution?
I try with jstl, but the problem is that if I use usebean the page seems create a new bean.
Any suggest?
Thank AndreaSapphire wrote:
I am using Java EE with Hibernate, JSF and Seam.
I have a bean with properties of type Integer. They used to be Boolean but I had to change them to Integer because I am using DB2 and DB2 doesnt accepts booleans.This is a failure on your part to properly configure Hibernate. It will do the translation for you.
>
Since selectBooleanCheckbox only works with Boolean types in the backing bean, I have decided to use selectOneRadio to serve the same purpose. Now, I have a problem with that. I dont know if its a validation issue or what but when I click the submit button to submit the form, nothing happens. I'm just learning EJB programming and this problem has completely stopped my progress.
Here's my code:
@Entity
@Name("cheese")
@Table(name="cheeses")
public class Customer implements Serializable {
private Integer isCheddar;
public Integer getIsCheddar() {
return isCheddar;
public void setIsCheddar(Integer isCheddar) {
this.isCheddar= isCheddar;
cheese.xhtml
<h:selectOneRadio id="radioCheeseType" value="#{cheese.isCheddar}" required="no" converter="javax.faces.Integer">
<f:selectItem id="item1" itemLabel="" itemValue="1" />
<s:convertEntity />
</h:selectOneRadio> Can someone please help me with this and tell me what's wrong. I do not see any error messages on my console so I have no idea what the problem is. Thanks a lot!Have you added <h:messages/> to the page? -
h:selectOneRadio problem
Hi every body ,
I have a serious problem in jsf <h:selectOneRadio> component.
I am using two different <h:selectOneRadio> component .When I am clicking the first radio button I can get data from the data base & showing in my jsf , same as in the second radio button .
My problem is , I want to un check the first radio when I am clicking the second one .
Here is my code .
<h:selectOneRadio layout="pageDirection" immediate ="true" valueChangeListener="#{multiSite.getValue1}" onclick="submit()">
<f:selectItem id="item1" itemLabel="My value-1" itemValue="1" />
</h:selectOneRadio>
<h:outputText value="" />
<h:panelGrid width="100%" rendered="#{multiSite.renderValue1}">
<h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection" immediate ="true" >
<f:selectItems value="#{multiSite.myMap1}"/>
</h:selectOneRadio>
<h:outputText value="" />
<h:outputText value="" />
</h:panelGrid>
<h:selectOneRadio layout="pageDirection" immediate ="true"
valueChangeListener="#{multiSite.getValue2}" onclick="submit()" >
<f:selectItem id="item2" itemLabel="My value-2" itemValue="2" />
</h:selectOneRadio>
<h:panelGrid width="100%" rendered="#{multiSite.renderValue2}">
<h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection" immediate ="true" >
<f:selectItems value="#{multiSite.myMap2}"/>
</h:selectOneRadio>
<h:outputText value="" />
<h:outputText value="" />
</h:panelGrid>Thanks ,
SBThanks for your reply .
Here I have implemented the valueChangeEvent.queue(), but it is not working properly.
Here is my jsf code :
<h:selectOneRadio id="radio1" value="#{multiSite.radio1Val}" layout="pageDirection" styleClass="boldText"
immediate ="true" valueChangeListener="#{multiSite.getValue1}" >
<f:selectItem id="item1" itemLabel="Value1" itemValue="1" />
<a4j:support event="onchange" reRender="form" focus="radio1"/>
</h:selectOneRadio>
<h:selectOneRadio id="radio2" layout="pageDirection" value="#{multiSite.radio2Val}" immediate ="true" styleClass="boldText"
valueChangeListener="#{multiSite.getValue2}" >
<f:selectItem id="item2" itemLabel="Value2" itemValue="2" />
<a4j:support event="onchange" reRender="form" focus="radio2"/>
</h:selectOneRadio>Here is my backing bean code :
private String radio1Val;
private String radio2Val;
//For the first radio button event :
public void getValue1(ValueChangeEvent valueChangeEvent) throws Exception
if (valueChangeEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)
System.out.println(this.getRadio2Val());
if(getRadio2Val()!=null)
this.setRadio2Val(null);
} else
valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
valueChangeEvent.queue();
//For the second radio button event :
public void getValue2(ValueChangeEvent valueChangeEvent) throws Exception
if (event.getPhaseId() == PhaseId.INVOKE_APPLICATION)
//setting the value of first radio to null.
if(getRadio1Val!=null)
this.setRadio1Val(null);
} else
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
event.queue();
//setter & getter methods
* @return the radio1Val
public String getRadio1Val() {
return radio1Val;
* @param radio1Val the radio1Val to set
public void setRadio1Val(String radio1Val) {
this.radio1Val = radio1Val;
* @return the radio2Val
public String getRadio2Val() {
return radio2Val;
* @param radio2Val the radio2Val to set
public void setRadio2Val(String radio2Val) {
this.radio2Val = radio2Val;
}When I am clicking the first radio button it is going to the server & executing the event & became un check the first radio button .
Same as for the second radio also.
One more thing when I am clicking the first radio button the value is not binding to the backing bean property .
Please help.
regards ,
SB -
RFC Receiver adpater Connection problem , Help us to solve ?
Hi Friends ,
Our scenarilo is Mail to RFC. It was running fine. In RFC Receiver adapter i have given <b>Maximium connection property to 1</b> .
While multiple set data passed to rfc will connection problem will come ?
Most data not uploaded . I am getting the following error.
<b> If i set max connection to 5 . It is 5 times or more than that it is pusing the data .</b>
i am getting the following error <b>while i set the Max connection to 1 .</b> . <b>Any other place i need to change configuration ?</b>
<i><b> - Error: 2007-09-24 10:51:22 GMT-05:30: Message processed for interface YRFC_EXT_WARR: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_EXTE_WAREN_2W_RFC_RECEIVER]e7fa21f86ec535e883636c0beffc0f0c is exhausted. The current pool size limit (max connections) is 1 connections.</b></i>
Please give the description . I have referred many likns . Help us to solve this problem .
Regards.,
V.Rangarajan<b></b>
Message was edited by:
ranga rajanHi,
Have a look at this.This will help you.
1.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
2. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
Regards,
Akshay Jamgaonkar.
Reward points if find useful.
Message was edited by:
Akshay Jamgaonkar -
Table Control Text fields problem , help plz
Hello Anand , Rich , John & All
I hav problem with Text 3 fields( type c)(either L or R aligned ) , it is not geting updated , otherwise everything else is perfectly fine(scrolling,sorting etc ....) .
Fields giving problem are
1. Status(20) type c
2. Fdat type date
3. Remark(100) type c
All numerical fields are working fine .
<u><b> My yahoo messenger-id is [email protected]</b></u>
<b>Any light on this will be awarded plz .</b>
FLOW LOGIC
PROCESS BEFORE OUTPUT.
MODULE SET_STATUS.
LOOP AT ITAB
WITH CONTROL TCL1
CURSOR TCL1-CURRENT_LINE .
MODULE SET_LINE_COUNT .
ENDLOOP.
PROCESS AFTER INPUT.
MODULE UPD_OK_COD.
MODULE EXIT_COMAND AT EXIT-COMMAND.
MODULE SCROLL_SORT.
LOOP AT ITAB.
MODULE UPDATE_ITAB.
ENDLOOP.
MODULE UPDATE_TABLE.
REPORT ZSD_REP_ORDER_BANK_CHANGE NO STANDARD PAGE HEADING LINE-SIZE 255.
TABLES: VBAK,VBAP,VBRK,ZSD_TABL_ORDBANK,MARA,KONV.
CONTROLS: TCL1 TYPE TABLEVIEW USING SCREEN 0200.
DATA: ITAB LIKE ZSD_TABL_ORDBANK OCCURS 0 WITH HEADER LINE,
WA_ITAB LIKE ZSD_TABL_ORDBANK,
OK_CODE LIKE SY-UCOMM,
SAVE_OK_CODE LIKE SY-UCOMM,
UPD_OK_CODE LIKE SY-UCOMM,
ANSWER TYPE C,
I LIKE SY-LOOPC ,
J LIKE SY-LOOPC,
V_LINES LIKE SY-LOOPC,
LINE_COUNT LIKE SY-LOOPC,
STS TYPE N,
EMGRP LIKE MARA-EXTWG,
QTY LIKE ZSD_TABL_ORDBANK-QTY,
UPRICE LIKE ZSD_TABL_ORDBANK-UPRICE,
TOT LIKE ZSD_TABL_ORDBANK-TOT,
INO LIKE VBAP-POSNR,
COL TYPE CXTAB_COLUMN,
COPIED_ONCE ,
FLDNAME(100),HELP(100).
FIELD-SYMBOLS:
<FS_ITAB> LIKE LINE OF ITAB,
<FS_TCL1> LIKE LINE OF TCL1-COLS.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECT-OPTIONS: S_CCODE FOR ZSD_TABL_ORDBANK-CCODE
NO INTERVALS NO-EXTENSION OBLIGATORY,
S_SORG FOR ZSD_TABL_ORDBANK-SORG
NO INTERVALS NO-EXTENSION OBLIGATORY,
S_DCHAN FOR ZSD_TABL_ORDBANK-DISTCHAN,
S_DIV FOR ZSD_TABL_ORDBANK-DIV,
S_MATNO FOR ZSD_TABL_ORDBANK-MATNO,
S_CUSTNO FOR ZSD_TABL_ORDBANK-CUSTNO ,
S_QTNO FOR ZSD_TABL_ORDBANK-QTNO,
S_QTDAT FOR ZSD_TABL_ORDBANK-QTDAT,
S_QTVDAT FOR ZSD_TABL_ORDBANK-QTVALDAT,
S_SONO FOR ZSD_TABL_ORDBANK-SONO.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.
SELECT * FROM ZSD_TABL_ORDBANK
INTO TABLE ITAB
WHERE CCODE IN S_CCODE
AND SORG IN S_SORG
AND DISTCHAN IN S_DCHAN
AND DIV IN S_DIV
AND MATNO IN S_MATNO
AND CUSTNO IN S_CUSTNO
AND QTNO IN S_QTNO
AND QTDAT IN S_QTDAT
AND QTVALDAT IN S_QTVDAT
AND SONO IN S_SONO .
IF SY-SUBRC EQ 0.
REFRESH ITAB.
CLEAR COPIED_ONCE.
CALL SCREEN 0200.
ELSE.
MESSAGE E012(ZQOTBANK) .
ENDIF.
*& Module SET_STATUS OUTPUT
* text
MODULE SET_STATUS OUTPUT.
SET PF-STATUS '0200'.
SET TITLEBAR '0200'.
IF COPIED_ONCE IS INITIAL.
SELECT * FROM ZSD_TABL_ORDBANK
INTO TABLE ITAB
WHERE CCODE IN S_CCODE
AND SORG IN S_SORG
AND DISTCHAN IN S_DCHAN
AND DIV IN S_DIV
AND MATNO IN S_MATNO
AND CUSTNO IN S_CUSTNO
AND QTNO IN S_QTNO
AND QTDAT IN S_QTDAT
AND QTVALDAT IN S_QTVDAT
AND SONO IN S_SONO .
IF SY-SUBRC EQ 0.
DESCRIBE TABLE ITAB LINES V_LINES.
TCL1-LINES = V_LINES.
ENDIF.
COPIED_ONCE = 'X'.
REFRESH CONTROL 'TCL1' FROM SCREEN '0200'.
ENDIF.
LOOP AT ITAB.
QTY = ITAB-QTY.
UPRICE = ITAB-UPRICE.
TOT = QTY * UPRICE .
ITAB-TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-CGL_QTY.
UPRICE = ITAB-CGL_UPRICE.
TOT = QTY * UPRICE .
ITAB-CGL_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-BHEL_QTY.
UPRICE = ITAB-BHEL_UPRICE.
TOT = QTY * UPRICE .
ITAB-BHEL_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-ALSTOM_QTY.
UPRICE = ITAB-ALSTOM_UPRICE.
TOT = QTY * UPRICE .
ITAB-ALSTOM_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-SIEMENS_QTY.
UPRICE = ITAB-SIEMENS_UPRICE.
TOT = QTY * UPRICE .
ITAB-SIEMENS_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-TELK_QTY.
UPRICE = ITAB-TELK_UPRICE.
TOT = QTY * UPRICE .
ITAB-TELK_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
QTY = ITAB-OTH_QTY.
UPRICE = ITAB-OTH_UPRICE.
TOT = QTY * UPRICE .
ITAB-OTH_TOT = TOT .
CLEAR: QTY, UPRICE, TOT.
MODIFY ITAB.
ENDLOOP.
ENDMODULE. " SET_STATUS OUTPUT
*& Module SET_LINE_COUNT INPUT
* text
MODULE SET_LINE_COUNT OUTPUT.
LINE_COUNT = SY-LOOPC.
ENDMODULE. " SET_LINE_COUNT INPUT
*& Module UPD_OK_CODE INPUT
* text
MODULE UPD_OK_COD INPUT.
IF OK_CODE = 'SAVE'.
UPD_OK_CODE = OK_CODE.
* CLEAR OK_CODE.
ENDIF.
ENDMODULE. " UPD_OK_CODE INPUT
*& Module EXIT_COMAND INPUT
* text
MODULE EXIT_COMAND INPUT.
SAVE_OK_CODE = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK_CODE.
WHEN 'BACK'.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Order Bank Entry'
TEXT_QUESTION = 'Do you want to Go BacK ?'
TEXT_BUTTON_1 = 'Yes'
TEXT_BUTTON_2 = 'No'
DEFAULT_BUTTON = '2'
IMPORTING
ANSWER = ANSWER.
IF ANSWER = '1'.
LEAVE TO SCREEN 0.
ELSE.
ENDIF.
WHEN '%EX'.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Order Bank Entry'
TEXT_QUESTION = 'Do you want to Exit ?'
TEXT_BUTTON_1 = 'Yes'
TEXT_BUTTON_2 = 'No'
DEFAULT_BUTTON = '2'
IMPORTING
ANSWER = ANSWER.
IF ANSWER = '1'.
LEAVE TO SCREEN 0.
ELSE.
ENDIF.
ENDCASE.
ENDMODULE. " EXIT_COMAND INPUT
*& Module UPDATE_MOD INPUT
* text
MODULE UPDATE_ITAB INPUT.
MODIFY TABLE ITAB FROM ITAB.
ENDMODULE. " UPDATE_MOD INPUT
*& Module SCROLL INPUT
* text
MODULE SCROLL_SORT INPUT.
SAVE_OK_CODE = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK_CODE.
WHEN 'P--'.
TCL1-TOP_LINE = 1.
WHEN 'P-'.
TCL1-TOP_LINE = TCL1-TOP_LINE - LINE_COUNT.
IF TCL1-TOP_LINE LE 0.
TCL1-TOP_LINE = 1.
ENDIF.
WHEN 'P+'.
I = TCL1-TOP_LINE + LINE_COUNT.
J = TCL1-LINES - LINE_COUNT + 1.
IF J LE 0.
J = 1.
ENDIF.
IF I LE J.
TCL1-TOP_LINE = I.
ELSE.
TCL1-TOP_LINE = J.
ENDIF.
WHEN 'P++'.
TCL1-TOP_LINE = TCL1-LINES - LINE_COUNT + 1.
IF TCL1-TOP_LINE LE 0.
TCL1-TOP_LINE = 1.
ENDIF.
WHEN 'SORTUP'.
READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
SORT ITAB ASCENDING BY (FLDNAME).
ENDIF.
WHEN 'SORTDN'.
READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
SORT ITAB DESCENDING BY (FLDNAME).
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND INPUT
*& Module TABL_UPD INPUT
* text
MODULE UPDATE_TABLE INPUT.
CASE UPD_OK_CODE.
WHEN 'SAVE'.
UPDATE ZSD_TABL_ORDBANK FROM TABLE ITAB .
IF SY-SUBRC EQ 0.
MESSAGE I002(ZQOTBANK) .
CLEAR UPD_OK_CODE.
ELSE.
MESSAGE E003(ZQOTBANK) .
ENDIF.
ENDCASE.
ENDMODULE. " TABL_UPD INPUT
Thnx
moni<b></b><b></b>
Message was edited by: md monirujjaman
Message was edited by: md monirujjamanHi Moni,
The problem as I had replied in your earlier post is with the MODIFY statement.
MODIFY TABLE ITAB FROM ITAB. This statement will do the modifications based on the table key. When you have character fields as editable, then some problems are to be anticipated. In such a scenario, you must update the internal table based on the <i>index</i>, rather than based on <i>key</i>.
So consider using
MODIFY ITAB FROM ITAB INDEX TCL-CURRENT_LINE.
Where TCL is the name of the Table Control. Also observe the difference in syntax here, don't use the TABLE keyword for the MODIFY statement.
Please try it out and let me know.
Regards,
Anand Mandalika.
Maybe you are looking for
-
Material description in GR & PO differ
Dear All, User has created a PO for a 'Non-stock' material and before saving the PO he has changed the decription of the material in the PO. A GR was created with reference to this PO. In this GR the descrption of the material is not the same as tha
-
How to show or hide portlets dynamically on a Portal Page
Dear All 1. I have a Portal Page with One Portlet in the top having like 5 Buttons. Each button click should display a separate portlet in the bottom on this same page. 2. I have Top Portlet. For bottom I have 5 Portlets P1, P2, P3, P4 and P5. On my
-
Using strandard BW hierarhy in BPS planing layout
Hi, I would like to use standard hier on 0Costcenter in the BPS planning layout. The hier is loaded with DataSource 0COSTCENTER_0101_HIER from ERP. I would need also hierarchy nodes to be posting enabled, not just the costcenters included. How to mak
-
How to populate the multiline container?
Dear experts, I am new to workflow. i have requirement for getting multiple records in structure. so i am using bapi 'SAP_WAPI_WRITE_CONTAINER'. i have created container which contains multiline records, but i am not able pass the value to structure.
-
Why does Preview lose notes?
I just reopened a .pdf document which I had previously edited with Preview using the "edit" tool. While all my added text and lines are still visible, all notes that I added have become unreadable. I still see the yellow "stickies" icons where I put