User field in a document row

is possible to edit e udo field into a document row which is of TEXT type?
I have to specify a category of the row of any type.
Edited by: Mauro Trevisan on Mar 9, 2012 5:02 PM

Hi There,
Can you please explain a bit more about what you want to do  and where?
Unless your line is not closed you can do the editing .
Regards

Similar Messages

  • User field in FI document

    Hi guru,
    is it possible to add an user field in the position of FI document?
    Thanks in ad

    Hi
    Through Change layout you can get the user field in FI document.
    Rgds
    Vani

  • Update document lines user fields

    Hi,
    I'm trying to update a user field of a purchase invoice line through the DI API.
    The Update method returns 0, but the field isn't updated!
    I use this code:
    Dim RetVal As Integer
    Dim Doc As SAPbobsCOM.Documents = DirectCast(Company.GetBusinessObject(oPurchaseInvoices), SAPbobsCOM.Documents)
    If Doc.GetByKey(_CurrentDocId) Then
        Doc.Lines.SetCurrentLine(0)
        Doc.Lines.UserFields.Fields.Item("U_CONAI").Value = "Y"
        Doc.UserFields.Fields.Item("U_IB_OldProtI").Value = 987
        RetVal = Doc.Update()
        If RetVal <> 0 Then Beep()
    End If
    Updating a user field on the document (not on the lines) works fine!
    Can anyone help me please?
    I'm using SAP 8.8 SP 0 PL 11
    Thank you
    Paolo

    Hi Paolo,
    I think the reason behind the inability to change document row data, and also most of the header data, is due to both legal requirements and information transparency (mainly accounting, stock and taxes).
    I share your view that the update function should return a value other then 0 when the document is not updated. You can suggest this change by opening a post in the Product Development Collaboration forum.
    Kind Regards,
    Vítor Vieira

  • Create User-defined field for Marketing Documents

    I need to create a User-Defined field for Marketing Documents under Title and Rows.
    I need to do it via .NET instead of manually go into SAP to create it.
    Does anyone can give me idea on how to do this?

    Hi David,
    There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
    There are also examples in the SDK help. Here's one:
    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to addremove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub
    Kind Regards,
    Owen

  • User exit MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    Hi,
    Indeed the exit which you have specified MM06E005 comprises the enhancement for customizing fields and screens associated with it. may be you might not have activated the screen associated with the exit. the screen might have been created but missed while activating.
    Regards,
    Jagath

  • User defined field in marketing documents

    Hi All,
             How to add user defined field in marketing documents using Programtically.
    Thanks,
    P.Suresh Kumar.

    Private Sub AddUserField()
    '// The UserFieldsMD represents a meta-data object that allows you
    '// to add\remove fields from tables or change the fields' characteristics
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent a collisions.
        '// The meta-data object needs to be initialized with a
        '// regular UserFields object
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space
        '// this will prevent collisions between the various partners add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the Fields' mandatory properties
        oUserFieldsMD.TableName = "OCRD" '// BP table
        oUserFieldsMD.Name = "BE_UserField1"
        oUserFieldsMD.Description = "A user field"
        oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
        oUserFieldsMD.EditSize = 20
        '// Add the field to the table
        oUserFieldsMD.Add
    End Sub

  • Setting UserField values in document rows

    Hi all
    This is the discription of my problem:
    I have SP1 PL4, moreover I created 2 user Fields in the row’s of documents they are named: U_AnzVE, U_AnzPal
    By code I try to do the following:
    I add a new entry for example a Purchase Order (or any other SAPbobs.Documents). In the row I set the values of the UserFields.
    And at this point my problem ocurs:
    à Each time I set a Field it automaticly adds a new line and the Field value is not set even!
    Here is my Code:
    namespace COR_TestFieldUpdate
        class TesterStart
            public static void Tester()
                try{
                    SAPbobsCOM.Documents purch = (SAPbobsCOM.Documents)SwissAddonFramework.B1Connector.GetB1Connector().Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
                    purch.CardCode = "100160";
                    purch.DocDueDate = DateTime.Now;
                    purch.Comments = "Comment";
                    for (int i = 0; i < 10; i++)
                        purch.Lines.ItemCode = "IT0940211001.5";
                        purch.Lines.Quantity = i;
                        purch.Lines.ShipDate = DateTime.Now;
                        System.Diagnostics.Debug.WriteLine("cout of lines is:" + purch.Lines.Count);
      //here occures the problem a line is added to the pruch.lines without the Lines.Add command!:
      //And as I said the Value is not set eather...
                        purch.Lines.UserFields.Fields.Item("U_AnzVE").Value = "100";
                        System.Diagnostics.Debug.WriteLine("cout of lines after setting U_AnzVE is:"+purch.Lines.Count);
                     //And here again:
                        purch.Lines.UserFields.Fields.Item("U_AnzPal").Value = "100";
                        System.Diagnostics.Debug.WriteLine("cout of lines after setting U_AnzPal is:" + purch.Lines.Count);
                        if (i != 10 - 1)
                            purch.Lines.Add();
                    ErrorHandler(purch.Add());
                catch(Exception e)
                { System.Diagnostics.Debug.WriteLine("Exeption :"+e.Message); }
            private static void ErrorHandler(int lRetCode)
                string sErrMsg = "";
                int lErrCode = 0;
                if (lRetCode != 0)
                    SwissAddonFramework.B1Connector.GetB1Connector().Company.GetLastError(out lErrCode, out sErrMsg);
                    System.Diagnostics.Debug.WriteLine(lErrCode + " " + sErrMsg);
                    throw new Exception(lErrCode + " " + sErrMsg);
    And this is the output that it is generated:
    cout of lines is:1
    cout of lines after setting U_AnzVE is:2
    cout of lines after setting U_AnzPal is:3
    cout of lines is:4
    cout of lines after setting U_AnzVE is:5
    cout of lines after setting U_AnzPal is:6
    cout of lines is:7
    cout of lines after setting U_AnzVE is:8
    cout of lines after setting U_AnzPal is:9
    cout of lines is:10
    cout of lines after setting U_AnzVE is:11
    cout of lines after setting U_AnzPal is:12
    cout of lines is:13
    cout of lines after setting U_AnzVE is:14
    cout of lines after setting U_AnzPal is:15
    cout of lines is:16
    cout of lines after setting U_AnzVE is:17
    cout of lines after setting U_AnzPal is:18
    cout of lines is:19
    cout of lines after setting U_AnzVE is:20
    cout of lines after setting U_AnzPal is:21
    cout of lines is:22
    cout of lines after setting U_AnzVE is:23
    cout of lines after setting U_AnzPal is:24
    cout of lines is:25
    cout of lines after setting U_AnzVE is:26
    cout of lines after setting U_AnzPal is:27
    cout of lines is:28
    cout of lines after setting U_AnzVE is:29
    cout of lines after setting U_AnzPal is:30
    C:Dokumente und EinstellungenSAP_AHLokale EinstellungenTemp
    SwissAddonDebug.log
    -5002 Item no. is missing  POR1.ItemCode[line: 30]
    Ofc the item code is missing in the 20 lines I didn’t want to add!!!
    Do I do something wrong or is it a API Problem?
    regards
    Andreas

    Sorry no this is not the problem
    It all works fine with:
    if (i != 10 - 1)
        purch.Lines.Add();
    the problem is that:
    purch.Lines.UserFields.Fields.Item("U_AnzVE").Value = "100";
    is adding a line and is not setting the value.
    if u think about it in this case:
    if (i != 10 - 1)
        purch.Lines.Add();
    and
    if (i != 0)
        purch.Lines.Add();
    have the same effect
    even:
    if (i != 10 - 5)
        purch.Lines.Add();
    would have the same effect
    most important thing is that purch.Lines.Add() is left out one time in the for-loop. (well I tried it your version and it didn't work eather)
    well anyway the problem is:
    there are 30 lines if I do
    purch.Lines.UserFields.Fields.Item("U_AnzVE").Value = "100";
    purch.Lines.UserFields.Fields.Item("U_AnzPal").Value = "100";
    where there should be only 10 lines!
    I assure u It all works fine without these code-lines (but I need them:-))
    Message was edited by: Andreas Hauri

  • Copy field in  a  user  field

    hi,
    i want to copy entry invoice  description field of a single article code ( description change for lines)  in a user field that's i've created in creation serial numbers form when i insert manual serial number. anyone can help me? thanks

    You will need to create a formatted search to a column at the Invoice row.  The formatted search will insert the ItemCode, Description, Currentlogged User, Invoice No to a temp table.
    In the Serial Number screen you will attach another FMS which will read the Item desciption from this temp table.
    If the Item Description does not change in every document and is the same as the Item Master, you can simple read it from the Item Master without any of the above procedures.
    SELECT T0.ITEMNAME FROM [DBO\].[OITM\] T0 WHERE T0.ITEMCODE = $\[$5.17.0]
    Note: ItemCode column should be visible in the Available Serial Number window

  • User field in goods entry form

    Is it possible to create a user field in goods  entry form production? I tried but It's possible  only to fill the order  production. thanks

    To add user defined fields to either the issue from production or the receipt from production then you need to add the user fields to the marketing document rows.  Then if they are not visible in the forms you will need to use the form settings.
    Regards,
    Adrian

  • Query help needed for Sales order panel user field query.

    I have a user defined form field on sales order row level called = U_DEPFEEAMT
    1, I would like this field to get the value from a field on this sales order row level multiplied by what is in point 2 below. The details of field in point 1 is :
    Form=139, item=38, pane=1, column=10002117, and row=1
    2. The contents in field 1 should be multiplied  by a value coming from another user field linked to OITM master item.
    The details of user field attached to OITM is :
    OITM.U_DepositFeeON
    Appreciate your help.
    Thank you.

    Try this one:
    SELECT T0.U_DepositFeeON*$[$38.10002117.number\]
    FROM dbo.OITM T0
    WHERE T0.ItemCode = $[$38.1.0\]
    Thanks,
    Gordon

  • MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a  tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    got my solution...

  • In FBL5N report user wants the sales document number to be displayed,

    HI, Guys
    Need ur help to sort out the problem
    In FBL5N report user wants the sales document number to be displayed,
    but the sales ducument number column is coming blank and this needs to pick from VBRP table
    As I discussed with Abaper, he reqiures a key field which common in BSEG abd VBRP table
    So,Please guide me in approaching the right way
    Munender

    Hi,
        Speak with your SD consultant. They can set up the copy control in SD so that the sales order is populated in the invoice in field ZUONR (Assignment).This will then copy to the assignment field in accounting.
    Alternatively you can use an exit to populate another field during the Posting.
    Kind regards

  • HELP!  JOB ON THE LINE-  Need to import fields from one document to another document

    In a nutshell I have a set of documents and we now have a new structure for those documents. Either I have to cut and paste all the data from one to another or figure out how to import fields to another document.
    I have two documents. Both are different but require the same information. Basically I need to have one file with fields import specified fields from another document. Ex., Name on document 1, I need the file to know to get the Name field on document 2 and import it into the specified field on document 1. I will have multiple fields that need to do this importing. I REALLY NEED TO FIGURE THIS OUT B/C I HAVE A TON OF DOCUMENTS THAT NEED TO BE COMPLETED.

    If you are talking about the field structure, not the content that Bernd commented on, make a copy of the document with the fields. Open the file and use replace pages to replace the pages with the new document layout. After you have replaced the pages, you will have to select the field tools and move the fields to the proper location. If the form was made in Designer, I am not sure of the process. There is likely a similar process in Designer, but I don't use Designer and can't comment. You may have to go to the Designer forum in such a case, unless other Acrobat users here can help.

  • How to set "Created By" field for KD Documents

    In our system documents that are entered to the Knowledge Directory are not tagged with who it was that submitted them.
    We would like to capture that information but I'm not sure how to enable it (or if its possible).
    I've looked at the Global Property Map and don't see a setting for a document, I looked at the Global Document Map but that seems to specifically relay info between the documents meta data and portal properties (which is not what I'm looking to do).
    Does anyone know how to attach the portal user in some type of "submitted/created by" field to a document?
    Thanks and happy September!

    Hello Keshav.T,
    Thank you for your information.
    Finally, I got an answer from OSS and the following is that.
    The popup is shown when there are more than 10 variants exist.
    If do not want to have this popup, you can modify the include
    LSVARTOP in SE38:
    C_VARILIST TYPE I VALUE '10' - maybe change value to '100'
    or if you want to have the popup but without the name inside:
    change include LSVARE01 and comment the line:
    ename-low = sy-uname. append ename. "old
    ename-low = sy-uname. append ename. "new
    I believe this message might be able to solve my problem.
    Thanks again.
    BR,
    Chris Kim

  • How to add a message to a field in a dataTable row?

    I have a dataTable with a var "selectedUser". Each row has a 2 fields: username & password, both editable and 2 buttons: save and delete. In the "UsersControllerBean.updateUser" method associated with the update button, I want to be able to add an error message to the field on the corresponding row where the button has been clicked. How can I retrieve the client Id of the field from the "selectedUser" var associated with the dataTable (that I get from the RequestMap) to add the message to it?
    Is there an easier way of doing this? (no, thanks no link button!)
    Thanks
    Fred
                   <h:form id="users">
                   <h:dataTable border="1" width="100%" value="#{UsersControllerBean.usersList}" var="selectedUser">
                        <h:column>
                             <f:facet name="header">
                                       <h:outputText value="Id"/>
                             </f:facet>
                             <h:outputText value="#{selectedUser.userId}"/>
                        </h:column>
                        <h:column>
                             <f:facet name="header">
                                       <h:outputText value="Name"/>
                             </f:facet>
                             <h:inputText id="username" required="true" value="#{selectedUser.username}"/>
                             <h:message for="username" style="color: red"/>
                        </h:column>
                        <h:column>
                             <f:facet name="header">
                                       <h:outputText value="Password"/>
                             </f:facet>
                             <h:inputText id="password" value="#{selectedUser.password}"/>
                             <h:message for="password" style="color: red"/>
                        </h:column>
                        <h:column>
                             <f:facet name="header">
                                       <h:outputText value="Actions"/>
                             </f:facet>
                             <h:commandButton value="Save" action="#{UsersControllerBean.updateUser}"/>
                             <f:verbatim>��</f:verbatim>
                             <h:commandButton value="Delete" action="#{UsersControllerBean.deleteUser}" immediate="true"/>
                        </h:column>
                   </h:dataTable>
                   </h:form>

    Dear Friends,
    Finally, I got the answer.
    I required to add the messages to error log for invoice. Error log is displayed in Tree format.
    The error log getting displayed while processing invoice with help of table VBSK.
    We can update the VBSK table information with required message to put in log.
    Best regards,
    Amol Chaudhari.

Maybe you are looking for

  • Apple IDs Simplified - a little

    In general I am beginning this thread to open a dialog around best practices as it pertains to multiple Apple Ids in one household. To illustrate the complexity we have created in our home I will share some of the details. We currently have: 1 iMac 1

  • Can we have a Real batch process

    The current batch process functionality in Audition records not keystrokes, but settings; so if you record a process using the ClickPop Eliminator functionality under Restoration, you get whatever settings you used with the sound sample you used duri

  • 404 Error when viewing Wiki or Profile Manager in a browser

    I have been struggling with Lion Server for a numbers of months now and am very frustrated with the difficulty of diagnosing what seem to be very simple issues. In particular I have Profile Manager and Wiki Server both behaving properly when configur

  • How to extract PDF files into the directory the PDF file is located in.

    I use Adobe Acrobat to extract all the pages within a single PDF file to single page PDF files.  However the steps are long, as the path to a directory where i wish to extract is thru the net work and the default location for Adobe is to my C:Drive..

  • Light Ambient vs Directional

    Hi, does anyone has an idea why my geometry is not reflecting directional light . Yes, I did put the normals and the material. I clearly see that there is an effect with ambient light but not with directionnal. WHY, I"M BECOMING CRAZY! LV