SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR

Hello!
I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
Using the Query below, it works fine with already saved records:
SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
However, I need that it work with non saved (yet) records.
Thank you!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 22, 2010 10:14 PM

Gordon, thank you for your fast answers!
In other circumstances I would agree with you.
But the U_Soma field must be used to control the maximum weight of a charge.
It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
(The U_TotalPorUM field shows the weight of each item).
I would appreciate any help!
Thanks a lot!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM

Similar Messages

  • How to change the text of a user defined field in dynamic selections?

    Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
    Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
    Found an OSS note - 86980 - that tells that this is not possible.
    But when we read the documentation on the user field (CJI3 - dynamic selections  - double click on user field - F1), it shows the following text:
    User-defined field in which you can enter general information with a length of up to 20 characters.
    Dependencies
    The names (key words) for  user-defined fields depend on the field key.
    Now the question is where to change the field key..
    Thanks,
    Ven

    Madhu - you did not get the question I think.
    Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
    Thanks,

  • Good Issue date in the Sales order should 1 day difference from the MBDAT

    For the particular customer, i want to have difference of 1 day in between the material availability date & good issue date in the schedule line. As per standard i can't made any changes in route and shipping point. Suppose material availability date in sales order is 22.09.2010 than my good issue date should be 23.09.2010 in the sales order. Any body having any idea how can we handle this case and what are things we need consider impact of this change.
    Regards,
    Srinivas.

    Hi,
    I think you can easily enable this in Route scheduling /Delivery scheduling. You have to maintain the load time and pick/pack time as the total of 8hours. If this is done, then after material availability date, one more day will be added and the final day will be considered as GI date.
    If you dont want to do this, you only have to enable this by Z by using a user exit where you can add one day to the MBDAT and update that in GI date.

  • Combining two form fields from the same document, into one form field?

    I have a field called "first name" and one called "last name".  How do I create a third field called "full name".  I want it to just combine the first two.  Any ideas?

    In the field's calculation tab (under Custom Calculation), enter:
    event.value = this.getField("first name").value + " " + this.getField("last name").value
    Message was edited by: try67
    Forgot to paste a part of the code...

  • 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

  • Validating User Defined Fields on the OIM User Object

    Hello everyone,
    I'm currently using the OIM 11g, and am curious how to provide data validation for user defined fields.
    We currently have two user-defined fields for day of birth and month of birth, which have been set to required, but I would like to take this a step further and actually validate that the data being entered is numerical (two characters max), and if it's not, a red box appears around the field notifying the admin that the entry needs to fit the expected criteria.
    One example already in OIM is that of the email field. It appears to be using a regex to identify that data entered is of a certain format.
    Can anyone here point me in the direction of some proper documentation so that I may learn how to incorporate this into my environment? Thanks!

    Hi Kate,
    The only way to do it, is with Form Settings. Do not give them authorisations on Form Settings. You can then untick the "Active" tick box on certain fields and tick it on others. This can then be done, when you log on as the user him/herself.
    Regards
    Carin

  • Escalating user defined field

    Hi,
    iam new to SBO and i need to write add ons in VB.net code. we have a user defined field in purchase order and sales order.
    the reuirement is that a windows servisce program should run at regular intervals and trap the records  using tha user defined field.
    I need to write a stored procedure to capture those data.
    could u please help me ?
    thanks & regards
    --Ravi

    First, does the registry value actually exist on the workstation? At
    HKEY_LOCAL_MACHINE\Software\xxxxx.com\Location
    Second, how is the AutoFill set for that UDF? You'll find that in the Collection Option Set, in the "Collection Editor" tab, and you can edit it if "Run Collection Editor: Always" is turned on in the "General" tab.
    In the Collection Editor tab, find your UDF - Workstation, User, Inventory - and look at the AutoFill column. If it's set to "Always", then it should always populate during a scan. If it's set to "WhenEmpty", it'll only populate if nothing has already populated the field. If it's set to "Never", it'll never populate.
    Third, has an inventory scan run on the workstation in question? Nothing will be populated until a scan has taken place and the resulting WIF has been returned to the Collection Server and successfully loaded. You can force an immediate scan if you need to, but a scan must happen.
    -- Tim --
    Originally Posted by pcwoodring
    I have created a user-defined field called Location. I have set its default value to the following registry key -> %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on
    From the Web Asset Management window, it displays it as text, not retreiving the actual registry key
    What am I doing wrong?
    Example:
    Other Information
    Field Value
    Location %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on

  • User defined fields in task list

    What is the significance of adding user defined fields in task list operation?

    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

  • 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.

  • Addition of user defined fields in Results Recording screen (QE01)

    HI All,
    We've a business requirement to add user defined fields in results recording screen (Character Overview screen - QE01), so that the user will enter data in user defined fields during results recording. and the data entered in user defined fields should be saved in data base table along with actual results given by the user in order to retrieve data for reporting purpose.
    Please suggest valuable solutions to acheive the requirement.
    Thanks & regards,
    rajesh

    Hi Sujit,
    Thanks for your reply,
    We've tried using the " QEEM0029 User-Exit for Characteristic Overview Subscreen , however with "QEEM0029"  exit, we are only able to add fields to the characteristics overview screen and there is no provision in this exit to save the data entered in the user fields to a table (QALS,QAMR, QASE).
    Please suggest!
    Thanks & regards,
    rajesh

  • User defined field in CO01,CO02 ?

    Dear Gurus,
    My client want a User define Field in Production order , just for information purpose
    How can I Create a user define field in this transaction ( CO01 / CO02 )
    Pl. Guide
    Regards,
    Ishwar

    Hi,
    Go to operation view in the SFO. Select the operation, then follow menu path Operation - Operation details (key board shortcut - F7). Now you will find some tabs, the tab user field is somewhere near the end so you would need to proceed to the right.
    Once you're in that tab, select the field you defined & hit enter. The fields will be displayed.
    Also the user-ext PPCO0006 is used to default values to order header fields, i am not sure how this can be used to add tabs in order header.
    Regards,
    Vivek

  • User defined fields in Resource object; Resource object form

    Hi,
    Can anyone tell me what is the purpose of having user defined fields for resource object and resource object form and how can we use those fields while requesting for target resource.
    Regards,
    Alabhya Goel

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

  • User defined fields in SC with searchhelp ?

    is it possible to link a searchhelp to user defined fields in a shoppincart ?
    I have already defined 2 fields in ZINCL_EEW_PD_ITEM_CSF which I can see and edit when I create a shoppincart, but for 1 field I would like to add a searchhelp which connects to the backend for retrieval of possible values. is this possible ?
    kind regards
    arthur de smidt

    Hi Arthur,
    Yes, this is possible
    Follow the below text in note 672960 User-defined fields 2
    ===
    Search results                                                           
    You have the option to see user-defined fields in the list of search     
    results. To specify them, use the following structures depending on the  
    document type:                                                                               
    Doc.type Set type Structure name                                  
           SC HEADER INCL_EEW_PD_SEARCH_HDR_CSF_SC                           
           SC ITEM INCL_EEW_PD_SEARCH_ITM_CSF_SC                             
           PO HEADER INCL_EEW_PD_SEARCH_HDR_CSF_PO                           
           PO ITEM INCL_EEW_PD_SEARCH_ITM_CSF_PO                             
           QUOT HEADER INCL_EEW_PD_SEARCH_HDR_CSF_QUT                        
           CONF HEADER INCL_EEW_PD_SEARCH_HDR_CSF_CNF                        
           INV HEADER INCL_EEW_PD_SEARCH_HDR_CSF_INV                                                                               
    Search criteria                                                          
    You can also use user-defined fields as search criteria. To do this, you 
    have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the 
    fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN.   
    The so                                                                   
    The fields defined this way are displayed if you choose the 'Extended    
    search' link.                                                            
    ===
    Also the below notes may help,
    752586     Customer fields in extended classic scenario             
    732112     CUF. Customer fields on item level disappear             
    728782     CUF. Account assignment fields disappear when openi      
    710474     CUF. User-defined fields on search screen                
    683684     CUF. Values are not transferred from input help          
    672960     User-defined fields 2                                    
    458591     User-defined fields: Preparation and use
    Kind Regards,
    Matthew

  • User Defined Field

    In Item Master Data ( General Tab)  an Option is available as  <b>Excisable</b>
    Under neth Specified as Material Type :<b>1. Finished Goods
                                                              2. Capital Goods
                                                              3. Raw Materials</b> which are Predefined.
    Now can we Have a provision as <b>Define New</b> in this Box.
    If I would like to add with the Help of User Defined Field process will it be help ful can  any body guide me.

    User Defined Fields can be managed by choosing User Defined Fields and Manage User Defined Fields from the Tools menu. I'm not sure about yours but on our system the UDFs we use are under the Marketing Documents tab.
    Click Marketing Documents and Title. Make the Title row highlighted in yellow and click ADD. It is then up to you what you call your UDFs. Make sure they are in the correct format (Alphanumeric etc)

  • Passing user-defined field to Backend system

    Hi All,
    Please advice how we can pass user-defined fields of shopping cart to same user-defined fields in purchase requisition/purchase order in backend R/3 system.
    I know there is parameter IT_CUF_ITEM in BADI BBP_CREATE_REQ_BACK. If anyone know how to pass field values by this parameter or otherwise, it will be very helpful to me.
    Thanks & Regards,
    Kamaljit Singh

    Hello Kamaljit,
    If you want to pass the custom parameters then you can use the badi BBP_CREATE_PO_BACK/BBP_CREATE_REQ_BACK to fill the header/Item level parameters.
    while building the item level parameters internal table, make sure that you are passing the header guid and the item number and the R/3 BackEnd table name,Fieldname(R/3 Custom Fieldname) with the value(SRM Custom field value).
    Hope this information will be useful to you.
    Regards,
    Mani.
    Please assign points for usefull answers
    Message was edited by: Mani Sreedharala

Maybe you are looking for