User-defined fields in customer data (ME22N / ME23N)

I created a few new fields on the EKPO_CI-structure and I added them to the screen 0111 ... I also use the relevant user-exits to add the values to the screenfields (PBO) and to read the values (PAI) ...
The only problem I have now is that I don't know how I can make sure that the fields remain grey if the PO is in display-mode ... I know I can use the "loop at screen"-logic to change the "input"-value if I am looping at the correct field ... But I have to check if I am working in displey or change mode and that is something I don't know how tot do this ?
Can somebody help me with this ??
Thanks in advance !
Greetz,
Kurt.

Hi,
In the exit EXIT_SAPMM06E_016 there is a parameter called I_AKTYP. in the include ZXM06U41 store that value in a variable V_AKTYP in the top include ZXM06TOP.
In the PBO of the screen 0111 check if the value of variable is 'A' which means display..Then disable the fields for input..
THanks,
Naren

Similar Messages

  • Modifying/Updating User Defined Field in a Scheduled Task

    I've written a notification task to send an e-mail to a manager who has a contract employee with a contract that is about to expire.
    Once we isolate a user who has a contract about to expire, we send a notification to the manager. The date that the notification is sent out should be stored in the USR table in a user-defined field, "USR_UDF_LASTSENT."
    Updating this USR_UDF_LASTSENT field is where I'm having difficulty.
    I've tried using the UserManager in a couple of ways. Suppose I've isolated a single user using SearchCriteria and the UserManager and have a single User object called "currentUser." I want to store a Date object in the user defined field "USR_UDF_LASTSENT". Date today = new Date();
    I've tried: currentUser.setAttribute("USR_UDF_LASTSENT", today); //This will run without error, but when I check the DB there is no change to the attribute.
    With a defined instance of UserManager userManager, I've tried: userManager.modify("USR_UDF_LASTSENT", today, currentUser); //This errored out with this error - oracle.iam.identity.exception.NoSuchUserException: IAM-3054135:No user found for the criteria USR_UDF_LASTSENT-9/24/13 2:58 PM.:USR_UDF_LASTSENT:9/24/13 2:58 PM. It looks like it's doing a search rather than a modification.
    I've also tried using the entity manager in the following way:
    Date today = new Date();
    HashMap<String, Object> mapAttrs = new HashMap<String, Object>(); 
    mapAttrs.put("USR_UDF_LASTSENT", today); 
    EntityManager entMgr = Platform.getService(EntityManager.class); 
    entMgr.modifyEntity("User", currentUser.getEntityId(), mapAttrs);
    But it returns with this error: Failed: oracle.iam.platform.entitymgr.UnknownAttributeException: User : [USR_UDF_LASTSENT]
    Is my entityType, "User" inappropriate in this case? What should be used here?
    How can I Set or Update this user defined field from a scheduled task?

    Thanks guys. I did go to Identity System Administration console and chose 'Export' from under "System Managment" which I believe Kevin may have been hinting at. I got an xml export of the AttributeDefinitions for our user defined fields. In this file, there was a header for the attribute I was looking for:
    <AttributeDefinition repo-type="API" name="LastSent" subtype="User Metadata">
       <multiValued>
       <backendName>usr_udf_lastsent</backendName>
    I put the string "LastSent" in place of USR_UDF_LASTSENT in the EntityManager version of my attempt at this task. I believe this is what Kevin and delhi were getting at.
    This didn't work:
    Date today = new Date();
    HashMap<String, Object> mapAttrs = new HashMap<String, Object>(); 
    mapAttrs.put("USR_UDF_LASTSENT", today); 
    EntityManager entMgr = Platform.getService(EntityManager.class); 
    entMgr.modifyEntity("User", currentUser.getEntityId(), mapAttrs);
    But this did:
    Date today = new Date();
    HashMap<String, Object> mapAttrs = new HashMap<String, Object>(); 
    mapAttrs.put("LastSent", today); 
    EntityManager entMgr = Platform.getService(EntityManager.class); 
    entMgr.modifyEntity("User", currentUser.getEntityId(), mapAttrs);
    I wonder if currentUser.setAttribute("LastSent", today); would work... Hmm.

  • Missing user-defined fields (project definition) in project inform. system

    Dear PS friends,
    I have extended the CI_PROJ structure with some user-defined fields.
    I have started report RCNCT001 (to analyze these new fields in the project information system). The include RCNPROJR was generated and contains the new fields (table XXL_DATA). Include RCNSOM00 was generated too. This is described in note 43493.
    But Iu2019m still missing the new user-defined fields in the dynamic selection of reports (e.g. CN40).
    What else I have to do? We use SAP_APPL : SAPKH60009
    Thanks in advance for any suggestions!

    have you used user defined field or custom field via exit CNEX......
    User defined fields are activated by configuration using field key
    If you added custom fields then check out OSS note 188663 on how to create a CUS view for dynamic selection.

  • User Defined Field with Link Type

    Hi,
    I am trying to create a user defined field to allow users to attach word documents to Item Master Data.
    I have successfully created a User Defined Field under master data with Type: Data, Structure: Link.
    It appears in the Item Master Data as I would expect. My questions relates to how to use this field. The first time I click on the field, a file browser window appears where I can select a file. Once I select the file I want I click ok and the path to this file appears in the field. The next time that I click on the field the file will open in its respective application.
    My question is: How when the field already contains a path to a file do I change this path so it points to a different file.
    Any help I can get on this would be greatly appreciated.
    Thanks
    Brian

    Hi,
    If you hold down Ctrl on your keyboard and then double click in the link it will allow you to browse to a different file.
    Regards,
    Adrian

  • User Defined Fields/data items

    How can I add user defined fields on runtime in a pre-defined data blocks wiht the user defined attributes of data type, length and format masks.
    Ofcouse I should have those fields defined in DB first.
    Thanks for any help

    I have a similar need.
    I have a DB table that stores a list of questions and data types/sizes/usages of the answers required by the user of the form.
    In a multi-record database block, I currently list the questions, and supply a Text Item to capture the user's answers, and then provide validation code to check for the proper data type & number of characters.
    I would like to be able to use the data type/size/usage information that is stored with each question to create, at runtime, an appropriate item (numeric text item max length 3, or character drop-down list box, or character text item with an LOV, etc.) for each question record. In other words, one record could have a drop-down list box, while another record could have a numeric text item.
    I think that I can create separate fields for each type of item, and then enable/disable the fields when required, but this solution is less elegant than the programmatic solution that I desire.
    Is there a way to do this programmatically in Oracle Forms 6.0.5.0.2 for Windows, or with an OCX, or some other add-in? We do not have Oracle Applications in this group. Is there a way to get "FlexField" without having Oracle Applications?
    I agree that this is a normal requirement these days as administrator-type users (as opposed to data-entry end-users) of applications want to be able to dynamically customize the app for their usage.
    Oracle needs to address this issue by creating the ability in Forms/Reports to create customizable apps.
    Thank you in advance for any help you can provide.

  • User Defined Field that gives the date output of the last price update.

    We would like to create a User Defined Field (UDF) with a Formatted Search (FMS) on the Item Master form that gives the date output of the last price update specifically the wholesale price.
    Last Price Update
    Pricelist 2 = Wholesale
    Is this feasible?
    If it is feasible what is the recommended approach?
    Current working UDF on Item Master.
    /* Date output is based on all the latest updates on the Item Master.*/
    select max(updatedate)
    from aitm
    where itemcode = $[oitm.itemcode]
    Resources that were helpful.
    1.(Note:1165947 - Tracking Item Price Changes.)
    2. Case 4-I6: Query on price updates. Mastering SQL Queries for SAP Business One By: Gordon Du

    Thank you Gordon,
    We are looking for the date output of the 'Last Price Update' based on 'Pricelist 2 = Wholesale' which is the challenge.
    These 2 are the parameters for the date output, I should have mentioned that in my original message.
    Last Price Update
    Pricelist 2 = Wholesale
    Per reading a bunch of other similar Forum Questions it looked like it is might not be possible to do. With there being no date on the AIT1 table and AITM.Updatedate is based on any and all updates not just last 'Last Price Update' and not sure how to use the loginstanc.
    Thanks,
    Vern

  • Confirmation of User defined fields on CO11N

    Dear All,
    Can anybody tell me how to confirm user defined field during operation confirmation of an order. I have created a user field key and assigned in the operation detail screen in routing. Is it required to include a freely defined screen for CO11N in customizing or any other setting is there.
    Thanks in advance for your valuable inputs.
    Regards,
    Uday Parchure

    <b>Define Customer-Specific Detail Areas for Single Screen Entry</b>The following enhancement is available for production orders:
    CONFPP07 define detail areas for single screen entry
    With this enhancement you can define your own detail areas (screens), which can be issued for single screen entry of time ticket confirmations.
    Enhancement CONFPP07 contains the following enhancement components:
    Function module exits
    EXIT_SAPLCORU_S_100 Transfer data from SAPLCORU_S to customer-defined screen
    EXIT_SAPLCORU_S_101 Return data from customer-defined screen to SAPLCORU_S
    Display documentation
    Screen areas
    Screen areas that you can define yourself are available.
    Activities
    1. Create the enhancement
    To do so, create a new project, or use an existing project.
    2. Activate the project.
    Your enehancement only takes effect after you have activated it.
    Further Notes
    Enhancememnts, as opposed to modifications, are fundamentally independent of releases since they are not made in the SAP original, but in a name space that is reserved for customers.
    you have to create a customer defined screen and attach as in the link. Add the Freely definable detail screen in OPK0.  Confirm the user defined fields.
    Regards
    MSR
    Message was edited by:
            Soundararajan Murugesan
    Message was edited by:
            Soundararajan Murugesan

  • User-defined fields in cost calculation

    Hi, I'm working with process order in customer service process.
    I would like to make a cost precalculation based on a user-defined field.
    To let you know.
    I created a new user-defined field.
    I affected to it a new parameter ID so that this user-defined field value can be used in formulas.
    I created a new formula with my parameter ID.
    This is allowed for costs.
    Now in my work center I defined these data for costing
    price for pre calculation is defined for IN9020 and cost center.
    Now in my service order I fill the required field.
    I would have thought that according to formula, SAP would use this value (6 PC through the formula) to calculate costs.
    This is not the case.
    Did anybody already use this?
    Regards
    Olivier

    Dear Maniaba
    We have used user fields in task list to capture quantity in terms of nos & its weight for each operation. This we used as a work around to capture the repair jobs quantity & tonnage. While mapping repair of a particular machine with out any reference to material(that is we have not created them as serialised material as in the case of refurbishment) we have created task list for its repair and user wanted to capture the quantity of repair (say how many & also its weight) so we have maintained the tonnage per 1 no in these fields. later when order is being created user selects the task list & changes the quantity field then we have developed report where we calculate the total tonnage of that job & also no of items repaired.
    Regards
    S P Behera

  • User-defined fields for WBS

    Hi,
    Std SAP provides the following user-defined fields for WBS.
    4 numeric fields
    4 general fields
    2 date fields
    2 check boxes
    We would like to use as many as 20 numeric user-defined fields for wbs.
    Is there a way to do this?
    Thanks in advance.
    Manohar

    hi,
    It is not possible with user defined fields. You can achieve this using SPRO menu path Project System ->Structures->Work Breakdown Structure->Enhancement for Project Definition WBS lements -> Create customer specific fields in WBS.
    You have to use enhancement CNEX0007 to create the required fields.
    You will, ofcourse, need the help of an ABAPer to do this.
    Muraleedharan.R

  • Display WBS user defined fields

    Hi Experts,
    I want to add one more user defined field in WBS detail screen. Previously my WBS detail screen has 3 user fields displayed already.
    So I choose "Ufield 4 WBS element" (PRPS-USR03) in OPUK and set it as Input.
    And then I set the name for "Ufield 4 WBS element" in OPS1.
    But when I display WBS master data in CJ02, I still cant see "Ufield 4 WBS element", but the other 3 user fields can be displayed just fine.
    Any solution? Probably I miss some customizing? 
    Thanks in advance!

    Hi,
    I agree with Harsh. You might have maintained either "a non influential field selection" or "there is an influence by another capable field which is restricting the 4th field".
    You not only need to maitain the field as "Blanket input (without influences)" but also do the same under all influences you have.
    regards

  • User Defined Field in Material master

    Hi Friends,
    Can we add any user defined fields in any views in  material master (preferably with F4 help)
    If so, please let me know how to do it and its impact.
    Regards
    Ram

    Hi Ramachandran,
    Of course. 
    1.  If there is an existing Material Class, use it, unless modifying that class interferes with existing business processes.  Otherwise create a new class using CL01.  Use class type 001.
    2.  Create a characteristic using CT04 that represents your new field.  The characteristic will be your new field name and the description will be the description.
    3.  Using CL02, assign the characteristic to the existing material class, or to the new one you just created in step 1.
    4.  If this is a new system, you will have to create user instructions as to how to maintain the field.  The field will exist in the Classification view of the Material master in MM01/02/03, and the contents can be edited just like any field.
    5.  If this is an existing system, you will have to populate this field in all of the existing material masters.  Depending on the size and complexity of data, you may have to create a Legacy System Migration Workbench (transaction LSMW) project to bring all the fields up to date.
    As far as F4 help, depends on where you want to see it.  Within the classification view of the material master, it is possible to establish a validation in CT04 that will require your users to pick from an established validation list when they select the F4 key.  If you want F4 help in other places, you should consult your ABAP'ers, who should be able to set this up for you.
    Impact of a new characteristic/class is zero.  Impact of adding a characteristic to an existing class is dependent on your current use of the existing classes.  Writing reports which use these data is a well understood technique within the ABAP community.  Although the field will not exist in MARA table, it can still give you the same functionality as if it did.
    I do not recommend that you add a field to MARA, even though this is possible.  Although hotpack upgrades will leave a customer generated MARA field alone, whatever functionality you create to use this new field will be endangered with every OSS note and every hotpack upgrade you install.  Since Characteristics and Classes are considered master data, SAP hotpacks pretty much leave them alone.
    Regards,
    DB49

  • User defined field not visible "Conditions" tab

    I have created a user-defined field Z_E_PREIS that I want to use as a result-type of user field in condition table. When using a condition record that has this field, the field is not visible inthe "Conditions" tab of the transaction item. Why is that?
    Customizing activities done:
    - data element Z_E_PREIS (CHAR10) created with SE11
    - field catalog: field name "Z_E_PREIS" created in "Fields NotContained" tab, referring to data element Z_E_PREIS
    - BAdI /SAPCND/ROLLNAME activated for this field, for contexts CONTRACTand PRODUCT
    - condition table CUS9051 four fields:o search fields: sales org., distr.ch. and producto result field: Z_E_PREIS
    - access sequence Z951 with the fields from cond.tbl CUS9051- condition type ZZ51 using access sequence Z951, manual maintenanceallowed- pricing procedure ZZ901 with one condition type: ZZ51
    - determination of pricing procedure: sales org. 50004458 -distr.ch.01 - doc.pr.proc.Z
    - customer pr.proc. 1 => ZZ901
    - created transaction type ZF12 (doc.pr.proc Z) and item category ZV12and item category determination
    Master Data maintenance:
    - created condition maintenance group ZPRODCRM: added condition typeZZ51
    - condition maintenance group ZPRODCRM assigned to application CRM inMaster Data
    -> Products -> Special Settings for Sales Operations- created product ZTEST3, item category group U001, distributionchain "Rel Three - 01"
    - in ZTEST3, created three condition records for ZZ51 (sequential 2-week periods). User field Z_E_PREIS "Price Key" maintained for each of them.
    Best regards, Anders

    Hi Raja,
    Prior to trying Gordons option of unmarking and remarking them i would suggest you do a little more investigation as this can potentially change the field names in XL report and if you have any reports using them they may stop working (it can add a post fix of _1).
    Firstly, what are the fields set as in the User Defined Fields window in XL reporter?  Light Dimensions, Dimension Attribute or Measure?  If its a Dimension Attribute for example on the Business Partner UDF, it will not be visible in the tab section but should be shown if you drag and drop the Business Partner dimension in the report, then right click and choose display more attributes (dimension attribute UDFs will be in this list).  Light Dimensions and Measures should appear in the tabs.
    If they are set as a light dimension or measure and are not in the tab section, has this only just started happening or have they never been visible?  If its just started happening, having you recently upgraded to a new patch?  If so, in future you need to run a script on the Company and Common database prior to the patch upgrade.  If you did not run these scripts you will need to do Gordons solution but as I say, if any reports have UDFs in these may not work after and you will have to manually edit them.
    Regards,
    Adrian

  • User Defined field and User defined values.

    Curently testing this in the demo database before rolling it out to a customer.
    I added a user defined field to my item master data base called Lengthcm of type Amount.
    I have created a query:
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN $[oitm.blength1] * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN $[oitm.blength1] * 2.54 * 12
                      ELSE 0 END
    Length unit 5 is inches and length unit 6 is feet.
    In Item Maintenance then I create a user defined value for the lengthcm field linked to the query and set to auto-update when the blength1 field changes.
    This works perfectly for 1 inch through 9 inches (1" through 9") and fills in the centimeter value. When I put in a value in feet (1', 2'), it does nothing and if I put in any value of 10" or greater gives an error message:
    [Microsoft][SQL Server Native Client 10.0][SQL Server] Arithmetic overflow error
    converting nvarchar to data type numeric. 'Received Alerts' (OAIB).
    Checking database structure back end, blen1unit is of type small int, blength1 is numeric of size 19, 6 and so is my lengthcm field.
    Edited by: Danielle Ostach on Mar 18, 2011 8:18 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:19 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:20 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM

    Hi Danielle ,
    Try this...
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54 * 12
                      ELSE 0 END
    Regards,
    Sachin

  • BAPI User Defined Field

    Hi,
      My client has added an user define field in SO line level.  Now, i want use the BAPI to create the sale order.  How can i map the value to this user defined field??
    Regards,
    Kit

    VALUEPART2,VALUEPART3 and VALUEPART4 are also to be used for populating data in the custom fields.
    Lets say you have added a structure to MARA called STR1 which has 3 fields, 10 char each. You also need to create STR1X which has 1 character flags for the fields in STR1.
    To populate values in these fields u need to maintain the extension tables as below:
    BAPIPAREX-STRUCTURE         = 'STR1'.
    BAPIPAREX-VALUEPART1+0(10)  = '1st FLD'.
    BAPIPAREX-VALUEPART1+10(10) = '2nd FLD'.
    BAPIPAREX-VALUEPART1+20(10) = '3rd FLD'.
    APPEND BAPIPAREX.
    BAPIPAREXX-STRUCTURE       = 'STR1X'.
    BAPIPAREXX-VALUEPART1+0(1) = 'X'.
    BAPIPAREXX-VALUEPART1+1(1) = 'X'.
    BAPIPAREXX-VALUEPART1+2(1) = 'X'.
    APPEND BAPIPAREXX.
    If you have more than 60 fields you could split the fields in to multiple strucutres and populate the extensions for each structure.
    -Kiran
    *Please reward useful answers

  • RME + Common Services + User defined fields

    Hi
    We have installed CSM and RME +  MCP and are going to use RME now
    Does anybody using the 4 "user defined fields" at Common Services ?
    If yes , which data do you write to the fields ?
    sincerley Alfred

    Hi Alfred,
    These feilds are for the user defined values for the device location or any other value that you want to define for the device. Later on you can use these feilds for generating customized Inventory reports etc.
    So, lets suppose apart from all the other information like ios version of device, SysobjectID etc that being collected during the pharse of Inventory collection by RME, there are some more feilds/tags that you want to defined for the devices, you can mentioned it here and later on you will have the option to run the query on the basis of these parameters to get the reports for your specific devices.
    For more information, kindly refer to the below User guide :-
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.3/user/guide/invent.html
    Hope it helps,
    Many Thanks,
    Gaganjeet

Maybe you are looking for