Hi ALL How to keep field in input mode even if error is fired in the PAI
Hi all my requirement is like this
Here in one screen am using the table control now in the table control user is providing data .
while user will press the save button after providing the respective data then it should check one validation by looping on the table control and adding all data bringing into an internal table which is working absolutely fine . the validation is the (result added data is validated against the data which is there in the database) .
if validation fails then user gets one error message but at that time all fields are going to display mode .
but user wants to be present in the screen and rectify the data .
PROCESS BEFORE OUTPUT.
MODULE sub_get_fs_data_0111.
LOOP AT it_fs INTO wa_fs WITH CONTROL file_system_tab.
MODULE sub_populate_fs_screen.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE user_command_0111.
LOOP AT it_fs.
MODULE sub_read_fs_data.
ENDLOOP.
MODULE user_command_0111 INPUT.
CASE sy-ucomm.
WHEN 'SAVE'.
PERFORM sub_compute_sum.
PERFORM sub_upd_fs_tbl_0111.
ENDCASE.
ENDMODULE.
FORM sub_compute_sum .
data : l_error type p decimals 2.
CLEAR: g_storagesansum,
g_storagelocsum.
LOOP AT it_fs INTO l_fs.
ADD l_fs-zz_storage_san TO g_storagesansum.
ADD l_fs-zz_storage_loc TO g_storagelocsum.
l_sansum = l_sansum.
l_locsum = afvu-zz_aodfield75.
IF l_sansum < g_storagesansum.
l_error = l_fs-zz_storage_san.
EXIT.
ENDIF.
IF l_locsum < g_storagelocsum.
EXIT.
ENDIF.
ENDLOOP.
l_tempsum = l_sansum - g_storagesansum.
IF l_tempsum GE 0.
g_availablesan = l_tempsum.
ENDIF.
l_tempsum = l_locsum - g_storagelocsum.
IF l_tempsum GE 0.
g_availableloc = l_tempsum.
ENDIF.
IF l_sansum < g_storagesansum.
IF g_onetimeflagsan = ''.
g_onetimeflagsan = 'X'.
g_storagesansum = g_storagesansum - l_error. " testing
leave to screen 0.
MESSAGE E021. "Total storage exceeds total SAN available
ELSE.
g_onetimeflagsan = ''.
l_tempsum = l_sansum - g_storagesansum.
IF l_tempsum GE 0.
g_availablesan = l_tempsum.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
please answer if there is any way to do this
Thanks
Yeah That can be done but i was looking at some Solutions which generally is done In sap screens
like in the standard transactions if we will give anything wrong value then only that row and that particular field will be open for the input in the table control
Cant we do it ...
Before submitting this i already checked all the forums regarding table controls
There were some regarding how to apply chain and end chain but this is a tricky situation
none carries this type of problem so i posted this would anybody answer this qs?
Similar Messages
-
How to keep data in sleep mode
Dear All
Any one guide me, " How to keep data in sleep Mode". My data will be in database but it will not active when Oracle server start up.
i am using oracle 10g r10.2.1 with window server 2003.
Hope full response will be appreciated.
Regards,some one New wrote:
Dear All
Any one guide me, " How to keep data in sleep Mode". My data will be in database but it will not active when Oracle server start up.
i am using oracle 10g r10.2.1 with window server 2003.
Hope full response will be appreciated.
Regards,That's a very new term and AFAIK, there is no such term within Oracle. The data doesn't need to be active or inactive. Its just there when the database comes up and as long as you don't access it, it just stays there. What you can do is either to make the tablespace offline so that the data is not accessible at all or make it read only so that its not modifiable at all.
But still, as Pierre asked, you may want to tell us exactly what you want to do.
Aman.... -
I changed my Apple ID two weeks ago and I accidently forgot to sign out of my iCloud on my iPhone 5C. Now it wont let me change the iCloud ID to match my new Apple ID. How do I change my iCloud ID even though it is asking for the old ID?
If the old ID is an earlier version of your current ID, temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll. When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iPhone when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
HT204409 how can i locate my mini ipad even when its not connected to the internet
how can i locate my mini ipad even when its not connected to the internet
Is it lost or stolen?
Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
Report to police along with serial number. Change all your passwords.
These links may be helpful.
How to Track and Report Stolen iPad
http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
Reporting a lost or stolen Apple product
http://support.apple.com/kb/ht2526
What to do if your iOS device is lost or stolen
http://support.apple.com/kb/HT5668
iCloud: Locate your device on a map
http://support.apple.com/kb/PH2698
iCloud: Lost Mode - Lock and Trace
http://support.apple.com/kb/PH2700
iCloud: Remotely Erase your device
http://support.apple.com/kb/PH2701
Report Stolen iPad Tips and iPad Theft Prevention
http://www.stolen-property.com/report-stolen-ipad.php
How to recover a lost or stolen iPad
http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
How to Find a Stolen iPad
http://www.ehow.com/how_7586429_stolen-ipad.html
What NOT to do if your iPhone or iPad is lost or stolen
http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
Apple Product Lost or Stolen
http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
Oops! iForgot My New iPad On the Plane; Now What?
http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
How to Find Your iPad Serial Number
http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
http://support.apple.com/kb/HT4061
Cheers, Tom -
How to keep field as mandatory in function module
I have one field in import parameter can you please suggest how to keep it as mandatory
ThnxIn IMPORT parameter tab you have one checkbox OPTIONAL, if you check it that field will be optional otherwise it is mandatory.
Best Regards,
Vibha
*Please mark all the helpful answers -
How to Change the Fields from Input mode to display mode
Hi experts,
Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
Now, can anybody tell me how to change the field type from input mode to change mode?Hi Karan,
In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
Field Can Be Changed
A Field Cannot Be Changed
Assing this values to your fields according with your requirements.
Regards.
Manuel -
Displaying std field in enable mode after throwing error msg
Hi experts,
I have a requirement where i need to check the value enterred in standard field (final grade) of infotype 0022 and need to throw error message, when the user click save button in PA30.
But the problem is, if i throw Error message, that field becomes disable and the user have to go back and come back for entering the correct value. So, my requirement is taht the field should still be in enable mode even after getting the error message.
pls tell me how to achive the same?Hi Shanti,
You don't need to display a message of type ERROR as this will lock the screen and will prevent the user from providing further input. You can use the following thing
MESSAGE i001 DISPLAY LIKE 'E'.
This will serve your purpose by displaying the error but will not lock the screen field and thus will not prevent the user from further input.
Have a look at the following link for more details : [ MESSAGE KEYWORD|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm]
Hope this will help.
Thanks,
Samantak. -
How to keep Field symbol reference
HI ALL ,
I have method with that assign field symbol on it and I want to keep the reference of it ,
does it impossible ?
For instance
ASSIGN cs_structure TO <ls_structure>. "both are type any and are always structure with fields f1...fn
assign_request(
EXPORTING
is_fields = ls_fields
ev_out = es_field "F2
CHANGING
cs_str = <ls_structure>
es_field = '1'
Here I have method that in the method I always need to return field from the structure (es_field - I dont know how to define it
type any or type ref to data )
my question is assume in <ls_structure> I have field called F2 and I want to receive it but to keep the reference i.e.
if i do after the method call es_field = '1' the field F2 on structure <ls_structure> will contain '1'.
There is a way to do that ?
Regards
JoyHI Naimesh
I already try to define es_field as type ref to data but the issue is that for instance
field symbol <lv_field> type any.
ASSIGN cs_structure TO <ls_structure>.
inside the method assign_request I am doing ...
ASSIGN COMPONENT 'F2' OF STRUCTURE cs_str TO <lv_field>.
GET REFERENCE OF <lv_field> INTO ev_out.
call to the method
assign_request(
EXPORTING
is_fields = ls_fields
ev_out = es_field
CHANGING
cs_str = <ls_structure>
and after the method assign_request
ASSIGN es_field->* to <lv_field>.
<lv_field> = '1.'
Now I except that cs_structure and <ls_structure> that have field F2 you see that value '1' but its not working ,
what i miss here ?
Regards
joy -
PLD: How to keep fields together
Hi @ all,
i have a problem using the pld.
in the end of report i have 5 fields, that should stay together. but sometimes the fields get divided to another page. how can i keep the fields together, so that they will be printed on the next page if on the actual page is not enough space to print together.
i know that i could make a page break before the end of report, but that causes that it will be printed on next page even if on the first page is enough space.
could anyone help me with this problem?
greats
DanielHi Daniel,
What is your setting for he end of report area: Height under General and Area Height Adjustment under Format?
Thanks,
Gordon -
How to keep fields enable for Inout on ALV Header
Hi,
I have a requirement where I have Material and plant Number of selection screen.
I have to display the ALV GRID report keeping Material and Plant in its header details.
I need to put a "CHG MAT/PLNT" button on the report output screen. When user presses this button Material and Plant fields on ALV header should become enable to Change. User given new selection criteria there itself and presses ENTER, the report output should be refreshed on the basis of given new selection criteria.
Can anyone please suggest me how to put a BUTTON in ALV display and make these two fields open for INPUT once this button is pressed.
Please write back to me if you feel any doubt in the requirement.
Thanks,
Ashish AgrawalHi Ashish Agrawal ,
in Form built layout
check LAYOUT-GROUP_CHANGE_EDIT = 'X'.
Hope this sole u r problem.
<REMOVED BY MODERATOR>
Thanks and regards ,
rajeshwar .
Edited by: Alvaro Tejada Galindo on Apr 23, 2008 5:13 PM -
How to keep pageDef bound inputs?
Hi all
Its me again ;-) Now i have a very trivial problem. I have two jspx-pages (page A and page B). On page A i have an inputText, bound to an attributeValue, which is bound to a variable in the pageDef of this page. When i click the submit-button, i do something with the input of this inputText, before i went to page B. Now i went back to page A and the inputText is empty.
Is it possible, to keep the previous input? I can build a Bean stored in the session context to bind this inputText, but i think its a bit oversized for a simple String.
PageDef of page A
<executables>
<variableIterator>
<variable Type="java.lang.String"
Name="relationshipsVar"
IsQueriable="false"/>
</variableIterator>
</executables>
<bindings>
<attributeValues id="relationships" IterBinding="variables">
<AttrNames>
<Item Value="relationshipsVar"/>
</AttrNames>
</attributeValues>
</bindings>pageA.jspx
<af:inputText value="#{bindings.relationships.inputValue}"
required="#{bindings.relationships.mandatory}"
columns="#{bindings.relationships.displayWidth}"
id="inputText2" inlineStyle="width:500px;">
<af:validator binding="#{bindings.relationships.validator}"/>
</af:inputText>Thanks and regards
MajoMajo,
As per my understanding, when you come back to PageA(some page) all bindings and iterators will be initialized, at that time the value in variable iterator will be reset. Attributes pointing to some view object iterator holds the data becasue that data will be stored in view object when navigated to some other page or request is submitted and when we come back to same page again it gets back the data from the view object and show it in the page but it is not the case with variable iterator(which just stores the data in pagedefinition and loose the value when we refresh the page).
Sireesha -
HOW TO KEEP FIELD NAMES IN GUI_DOWNLOAD
Hai,
can u answer this.HI ravi,
pass all the column names in an internal table and pass the internal table in the field names parameter of the FIELDNAMES of tables parameters..
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = it_fieldnames
PLS CHECK THE SIMPLE CODE BELOW...
data: begin OF itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of it_fieldnames occurs 0,
name(100),
end of it_fieldnames.
it_fieldnames-name = 'MATNR'.
APPEND IT_FIELDNAMES.
select matnr from mara into table itab UP TO 10 ROWS.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Documents and Settings\sampath\Desktop\flatfile.txt'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = IT_FIELDNAMES
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
Message was edited by:
sampath pilla -
How to keep field from populating with default numbers?
It's hard to describe my question so I've included a screenshot of what I'm working on. In the third column, there is a calculation in each field's properties to take the number from field to the extreme left of it (in middle column) and subtract the number filled in to the field at the very top (in middle column). Trying to figure out how to make the numbers in right column that have not yet been calculated from showing a default (the -$10,000). I'd rather it not show anything until the fields it's supposed to compute are filled in. Or even showing zeros would be better. Is there a workaround for this?
Thanks so much for your time and help!You need to use a custom calculation script that checks first that both fields are filled in before applying the calculation. It can look something like this (of course, adjust the names of the fields in the first two rows to match the ones in your file):
var v1 = this.getField("Field1").valueAsString;
var v2 = this.getField("Field2").valueAsString;
if (v1=="" || v2=="") event.value = "";
else event.value = Number(v1) - Number(v2); -
How to keep iPad and iPod apps sync separate if you are using the same PC for backups
Syncing the iPad and iPod using the same PC syncs the apps between the devices. How an Thisbe avoided I don't want to use the same apps in all my devices.
No problem. The computer's iTunes keeps track by serial number. The human keeps track by a unique name for each one. In my case, the iPad is cleverly named "George's iPad" while the iPod is equally cleverly named "George's iPod."
-
Currently, firefox 29 keeps one language for different tabs in one window. Different windows can have different input sources...
Thank you for your reply!
I think I've accidentally marked the problem as solved, but in fact it's not.
What is needed is that the firefox remember different input methods (languages, for instance, En or Fr) for different tabs so that when I switch between several tabs I don't need to change the layout.
Chrome remembers my language settings for each tab, so it's not always one language for all the same tabs there. I haven't found such an option in Firefox so far.
Hope it's clear enough.
Thanks in advance.
Maybe you are looking for
-
How to handle Database's trigger
Greetings, i have an application on JDeveloper 11.1.2.4.0. At some point the user add new customer and its been saved to the database. Because the application may be used in more than 1 shop, i have created a 2nd database, only for biography uses and
-
Hi , I have got a scenario in with one image needs to be printed on top of other. 1) the seal of the company 2) on top of seal the signature of the enduser. the seal of the company will be one and the signature of the user will be changing based on
-
Hi all, My customer enters an AP service invoice with multiple lines and the same GL account on each line. He would like that the journal entry generated by this document have multiple lines with the same GL account on each line instead of having thi
-
Process flow - Mannual - How to interevene thru Control Center
I have Mannual process in my process flow. I know how to intervene thru Repository Browser. I go to repository browser and do expedite execution and process continues. In the user guide they tell this can be done thru control center also. Can anyone
-
No default browser configuration
i deleted the service books from my phone because of a possible corrupt file. i did that because my internet was not working and read about it on the blackberry support page. under the browser setting in advanced options the is no default browser co