Document numbering for User Define Object

Hi,
Anyone know how to use numbering series in UDO?
I've created 3 doc series for the object. one off the series is the default. When i select other doc series on my form, after I add the doc, the series code is captured but the the number is wrong. it took the default number.
eg..
Series A: 1-999 as default
Series B: 1000 -1999
I pick B and add, Series code is ok but the number taken is from series A.
Q.

Hi Andy,
The system is supposed to get the correct number as you would expect. However there is a bug in  SAP Business One 2007 A Release.
If you have access to the Note 1266379 you can see the detailed scenario as described by you.
Currently the issue is planned for fixing in February 2009 patch for 2007A. You can check the info.txt file to see if the fix was included.
Kind Regards,
Friederike
SAP Business One Forums Team

Similar Messages

  • Manual document number in User-Defined Object

    Hi Experts,
    I have a user-defined object of document type.  I am trying to post a document using the General Service. However, I cannot assign manual document number.  There is no handwritten property available.  Is it possible to assign manual document number in user-defined objects using the DI API?
    Thanks.
    Melvin

    Hi,
    This issue has been resolved.  For the benefit of those who will be encountering this error, it was resolved by manually assigning the Handwrtten field to 'Y'.  Here is the code fragment:
    shipmentHeader.SetProperty("Handwrtten", 'Y')';

  • Crystal Report Templates for User-Defined Objects

    Hello Experts,
    I am running SAP B1 8.8 PL11. In the current patch SAP has default Crystal Reports that can be used as Layouts for Invoices, Credit Memo's so on. Is it possbile to have layouts for user defined objects ( say for instance i have a customized form under sales module, can i import a crystal template for this customized form?). In the report layout manager i don't see an option to import user-defind objects.
    Any help would be appreciated.
    Thanks,
    Praneeth

    If this is still a problem please re-post to the SAP Integration Kit forum.

  • Portal Entitlements for user defined objects

    Hi,
    The UUP aggregates the user profile information from different backed data sources.
    One of the properties in the propertyset is a multivalued property. I populate
    this by the following code:
    PropertyMapKey propertyMapKeyM = new PropertyMapKeyImpl(null,"DA_Privilege");
    String str="LAB1_CAPLinks_ViewReports" + "," + "LAB1_CAPLinks_EditReports"; //hardcoded
    for testing
    propertyCache.put(propertyMapKeyM,str);
    (This code resides in the MyEntityPropertyManager)
    When I go to the portal administration screen, I do not see the values, it instead
    only gives me the object id of the java String array.
    Could someone please help me with the following questions:
    1. How do I populate the multivalued property ? I see in documentation that there
    is 2 different PropertyCache implementation......confused which one to use and
    how.
    2. Is there a way to define user defined objects in UUP and have portlets entitled
    to the state of the object ? (a custom entitlement code)
    3. Any sample code would be helpfull
    Thanks,
    Uday

    Thank You Greg. Now it works.
    -Uday
    Gregory Smith <[email protected]> wrote:
    I'm not totally sure, but I would imagine you want to put a List of
    Strings into the propertyCache if the property is supposed to be
    multivalued text, e.g.:
    PropertyMapKey propertyMapKeyM = new PropertyMapKeyImpl(null,
         "DA_Privilege");
    List strs = new ArrayList(2);
    strs.add("LAB1_CAPLinks_ViewReports");
    strs.add("LAB1_CAPLinks_EditReports");
    propertyCache.put(propertyMapKeyM, strs);
    I know that all of the code that calls the UUP and property sets code
    expects a Collection back from a multivalued property (but I'm not sure
    about a UUP implementation).
    Greg
    Udayraj Nair wrote:
    Hi,
    The UUP aggregates the user profile information from different backeddata sources.
    One of the properties in the propertyset is a multivalued property.I populate
    this by the following code:
    PropertyMapKey propertyMapKeyM = new PropertyMapKeyImpl(null,"DA_Privilege");
    String str="LAB1_CAPLinks_ViewReports" + "," + "LAB1_CAPLinks_EditReports";//hardcoded
    for testing
    propertyCache.put(propertyMapKeyM,str);
    (This code resides in the MyEntityPropertyManager)
    When I go to the portal administration screen, I do not see the values,it instead
    only gives me the object id of the java String array.
    Could someone please help me with the following questions:
    1. How do I populate the multivalued property ? I see in documentationthat there
    is 2 different PropertyCache implementation......confused which oneto use and
    how.
    2. Is there a way to define user defined objects in UUP and have portletsentitled
    to the state of the object ? (a custom entitlement code)
    3. Any sample code would be helpfull
    Thanks,
    Uday

  • Base Document and Target Document Menu for User Defined Forms

    Hi Experts,
    I am facing a problem regarding enabling the menu "Base Document" Menu UID="5898" and "Target Document" Menu UID="5899" . Both of these menu Items are not enabled for User Defined Form .Actually I have developed a user Defined form for Purchase Requisition that targets Purchase Order . User can Copy Line Items From Purchase Requisition to Purchase Order and I am tracking the DocEntry and LineId of PR into PO Item's using UDS . I want to Open this PR Document upon Click of BaseDocument Menu .I have tried all the options. I have used Form.enableMenu() method also . But none of those options work for this menu . I ahve also searched about this problem i this forum also but there is no soultion so far posted regarding this.
    I really want to confirm whether it is possible or not using SDK for User Defined Forms . Is there any possiblity of implementing any WorkArounds and Having this feature implemented .
    I am Expecting a true solutions as this Forum has so many Experienced Experts .
    Thanks and Regards,
    Pooja Singh.

    Hello Poja,
    It is not possible, because the requested menus are depending on the forms, and the are not exists,
    WorkAround:
    add the menus to the User Defined forms, and use right click to activate them:
    oForm.Menu.Add("5898", "Base Document", BoMenuType.mt_STRING, oForm.Menu.Count)
    oForm.EnableMenu("5898", True)
    And hanle the menu event when you clicked them and the form is your custom form.
    Regards,
    János

  • CFL for user defined object in matrix

    I am creating CFL for city .For this I created a user defined table and later registred it to create the object of City.I created the CFL for City as ,
    Private Sub AddCFL()
            Dim intI As Integer
            Dim objCFLsName As SAPbouiCOM.ChooseFromListCollection
            Dim objParaName As SAPbouiCOM.ChooseFromListCreationParams
            Dim objCFLName As SAPbouiCOM.ChooseFromList
            Dim objCons As SAPbouiCOM.Conditions
            Dim objCon As SAPbouiCOM.Condition
            Try
                objForm = SBO_Application.Forms.ActiveForm
                For intI = 0 To objForm.DataSources.UserDataSources.Count - 1
                    If objForm.DataSources.UserDataSources.Item(intI).UID = "CityName" Then
                        Exit Sub
                    End If
                Next
                objForm.DataSources.UserDataSources.Add("CityName", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                objCFLsName = objForm.ChooseFromLists
                objParaName = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                objParaName.MultiSelection = False
                objParaName.UniqueID = "CFL"
                objParaName.ObjectType = "City"
                objCFLName = objCFLsName.Add(objParaName)
                objCons = objCFLName.GetConditions
                objCon = objCons.Add
                objCon.Alias = "U_Active"
                objCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                objCon.CondVal = "Y"
                objCFLName.SetConditions(objCons)
            Catch ex As Exception
                SBO_Application.MessageBox("AddCFL()=" & ex.Message)
            End Try
        End Sub
    I want to load city names in matrix using this cfl.For this, I added few blank rows in matrix.Then I binded the matrix as ,
    Private Sub BindMatrix()
            Dim objColumns As SAPbouiCOM.Columns
            Dim objColumn As SAPbouiCOM.Column
            Dim matDetails As SAPbouiCOM.Matrix
            objColumn = objColumns.Item("CityName")
                objColumn.DataBind.SetBound(True, "", "CityName")
                objColumn.ChooseFromListUID = "CFL"
                objColumn.ChooseFromListAlias = "CityName"
                objColumn.Editable = True
    matDetails.LoadFromDataSource()
    End Sub
    Problem is created by ChooseFromListAlias .It gives error as,
    Data Source - Alias Not Found
    If I remove that statement, the cfl fires when I press tab in the matrix.But I can not set value in the matrix.

    I created CFL as,
    Private Sub AddCFL()
            Dim intI As Integer
            Dim objCFLsName As SAPbouiCOM.ChooseFromListCollection
            Dim objParaName As SAPbouiCOM.ChooseFromListCreationParams
            Dim objCFLName As SAPbouiCOM.ChooseFromList
            Dim objCons As SAPbouiCOM.Conditions
            Dim objCon As SAPbouiCOM.Condition
            Try
                objForm = SBO_Application.Forms.ActiveForm
                For intI = 0 To objForm.DataSources.UserDataSources.Count - 1
                    If objForm.DataSources.UserDataSources.Item(intI).UID = "CityName" Then
                        Exit Sub
                    End If
                Next
                objForm.DataSources.UserDataSources.Add("CityName", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                objCFLsName = objForm.ChooseFromLists
                objParaName = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                objParaName.MultiSelection = False
                objParaName.UniqueID = "CFL"
                objParaName.ObjectType = "City"
                objCFLName = objCFLsName.Add(objParaName)
                objCons = objCFLName.GetConditions
                objCon = objCons.Add
                objCon.Alias = "U_Active"
                objCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                objCon.CondVal = "Y"
                objCFLName.SetConditions(objCons)
            Catch ex As Exception
                SBO_Application.MessageBox("AddCFL()=" & ex.Message)
            End Try
        End Sub
    Private Sub BindMatrix()
            Dim objColumns As SAPbouiCOM.Columns
            Dim objColumn As SAPbouiCOM.Column
            Dim matDetails As SAPbouiCOM.Matrix
            Try
                If SBO_Application.Forms.ActiveForm.UniqueID = "TourDetails" Then
                    matDetails = SBO_Application.Forms.ActiveForm.Items.Item("matDetails").Specific
                Else
                    matDetails = objForm.Items.Item("matDetails").Specific
                End If
                objColumns = matDetails.Columns
                objColumn = objColumns.Item("#")
                objColumn.DataBind.Bind("objDT", "#")
                objColumn.Editable = False
                objColumn = objColumns.Item("CityName")
                'If strPara = "Edit" Then
                objColumn.DataBind.Bind("objDT", "CityName")
                'Else
                '    objColumn.DataBind.SetBound(True, "", "CityName")
                'End If
                objColumn.ChooseFromListUID = "CFL"
                'objColumn.ChooseFromListAlias = "CityName"
                objColumn.Editable = True
                objColumn.Width = 290
                objColumn = objColumns.Item("NoOfVisits")
                objColumn.DataBind.Bind("objDT", "NoOfVisits")
                objColumn.Editable = True
                objColumn = objColumns.Item("FromDate")
                objColumn.DataBind.Bind("objDT", "FromDate")
                objColumn.Editable = True
                objColumn.Width = 80
                objColumn = objColumns.Item("ToDate")
                objColumn.DataBind.Bind("objDT", "ToDate")
                objColumn.Editable = True
                objColumn.Width = 80
                matDetails.LoadFromDataSource()
            Catch ex As Exception
                SBO_Application.MessageBox("BindMatrix()=" & ex.Message)
            End Try
        End Sub
    Edited by: Dilip Kumbhar on Mar 31, 2010 10:02 AM

  • Transaction Notification For User Defined Object

    Dear Expert,
    I want to create a transaction notification for my user defined form. I have a matrix on my form which has a field as 'Code'. I want that this field (On Row Level) should have unique values all the time while adding or updating the form.
    Object Type: MaterialMaster
    Table Name: MaterialDetails
    FieldName: U_Code
    Plz help me to get this notification.
    Regards

    Hi Amit,
    Please check below query.
    IF @object_type = 'MaterialMaster' AND @transaction_type IN('A','U') and @error = 0
    BEGIN
    IF ( SELECT COUNT(*)
    FROM MaterialDetails A
    WHERE A.U_Code IN (SELECT U_Code FROM MaterialDetails WHERE  U_Code = @list_of_cols_val_tab_del)
    GROUP BY A.U_Code
    HAVING COUNT(*) > 1
    ) >1
    BEGIN
      set @error = -10
      set @error_message = 'You can not Add Dublicate Code'
    END
    End
    Hope this help
    Regards::::
    Atul Chakraborty

  • Avoid duplicate manuval document numbering for users screen

    Hai to All.
                     Here we give manual docment numbering (user can enter any number that store in docnum) for our screen.It allow duplicate docnum to save.It gave an error as stoped by ui dpi.But it save the record.How can i avoid other than sbo transaction procedure?
                    Any body can u help me ? urjent please...........
    Regards,
    Ramya.

    Hi,
    Please post this question in the sap Business One SDK Forum
    SAP Business One SDK
    Why canu2019t we maintain the user document number as a primary key and also the unique. As you said we can able to stop such a document number duplication issues in SP Transaction Notification.
    Thanks and Regards,
    Senthil Maruthappan.
    Team Work Never Fails.

  • Regarding creation of document number for user defined form

    Hi all,
    we had created a form , but we don't no how to generate document number as in sap
    we created but it is not creating automatically
    after adding only it is showing that number in series
    but i need that number at the time of opening only

    hi srvanth
    Use this code in a data binding of the form to load automatically the doc numbers
        ds = oform.DataSources.DBDataSources.Add("@TODACT")
            oform = oapp.Forms.ActiveForm
            Dim reset As SAPbobsCOM.Recordset
            Dim qsr As String
            reset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            qsr = "SELECT max(T0.DocNum) as c  FROM [dbo].[@TODACT]  T0"
            reset.DoQuery(qsr)
            If reset.Fields.Item("c").Value <= 0 Then
                a = 1
            Else
                a = (reset.Fields.Item("c").Value) + 1
            End If
            oitem = oform.Items.Item("doct")
            oedit = oitem.Specific
            oedit.DataBind.SetBound(True, "@TODACT", "DocNum")
            oedit.Value = a
    this will load document number everytime you load the form at the edit box with unique id "doct"
    hope this helpful
    you have to bind this edit box with DocNum Userfield of the table.
    report back if there is any error
    Regards
    Cool Ice
    Edited by: Cool Ice on Aug 19, 2008 7:20 AM

  • Using User Defined Object in B1if

    Hello Expert,
    I am trying to configure the B1if scenario for User Defined Object, But when i check the consistency of the scenario there are three issues
    1. 0142 vBIU warning - inbound - channel: defined object identifier is not listed in the repository 
    2. 0259 vBIU inconsistency - outbound - details: 'Service Method Identifier' is not correct
    3. 0262 vBIU inconsistency - outbound - details: 'Get Method Identifier' is not correct
    I have prepared the Test as a UDO in SAP B1.
    *CONFIGURATION*
    Scenario Step Definition INBOUND - CHANNEL
    Channel : INB_B1_EVNT_ASYN_EVT
    Type : SAP Business One
    Mode : Asynchronous
    Trigger : B1Event
    Object : Test
    Identification Parameter : n.a.
    Namespace Definition :  n.a.
    Retrieval
    Method  : Retrieval
    Adapter :  DI API
    Type : Service
    Rule Document  :
    id : GeneralService
    type : get
    method : getByParams
    tag : TestParams
    keys :  Code(Code)
    Outbound Phase
    Channel : OUT_B1
    Type : SAP Business One
    Format : DI Service
    Regards
    Vijay Barapatre

    Hi All,
    I have a UDO with one Table and Code and Name as fields, when I add data in SAP with the default screen I want to trigger it in B1IF, I have tried identifier 152, 153 and many more.
    But my trigger keeps returning blank so it doesn't go through to my processes.
    <?xml version="1.0" encoding="utf-8" ?>
    - <Msg xmlns="urn:com.sap.b1i.vplatform:entity" xmlns:b1il="urn:com.sap.b1i.sim:b1ilog" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" MessageId="13102816541180273503C0A80079CC46" BeginTimeStamp="20131028165411" recording="true" logmsg="0009" msglogexcl="false" MessageLog="true"> 
    - <Header> 
    <msglog step="Default message log" always="false" b1ifactive="true" />  
    - <Resumption> 
    <starter ipo="/vP.0010000119.in_BEAE/com.sap.b1i.vplatform.runtime/INB_B1_EVNT_ASYN_EVT/INB_B1_EVNT_ASYN_EVT.ipo/proc" />  
    </Resumption>
    <IPO Id="INB_B1_EVNT_ASYN_EVT" tid="13102815571480273490C0A8007961AC" />  
    <Sender Id="0010000119" />  
    </Header>
    - <Body> 
    - <Payload Role="T" Type="B1Event" add=""> 
    - <Event xmlns="" B1EventFilter="false"> 
    - <b1e:b1events xmlns:b1e="urn:com.sap.b1i.sim:b1event"> 
    - <b1e:b1event> 
    <b1e:eventsource>MobiPay</b1e:eventsource>  
    <b1e:objecttype>FC_PODO</b1e:objecttype>  
    <b1e:transactiontype>A</b1e:transactiontype>  
    <b1e:usercode>manager</b1e:usercode>  
    <b1e:userid>manager</b1e:userid>  
    - <b1e:keys count="1"> 
    - <b1e:key> 
    <b1e:name>Code</b1e:name>  
    <b1e:value>test 2</b1e:value>  
    </b1e:key>
    </b1e:keys>
    <b1e:sourcesite>BDRAPER</b1e:sourcesite>  
    <b1e:sourceport>1433</b1e:sourceport>  
    <b1e:sourcetype>6</b1e:sourcetype>  
    <b1e:sld value="BDRAPER!!MobiPay" />  
    </b1e:b1event>
    </b1e:b1events>
    - <b1ie:B1IEvent xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" SysId="0010000119" SysTypeId="B1.9.0" Task="I" LocalObjectType="FC_PODO"> 
    - <b1ie:PrimaryKeyList> 
    <b1ie:PrimaryKey Key="Code" Value="test 2" />  
    </b1ie:PrimaryKeyList>
    </b1ie:B1IEvent>
    </Event>
    </Payload>
    <Payload Role="S" />  
    </Body>
    </Msg>
    Please help,
    Regards,
    Brenden Draper.

  • Badi: for user defined fields in Budget Entry Document

    HI,
    I am implmenting BADI for user defined field in budget entry document definatin name 'FMBW_CUSTOMER' . I have created two fields in include 'CI_FMBH' and also created a sub screen and assign this subscreen to badi. I have called get data and put data methods in PBO and PAI. like this.
    <b>
    PBO
    create object grid1.
      CALL METHOD grid1->if_ex_fmbw_customer~get_data_from_screen
      importing doc_header = doc_header.</b>
    <b>PAI
      CALL METHOD grid1->if_ex_fmbw_customer~put_data_to_screen
        EXPORTING
          doc_header = doc_header
          processing_mode = 'CRE'.</b>
    But the system is not saving these fields in database.
    What could be the problem .

    Hi, did you have any advance on this issue?

  • What is the Object Type for User Define table ?

    Dear All Experts,
    I create one of the User Define Table with no. of UDF's
    I already register User Define Table with Unique ID.
    As per my knowledge, Unique ID is our Object type for that User Define Table.
    I want to add Transaction Notification Code for created Used Define Table.
    This Transaction Notification prevents user to must enter name in that form.
    IF (@object_type = 'Z_Roto' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U'))
    BEGIN
    If not Exists (Select T0.DocEntry from [@Z_ROTO] T0 Where ( T0.Name is null  OR  T0.Name = ' ' ) AND T0.Code  = @list_of_cols_val_tab_del )
    begin
    SET @error = 1
    SET @error_message = 'Name is NULL then So, Please enter ZERO Value i.e. 0 in Filed_Name'
    End
    End
    Please help me for this problem.
    Thanks & Regards,
    Nishit Makadia

    Hi All,
    Thanks for your replay.
    Below code is working for User Define Table's Transaction Notification
    IF (@transaction_type = 'A' OR @transaction_type = 'U') AND @object_type = 'Z_Roto'
    BEGIN
    If Exists (Select T0.Code from [@Z_ROTO] T0 Where ( T0.Name is null  OR  T0.Name = ' ' ) AND T0.Code  = @list_of_cols_val_tab_del)
    begin
    select @error = 10
    select @error_message = 'Name is NULL then So, Please enter ZERO Value i.e. 0 in Filed_Name'
    End
    End
    Necessary to Remember 4 Things. That are mentioned below.
    1) Register User Define Table (UDT) with using "Object Registration Wizard". For Example : @object_type = 'Z_Roto'
    2) When you define selection criteria then it must be compulsory for use Code Field. For Example : Select T0.Code from [@Z_Roto]
    3) When you define selection criteria then it must be compulsory for use Code for @list_of_cols_val_tab_del.
    4) Use error code as 10 Number
    Thanks & Regards,
    Nishit Makadia

  • Approval Templates for the User Defined Object(UDO)

    Hi,
    I just wanted to check whether the Approval Templates for the User Defined Object(UDO)...i.e. Said to the User Defined Form..
    if possibe how it can be done.....
    Thanks in Advance,
    With Regards,
    MadhuSudhana Rao.G

    Hi MadhuSudhana Rao,
    The function you requested is not available yet.
    Thanks,
    Gordon

  • DTW user-defined object issues

    Dear all,
    I've tried to import a user-defined object with a template through DTW.
    However, I got an error message "To generate this document, first define the numbering series in the Administration moduleApplication-defined or object-defined error.
    Any ideas?
    Pls help.
    Thanks

    Hi,
    It is a limitation of the UDO that it is not possible to enter new values via DI or DTW. 
    There is a way to automatically fill your object's user tables. Please see the Note [804685|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=804685] for more details regarding the issue description and the workaround available.                               
    hope it helps,
    Regards,
    Ladislav
    SAP Business One Forum Team

  • UDO--user defined object

    how to use UDO--user defined object in sap b1????

    Creating UDO in SAP B1
    1. Create UDT, ( Create UDT as Document if want the code to be in auto increament form)
    2. Create UDFs for created UDT,
    3. Register Object using  "Object Registration Wizard",
                    (a) Put UDT's unique name in "UNIQUE ID" field of UDO (Image - UDO01.jpg) ,
                    (b) Do further as per requirements,
    4. After Registering the UDO, you can access it from where you have set it to access (@ UI Settings of "User - Defined Object Registration Wizard"),
    5. If you wana change the field location / change the design of the form, Open screen painter as and click on "Open User Defined Object List " (Mostly 3rd icon from Left in screen painter),
    6. Make required changes and save it by clicking "Save Form To Database" ( Mostly 2nd icon from Left in Screen Painter),
    7. Now the UDO is ready and can be used by user.

Maybe you are looking for

  • Syntax Error in Routine while Activating Transformation

    Dear All, I am activating whole scenario for 0SD_C03. we have made transformation for 2lis_11_vaitm, during installation we get below errors: - Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine -Rule (target: 0NET_VAL_S, gr

  • I will NEVER buy a Thinkpad again :-(

    So I opened my briefcase this morning and took out my Thinkpad T61p. It was warm, which worried me - it has always run very hot and it doesn't seem to shut down all the time when I close it. (note: with Win 7 my other one does). So I opened it up and

  • Computer getting really hot

    Hi, My Mac is really hot when I touch it. I can hear it processing when normally it is very quiet. I have tried turning off any programs I am not using as well as checking for viruses (nothing identified). It is still really hot though. Should I be w

  • HT1551 how to correct error 400-1

    how to correct error 400-1

  • Help - How to get our PF keys working on the web?

    We just successfully built a 9iAS server on a W2K platform - it was quick, easy and works perfectly with simple FORMS. However, the main FORM product we want to move from client/server to the web uses function keys -i.e F8, and these just don't funct