Displaying a Smartform Using IMG (Web Dynpro)

Hi Guys,
I am trying to display one of my smartforms in the front end using the IMG and I am finding it hard to do so. I cant find the appropriate path to assign my smartforms.
Please help!
Val.

CALL FUNCTION LV_FUNC_MOD_NAME
    EXPORTING
      CONTROL_PARAMETERS = LS_SSFCTRLOP
      OUTPUT_OPTIONS     = LS_OUTPUT_OPTIONS
      USER_SETTINGS      = ' '
      RRNUM              = IM_RRNUM
    IMPORTING
      JOB_OUTPUT_INFO    = LT_RETURN
    EXCEPTIONS
      FORMATTING_ERROR   = 1
      INTERNAL_ERROR     = 2
      SEND_ERROR         = 3
      USER_CANCELED      = 4
      OTHERS             = 5.
  IF SY-SUBRC <> 0.
  ENDIF.
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
    FORMAT                = 'PDF'
    MAX_LINEWIDTH         = 132
  IMPORTING
    BIN_FILESIZE          = LV_LENGTH
    BIN_FILE              = LV_XSTRING
  TABLES
    OTF                   = LT_RETURN-OTFDATA
    LINES                 = LT_TLINE
  EXCEPTIONS
    ERR_MAX_LINEWIDTH     = 1
    ERR_FORMAT            = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF           = 4
    OTHERS                = 5.
IF SY-SUBRC <> 0.
ENDIF.
LV_FUNC_MOD_NAME is your smartform function module name.
LV_XSTRING contains the stream of the pdf , send this to the browser using the following code.
    LV_FILENAME = 'RebateRequest.pdf'.
    LV_CTYPE = 'pdf'.
    CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE(
              EXPORTING I_FILENAME = LV_FILENAME
                        I_CONTENT  = LV_XSTRING
                        I_MIME_TYPE = LV_CTYPE
                        I_INPLACE = ABAP_TRUE
                        I_IN_NEW_WINDOW = ABAP_TRUE ).
Abhi

Similar Messages

  • How to display an error Message in Web Dynpro

    Hello,
    I want to display an error message in Web Dynpro. I'm using this,
    IWDMessageManager message = wdComponentAPI.getMessageManager();
    message.reportSuccess("<some relevant debug message>");
    However, the message is always shown at the bottom of the screen. It is possible to select the location in the screen for showing this object? Or what is the best way for doing this? I've tried to use a Label but I can't set the type (warning, error, info) it's only a message.
    Thanks
    Regards
    SU

    Hi,
    If you include the UI, it will display at the top of the screen..
    Please see below how to create a message in the message editor.
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    and this is how you access the error message in the application ti display it to the end user
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    Regards,
    Ganesh N

  • Dynamic Use of web dynpro component

    Hi,
    How can I dynamically use the web dynpro component for display in one component with out using Wdb Dynpro Interface component?
    I want to give user a dash board which is configurable by the user.
    Thanks and regards,
    Pradip

    >
    Pradip R[https://cw.sdn.sap.com/cw/docs/DOC-37733
    > Hi Bhaskar,
    > My components are not in used componenty. In runtime user will search the component in server and shall embedd in my application. So component usage is also dynamic.
    > Any suggestion?
    > Regards,
    > Pradip
    Hi,
    see the link here
    [https://cw.sdn.sap.com/cw/docs/DOC-37733|https://cw.sdn.sap.com/cw/docs/DOC-37733].
    as advised, you create a usage group for dynamic components, add component usages to the group based on your conditions.

  • Work on tasks without using the Web-Dynpro

    Hello everybody,
    i´m new at BPM and i have a question about tasks. Is there a way to work on tasks with the BPM API or something without using the Web-Dynpro? The System i work with is the CE 7.2. I can also use a CE 7.3 test System.
    thanks
    Edited by: jtrebess on Oct 5, 2011 3:57 PM

    Here ist the scenario: I have to write an application which has its own UWL. I know that it is possible to read tasks for the current user. Is it also possible to manage the task with the BPM-API? Is it possible to get the output parameter and to transfer the required Input parameter?

  • UI-Type using the Web Dynpro Dode Wizard

    Hi,
    every time i use the Web Dynpro Code Wizard and choose the Form i still get the UI-Element-Type "InputField". Is it possible to select ohter Element-Types for example DropDownByIndex or Text_Edit?
    i hope we can fix this.
    best regards,
    Michael

    Ofcourse you ca change it to UI-type that you want.
    change the Standard Cell Editor to DropDownbyKey all the UI elements will change(Default it will be InputField because most of the forms contains more number of InputFields ), also you can change the individual context attribute UI type also by changing the CellEditor of a table Column.
    Abhi

  • How to use Web dynpro DC to use another Web dynpro DC?

    First,I created a Web dynpro DC,and make the component to public .
    Then,I created another Web dynpro DC,Add the first DC in Used DCs,But in this Web dynpro, I can't use first Web dynpro Method,can anyone tell me how to do it?

    Go for below document.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b?QuickLink=index&overridelayout=true]
    This explains interaction between two components of same DC.
    Now, since you need 2 DC.
    Then follow below steps in addition to above document.
    1. Create DC1 and Dc2
    2. Add dependency from DC1 to DC2. (Used DC Component).
    If you find any further issues then please revert back.
    Thanks

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • Load and Display Multiple Images in a Web Dynpro Table

    I am new to Web Dynpro and I am wondering if anyone can help me with an application that I am currently developing. I have a particular requirement to store images in a database table (not MIME repository) and then display them in a WD table element. An image can be of JPEG, PNG or TIFF format and is associated with an employee record.
    I want to create a view in my application that displays multiple images in a table, one image per row. I want to do this using Web Dynpro for ABAP, not Java. I have looked into pretty much all examples available for Web Dynpro and came to the conclusion that Components such as WDR_TEST_EVENTS and WDR_TEST_UI_ELEMENTS do not have any examples of images being stored in a database table and viewed in/from a Web Dynpro table element. Programs such as RSDEMO_PICTURE_CONTROL, DEMO_PICTURE_CONTROL and SAP_PICTURE_DEMO do not show this either.
    The images to be displayed in the Dynpro table are to come from a z-type table, stored in a column of data type XSTRING (RAW STRING). So I would also like to know how to upload these images into this z-type table using ABAP code (not Java).
    Your help would be greatly appreciated.
    Kenn

    Hi,
    May be this is the is the correct place to post your query.
    Web Dynpro ABAP
    Regards,
    Swarna Munukoti.
    Edited by: Swarna Munukoti on Jul 16, 2009 3:52 PM

  • Problem with Table display in Adobe Form of Web Dynpro ABAP

    Hi Team,
    I'm trying to display a table in Adobe Print Form (not interactive). The table is bound to the context node in the Web Dynpro ABAP where the cardinality is 0:N. I get a short dump. Don't know what to do here. I'm able to display individual fields from my context successfully. Looks like something is missing when I try to display a table. Any pointers to display a data table in Adobe? Any step by step example you know of where I can find out what I did wrong? Many thanks for your time
    We are on support pack SP06 on 2004S release.
    DUMP INFORMATION:
    Short text                                                               
        Access via 'NULL' object reference not possible.                 
    What happened?                                                           
        Error in the ABAP Application Program  The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    An exception occurred that is explained in detail below.                    
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CREATE_PDF" "(METHOD)", nor was it propagated by a RAISING clause.

    Hi Thomas,
    We upgraded our system(2004S) to SP10 so that we can use the ADOBE form printing in Web Dynpro ABAP but could not apply note 1034425 because of the validity constraints in SNOTE. All the pre-requisite notes are already in the system apart from one note 1029721 which talks about supporting input helps. We don't want to use input helps in our system and cannot upgrade to SP11 because of problems with Business functionality.
    Questions:
    1) Is note 1034425 absolutely dependent on 1029721?
    2) If NOT, can someone please correct the validity so that we can implement using SNOTE.
    3) Would it be OK if we manually apply the changes specified in 1034425 without implementing 1029721?
    4) If all of the above is not applicable, is there any other note which fixes the above mentioned short dump.
    Your help in this matter will greatly help us in using the ADOBE services provided by SAP WDA.
    Thanks much

  • Reading and displaying Ms.Word document with web dynpro java

    Hi,
    I'm using NetWever developer studio 7..0.21.
    I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
    If possible , is there a blog etc.?
    Thanks.

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • How to display work flow log in web dynpro

    Hi
    I generated a  list of users work flow in web dynpro abap now i wanted to display log as it appears in standard report using method cl_swf_rdg_dispatcher=>execute_dialog_request but when i run it it give me  below mention error
    "Screen output without connection to user. "
    code is as follows
      DATA: ls_por          TYPE sibflpor.
        ls_por-INSTID = lv_wi_id.                    "8177
        ls_por-CATID = 'BC'.
       CALL METHOD cl_swf_rdg_dispatcher=>execute_dialog_request
            EXPORTING
              im_por      = ls_por
              im_function = 'DISP'
            EXCEPTIONS
              OTHERS      = 1.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.

    >
    Ammad Zaman wrote:
    >  is there any container available to display ABAP screen ? as it is available for ALV
    No.  There is no container for displaying SAPGUI inside of Web Dynpro.  The closest you could get to this would be the SAPGUI for HTML running inside an iFrame, but that is completely different than what you are talking about (and also not recommended). Dynpro/SAPGUI output is a very different technology thatn Web Dynpro and the two can't be mixed directly.  You need to find a way to extract the data you need without any calls to visualize it.

  • Displaying KM Property structure in Web Dynpro

    Hi All,
    From SAP Help:
    <...>
    A property structure displays properties of a resource (folder, document, or link) in a fixed order.
    A property structure can be displayed in the following places in the system:
    ·        In the Details dialog box for a document or folder under Settings ® Properties.
    ·        When creating or editing a document or folder, using the link Show Properties.
    <...>
    How to proceed when I want the property structure to be displayed as a Web Dynpro.
    Do we have to build a "WebDynpro-PropertyStructureRenderer" or are there short-cuts possible??
    Kind regards,
    Maarten

    Hi Maarten,
    There are commands to allow you to open the Details page to the Properties page.
    See the UI commands called "details_properties" and "details_properties_ex"
    These generate links directly to that page for a resource. You can see similar
    examples of how these are formulated using the "Status Explorer" Layout set.
    You can do this by opening a KM iView in a new window and adding
    "&rndLayoutSet=ConsumerTreeStatusList" to the end of the URL.
    The parameters allow opening the page with or without the rest of the details page
    navigation. The effective parameters will look something like this (for permissions,
    but properties is similar):
    &Standalone=true&command=permissions&isp=permissions&StartUri=/documents&StartPage=StandaloneDetailsPage
    You would have to generate the corresponding URL in WD.
    Regards,
    Darin

  • Function used in web dynpro java application

    Hi
    I am creating some application in web dynpro java by using ABAP function module and table. I am trying to put data to table and update data in table and delete data in table in my application by using ABAP function by using RFC. And this is the ABAP function module.
    FUNCTION ZUP_DESIG12.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(DESG_CODE) TYPE  ZUP_DESIG-DESG_CODE OPTIONAL
    *"     VALUE(DESG_DESC) TYPE  ZUP_DESIG-DESG_DESC OPTIONAL
    *"     VALUE(DESG_ACT) TYPE  ZUP_DESIG-DESG_ACT OPTIONAL
    *"     VALUE(DESG_OPT) TYPE  ZUP_DESIG-DESG_OPT OPTIONAL
    *"  TABLES
    *"      WA STRUCTURE  ZMSTR_DESIG
    DATA CNT TYPE I.
    SELECT MANDT DESG_CODE DESG_DESC DESG_ACT FROM ZMSTR_DESIG
      INTO TABLE WA.
    IF DESG_OPT = 'U'.
    UPDATE ZMSTR_DESIG
        SET DESG_DESC = DESG_DESC
        DESG_ACT = DESG_ACT
        WHERE DESG_CODE = DESG_CODE.
    MESSAGE 'Updated Successfully' TYPE 'I'.
    ELSEIF DESG_OPT = 'C'.
    SELECT COUNT( * ) FROM ZMSTR_DESIG INTO CNT
       WHERE DESG_CODE = DESG_CODE.
       IF CNT > 0.
       MESSAGE 'Duplicate Designation code' TYPE 'I'.
       ELSE.
      WA-DESG_CODE = DESG_CODE.
      WA-DESG_DESC = DESG_DESC.
      WA-DESG_ACT = DESG_ACT.
      MODIFY ZMSTR_DESIG FROM WA.
       MESSAGE 'Inserted successfully' TYPE 'I'.
    ENDIF.
    ELSEIF DESG_OPT = 'D'.
       DELETE FROM ZMSTR_DESIG WHERE DESG_CODE = DESG_CODE.
       MESSAGE 'Deleted successfully' TYPE 'I'.
    ENDIF.
    ENDFUNCTION.
    I am not able to put data to table through my application but i am getting this error.
         java.lang.ArrayIndexOutOfBoundsException: -1
    What might be the problem .
    Regards,
    H.V.Swathi

    Can any one tell solution

  • Find keyword used in Web Dynpro Application?

    Hi folks,
    I have a simple question with regards to Web Dynpro for ABAP: Is it possible to search in my application for a keyword that I have used?
    For e.g., I wish to search for the keyword "loop" to find out which parts of my program have this matching string. I have many views, windows, and code in my component controllers.
    Is that possible? Please advise. Thanks in advance.

    Read this thread:
    how to view COMPONENTCONTROLLER interface 's implement class
    With my approach you can access the generated class and search on it globally from SE24 (efectively searching across the whole component).
    With Thomas approach you can only search on controller by controller basis but may be a bit less complicated to use.
    Regards
    Edited by: Alejandro Bindi on Oct 24, 2008 12:53 AM

  • How to display Popup message in ABAP Web Dynpro

    Hi All,
    Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
    Thanks & Regards,
    IA Kumar.

    Agree with the two firend on my head :).
    you can find a demo from:   SWDP_TEST&#65288;package&#65289;-->   WDR_TEST_POPUPS also.
    I have a lazy idea, two step:
    1. create a popup function module;
    2.call the function module;
    function module:--Begin--
    FUNCTION ZFUNM_CONFIRM .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(P_API) TYPE REF TO  IF_WD_VIEW_CONTROLLER
    *"     REFERENCE(P_CMP_API) TYPE REF TO  IF_WD_COMPONENT
      DATA:
        L_WINDOW_MANAGER      TYPE REF TO IF_WD_WINDOW_MANAGER,
        L_CMP_API             TYPE REF TO IF_WD_COMPONENT,
        L_API_MAIN            TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_POPUP               TYPE REF TO IF_WD_WINDOW,
        L_TEXT                TYPE STRING_TABLE.
       wd_this               type ref to IF_MAIN,
       wd_comp_controller    TYPE REF TO IG_COMPONENTCONTROLLER.
       l_api_main = wd_this->wd_get_api( ).
    l_cmp_api = wd_comp_controller->wd_get_api( ).
      L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
      APPEND 'POPUP text' TO L_TEXT.
      L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
                  TEXT                   =  L_TEXT
                  BUTTON_KIND            = 4
                  MESSAGE_TYPE           = 1
                  CLOSE_BUTTON           = ''
                  WINDOW_TITLE           = 'messagebox Title'
                 WINDOW_LEFT_POSITION   = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
                 WINDOW_TOP_POSITION    = L_CONF_CONTEXT-WINDOW_TOP_POSITION
                 WINDOW_POSITION        = L_CONF_CONTEXT-WINDOW_POSITION
                 WINDOW_WIDTH           = L_CONF_CONTEXT-WINDOW_WIDTH
                 WINDOW_HEIGHT          = L_CONF_CONTEXT-WINDOW_HEIGHT
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_YES
              ACTION_NAME        = 'YES'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_TRUE ).
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_NO
              ACTION_NAME        = 'NO'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_FALSE ).
      L_POPUP->OPEN( ).
    ENDFUNCTION.
    function module:--End--
    call the function module  Begin----
    METHOD ONACTIONDELETE .
      DATA:
        L_API                               TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_CMP_API                           TYPE REF TO IF_WD_COMPONENT,
        NODE_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_ZTAB_PROJ                      TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
        SELECTED_ELEM                       TYPE  WDR_CONTEXT_ELEMENT_SET .
      navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
      L_API = WD_THIS->WD_GET_API( ).
      L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
      CALL FUNCTION 'ZFUNM_CONFIRM'
        EXPORTING
          P_API     = L_API
          P_CMP_API = L_CMP_API.
      IF WD_THIS->A_DEL = ''.
        EXIT.
      ENDIF.
      NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
      IF ( NODE_ZTAB_PROJ IS INITIAL ).
        EXIT.
      ENDIF.
      ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
      ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
      DELETE FROM ZTAB_PROJ
      WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
        AND PROJID  = STRU_ZTAB_PROJ-PROJID.
      WD_THIS->ONACTIONSELECT(
        WDEVENT = WDEVENT                        " Ref to cl_Wd_Custom_Event
    LOOP AT selected_elem .
    ENDLOOP.
      ELEM_ZTAB_PROJ
      @TODO handle not set lead selection
      alternative access  via index
      Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
      @TODO handle non existant child
      if ( Elem_Ztab_Proj is initial ).
      endif.
      get all declared attributes
    ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
       IMPORTING
         STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
    ENDMETHOD.
    call the function module  End----

Maybe you are looking for

  • Sender JDBC Adapter - Stored procedure

    Hello all, I just read a lot of topics in this forum about this subject. I found two indications in contracdictions in the documentation :<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm">Configurin

  • HP 6510b Maximum Hard drive Size

    Hi I try to upgrade my HP 6510b with a new hard drive. But none of the 2 I tried are recognized. I tried a Hitachi 320Gb and a Seagate 500Gb. I both case, the BIOS doesn't seem to see them.  These 2 drives are working on an other laptop and it seems

  • The EXECUTE permission was denied on the object 'ManagedEntityTypeGetBySystemName', database 'OperationsManagerDW', schema 'dbo

    hey all i'm getting the above error when trying to run certain reports in scom 2012. i know there are similar issues and kevin holman has blogged about something similar. but i have permissioned the reader account appropriately and still no luck (hav

  • Item category not change able after saving

    Hi guys, I have a problem (ECC 6.0). After saving a sales order, I'm not able to change the item category for the added item after saving the document. It's some kind of service material (DIEN) to charge labour to the customer. I found that if I main

  • Nokia n95 hangs

    nokia n95 hangs too much