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.
Similar Messages
-
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. -
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 -
User presses F4 on the selection screen for the field ''Transport Request"
Dear ALL,
I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
How do we Achieve it ?Hi.
First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
then u can get all the request for that client.
DFIELD-FIELDNAME = 'P_MANDT'.
APPEND DFIELD.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Y9EZ_TR_COPYCLIENT'
dynumb = SY-DYNNR
tables
dynpfields = DFIELD
READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
V_MANDT = DFIELD-FIELDVALUE.
CALL FUNCTION 'TR_F4_REQUESTS'
EXPORTING
IV_USERNAME = SY-UNAME
IV_TRKORR_PATTERN =
IV_TRFUNCTIONS =
IV_TRSTATUS = 'RNDL'
IV_FROM_DATE =
IV_TO_DATE =
IV_CLIENT = V_MANDT
IV_PROJECT =
IV_TITLE =
IV_VIA_SELECTION_SCREEN = 'X'
IV_COMPLETE_REQUESTS = 'X'
IT_EXCLUDE_REQUESTS =
IMPORTING
EV_SELECTED_REQUEST = S_TRKORR-LOW.
ES_SELECTED_REQUEST =
'TR_F4_REQUESTS' This function module for request
Regards
muralii -
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 -
Inserting Selection-screen above the Field-groups created.
Hi guys,
I am having problems on how to display my selection screen before the field-groups declared. How can I insert my selection-screen above those field-groups? Do i need to create a new field group for my selection-screen and how? thanks in advance! the sample code is below this message.
regards,
Mike
<b>I.E.:</b>
FIELD-GROUPS: header, posten.
selection-screen begin of block BOMREP WITH FRAME TITLE TEXT-429.
PARAMETERS: rb_bhder RADIOBUTTON GROUP g1 DEFAULT 'X',
rb_bflvl RADIOBUTTON GROUP g1,
rb_dsply RADIOBUTTON GROUP g1,
rb_ndlpy RADIOBUTTON GROUP g1,
rb_alvl RADIOBUTTON GROUP g1.
selection-screen end of block BOMREP.>
Akashdeep Basu wrote:
> Hi,
> I am using LDB : PNP in my report. I want to add a block on the selection screen ABOVE the standard LDB screen.
>
> Plz help....
> Sample code appreciated.....
>
> Thanks,
> Akash
NOT possible. you can only append to the Std selection-screen. One option is to hide it altogether, so the user sees only the custom block...
~Suresh -
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 -
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 -
How can we change Non-Editable field in MM02
Hi,
I want to change some fields value through MM02, but they are non-changable mode (GRAY).
Please let me know the SPRO setting, from where I can change that fields or some other option is there in SAP..
ThanksHi,
The Fields can be made EDITABLE in the Transaction code OMS9
Goto the Transaction code OMS9 and enter the FIELD SELECTION GROUP of the Field ( from drop down)
and in the below screen you can find the Details like
HIDE,
DISPLAY
OPTIONAL
REQUIRED
You can check the filed as per your requirement.
regards,
santosh -
To create a variant for a selection screen having invisible fields
Hello All
I am facing a peculiar problem. I have a screen for the program RSEIDOCB in which the following fields are hidden:
TAOUTPR FOR EDIDC-STATUS NO-DISPLAY,
STAINPR FOR EDIDC-STATUS NO-DISPLAY,
STAOUTRS FOR EDIDC-STATUS NO-DISPLAY,
STAINTA FOR EDIDC-STATUS NO-DISPLAY,
STAOUTES FOR EDIDC-STATUS NO-DISPLAY,
STAINTD FOR EDIDC-STATUS NO-DISPLAY,
STAOUTST FOR EDIDC-STATUS NO-DISPLAY,
STAOUTDT FOR EDIDC-STATUS NO-DISPLAY,
STAINBK FOR EDIDC-STATUS NO-DISPLAY,
STAOUTEI FOR EDIDC-STATUS NO-DISPLAY,
STAINEI FOR EDIDC-STATUS NO-DISPLAY,
STAOUTEX FOR EDIDC-STATUS NO-DISPLAY,
STAINEA FOR EDIDC-STATUS NO-DISPLAY,
STAOUTDS FOR EDIDC-STATUS NO-DISPLAY,
STAINDS FOR EDIDC-STATUS NO-DISPLAY.
I want to create a variant for the above program having values for the fields. These fields are basically for specifying the various status of the idocs. I am unable to do to so at the moment. Please help me out. Suitable points will be provided.
Regards
AnkitHi Ankit
Follow these steps..
1. in SE38 enter Program name 'RSEIDOCB'.
2. Click on variants button
3. enter variant name click on create
4. in selection screen enter default values
5. Click on attributes
4. Enter meaning
5. Press Shft + F4
6. Bottom of Screen will popup invisible fields
7. go down to screen
8. select field and click on selection variables button
(you to have to tick selection variable check box)
9. here click on down arrow button very next to field
10.you can choose values from list and assign to field.
then save variant.
Message was edited by:
Perez C -
Selection screen output obligatory field
Hi all,
I have two radio buttons, if i selected one radio button one selection screen will come for entries another will be invisible.
in that selection screen i have all are mandatory fields. so it is not allowing to another radio button with out entering the values
Chek my code.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text001.
PARAMETERS : p_aut RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ac.
PARAMETERS : p_man RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text002.
PARAMETERS : p_zbukr TYPE reguh-zbukr MODIF ID aut.
SELECT-OPTIONS : s_laufi FOR reguh-laufi MODIF ID aut OBLIGATORY,
s_laufd FOR reguh-laufd MODIF ID aut OBLIGATORY,
s_hbkid FOR reguh-hbkid MODIF ID aut OBLIGATORY,
s_hktid FOR reguh-hktid MODIF ID aut OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text003.
PARAMETERS : p_bukrs TYPE bsak-bukrs MODIF ID man DEFAULT 'LTGI'.
SELECT-OPTIONS : s_augbl FOR bsak-augbl MODIF ID man OBLIGATORY,
s_augdt FOR bsak-augdt MODIF ID man OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b3.
Will it move from one radion button to another even those are obligatory.
Regards,
Sri
Edited by: Thomas Zloch on Sep 14, 2010 2:34 PM - please use code tags!Hi,
True. There are some variables to keep track of.
So, I have two radio buttons. P_UPL and P_DNL. If P_DNL is selected and gv_mode has already been set to "download status", then I do the check. AT SELECTION-SCREEN OUTPUT happens after AT SELECTION-SCREEN so my gv_mode variable won't be set on the first AT SELECTION-SCREEN when the radio button is selected.
* SELECTION SCREEN EVENTS
AT SELECTION-SCREEN OUTPUT.
DATA: lv_type(3).
IF p_upl = 'X'.
gv_mode = c_screen_upload.
ELSE.
gv_mode = c_screen_download.
ENDIF.
LOOP AT SCREEN.
IF NOT screen-group1 IS INITIAL.
IF screen-group1 = gv_mode.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN.
IF p_dnl = 'X' and gv_mode = c_screen_download.
IF p_aland is INITIAL.
MESSAGE text-m03 type 'E'.
ENDIF.
IF so_azone[] is INITIAL.
MESSAGE text-m04 TYPE 'E'.
ENDIF.
endif. -
(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. -
LDB PNP, selection screen, org structure field name ?
Hi,
Generally, what are the names of the additional selection-screen fields? There are twenty odds pnp...., the standard ones. But what is the name of the org. structure, the 4th button selection options group fiels? (I need ids of all Org units from org. structure subtree, or the root org id at least)
Thanks,
Piotr...this it is with headerline...
Sergey big spasiba
Piotr
Maybe you are looking for
-
Dependencies of meta data in XML forms builder
Hello, I created property metadata with dependencies between them. In my example the base property is "Type" (e.g. Programming, Customizing, Formulars). The shell property is "Theme", is set to maintainable and got the additional metadata: "dependOn=
-
How to display arraylist list on jsf page
Hii all, i am having an jspx page where i want to display the value coming from a bean class getter.. the getter is returning an Arrarylist of list and i want to display the entire array list on the jspx page when it gets loaded. The method is :- pub
-
Every source file recompiled when make is invoked??
I am using autoconf, automake to manage my software. However, when I invoke make, all the source file recompiled. It shoudl be Only those who have been changed since last compilation recompiled. Now recompiling every source takes a long time. Has any
-
Why won't my contact folder open
My constants will not open
-
Would like to use syntax highlighting in body text for code snippets
I have a feeling this isn't actually possible without a whole lot of manual work, but I want to preserve syntax highlighting in code examples in my online help. Like this: All I can do is black text. |:^( I am using Robohelp 7, generating to WebHelp.