Need to do one field as non editable once a document is moved to 'executed' phase.
Hi All,
I have a field called 'comment' in Contract document. And once the document is moved to Executed phase all the fileds becomes non editable. And since 'Comment' is free text my user wants to do it as editable even when the document is in executed phase.The phases include
1.Draft
2.Budget Owner Approval
3.Financial Approval
4.Procurement Approval
5.Approved
6.Digital Signature
7.Executed
I tried this both in post phase script as well as pre phase script and found it's not working. Please suggest your ideas. Is there any other place I need to add code.
Postphase
if (phase.equals("Executed"))
logMsg.setLogMessage(" Executed START ");
Logger.info(logMsg);
//Changes done by me
comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
logMsg.setLogMessage(" Comments are " + comments);
Logger.info(logMsg);
IapiDocumentLockManager.unlockField(session,doc,"NON_DIGSIG_COMMENT");
//Changes ended
parent = doc.getParentIBean();
if (hasValue(parent))
// get associated vlv value for phase
ValueListValueIBeanHomeIfc vlvHome = IBeanHomeLocator.lookup(session, ValueListValueIBeanHomeIfc.sHOME_NAME);
if (classinfo == 1004)
{// parent is Master Agreement
vlvBean = vlvHome.findUniqueByNameType("Executed Agreement",10);
} // end if classinfo == 1004
else
vlvBean = vlvHome.findUniqueByNameType("Executed Agreement",1);
} // end else
if (hasValue(vlvBean))
vlvLocalizedRef = vlvBean.getLocalizedObjectReference();
// set parent status
parObjRef = doc.getParentIBean().getObjectReference();
parentHome = IBeanHomeLocator.lookup(session, parObjRef);
parentHome.upgradeToEdit(doc.getParentIBean());
doc.getParentIBean().setStatusRef(vlvLocalizedRef);
logMsg.setLogMessage(" Parent Status updated to " + vlvLocalizedRef.getDisplayName() + " ");
Logger.info(logMsg);
parentHome.save(doc.getParentIBean());
logMsg.setLogMessage(" Parent saved ");
Logger.info(logMsg);
} // end if hasValue(parent)
logMsg.setLogMessage(" Executive Summary Approval END ");
Logger.info(logMsg);
Prephase
if (hasValue(other_phase) && hasValue(phase) && phase.equals("Approved") && other_phase.equals("Executed"))
logMsg.setLogMessage("Entering comment block");
Logger.info(logMsg);
//Changes by Lakshmi
comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
logMsg.setLogMessage(" Comments are " + comments);
Logger.info(logMsg);
IapiDocumentLockManager.unlockField(session, doc, "NON_DIGSIG_COMMENT");
if (!bypassCheck)
ae.chainAtEnd(doc.createApplicationException("NON_DIGSIG", "zclm.contractdocument.advancetoexecutedfromapproved"));
} // end if (hasValue(other_phase) && hasValue(phase) && phase.equals("Approved") && other_phase.equals("Executed"))
//Block added my me
if (hasValue(other_phase) && hasValue(phase) && phase.equals("Digital Signature") && other_phase.equals("Executed"))
logMsg.setLogMessage("Entering comment block");
Logger.info(logMsg);
comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
logMsg.setLogMessage(" Comments are " + comments);
Logger.info(logMsg);
IapiDocumentLockManager.unlockField(session, doc, "NON_DIGSIG_COMMENT");
I agree with the definition of a position - that it's an occurrence of a job in an Organization. And I also couldn't agree with you more: that defintion shouldn't preclude you from moving the position around the company with re-orgs etc.
Sadly that's a limitation of Oracle HRMS and there is no way to change the Organization of a position. You'll just have to streamline your processes to clone positions instead. Here, Position Copy is your friend:
*HRMS Manager > Work Structures > Position > Position Copy
There are also other tools that may help. Check out:
Need To Change the Organization Associated with a Position [ID 375483.1]
Does that help?
Similar Messages
-
Table control : Need to change Single field as non editable
Hi Experts,
Plz help me out. In a table control there r 7 fields and only one field is editable. When i change the status of a record as delete in tat table control, only the deleted record (all fields)should become non-editable. Is it possible? Pls suggest.
Regards,
J. Sriram.Hi,
In PBO of your screen
you should be using a step loop like this :
CONTROLS control1 TYPE TABLEVIEW USING SCREEN 100.
LOOP AT itab WITH CONTROL control1.
ENDLOOP.
Where the control1 is the tableview control defined in your program
and placed on your screen.
Put a second loop on screen inside this loop ant set the related attribute :
LOOP AT itab WITH CONTROL control1.
LOOP AT SCREEN.
IF SCREEN-NAME = 'COLUMN1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDLOOP.
So you can set cells editable or non-editable
and you can filter it which record & which field.. -
How to made Qty field as non editable in MIRO
Hi SAP Gurus,
While Post a Goods Receipt (MIRO) for Receive the Material from Job
Worker, the Qty of Raw Material which needs to Issue or consume from
Stock will propose as per PO BOM. The Qty field of Raw Material is in
Editable Mode. Business wants that Qty Field to be Non-editable and not
to allow user to Change the Proposed Qty. As per PO BOM and based on
Material Received from Job Worker, Raw Material has to Issue or Consume
from Stock. If any Under Consumption or Over Consumption will be
adjusted thru MB04.
Pls let me know is there any setting to make Raw Material Qty field as
non editable.
Thanks & Regards
Sathish
Ph:9940518715Hi,
There is no field selection in MIRO.
USE SHD0 and create a screen variant
Thanks & regards,
Kiran -
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.
-
Disabling fields(Make the field as non-editable) in webdynpro ALV
HI All,
I have a requirement in the ABAP webdynpro where I have to disable(Make the field as non-editable) the field(or that ALV cell alone) in the ALV after the user has inputed in that field.
Is it possible, if yes, could you please give me some sample code , or links to which I can refer to.
Thanks for your help.
Regards,
Subash MHi,
Use the following approach :
1. Create an ALV and create an inputfield cell editor for the column that you want to make editable/disable.Refer this tutorial for creating an [Editable ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
2. Now under the same node create an attribute EDITABLE type boolean and bind this to the readonly property of the input field. Include the following code while creating Input field for binding.
lr_input_field->set_read_only_fieldname( 'EDITABLE' ).
3. Now implement the onDataCheck event or OnCellAction event and pass abap_true to this attibute to make the cell readonly/disable.Refer this tutorial for [Events in ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Hope this helps.
Regards,
Radhika. -
Hi ,
I need to add one field in MM02 screen.
Can u help me in this please.
I need to do this by using screen exit ,how to do this?
can u......
Regards,
KalidasHi Kalidas,
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Kindly Reward Points If You Found The Reply Helpful,
Cheers,
Chaitanya. -
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. -
Fields become non-editable when forwarding X11 session to Windows in Java 7
I have found what I believe could be a bug in Java 7, and Swing specifically. The scenario in which it occurs is pretty rare, so it's not surprising that I couldn't find anyone posting about experiencing this issue, but it's an issue that happens consistently for our product and our users.
Steps to reproduce:
1) Download any Swing-based Java application (for instance, IntelliJ IDEA or SoapUI) on a Linux machine.
2) SSH into this host machine from a Windows SSH client, using X11 forwarding (you can use this guide to set it up using PuTTy and Xming - http://blog.nth-design.com/2010/05/19/x11-putty-xming/ )
3) Run the application, and make sure the application is running with JRE7.
4) Try to edit some different text fields.
When doing this, certain text fields that are supposed to be editable suddenly become non-editable. This issue does not occur if you repeat the above procedure with JRE6.
If you need any further assistance in reproducing this issue, let us know.
Regards,
Arian Jafaripd**** wrote:
I have the same issue and I can't believe that this isn't the number one topic on every Java forum. GUI applications simply DO NOT WORK on Java 1.7. Absolutely incredible that this bug that will render millions of Java applications unusable has not been fixed.The OP describes a somewhat rare use case (X11 session forwarding), and you turned it into "millions of GUI applications don't work"? I'm confused here. -
Making a header field as non editable while creating PO using ME21n
Hi Friends,
Could any one tell me the BADI or screen exit to make a header field (for eg: EKGRP - Purchasing Group) as non editable after giving default value to it?
Thanks in advance,
RamHi Ram,
goto se80 t-code and give 'ME' package, and now see the enhancements available.
You l get a relavent one, if you go through all those.
Hope this helps
Regards,
Sujatha -
I need to add one field Pers. sub area for Actions screen
Normally, we will have Position, Pers. area, Emp group and Emp sub group in Actions screen. Now I want to add one more field to that screen, what is the navigation?
Can anybody help me please.
Regards,
Pavani.hi,
pavani. If i understood right, you need to add a field which is not listed in the module pool related to the screen you have to create a new field, here you can hide or make optional or intialize the field for the info types the table no T588M.
let me know whether this is correctly answered or not
regards,
madhu -
How to make the field as non editable?
Hi Gurus,
I have created the WD leave applications which will trigger the BAPI(which returns half of the work structure allocated to the employee leave sickness)value will be freezed in the input UI element.
Right now am getting the above said value but UI element is in still editable mode.
My requirement is once we freezed the value UI element has to be non editable.
any useful clues will be higly appreciated with higher points...............
Thanks in Advance,
Dharanihai dharani,
1.create a context attribute o type boolean and bind it to the ui elements enable property.
2.use the following code to set the enable to false.
3.wdContext.currentContextElement().setEnabled(false);
Any issues let me know.
Thanks n Regards
Sharanya.R -
Need to add one field in standard structure???
Hi Experts,
I wanted to add one Z-field in standard structure. Anybody will suggest me how to do that step by step??open the table in se11 and press append structure in application tool bar
press create button on pop up window.
give the append name and include the fields u required.
Yes, you can add the extra fields to the standard table.
Create Z-Structure with the fields needed and append the structure to the standard table by using the option append structure within table display
we can enhance the standard tables by using Append structures and customizing includes.
Append structures allow you to attach fields to a table without actually having to modify the table itself. Table enhancements using append structures therefore do not have to be planned by SAP developers. An append structure can only belong to exactly one table.
In contrast, CI_includes allow you to use the same structure in multiple tables. The include statement must already exist in the SAP table or structure. Table enhancements using CI_includes do, however, have to be planned by SAP developers
regards.
Rahul
reward if useful -
FIELD BSEG_ZUONR NON EDITABLE
Dear all,
I'm facing the following problem.
I need the field BSEG_ZUONR editable but it seems It is not possible. In fact, I tried to put the field in SPRO-->Document Change Rules, Line Item, but nothing happens.
Any ideas?
Thanks in advanceHi
BSEG_ZUONR - Assignment field
In the GL account sort key is the indicator which will fill the assignment field after the document gets postedu2026.which in fact is modifiable.
You can create your own sort key with the TC OB16 .Assignment field can be a combination of 4 fields from Tables BKPF, BSEG, BSEC, BSED and would take a maximum of 18 characters
Eg; GL xxxxxx has the sort key as 001(posting date) then assignment filed gets updated with the posting date
Now if you want to change the assignment fields go to the document display- click on change display /change mode icon. Few of the fields would change to blue color, out of which 1 field is the Assignment field which could be modified. -
Need value in one field to populate various number of rows in a table
I have a table created similarly to the sample Purchase Order form. I want the user to enter the quantity needed. Then I want to have a script populate the quantity field on each item in the table. However, some items that are ordered have a different number of parts. I'm not sure how to account for the various number of rows that may be encountered.
Thanks,
MDawnHi,
You can set the type to 'calculated - user can override' in the Object > Value palette. Example here: https://acrobat.com/#d=20TXqhWneiQhOMRVoJVXhQ
However I am not sure if you will get the user experience that you are after. You can set the quantity rawValue to match that of the first row. The user would be able to override this, but will get warning messages, which may be disconcerting.
Hope that helsp,
Niall -
To make a field in non editable mode
hi all,
I have a requirement. In which i want a field to be in display mode.
i want the user to select the data into the field only from the f4 option and not to entre manually.
How can i code this. this is a report and not a module pool program.
when i tried at selection screen even and loop at screen and input = 0 then i cant pass the value from f4 into the field.
Kindly suggest.
Regards & thanks
vidhyaHi VIdya,
use AT SELECTION-SCREEN ON VALUE-REQUEST Event.
in the CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' ' " Pass remaining Values as usual !
retfield = retfield
* PVALKEY = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = ' '
* STEPL = 0
* WINDOW_TITLE = WINDOW_TITLE
* VALUE = ' '
* VALUE_ORG = 'S'
* MULTIPLE_CHOICE = ' '
DISPLAY = ' F' " Here Passing F forces the F4 Help for Display Field.
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB = MARK_TAB
* IMPORTING
* USER_RESET = USER_RESET
TABLES
value_tab = value_tab
* FIELD_TAB = FIELD_TAB
* RETURN_TAB = RETURN_TAB
* DYNPFLD_MAPPING = DYNPFLD_MAPPING
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
Hope this simple advice solves your problem
Cheerz
Ram
Maybe you are looking for
-
Can i use pen drive to install boot camp on my mac?
Can i use usb pen drive to install boot camp on my mac?
-
The drivers won't install>Hi I have a very old MP3 player which I recently started using again. It is around 5 or 6 years old and I think the model name is just Creative ZEN. The model number is DAP-HD005. Following a hardware failure on my old PC a
-
90DATK-6G96PE-MFGKOK-6OX103. i got this error on hard disk 1. any advice?
90DATK-6G96PE-MFGKOK-6OX103. i got this error on hard disk 1. any advice? This question was solved. View Solution.
-
I have had my iPod Touch 5th generation for over a year, and recently I have began to experience issues when trying to charge it. I would have to wiggle to cable, or position it, to get it to charge. It has gotten progressively worse, and now it wont
-
I cannot remember master password in order to delete having to use one. What do I do?
Every time I open a new site, The box for Master Security Password pops up and I don't remember what it is. Therefore, I cannot delete it. What do I do?