Error in calling/converting smart form from ECC to pdf in portal.

Hi,
We have a requirement in our project where we have to show IT form in portal exactly in the way payslip are shown in ESS
Screen, that is in the pdf form in ess portal screen.
For this my HR abap consultant has made one customize smart form which is being called from a RFC FM.
After the FM lf_fm_name gets executed , the OTF data is being captured and then converted in to PDF.
After that the PDF is then converted into XSTRING format which is then supplied to the portal side through export parameter
of the RFC.
Now when we debugged the RFC, the conversion is taking place perfectly fine in to XSTRING.This is wat we assume.
Portal Side: I have used Iframe ui ELEMENT in my webdynpro java and its property source I have binded with a value attribute
of type string and I am executing above customize RFC given to me by my HR abap consultant and after executing that RFC with
userID and payroll year as its import parameter I am taking export parameter of that RFC with name pdf_string of type XSTRING
of that RFC into my webdynpro java value attribute which i binded to source property of Iframe.
Now when we see the output in portal , first of all pdf is not getting generated and its showing the error message:
file does not begin with '%pdf-' and secondly errored Adobe form getting opened outside Iframe window its not coming within
Iframe window like what payslip comes inside Iframe UI element.
I want to know what mistake we are doing in our ABAP coding or portal coding.
Please help.

Hi Satyam,
You can use the existing SAP GRT framework for developing the app.
Its easy and provides more features.
See this wiki:
http://wiki.sdn.sap.com/wiki/display/WDJava/HowtodevelopcustomWebDynproESSapplicationsusingGenericReportingTool%28GRT%29
Regards
Yugandhar Reddy

Similar Messages

  • Error when exexuting a smart form from print program

    Hi,
    I have created a Print Program & Layout Set [Smart Form].
    Now when i executed Print program it is throwing following error.
    As internal table that we are passing to F.M is not having any data i have appended some data in debug mode.
    After htting Print Immediaely Button Following EXIT Error is coming.
    No table is currently processed, switching lines is not possible.
    Message no. SSFCOMPOSER 183
    Diagnosis
    You tried to switch to the next table line, but currently no table is open for output.
    System Response
    The system issues an error message.
    Procedure
    This is probably an internal error. Please contact the SAP hotline and report the problem.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Make sure that you have proper definations of internal table in program and smartform.
    Regards,
    Amey

  • Error when call a interactive form from a report.

    Hi everybody!
    When i use report SAPBC480_DEMO to call form BC480_FINAL, i have the error ADS: Request start time:.......
    I don't know how to fix that error. Can anybody help me?
    Thank!

    Hi Duo,
    i was facing similar problems. It could be solved by installing the Reader Right Credentials. If you want to use a pdf with editable fields (no read-only document) you have to install the RRC. Check this url
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/56/f2c94a069f44a785b85748e11f82a0/content.htm]
    and notes 736902 ,  1016404.
    if you start stack trace as mentioned in note 1016404 you will be able to get through.
    Regards,
    Ashish Shah

  • FRM-10242:  Cannot call linked-in Forms from Form Builder. error

    FRM-10242: Cannot call linked-in Forms from Form Builder.
    Cause: The menu designer specified a call to linked-in Forms from within Form Builder.
    Action: Notify your DBA.
    does anyone know why this happens.
    I have this main-menu.. and when i click on one of the submenus which should call the form....i get this error.

    Same issue here... Been trying to get this working since a week now. I tried all the solutions like memory heap and all but no luck.
    One thing that I would like to know is that, in some threads the resolution was to recompile the INS_FORMS.MK file under /forms/lib32 but with my installation I don't have that "lib32" folder under /forms/ and I can not even find that file anywhere in my entire installation.
    I am using 12.1.1 on Windows Server 2008.
    Any help or guidelines is greatly appreciated.
    Santhosh.

  • Calling a Smart Form on Click of a Table Row..

    Hi All,
    I have one requirement.
    I have developed one applicaiton, in which from R3, the values are coming in form of a table. Now, on Click of a Table row, it should call a smart form developed in R3 for that selected row attribute. Also the smart form should open in a new window, so that user can take a print of it.
    How to add this new view and how to get the selected Row value ?
    Please help me.

    Hi,
    To open the new window, I have added blow code:
    IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("InfoPopup");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
    window.open();
    but, getting error message as : IWDWindowInfo cannot be resolved
    what should be the import parameter? Also please tell me how to search for the Import parameters for the respected attribute/code?
    Please help.

  • Problem in converting smart form into PDF

    HI Experts,
                      I am using a Function Module CONVERT_OTF for converting smart form into pdf file for send it to with attachment.
    But i got a error when i am using that FM.
    Runtime Errors         CONVT_NO_NUMBER
    unable to interpret *292 as a no.
    Is that because my file size too large about 13 pages of PDF?
    and when i run it for other smart forms which have 2 or 3 pages of PDF, its working perfectly.
    can anyone tell what is problem with that FM?
    Thanks
    Shakun

    Hi,
    I had the similar issue and after analysis I have that this is the issue by not passing the IMPORTING parameter of the Function Module "BIN_FILESIZE". Please try to pass some variable to this paramter and then this will be completely rectified.
    DATA ; v_filesize     TYPE i.
    *--Convert OTF data to PDF data
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = v_filesize
        TABLES
          otf                   = it_otfdata
          lines                 = it_pdfdata
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
    Please verify whether this reolves the problem for you.
    Regards,
    SRinivas

  • Object Referenced Error When calling the Windows Form during Runtime

    Hi,
    I am getting  Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
    ERROR Message
    Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Edited by: Albert Tio on Feb 16, 2011 9:55 AM

    Here is the code.
    Option Strict Off
    Option Explicit On
    Friend Class GetEvents
        Public WithEvents SBO_Application As SAPbouiCOM.Application
        Public SboGuiApi As SAPbouiCOM.SboGuiApi
        Public oForm As SAPbouiCOM.Form
        Public oDBDataSource As SAPbouiCOM.DBDataSource
        Public oCompany As SAPbobsCOM.Company
        Public RS As SAPbobsCOM.Recordset
        Public oPrev_Bank As String, oPrev_AcctType As String
        Public oLoadXml As Loadxml
        Public Sub SetApplication()
                 'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            ' by following the steps specified above, the following
            ' statment should be suficient for either development or run mode
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            ' connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            ' get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Public Sub SetCompany()
            Dim ret As Long
            Dim MsgStr As String
            Dim Cookie As String
            Dim ConnStr As String
            Try
                oCompany = New SAPbobsCOM.Company
                Cookie = oCompany.GetContextCookie
                ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
                '//before setting the SBO login context make sure the company is not connected
                If oCompany.Connected = True Then
                    oCompany.Disconnect()
                End If
                ret = oCompany.SetSboLoginContext(ConnStr)
                If Not ret = 0 Then
                    Exit Sub
                End If
                ret = oCompany.Connect
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
            MsgStr = ""
            If Not ret = 0 Then
                oCompany.GetLastError(ret, MsgStr)
                SBO_Application.MessageBox(MsgStr)
            Else
            End If
        End Sub
        Public Sub New()
            MyBase.New()
            ' set SBO_Application with an initialized application object
            SetApplication()
            SetCompany()
            AddMenuItems()
        End Sub
        Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
            Try
                If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
                    'SBO_Application.MessageBox("My sub menu item was clicked")
                    '// Create a form to be launched in response to a click on the
                    '// new sub menu item
                    myThread.SetApartmentState(System.Threading.ApartmentState.STA)
                    myThread.Start()
                    'Loadxml.ShowDialog()
                                End If
            Catch ex As Exception
                SBO_Application.MessageBox("1." & ex.Message)
            End Try
            'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My GoTo Menu was clicked")
            'End If
            'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
            '    SBO_Application.MessageBox("My Second GoTo Menu was clicked")
            'End If
        End Sub
        Private Sub LoadXmlMainThread()
            'Dim lLoadxml As New Loadxml
            Try
                oLoadXml = New Loadxml
                oLoadXml.WindowState = FormWindowState.Maximized
                oLoadXml.ShowInTaskbar = True
                oLoadXml.TopMost = True
                oLoadXml.Activate()
                Application.Run(oLoadXml)
            Catch ex As Exception
                SBO_Application.MessageBox("2." & ex.Message)
            End Try
        End Sub
        Private Sub AddMenuItems()
            '// Let's add a separator, a pop-up menu item and a string menu item
            Dim oMenus As SAPbouiCOM.Menus
            Dim oMenuItem As SAPbouiCOM.MenuItem
            Dim i As Integer '// to be used as counter
            Dim lAddAfter As Integer
            Dim sXML As String
            '// Get the menus collection from the application
            oMenus = SBO_Application.Menus
            'Save an XML file containing the menus...
            'sXML = SBO_Application.Menus.GetAsXML
            'Dim xmlD As System.Xml.XmlDocument
            'xmlD = New System.Xml.XmlDocument
            'xmlD.LoadXml(sXML)
            'xmlD.Save("c:
    mnu.xml")
            Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
            oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
            oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
            Dim sPath As String
            sPath = Application.StartupPath
            'sPath = sPath.Remove(sPath.Length - 3, 3)
            If sPath.EndsWith("\") = False Then
                sPath = sPath & "\"
            End If
            '// find the place in wich you want to add your menu item
            '// in this example I chose to add my menu item under
            '// SAP Business One.
            oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
            oCreationPackage.UniqueID = "MyMenu01"
            oCreationPackage.String = "Unbridle Menu"
            oCreationPackage.Enabled = True
            oCreationPackage.Image = sPath & "unbridle.bmp"
            oCreationPackage.Position = 15
            oMenus = oMenuItem.SubMenus
            Try ' If the manu already exists this code will fail
                oMenus.AddEx(oCreationPackage)
                '// Get the menu collection of the newly added pop-up item
                oMenuItem = SBO_Application.Menus.Item("MyMenu01")
                oMenus = oMenuItem.SubMenus
                '// Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                oCreationPackage.UniqueID = "MySubMenu"
                oCreationPackage.String = "Unbridle Monitoring"
                oMenus.AddEx(oCreationPackage)
            Catch er As Exception ' Menu already exists
                'SBO_Application.MessageBox("Menu Already Exists")
            End Try
        End Sub
    End Class
    Public Class Loadxml
        'Inherits System.Windows.Forms.Form
        Public sBPpath As String
        Public sGLpath As String
        Public sBillpath As String
        Public bRun As Boolean
        Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
            Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
            Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
            Me.NotifyIcon1.Visible = False
        End Sub
    End Class

  • Importing preconfig'd smart forms in ECC 6.0

    I've done some searching, but wanted to see if anybody had a better solution.. it looks like you have to load the best practices baseline package in order to get the preconfigured smart forms in ECC 6.0.  Is there ANY way to avoid having to do this and just be able to load the forms?  Can you use the .SAR from the 4.7 preconfig CD on a 6.0 system or will that spell disaster?

    I've gotten to that point, but at this time I have the 6.0 (2.600) best practices installation files, and the 4.70 smartforms installation files... however the first requires a best practices installation, and the second is a .SAR file which I believe can be loaded with SAINT/SPAM. 
    What I am trying to figure out is if there's a way to just extract the forms themselves out of the package so they can be uploaded rather than having to go through the prereq's for best practices and deal with the slew of OSS notes associated.

  • How to call and reuse smartforms from ECC to CRM?

    Hi Experts,
    I would like to seek help from all of you, I would like to know if it is possible to call and reuse smartforms created in ECC to CRM environment. The requirement is to create smartforms in ECC (R/3 system) and reuse and call it in CRM environment whenever the 'PREVIEW OUTPUT' button is ticked in CRM webclient. This is to reduce the creation of smartforms from both systems.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    You can not reuse it directly but I guess you can download form from ECC and then upload it to CRM. I guess based on your requirement you might end up with few changes to form in CRM to display correct data.
    http://help.sap.com/saphelp_nw70/helpdata/en/c9/452f2d33ca11d5b697006094192fe3/content.htm
    http://www.howforge.com/how-to-upload-smartforms-from-pc
    Smartform Download/Upload problem
    Regards,
    BJ

  • Caling smart form from module pool

    Hi,
    i want to call smartform from module pool screen when  click on some pushbutton.
    ex i want to call smart form of sales order by passing perticular S.O number from module pool screen.
    plz help me o get this.
    thanks.

    Hi,
    Enable hotspot option in the field catalog for the .SO.NUMBER field.  On clicking on SO.Number
    get the cursor field value and call the smart form in the PAI  (ie., in user_command module).
    Probably  pick ucomm triggers  with hotspot.
    Venkat.

  • Trigger Smart form from Account Management

    Hi Experts,
    I need to triger a smart form form accout management screen.
    I am trying implementing BADI , PARTNER_UPDATE , Method CHANGE_BEFORE_UPDATE.
    I am able to implement this in GUI and sucessfully able to call my smartform. Now the issue lies in calling this Smartform on portal page.
    This BADI gets triggered but the smart form is not displayed.
    Any inputs on this.
    Help will be appreciated.
    Best regards
    Sourabh

    Triggered smart forms from activity.

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • Getting error while activating the smart form

    hi guys,
    i am getting the following run time error while activating the smart-form.
    'SQL error in the database when accessing a table'.
    can anyone tell why this error is coming

    Refer to the below link, it may help you to close the thread.
    [SQL error in the database when accessing a table|SQL error in the database when accessing a table.;
    Regards,
    saiRam

  • Open iProcurement Smart form from a Third Party System

    Hi,
    I have a requirement to open the iProcurement smart form from a third party system. We have the Single Sign on functionality so the user can log into the oracle apps without entering the credentials.
    Please share if someone has prior knowledge on that.
    Thanks & Regards,
    Munish Mittal

    If the ICX_SESSION is already available then the form(I am assuming you are refering to a web based form here) should open directly if the function should be accessible to the user logged in. When you say your custom application is included in Oracle apps are you launching these pages from the Ebiz home page through menus and functions ?

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

Maybe you are looking for

  • I could not activate my iphone 3gs after update to 5.1.1

    hi i could not activate my iphone 3gs 32gb after update to 5.1.1  i m try 25 time  but not activate please can u help me thanks

  • OracleXADataSource and Data type mappings

    Hi. In WLS 7 SP4, custom SQL types worked fine with my datasource, which was configured with a connection pool whose driver was OracleConnection. I changed the pool driver to OracleXADataSource because of a new requirement, and set up two new TxDataS

  • Bug on uninstall/install?

    Hello, I am wondering if the issue I entered on this posting could be considered a bug: .jws default program is notepad, not jdeveloper Here is my situation: I am on windows 7, have two editions of jdeveloper, 11.1.1.6.0 (not explicitly relevant) and

  • Make sure Webserver and Appserver are up. java.lang.NullPointerException

    I redeployed PIA (websphere version 6.1.0.3) Aix 5.3 Webserver / Apps boot up fine and 3 tier login works perfect. While trying to login to the Apps (PIA) i get following Error Please make sure Webserver and Appserver are up. java.lang.NullPointerExc

  • Variables for dates

    Hi Experts, i am trying to design an query,in which i have two charecteristics named as Start Date & End Date. The values for start date & end date are diffrent for some records and same for same records. i have the requirement to use start date and