Error in layout for UDO

Hello everyone,
I have a problem with the launch of the report from a user Form.
I created a layout for my UDO, I created a Form for UDO and I connected the layout to the mask.
The report parameter is a standard SAP token (DocKey@).
When I launch the preview is returned the error "Format of the input string is incorrect." if I insert the parameter in Crystal Report mask that appears after, the printing is working properly.
In the attachment post is said that taking away the value of the ObjectType defined for the form,the report should work; unfortunately this is not a solution because doing it SAP can not handle events, and the mask is no longer possible to navigate between documents.
[View Crystal Report Layout for my UDO Form]
I'm doing something wrong or is it a bug? Do you know any case where there is a workaround?
I work with SAP 8.81 PL04
Thanks,Enrico.

hi,
check the JSP file name "Sample.jsp", "s" caps or small. 
In portlapp.xml file give same name for <component name="<b>Sample</b>"> and
<property name="com.sap.portal.reserved.layout.TemplateFile" value="<b>sample</b>.jsp"/>. Component name & jsp file name should be same...
Regards,
Senthil K.

Similar Messages

  • Error in layouts for custom bdoc's

    Hi All,
      we are using some custom bdoc's to generate the layouts ( document generate) for the MSA.
    for the custom bdoc the getrecordset() method is throwing error in the following code of layoutSQLStatement business object. Kindly let us know for a custom bdoc do we have to create a query and associate it here in this method. As I dont know VB Im unable to code the application
    TransactionID and segment fields are returning the correct result and the error is occuring at
    StartObjectTransaction = MyLE.GetRecordset , After executing this statement
    Start ObjectTransaction is not giving any result.
    Public Function StartObjectTransaction() As Object
      Dim ImpObj As Object
      Dim ValueArr() As Object
      Dim KeyArr() As Object
       Dim MyLE As ListEngine
           Dim i As Short
            Dim fl As Field
    Method  : StartObjectTransaction
    '  Date    : 08.03.1999
    '  Purpose :  !!!!! Please insert !!!!!
    On Error GoTo ErrorHandler
    If ((_unwind(ImportListCol.Count) > 0)) Then
    ReDim ValueArr((_unwind(ImportListCol.Count) - 1))
      ReDim KeyArr((_unwind(ImportListCol.Count) - 1))
    End If
    MyLE = BusinessRootObject.BusinessFactory.CreateListEngine()
    MyLE.TransactionName = TransactionId
    MyLE.SegmentName = SegmentName
      ImportListCol.Count()
    i = 0
    For Each ImpObj In ImportListCol
    ValueArr(i) = _unwind(ImpObj.GetValue())
    ' >> #1 (OldCode/NewCode)
    ' KeyArr(i) = ImpObj.GetKey()
    KeyArr(i) = _unwind(ImpObj.GetReal())
    ' << #1
       i = (i + 1)
    Next
      If ((_unwind(ImportListCol.Count) > 0))
    Then
       MyLE.SetFilterParameters(KeyArr, ValueArr)
    End If
    StartObjectTransaction = MyLE.GetRecordset
      For Each fl In StartObjectTransaction.Fields
    ' >> #2 (OldCode/NewCode)
    ' if fl.type = 128 or fl.type = 130 then ' memo fields
    Set StartObjectTransaction = BusinessRootObject.BusinessFactory.CreateBusinessQuery("BSEXPSELMAIN").ExpertQuery(StartObjectTransaction.Source)
                ' end if
      If (_unwind(fl.DefinedSize) < 0) Then
            StartObjectTransaction = BusinessRootObject.BusinessFactory.CreateBusinessQuery("BSEXPSELMAIN").ExpertQuery(StartObjectTransaction.Source)
         Exit Function
      End If
           Next
    'Dim MessageParam(1)
      'MessageParam(0) = ""
    'BusinessRootObject.RaiseErrorEx 14805, "TEXTGEN", False, MessageParam, MessageParam
            Exit Function
    ErrorHandler:
            'MsgBox("Error in StartObjectTransaction. Error : " & Err.Description)
            BusinessRootObject.RaiseError(4, "LAY", BlErrorTypeEnum.ES_ERROR)

    Hi Wolfhard,
           Thanks for the immediate response, I have checked the SQL Profiler and here are the results of my findings.
    I have copied a standard bdoc to a zbdoc (didnot add any code/business query in the MAS), Synchronized the bdoc and in this method the zbdoc is again failing its not executing any where clauses in the bdoc.
    Added some additional fields in the standard bdoc, again the bdoc failed and the new fields are not reflected in the query analyzer.
    Kindly suggest if Im missing something, we are on 5.0SP11

  • View Crystal Report Layout for my UDO Form

    Hi all,
    I try to view a report created for my UDO form. I set all settings in Administration -> Setup -> General -> Report and Layout Manager. Now I wonder what should be assigned to  eventInfo.LayoutKey. I tried assigned report's DocCode from RDOC, DocEntry of my UDO object or UDO Code but nothing works. Always get an error: Incorrect format of argument or something like that - I didn't get an error in English so I tried to translate it.
    How to show a report layout for my UDO form?
    Regards
    Szymon Lipnicki

    Hi and thanks for Your reply.
    Help file contains example how to open report layout prepare in Crystla Reports designer for UDO form.
    //Add Layout Key Event Handler
    SBO_Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SBO_Application_LayoutKeyEvent);
    void SBO_Application_LayoutKeyEvent(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
        BubbleEvent = true;
        if (eventInfo.ReportTemplate == "A001" && eventInfo.ReportCode == "A001001")
            eventInfo.LayoutKey = 1; //Set the key of the layout
    I am using SAP 8.81.
    Regards
    Szymon

  • Print Layout Designer for UDO

    Hi,
    Can we design report with print layout designer for UDO forms?
    If yes, how do we accomplish this?
    If not, is there any other alternative?
    I am using 2004B. Thanks.

    I use the iTextSharp project to create PDF's (http://itextsharp.sourceforge.net/)... its free and it works (A little hard to use, but it works). A more simple PDF-project are SharpPDF (http://sharppdf.sourceforge.net/). This is also free and very easy to use, but not that many features.

  • Error while saving layout  for report

    Using BIEE 11. (Win64 Server 2003 R2 - russian edition)
    When designing layout for report and putting text field (dos'nt matter - russ or engl) - I get an error during saving - 'Error when saving layout' (trunslated from russ)
    This happens only when putting text field, with other types of filds all is ok!
    Where can I find more detailed info about my error?
    Also when I choose layout from existing e.g. - Dashboard.xpt and save - I get the same error. When I cut off all text fields from this template - I can successfully save it.
    Thanks

    Check the OSS note 550760 regarding the issue.

  • I'm getting an error "Could not find compiled resource bundle 'layout' for locale 'en_US'."

    I thought I would update to the latest trunk version of the sdk.  When I run my code I keep getting this Error being thrown:
    "Error: Could not find compiled resource bundle 'layout' for locale 'en_US'."
    It worked fine with the beta sdk and nightly builds from a long time before that.  The error occured in builds 7573 and 7830, so what ever changed happened before then.  I put a break point in there, and other resource bundles are being loaded ok.
    My project uses RSLs and modules. I'm using Flash Builder beta.
    I'm not familiar with resource bundles and not sure what to look for.  Any ideas as to what to try or where to look?
    Is there something I need to update to run the latest code?
    Is the the appropriate place to post questions regarding the nightly builds?  Or should I be asking somewhere else?
    Thanks!
    PS Here is the full stack trace if it gives anyone more ideas:
    Error: Could not find compiled resource bundle 'layout' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\trunk\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:339]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\trunk\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:268]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at flash.display::MovieClip/nextFrame()
        at mx.core::FlexModuleFactory/deferredNextFrame()
        at mx.core::FlexModuleFactory/update()
        at mx.core::FlexModuleFactory/moduleCompleteHandler()

    hi
    also add the following
    to my compiler auguments:
    -locale en_US    -source-path=locale/{locale}    -allow-source-path-overlap=true
    and to actionScriptProperties I have the following where path= is the location of your locale folder
    <compilerSourcePathEntry kind="1" linkType="1" path="/locale/{locale}"/>
    Not sure if this is the correct way to do it, but it stopped me getting any errors.

  • 'Missing layout for container' error on deleted child containers

    Hi all, here was the problem: I have a Web Dynpro app built using NWDS 7.1 SP01 PAT0000 Build ID 200811152209. In this app I have a view where I had existing containers and child controls. I selected one of my existing transparent containers and used "Copy / Paste" to make a copy of it. Then I went underneath the pasted transparent container (which of course had a copy of all the original child controls) and started deleting the ones I didn't need.
    When I did a deployment, however, I had this strange set of errors:
    [wdgen] [Error]   TransparentContainer 'tcPortHdr1.Layout': Missing layout for container.
    [wdgen] [Error]   TransparentContainer 'tcPortHdr1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortSelect1.Layout': Missing layout for container.
    [wdgen] [Error]   ScrollContainer 'tcPortSelectData1.Layout': Missing layout for container.
    [wdgen] [Error]   ScrollContainer 'tcPortSelectData1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortSelect1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortNew1.Layout': Missing layout for container.
    [wdgen] [Error]   TransparentContainer 'tcPortNew1': Missing 'Layout'.
    The funny thing about these guys--they were the child controls I had deleted from the designer UI after doing the paste. In the graphical view designer, they didn't show up. However, when I do a search for one of the offending items (say, tcPortHdr1) using Ctrl+H, then I get one match found in RoadMap03SelectMethodView.wdview. That makes sense; it's the file SAP uses to create the view.
    Double-clicking on that file brings up the visual view designer, which does not show the "missing" control in question. So, I tried right-clicking on the wdview file and using the Open With... -> Text Editor option. That brings up an XML file and voila the control is in there:
    <TransparentContainer name="tcPortHdr1">
      <ViewElement.Definition>
        <Core.Reference package="com.sap.ide.webdynpro.uielementdefinitions"
          name="TransparentContainer" type="UIElementDefinition"/>
      </ViewElement.Definition>
      <UIElementContainer.Children>
        <UIElement name="ftvPort1">
          <ViewElement.Definition>
            <Core.Reference package="com.sap.ide.webdynpro.uielementdefinitions"
              name="FormattedTextView" type="UIElementDefinition"/>
          </ViewElement.Definition>
        </UIElement>
      </UIElementContainer.Children>
    </TransparentContainer>
    Wow! Even though I have deleted the child controls from the UI, they are still in the XML file. So, just for kicks, I try deleting the controls manually from the XML file using this handy-dandy regex and CtrlF: *Port[\w_]\d*
    The above regex found four controls (all of 'em, of course, I had already deleted from the designer using the UI). I do another deployment and the build works great! So, it looks like problem solved and the only issue being some nasty little bug in the UI that doesn't really delete controls from the backing XML file when you delete them from the visual designer, right?
    Edited by: ANDY BRUCE on Feb 3, 2009 7:24 PM
    Edited by: ANDY BRUCE on Feb 3, 2009 7:29 PM
    Edited by: ANDY BRUCE on Feb 3, 2009 7:30 PM
    Edited by: ANDY BRUCE on Feb 3, 2009 7:30 PM

    Dear Andy,
    I think this should go in the Web Dynpro forums?!
    Regards,
    George.

  • 'Missing layout for container' error on deleted child container

    At times in Web Dynpro apps I run into this compiler error. I thought I would share my investigation into it.
    Hi all, here was the problem: I have a Web Dynpro app built using NWDS 7.1 SP01 PAT0000 Build ID 200811152209. In this app I have a view where I had existing containers and child controls. I selected one of my existing transparent containers and used "Copy / Paste" to make a copy of it. Then I went underneath the pasted transparent container (which of course had a copy of all the original child controls) and started deleting the ones I didn't need.
    When I did a deployment, however, I had this strange set of errors:
    [wdgen] [Error]   TransparentContainer 'tcPortHdr1.Layout': Missing layout for container.
    [wdgen] [Error]   TransparentContainer 'tcPortHdr1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortSelect1.Layout': Missing layout for container.
    [wdgen] [Error]   ScrollContainer 'tcPortSelectData1.Layout': Missing layout for container.
    [wdgen] [Error]   ScrollContainer 'tcPortSelectData1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortSelect1': Missing 'Layout'.
    [wdgen] [Error]   TransparentContainer 'tcPortNew1.Layout': Missing layout for container.
    [wdgen] [Error]   TransparentContainer 'tcPortNew1': Missing 'Layout'.
    The funny thing about these guys--they were the child controls I had deleted from the designer UI after doing the paste. In the graphical view designer, they didn't show up. However, when I do a search for one of the offending items (say, tcPortHdr1) using Ctrl+H, then I get one match found in RoadMap03SelectMethodView.wdview. That makes sense; it's the file SAP uses to create the view.
    Double-clicking on that file brings up the visual view designer, which does not show the "missing" control in question. So, I tried right-clicking on the wdview file and using the Open With... -> Text Editor option. That brings up an XML file and voila the control is in there:
    <TransparentContainer name="tcPortHdr1">
      <ViewElement.Definition>
        <Core.Reference package="com.sap.ide.webdynpro.uielementdefinitions"
          name="TransparentContainer" type="UIElementDefinition"/>
      </ViewElement.Definition>
      <UIElementContainer.Children>
        <UIElement name="ftvPort1">
          <ViewElement.Definition>
            <Core.Reference package="com.sap.ide.webdynpro.uielementdefinitions"
              name="FormattedTextView" type="UIElementDefinition"/>
          </ViewElement.Definition>
        </UIElement>
      </UIElementContainer.Children>
    </TransparentContainer>
    Wow! Even though I have deleted the child controls from the UI, they are still in the XML file. So, just for kicks, I try deleting the controls manually from the XML file using this handy-dandy regex and Ctrl+F:
    *Port[\w_]+\d*
    The above regex found four controls (all of 'em, of course, I had already deleted from the designer using the UI). I do another deployment and the build works great! So, it looks like problem solved and the only issue being some nasty little bug in the UI that doesn't really delete controls from the backing XML file when you delete them from the visual designer, right?
    Edited by: ANDY BRUCE on Feb 3, 2009 11:52 PM
    Edited by: ANDY BRUCE on Feb 3, 2009 11:54 PM

    Thanks for the advice, but I'm not interested in fixing the problem. Just in giving someone else some keywords to help resolve the problem

  • Table creation Error "Ref Count for this object is higher than 0"

    Hi All
    I have a problem in creation of table using SDK on a button event.  I have a procedure to create tables and fields. If I call this procedure on a menu Event than it works fine but If I call this procedure on a button event than It gives error "Ref count for this object is higher than 0" . I know this error occur When an object does not release after creating a table. but this error occur at when first table is created. My code it given below. plz see and give me your valuable suggestions.
      Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
                Try
                    oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                    oUserTablesMD.TableName = "AM_OBIN"
                    oUserTablesMD.TableDescription = "PutAway Table"
                    oUserTablesMD.TableType = BoUTBTableType.bott_Document
                    lRetCode = oUserTablesMD.Add
                    '// check for errors in the process
                    If lRetCode <> 0 Then
                        B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
                        MsgBox(sErrMsg)
                    Else
                        B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
                    End If
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                    oUserTablesMD = Nothing
                    GC.Collect()
                    oUserTablesMD = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                    oUserTablesMD.TableName = "AM_BIN1"
                    oUserTablesMD.TableDescription = "PutAway Upper Grid"
                    oUserTablesMD.TableType = BoUTBTableType.bott_DocumentLines
                    lRetCode = oUserTablesMD.Add
                    '// check for errors in the process
                    If lRetCode <> 0 Then
                        If lRetCode = -1 Then
                        Else
                            B1Connections.diCompany.GetLastError(lRetCode, sErrMsg)
                            MsgBox(sErrMsg)
                        End If
                    Else
                        B1Connections.theAppl.StatusBar.SetText("Table: " & oUserTablesMD.TableName & " was added successfully", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
                    End If
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTablesMD)
                    oUserTablesMD = Nothing
                    GC.Collect()
                Catch ex As Exception
                    MsgBox(ex.Message)
                End Try
    Thanks
    Regards
    Gorge

    Hi Gorge,
    The "Ref count error..." usually occurs in case of Meta Data objects not being properly cleared.  And yes, you have got the error in the right place, generally while creating tables / fields / UDOs.  For this, you just need to clear the Meta Data object (At times even DI objects like Record Set) once they are used.
    Eg: Release these objects in the below way in a Finally Block.
    System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
    Hope this helps.
    Regards,
    Satish

  • Layout for ZOrder

    Hi All,
      We have created a layout for orders in the layout we have choosen the subtype as "Standard Order" but for our Ztransaction this layout is not visible however the same layout is visible for the Standard transaction.

    1) Also in the MSY, In the Layout Maintenance subtype field there are only 3 entries available for the sales transaction layout, Quotation, standard Order and sublayout. My Zorder is not present in the drop down here.
    2) I have created a new BDOC in the CRM System and few data elements associated with this bdoc. Bdoc is properly replicated in the Mobile. However when i run the generate to print the layout the dataelement is not getting properly executed and there are no error messages. Is there a way to debug if the data is properly coming.
    Please kindly suggest.

  • What is maintanence level in  screen layout for asset master record

    hi everyboby,
    can anyone explian this
    when I'm defining screen layout for asset master record to  make business area as required entry it was throwing msg like select maintanance level. what could be the reason?can anyone help me on this.
    thanks
    siri

    hi..
    thanks for reply again.
    If i select  business area as optional (main no,sub no)and supress for all fileds (only selected main no) ,I'm able to save screen layout.If i set BA as required select mainno,sub no check box and save it shows the same  error msg.Anyway  i can create asset master now.thanks
    regards
    siri

  • Unable to find the exact layout for uploading Activity Rates in KP26

    Hi,
    I am trying to upload excel into KP26, but I am getting error message as
    File description ABC does not exist.
    I am unable to resolve this problem.
    I tried creating separate Profile in KP65, but unable to to create layout for KP26.
    Can anyone suggest the entire process to upload the excel in KP26.
    I am trying to upload Activity Rates in KP26.
    Please advice.

    Hi,
    Pleaes delete file description for relevant planning layout as described in
    SAP Note 319713 part 5A ( this will make sure that newly
    generated file description will up to date).
    Best regards,
    Ronghua Fan

  • Print Layout document UDO

    Hello:
    I created an UDO of type document, and I want to print the information of the same one, try to do it by means of the Print Layout Designer (from the SDK), but I need the type of document. 
    Is it possible to add a new type of document to the table of types of documents (RTYP)?
    If it is not possible, that option is the most ideal to print documents UDO`s?
    thanks.

    Hi Velazquez,
    As Eddy has posted, you can't create a document type that is specifically linked to your UDO. You have a few options for printing a layout based on your UDO:
    1) Create a layout in Crystal reports. You can integrate the report by writing code in your addon or you could use the newly released Crystal addon:
    https://www.sdn.sap.com/irj/sdn/businessone?rid=/webcontent/uuid/807d22cb-cb1d-2b10-8794-fb76d7feca88
    2) Write a query in Query Generator and then create a PLD layout for it. This is standard SBO functionality but the results are not always perfect.
    3) Use another report writer.
    Kind Regards,
    Owen

  • DTW for UDO's

    Hi All,
    Can I import data for UDO using DTW. i had created template and try to import data but its showing error unknown error - 1005
    what may be the reason ?
    Thanks
    Kamlesh

    Hi,
    Check /people/lisa.mulchinock/blog/2009/07/27/how-to-use-macros-to-importupdate-data-for-di-objects-not-yet-exposed-via-the-dtw-eg-udo-tables
    or
    Re: Importing UDO with DTW ...
    thanks,
    Neetu

  • CHOOSEFROMLIST FOR UDO

    Hello,
    please i wants to develop my own CFL for UDO,any suggestion or sample code to get it done.
    Thanks

    hi Ankit ,
    i have tried the choosefromlist sample but it gives me "Internal Error" when is mapped to my UDO ObjectType.
    sample code below
    Dim oCFLs As SAPbouiCOM.ChooseFromListCollectio
    oCFLs = oForm.ChooseFromLists
    Dim oCFL As SAPbouiCOM.ChooseFromList
    Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
    oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "ER_DED"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)
    binding it to my UserDefinedField below
    oEdit.ChooseFromListAlias = "U_szCode"

Maybe you are looking for

  • Error occurred in deployment step 'Install app for SharePoint

    Hi i had created a LightSwitch HTML Application using Visual Studio 2013.  The build was successful, but when i try to deploy in sharepoint through F5, suppose to get this error message Error occurred in deployment step 'Install app for SharePoint': 

  • Performance of workspace manager

    I have created versioned tables in Oracle 9.2. It sits in DEC Unix OS. I have experienced performance degredation after versioning the tables. The largest table has about 20 million rows. Do I need to analyze the base table generated by versioning th

  • Custom web clip icons for iphone

    Friends- Can anyone help me? I'm trying to create custom icons for my favorite websites on my iphone 3GS. I know it could be done I just don't know how to do it. Thanks.

  • Cannot Install QuickTime at all

    I have a vicious round-robin going. I bout an iPod Nano. To load iTune, you need to install Quicktime 7. I used to have Quicktime until something got corrupted and I had to manually uninstall Quicktime (QT did not have an Uninstaller). When I attempt

  • Report Execution Error

    Hi Experts I have created a query; it has one characteristic with selection option. The selection option is optional. When I executed the query without selection option it is giving the error like <b>CL_RSDM_READ_MASTER_DATA and form_sidval_direct_ .