Error Setting Blob - Crystal Layout for Addon

Hi all,
i'm facing a problem when i try to add a rpt file inside BO, see bellow like i do:
SAPbobsCOM.ReportLayoutParams oNewReportParams = null;
            SAPbobsCOM.BlobParams oBlobParams = null;
            SAPbobsCOM.BlobTableKeySegment oKeySegment;
            SAPbobsCOM.Blob oBlob = null;
            string newReportCode = "";
            bool retval = true;
            try
                SAPbobsCOM.ReportLayoutsService oLayoutService = (SAPbobsCOM.ReportLayoutsService)Modulo.ServicosDaEmpresa.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
                SAPbobsCOM.ReportLayout oReport = (SAPbobsCOM.ReportLayout)oLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayout);
                oReport.Name = "MLT_RNG00";
                oReport.TypeCode = "RCRI";
                oReport.Author = Modulo.Empresa.UserName;
                oReport.Category = SAPbobsCOM.ReportLayoutCategoryEnum.rlcCrystal;
                oNewReportParams = oLayoutService.AddReportLayout(oReport);
                newReportCode = oNewReportParams.LayoutCode;
                oBlobParams = (SAPbobsCOM.BlobParams)Modulo.ServicosDaEmpresa.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlobParams);
                oBlobParams.Table = "RDOC";
                oBlobParams.Field = "Template";
                oKeySegment = oBlobParams.BlobTableKeySegments.Add();
                oKeySegment.Name = "MLT_RNG00";
                oKeySegment.Value = newReportCode;
                oBlob = (SAPbobsCOM.Blob)Modulo.ServicosDaEmpresa.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlob);
                FileStream oFile = new FileStream(Modulo.ReportFilePath, System.IO.FileMode.Open);
                int fileSize = (int)oFile.Length;
                byte[] buf = new byte[fileSize];
                oFile.Read(buf, 0, fileSize);
                oFile.Close();
                oBlob.Content = Convert.ToBase64String(buf, 0, fileSize);
  // Fail here when SetBlob......
                Modulo.ServicosDaEmpresa.SetBlob(oBlobParams, oBlob);
When i SetBlob i've got this error: Internal error occured. Operation failed. Error Code:'|' . Did I something wrong? I follow the SDK example...Oh almost forgot it, i'm using SAP 8.81 PL 07...Someone faced it too?
Thanks and Regards,
Leonard Azevedo.

hi Leonard,
i got the same erro now. Did you find a solution for this?
best regards
Markus

Similar Messages

  • How can I set default toolbar layout for all users in my system?

    Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js.
    Now, I want to define default toolbar layout in a similar way (maybe not needed but fun), to copy the toolbar layout for my user. Is there a general way to do that?
    thank you in advance!

    You can try to create a default template folder (defaults/profile) in the Firefox and place the file(s) in that folder for newly created profile.
    The only way to customize an existing profile is to copy files directly to it.

  • Set a default layout for all users via DIAPI

    Hello everyone,
    I am attempting to set a default report for all users/business partners using the DI-API. 
    I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
    If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
    Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
    (stripped down for clarity)
    Dim oDefaultReportParams As DefaultReportParams
    oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    oDefaultReportParams.LayoutCode = sMyLayoutCode
    oDefaultReportParams.ReportCode = sMyReportCode
    Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
    Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
    I experimented by including and setting the following properties to every combination I could think of with the same results
            oDefaultReportParams.UserID = 'tried 1, 0, -1
            oDefaultReportParams.CardCode = 'tried "", "0", "-1"
    Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
    Thanks!

    Hi,
    Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
    Thanks.

  • Standard Crystal Layout for General Ledger Report, Development Limitations

    Hi Guys,
    I have experienced some development limitations in the standard crystal general ledger layout for "General Ledger report" in SAP.
    So if we are running standard "General Ledger" report we have a lot of columns but we unable to get these columns in the standard crystal layout because PLD_Items (XML source file) doesn't contain all of them. For example, I need to add a "Project" into existing standard crystal layout and I can't do that.
    Do you have guys, any ideas how to change PLD_Items source or it's impossible?
    Any help will be appreciated.
    Thanks,
    Sergey Magsumov

    Hi,
    Please refer this thread http://scn.sap.com/thread/642764
    Thanks & Regards,
    Nagarajan

  • How to set user specific Layout for executing IW38/IW39  report.

    Dear Experts,
    We have 10 users seperatly, For executing IW38/39 transaction they have maintained seperate layouts for executing the reports. While saving layout they have saved the layout as 'user specific' Now some body has chage the settings.
    After changing the setting all are getting same layout.
    Please suggest how to set user specific layout. When user enter the IW38/39 report by default he should get his layout.
    Thanks in advance.

    Create Variant using SHD0 and with Group and assign to particular user's
    Here is the steps
    Creating a Variant Group
    1. Open transaction SHD0, enter the transaction code, and press enter.
    2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP_GEN
    3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
    Assigning Users
    Once you have created the variant group and the relevant transaction variants with screen variants, you now need to assign users to the variant group as follows
    1. Return to the Standard Variants tab page, Variant Groups sub tab page.
    2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
    3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal. The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
    You can use this procedure of user assignment for all other users that you want to add to the variant group
    Hope this helps.
    Thanks
    S.N

  • Error in upgrade Crystal Reports for Visual Studio 2010 to SP1

    During the installation of SP1 of Crystal Reports for Visual Studio 2010 (RTM was already installed) I got an error message saying:
    Error 2753. The file "agent.exe.6ED28686_7B19_420C_B255_5B6C1BD2C705" is not marked for installation.
    After a rerun of the setup program (choosing reinstall) the message did not re-appear.
    It happens on Windows 7 x64 with Visual Studio 2010 SP1
    Is this a bug in the installation or an "undocumented feature"?
    Regards,
    Adri

    Hi Adri,
    I had that error once and one other poster also had it. Like you I just re-installed and no error on the second round.
    I believe it was some Windows Process had the file locked for some reason. It's not a bug or "undocumented feature" it's a Windows OS thingy....
    Before uninstalling anything it may be a recommendation to reboot first and not load anything that may be locking dependencies.
    How many times have you seen this?
    Thank you
    Don

  • Editing new crystal layouts for financial reports in 8.8

    After upgrading to 8.8 PL10 I decided to investigate the new financial layouts for Crystal. When I opened the layout however I couldn't make much sense of how it is structured or even functions, it seems to reference a PLD table that I couldn't find under tables, views, or stored procedures. Any advice on how to better manipulate this report would be great.
    They are all structured similarly so lets use the new balance sheet as a reference.
    -John-Michael

    Hello!
    Here are my findings ...
    - The new Crystal Reports Layouts base deeply on the "old" PLD Layouts.
    - The table "PLD__ITEMS" is an XML-file with the data of the report.
    - If you want to show same additional fields of PLD__ITEMS on the report, it is not enough to drag the field on the report. You also  have to format the field and add additional info to the CSS-Class like: FileName="OINV";FieldNum="CardName";
    The workflow I used to edit the new CR Layouts:
    1. Edit the old PLD Layout as needed
    2. Use the Crystal Reports Converter to get a CR from the PLD [Download|/docs/DOC-8768#section16 [original link is broken]]
      (The PDF included gives some basic hints about the structure of the CR Layout)
    3. Edit the SAP CR with the informations of the converted CR (from PLD)
    Hope this helps a bit ...
    Martin Samlaus

  • Crystal layout for electronic invoice

    Good afternoon Friends.
    I wonder if any of you know any printing layout to electronically invoice in crystal that allows editing.
    I am creating a print layout but it does not want to create from the beginning.
    Thanks for the help.
    Regards to all.

    hi,
    There is no any functionality like "Define screen layout" for MIRO transaction.....
    Take help of ABAPer who can resolve your problem via coding....
    you can never ever do a MIRO for 2 vendors at a time.....
    Miro trasaction is possible for only one vendor at a time....
    and if thinking logically its abs correct...why do you need to pay to two vendors at a time..there may be different tax, freight calculation which is placed header....
    hope it helps....
    Regards
    Priyanka.P

  • Setting the report layout for HTML format

    hi friends
    when I generate my report to HTML file and open it to Internet Explorer it disturbs the actual report little bit like enlarging the fonts, hiding some graphical objects like Lines and wrapping the report. so can u tell me that how can I take the same output format in Internet Explorer as in reports previewer? I'm using Reports 6i and Micrsoft Internet Explorer 6.0. thanx.

    I think you should make some modification into main section
    e.g. increase height and width of the report....and then see...
    I had same problem with text output but this method solve my problem hope
    this will help u...
    Enjoy Oracle...

  • Layout for packing list cannot be set for specific customers

    It is not possible to set an standard layout for the packing list for specific customers. So, if you have layouts in different languages, you have to check the standard layout every time before you print and to set the right one. In other documents it is possible to set an standard layout for specific customers/suppliers for example depending on the language.
    kind regards,
    Markus Niebergall

    Hi Engin,
    Have you followed the ios tutorial which sybase provides :
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01213.0200/doc/html/title.html
    if you get "login success" at console it seems everything fine there may be something missing.
    Regards
    Tahir

  • Adadmin error - DCPW null for "IZU" - aipspv(): Error setting up PDI list

    Hi,
    I am getting the folowing error while running adadmin
    Connecting to SYSTEM......Connected successfully.
    Connecting to APPLSYS......Connected successfully.
    AD Administration error:
    DCPW null for "IZU" [278]
    AD Administration error:
    Failed getting PDI list for product 'izu'
    AD Administration error:
    aipspv(): Error setting up PDI list for upgrade
    Already checked the metalink notes
    294354.1 Failed Getting Pdi List For Product 'Alr'
    211674.1 Autoupgrade Fails with Error setting up PDI listc
    171092.1 AutoPatch Error: aipspv()
    Checked the status of IZU product in fnd_product_installations
    What does this "DCPW" stand for ?
    adadmin complains of the value being null
    What should be the right value ?
    How can I update that ?
    Can someone please help to resolve the issue
    Thanks

    Hi Hussein
    FNDCPASS errored out with ORA-01403 error
    Also gave "Memory fault"
    dba_users and fnd_oracle_userid show that this user exists
    /apps/qtcstg > FNDCPASS apps/<pwd> 0 Y system/<pwd> ORACLE IZU IZU
    Log filename : L5504280.log
    Report filename : O5504280.out
    Memory fault
    /apps/qtcstg > cat L5504280.log
    Application Object Library: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    module:
    Current system time is 18-JAN-2007
    06:27:22
    APP-FND-02704: Unable to alter user IZU to change password.
    APP-FND-01564: ORACLE error 1403 in changepassword
    Cause: changepassword failed due to ORA-01403: no data found.
    The SQL statement being executed at the time of the error was: and was
    executed from the file &ERRFILE.

  • [Exchange-Online][EWS][c#][Windows 8.1] When creating appointment using impersonation "Set action is invalid for property" error occurs.

    I have an Outlook add-in that creates appointments to a load of Office 365 calendars. It used to work well but suddenly I have hit a problem.
    The basic calling code is
    Appointment appointment = new Appointment(exchangeService);
       appointment.Subject = subject;
       appointment.Body = body;
       appointment.Location = location;
       appointment.IsAllDayEvent = allDay;
       appointment.LegacyFreeBusyStatus = LegacyFreeBusyStatus.Busy;
       appointment.IsOnlineMeeting = false;
       appointment.Save(SendInvitationsMode.SendToNone);
    This still works fine on my own Office 365 mailbox but if I switch to another, using Impersonation, the Save line now throws the error "Set action is invalid for property."
    There does not seem to be a problem with impersonation. The line
    exchangeService.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, selectedUserEmail);
    runs OK and afterwards the exchangeService's ImpersonatedUserID gives the correct email address.
    If I look at the appointment object in the Watch window immediately after the line that creates it has run I can see that most of the properties have an entry like:
    appointment.AdjacentMeetingCount' threw an exception of type 'Microsoft.Exchange.WebServices.Data.ServiceObjectPropertyException'.
    Also, several properties including Subject are not listed in the expanded appointment object in the Watch window.
    However, entering appointments.Subject explicitly in the Watch window does give the correct result.
    I have used the floating watch to check the value of each property straight after it is set and each one is as expected.
    I am at a loss as to what to check next and would be grateful for all ideas.
    Mike VE

    Thanks for the reply Jason. I did as you suggested and found that it was the IsOnlineMeeting that caused the problem. Once that was commented out everything worked as expected. On checking I see that this property is ReadOnly for everyone except the
    organizer of the meeting. Clearly the Impersonate role is not regarded as the organiser.
    I don't think it is going to matter so long as the user in whose calendar the appointment is created has fully access to the appointment, which seems to be the case.
    Thanks for your help.
    Mike VE

  • User defined fields in Crystal layout

    Hi All,
    I want to add user defined field values in crystal  layout for Sales order, but its not listed in RDR1 tables there but it's available in SAP query manager view. How can i get that in Crystal reports. please suggest on this.
    Regards
    Sree

    You can then remove the key and the fields in the database will keep their correct definitions rather than varchar(max) which is causing the initial problems.
    Adding extra keys may uause performance issues if you leave them there for a large table.
    I have also had issues of varchar(max) fields causing database connection issues when running the reports in 8.81 PL07.
    Rob

  • Default Layout for a report running in background

    Dear Friends,
    I have created a layout for report ME2L and set as default layout  (for every user)....
    Foreground execution picked the DEFAULT layout but when am trying to execute the same report in background, default layout is not picked but the STANDARD layout is shown in the spool
    Could you please suggest me how can i use same report layout for foreground as well as background
    Thanks in Advance
    Ana

    Atanu dey,
    If you wnat to download excel in back ground
    You have to download in application server only.
    EX:
    DATA :  v_filepath(80)     VALUE '/data/sapdata/inc/error_log/pme_br/',
      c_coma     VALUE ',' .
    OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.
        IF sy-subrc EQ 0.
         LOOP AT i_errors_bat.
         CONCATENATE i_errors_bat-plant c_coma
                                 i_errors_bat-zzvendor c_coma
                           INTO v_string.
            TRANSFER v_string TO v_filepath.
          ENDLOOP.
       CLOSE DATASET v_filepath.
    Note : you can download in presentation server also.
    but it requires lot of authorizations and have to use
    FTP commands.
    Reason is Apllication server in back ground has to
    recognize the from which system request came.
    Better go for OPEN DATA sets.
    Don't forget to reward if useful.....

  • How to set default Print layout in SDK!

    Hi All
    In Form Delivery (ID=140) I want to Add Button to set default print layout by Addon.
    Please let me know the interface and the table to do it. Thanks

    Hi Tao,
    there's a vb6 sample in the DIAPI documentation
    Sets the specified report layout as default
    Dim oCmpSrv As SAPbobsCOM.CompanyService
    Dim oReportLayoutService As ReportLayoutsService
    Dim oDefaultReportParams As DefaultReportParams
    'get company service
    oCmpSrv = oCompany.GetCompanyService
    'get report layout service
    oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
    'get report layout params
    oDefaultReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    'set the report layout code
    oDefaultReportParams.LayoutCode = "POR20005"
    'set the report code
    'the report code is the document type code (e.g. POR2=PurchaseOrder)
    oDefaultReportParams.ReportCode = "POR2"
    'set the user code
    oDefaultReportParams.UserID = 1
    'delete the report layout
    oReportLayoutService.SetDefaultReport(oDefaultReportParams)
    i hope it helps you
    regards
    David

Maybe you are looking for