Update non-editable field Start date which is calculated from other context
I had created some custom date fields(model, bol entity) in component ICCMP_BTSHEAD. We are calculating Start date based on the new input value into receiving date in the other context node.
so, for this i get the value on controller class(_IMPL). and pass the same value in the GET method of Start date.
But, Problem is Start date is the non-editable field so SET method will not be trigger as expected. so the same i used the DO_PREPARE_OUTPUT method but it's called and update the value when we press the enter. IF directly we click on the "SAVE" button then it' trigger but value is not updating in the database.
Please, find the below piece of code for the same. can u please anybody help me that how can i achieve this requirement.
DATA: l_recieve_date TYPE crmt_date_timestamp_from,
lr_current TYPE REF TO cl_bsp_wd_mixed_node,
lr_col TYPE REF TO cl_bsp_wd_collection_wrapper.
DATA: lv_date TYPE d,
lv_time TYPE t,
lv_date_temp TYPE sydatum.
IF iv_first_time EQ abap_false. "avoid for first tile load
Read the value of btreceivedate-TIMESTAMP_FROM.
lr_col = me->ztyped_context->btreceivedate->get_collection_wrapper( ).
IF lr_col IS BOUND.
lr_current ?= lr_col->get_current( ).
IF lr_current IS BOUND.
lr_current->if_bol_bo_property_access~get_property_as_value( EXPORTING iv_attr_name = 'TIMESTAMP_FROM'
IMPORTING ev_result = l_recieve_date ).
ENDIF.
ENDIF.
IF l_recieve_date IS NOT INITIAL.
CONVERT TIME STAMP l_recieve_date TIME ZONE sy-zonlo
INTO DATE lv_date TIME lv_time.
Check day is working day - if not, correct to previous working day
IF lv_date IS NOT INITIAL.
lv_date_temp = lv_date.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
correct_option = '-'
date = lv_date
factory_calendar_id = 'GB'
IMPORTING
date = lv_date_temp
EXCEPTIONS
date_after_range = 1
date_before_range = 2.
IF sy-subrc IS INITIAL.
lv_date = lv_date_temp.
ENDIF.
ENDIF.
CONVERT DATE lv_date TIME lv_time
INTO TIME STAMP l_recieve_date TIME ZONE sy-zonlo.
ENDIF.
lr_col = me->ztyped_context->btstart->get_collection_wrapper( ).
IF lr_col IS BOUND.
lr_current ?= lr_col->get_current( ).
IF lr_current IS BOUND.
lr_current->if_bol_bo_property_access~set_property(
iv_attr_name = 'APPT_TYPE' "#EC NOTEXT
iv_value = 'ZSTWTIME0001' ).
lr_current->if_bol_bo_property_access~set_property(
iv_attr_name = 'TIMESTAMP_FROM' "#EC NOTEXT
iv_value = l_recieve_date ).
ENDIF.
ENDIF.
ENDIF.
could you please help me?
Hi,
Thanks for your reply,
yes, i checked the same thing also. But DO_HANDLE_DATA is called before the SET method of receiving date and in that case we are getting the old value in DO_HANDLE _DATA and source and Target fields both are not updating.
I checked, if, i'll change the input field then set method of input field and then EH_ON_SAVE is called directly.
i think, if i'll do the same modification in the EH_ON_SAVE method as i did in the DO_PREPARE_OUTPUT then it can be updated but i don't want to change the EH_ON_SAVE at this moment.
is there any other way to update the START DATE(Display mode in the screen) which is calculate from the other context node field receiving date.
Similar Messages
-
How to make non editable field after requestor created the shoping cart
Hi,
i need to make non editable field (Price field) after requester created the shooping cart.The field should be non editable only for requster .
this i need to make when workflow triggers when the buyer sends back the shopping cart to requester.
one solution which i found:depend on the status of the shoping cart
but i dont know whether it is correct way.
if not please suggest me the solution.Hi,
You can implement the BADI" BBP_UI_CONTROL_BADI".
You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
For sample code pls refer the foll links:
Sample code for BBP_UI_CONTROL_BADI
Re: Hiding Shopping Cart Fields in SRM 3.0
Re: How to Hide the attributes from template BBPSC01?
Re: How to validating total value in shopping cart
Re: Price filed in Shopping cart should be in display mode
BR,
Disha. -
Enabling the non editable fields
Hello Friends..
How to enable a non editable field. For example...how to make Personnel area field in IT0001 into a editable field. For some reason..we need this. Is there a way...?
Kindly help..
Thank youHi,
Assignmwnt which you hav don in info typ 0000 (Prsonnl area) will be as non editbl fild in info typ 1
i would like suggstest. instead of doing personnel area field editible, met ur requitmet with prsonnel subarea on same info type 1.
If it is, there will be no problems
Friends correct me if i am wrong.
Edited by: MVRmvr on Aug 19, 2010 1:14 PM -
Show scheduling message when direct edits to Start date
Is therre a way to show scheduling message when someone is editing the Start date directly for a task, I understand that a constrain get set by doing so, yet I also want to display some kind of scheduling message to the PMs, is it possible.
Yes, Julie you are right. If "Advice from Planning Wizard" option is cleared in Options, Project updates a key to value 0
Key: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\MS Project\Options\PlanningWizard\Display PlanningWizard
But if "Do not tell me about this again" is selected in Planning Wizard dialog the below key is updated and there is no way to turn this on through Options:
Key: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\MS Project\Options\PlanningWizard\PlanningWizardCases
By default, the Key: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\MS Project\Options\PlanningWizard\PlanningWizardCases has the value 11111111111111111111111111111111111111111111111111111
Also, there are several combinations too. If "Do not tell me about this again" is selected when a successor task is moved from the predecessor, the Key: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\MS Project\Options\PlanningWizard\PlanningWizardCases
is updated with 11111111111011111111111111111111111111111111111111111
Sai PMP, PMI-SP, MCTS Project, MVP Project -
hi
i want to process the non-editable fields in a transaction (ME32) from the program itself. but when i am doing this it is showing error saying '........field is not input field'.
how to process this. pls check this.Hi Jay,
The noneditable fields cannot be modified by BDC.
But in one of our tasks,
We followed this techinique..
Actually 2 of the fields in second screen are not open for input if certain variable is X in 1st screen.
Then we started that screen with Y and in this case those fields are open for input,now in second screen we modified the field as X back and saved the record..
I am not sure whether this might help you -
How to create non editable fields in OIM?
Hi ,
I would like to know about the creation of non-editable fields in OIM.
Thanks in Advance.Hi,
Where do you want to create this field? (Create User Form, Process Form....).
If your requirement is to do it in the Create User Form, or Self Register or Edit Profile... You have to edit the FormMetadata.xml file. There are many posts in the forum of how to edit this file but ask if you need any help. -
Field exits for non-editable field
Hi All,
can I write field exit for non-editable field?
Thanks in advance...
bye.hi,
i think you can, just try it.
But when you have to change it, because of a certain exception in the fieldexit, it is impossible to change the field.
Hans -
How do you edit out the date and time stamp from a photo
How do you edit out the date and time stamp from a photo
You can blur it out with retouch
The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
Regards
Léonie -
(non)Editable field on Myspace & Firefox 3.5/6
Symptom: flash app has an editable field that becomes non-editable on Myspace, but only when accessing it with Firefox 3.5 or 3.6;
What's more, it actually can be edited, as long as one right-clicks into the field.
The app is made with Flash Pro CS5 and embedded on Myspace using AddThis, if that makes any difference.
The same app behaves just fine in Chrome or IE8. All of these are on WinXP, in case that's at play.
My skills with flash are limited, so I'm at a loss as to where things would go wrong.
As these apps are also working just fine on other sites, I'm guessing this is very Myspace limited issue, but what?
thanks,
karoyI had the same problem. Called HP support and that was useless. They tried to help me restore to before the problem but the restore wouldn't work! In the end they wanted me to restoer to factory settings. All because they haven't bothered to test their update with some pretty standard software (firefox). I always get the same response from their service folks - "you are using software that is not from HP so we can't really help you". Well, yeah - uh, I occassionally do use software on my laptop that is not made by HP.
I had high hopes for moving from Dell to HP, but am just disappointed over and over again. Perhaps my expectations were too high, but never the less, I will not buy an HP laptop again. -
Non editable field in POP_GET_VALUES
Hello,
I am using the POP_GET_VALUES function to request two values from the user. I have to ask for a provider and a price. The provider field works fine (mach code included), but the price field appears in grey (non editable) and then the user cannot inform the value. How can I avoid this behaviour?
Thanks in advance,
Ricard.
Edited by: Oscar Barrabes on Jul 3, 2008 3:27 PMDATA: TITOL type string.
DATA: VALORS LIKE SVAL OCCURS 0 WITH HEADER LINE.
CLEAR VALORS.
REFRESH VALORS.
VALORS-TABNAME = 'EKPO'.
VALORS-FIELDNAME = 'NETPR'.
APPEND VALORS.
VALORS-TABNAME = 'AFVC'.
VALORS-FIELDNAME = 'LIFNR'.
APPEND VALORS.
CLEAR TITOL.
CONCATENATE ITAB-CODCON ITAB-CODCLI ITAB-NOMSRV INTO TITOL
separated by '-'.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = TITOL
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = VALORS
EXCEPTIONS
ERROR_IN_FIELDS = 1
OTHERS = 2
I have tried it using the field netpr from other tables and the result has been the same. If I run the function at se37 the price field appears as non editable too. -
PR non editable fields after final release
we like to do in PR Material's short text, date, Pur Grp & Requested by heads are in editable stage after final release.
we need to make non editable mode. how we can do this...
please advice
Thanks
Rajesh GDear Rajesh,
You may define as Field Selection Key for your PR release indicator via customizing:
SPRO
MM -PUR-PR-Release procedure-Procedure with classification
- Set Up Procedure with Classification
-Release indicator
-Now choose your final release indicator
-Fill in FSK:
Example:
Field Selection Key FZ01
Now add this FSK to your customizing via screen layout:
SPRO:
MM-PUR-PR
-> Define screen layout at doc level
-> Add your FSK to this customizing and customize
according to the field as you want.
Best Regards,
Ian Wong Loke Foong -
Updating non-persistent fields in an Entity Object
Hi,
I wanted to add a non-persistent field to an Entity Object to use as a temporary aggregate field for a detail entity. It appears that storing data in the field makes it look like the master entity has been updated even though the value cannot be saved in the data base. Is this the way it is supposed to work?
I was trying to avoid putting invisible controls in the UI or creating "global" variables.
Thanks,
PeterThis can be done with programmatic VOs: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#sm0341
Sample: http://blogs.oracle.com/smuenchadf/examples/#132
You can also opt to do this with a simple Java class and a data control based on it.
For example: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html -
Want to grey out (Non-editable) field in Additional Tab in Header of ME21N
Hi all,
i've got a requirement to grey out the field(Non Editable) of header tab in ME21N.
Can anybody tel me the solutions.
Rgds,
SpandanQuestion asked again, and again, and again, and again. Search for "grey out" (and please read forum rules as it seems you didn't)
-
Selection-screen non-editable field
HI,
On the selection-screen of a report, i have 2 parameter & one select opttions in selection screen like this sequence
p1 (has F4 help)
s1
p2 (Mandatory field)
If i select p1 value 'create' from F4 help. then depends on this selection from F4 help
s1 should be editiable.
p2 should be non-editable.
If i select p1 value 'dispaly' from F4 help. then depends on this selection from F4 help
s1 should be editiable.
p2 should be editable.
How to acheive this.Try this
tables: vbrk.
parameters: s_bukrs like vbrk-bukrs,
s_fkart like vbrk-fkart,
s_fktyp like vbrk-fktyp.
at selection-screen output.
loop at screen.
if screen-name = 'S_FKART' .
screen-input = 0.
modify screen.
endif.
if screen-name = 'S_FKTYP' .
screen-input = 0.
modify screen.
endif.
if s_bukrs = '<your f4 input value> '.
screen-input = 1.
modify screen.
endif.
endloop. -
Procurement type non editable field
Dear experts,
I have an issue please guide me, For one material i am not able to change procurement type, that field is graout (non editable) material type is Raw Material.
in material stock also exists, what could be the reason, how to change
please guide me
Regards
Chandu.>
chandu wrote:
> Dear experts,
>
> I have an issue please guide me, For one material i am not able to change procurement type, that field is graout (non editable) material type is Raw Material.
>
> in material stock also exists, what could be the reason, how to change
>
>
> please guide me
> Regards
> Chandu.
This procurement type is in material master right. You need to get it editable in spro.
Maybe you are looking for
-
Payment Difference by reason code charge to separate GL Account
Dear All We have set reason code for payment difference with indicator charge to separate account. Also we assign separate account for each reason code in OBXL. When we try to post incoming payment with difference and assign the reason code system as
-
I have a deskjet 5940 that in the past when the print quality went down with lines or streaks accross the page I could go into the control panel, click on devices and printers, click on my printer and then you could click on service this device. That
-
XML Component doesn't work (size limitation)
Hello, I'm having problems with "large" XML documents in the XML Component. I have a XML document with 6 records, that fails with the following error: ORA-24345: A Truncation or null fetch error occurred If I cut the XML document down to 5 records it
-
How do i return a computer if i ordered offline?
I have an air and i want a macbook pro. Do i return it and by another one or what?
-
10.6.2 Font Book issues
I've been searching hi and low for another post that might have the same problems, but to no avail. After upgrading to Snow Leopard 10.6.2, the PostScript font issue I'd been experiencing (like many others) seemed to go away. About 2 weeks ago, howev