Call smartform from webdynpro

Hi everybody
Can you plesae tell me whether its possible to call a smartform from a webdynpro application?
I know its possible to call adobe forms

HI,
You have to use the FM to convert to PDF then use this data and bind this to the node type XSTRING.
Check components WDR_TEST_ADOBE_PDF_ONLY or WDR_TEST_ADOBE for reference.
Regards,
Lekha.

Similar Messages

  • Calling Smartforms from Module pool: Most Urgent

    Hi, Exeperts
    how can I call smartforms from module pool.
    I have done like below.
    First Created a push button on screen and used
    these code in user command through PAI
    FORM CALL_SMARTFORMS .
    DATA: V_FORM_NAME TYPE RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = 'ZSMART'
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2
        OTHERS             = 3.
    ENDFORM.                    " CALL_SMARTFORMS
    now I am getting form name in v_form_name, but it is not executing.
    Please help me out.
    Regards
    Rajiv singh.

    Well, as it's most urgent....
    One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
    Eg.
    DATA: DEVICE TYPE SSFCTRLOP .
    DEVICE-DEVICE = 'PRINTER'.
    DEVICE-NO_DIALOG = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
       CONTROL_PARAMETERS         = device
       USER_SETTINGS              = 'X'
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5.
    Regards,
    Nick

  • Calling GuidedProcess from WebDynpro ABAP

    Hi all
    can anybody tell me that how to call GP from webdynpro ABAP.
    and what are the advantages and disadvantages in this scenario??
    if anyone reply then it would be the great help to me
    Regards
    Suresh babu

    Hey,
    You can call a GP from WD ABAP through by implementing a service call from a method that is embedded in your WD. You can refer this link for the same.
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/58f9cc0d95311ce10000000a155369/frameset.htm
    But you should note here that Data exchange between ABAP WD and GP is not two way but its only one way.
    Cheers,
    Mandrake

  • Not able to call RFC from webdynpro

    Dear Experts , I want to call a rfc from my webdynpro application , but its not working
                          I have a function module in my ECC system , that I want to call from webdynpro application of SRM system but its not working , it is not showing any error also
    I called the function module like
      CALL FUNCTION 'ZFM_SR_GET_PLANT_RFC'  DESTINATION lv_logsys
        TABLES
          it_plant = lt_pr.
    the control is just passing thru this function call but not going inside it,
    at the same time when I call this function module from my report program in SRM it's working fine , is there anything else i have to specify to call it from webdynpro application ?
    Please help

    Hi thomas ,
    I have added the exception for my function module , but they didnt triggered ,while debugging I have observed that no exception occured at the point of call , and my sy-subrc eq 0 ,
    se I did like this
      CALL FUNCTION 'ZFM_SR_GET_PLANT_RFC' DESTINATION lv_logsys
        TABLES
          it_plant                            =    lt_pr
        EXCEPTIONS
          system_failure                =    1  MESSAGE msg
          communication_failure    =    2  MESSAGE msg
          OTHERS                          =    3.
      IF sy-subrc <> 0.
        MESSAGE ID 'ZMSG01' TYPE 'E' NUMBER '00' WITH msg
                INTO ls_message-message.
        CALL METHOD wd_comp_controller->gref_message_manager->report_error_message
          EXPORTING
            message_text = ls_message-message.
      ENDIF.
    AT CALL FUNCTION  statment the control is just passing thru it , and not going inside function module

  • Problem while calling smartform in webdynpro

    Hi Experts,
    I  am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen
    I m following the following steps for calling smartform in webdynrpo.
    I am calling the smartform by
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM_NAME'
    importing
    fm_name = fname
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3
    if sy-subrc  0.
    Error MESSAGE
    endif.
    call function fname
    exporting
    control_parameters = lv_control_parameters
    output_options = lv_output_options
    user_settings = space
    pernr = stru_input1-zpernr
    reinr = stru_input1-zreinr
    pdvrs = stru_input1-zpdvrs
    importing
    job_output_info = lv_ssf_output
    exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5
    if sy-subrc  0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    But it is not passing otfdata and it is returning 1 in sy-subrc.
    Please help me to solve this issue.

    I m not using any image.
    I have checked through debug and the function module is not transfering any file to OTF table.
    Please suggest me..
    Edited by: zakirriyaz on Nov 4, 2011 9:47 AM

  • Calling webservice from webdynpro thru model(webservice created from BAPI)

    Hi all
    i have created one webservice from Functional module in backend system(ECC) and also i released the same webservice in backend(ECC) thru the TCODE wsconfig.
    my questions are
    1) how to execute that created Webservice in backend system itself(ECC). can you please send the execution steps for webservice in ECC system.
    2)  how to call from webdynpro thru model for that created webservice from functional module. can you please send the execution steps for the same. here there are three options while model for webservice like local server,Local file system and UDDI or URL.
    Regards
    Sunil
    [points are always rewardable]

    hi!
    Below are good documents on Webservices
    Adaptive webservice model
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
    Re Importing of Web Services in Simpler way
    Re Importing of Web Services in Simpler way
    Using RFC as WebService in WebDynpro
    Using RFC as WebService in WebDynpro
    Enterprise Applications with webservices and Web Dynpro
    The specified item was not found.
    Regards
    vishal

  • Problem in calling Webservice from Webdynpro ABAP

    I want to call a BAPI FM which is available in SAP ECC server when user is clicking on a button in a web dynpro application which is available in SAP Portal server.
    For example,
    Portal server name is DVP-EPP &
    ECC server name is DVP-ECC
    I have the done the following steps to achieve it,
    In Server DVP ECC:
    1) Created Web service from the standard BAPI FM (SE37-->Utilities-->More Utilities-->Create WebService --> From the the Func.Module)
    2) Downloaded the WebService as WSDL file from SOAMANAGER
    3) Tested the Web service through SE80, it is correctly calling the BAPI & creating necessary data.
    In Server DVP EPP:
    4) Created a Proxy class as follows,
    a) SE80 --> Package --> Create --> Enterprise service
    b) Selected Object type "Service Consumer"
    c) Selected Service Consumer "Local File"
    d) Browsed and selected WSDL file downloaded from DVP ECC
    e) Selected the Package, Prefix, Request, Completed the process & Activated it.
    5) Configured the Logical port as follows,
    a) Selected my Proxy class through F4
    b) Wrote a name for Logical port, Selected 'Default port' checkbox and selected 'Create'
    c) In the next screen, in 'Call parameters' tab, selected the 'URL' radio button & mentioned the URL of the WSDL-Document created in DVP-ECC system
    d) Saved the data & activated it
    5) Now, tested the service through (SE80-->Package-->Enterprise Services-->Client Proxy) option.
    6) When I test it, system prompts a dialog box for User-Name & Password (as available in DVP-ECC system).
    After the details are given, system throws the Information message as "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/" - Exception of class CX_AI_SYSTEM_FAULT
    No record is created in DVP-ECC through the WebService BAPI.
    Please tell me whether the steps that I followed are correct as per my requirement and a solution for the above interruption.
    Thanks in advance

    Good day guys,
    Somehow I managed to resolve the above error.
    Now in DVP-EPP system, I am able to Test the Web service Client Proxy (through SE80) and a record is successfully created in destination system (DVP-ECC).
    Now, in Webdynpro I am unable to call this webservice proxy class.
    System throws the error,
    Error (id=SoapFaultCode:5): Web service processing error; more details in the
    web service error log on provider side (UTC timestamp 20141006045544;
    Transaction ID 9A144DE49C12F1B5A6B9E41F137BE3CC)
    I just created a sample WDA application and on click of a button I am calling the Webservice Proxy class as follows,
    Method on_submit_click().
    TRY.
          CREATE OBJECT wd_assist
            EXPORTING
              logical_port_name = 'ZLOG_PORT'. "Logic port creatd for Proxy class (in SOAMANAGER)
          CALL METHOD wd_assist->bus1240create     "Method available in generated Proxy Class
            EXPORTING
              input  = ls_inp                                        
            IMPORTING
              output = ls_outp.
        CATCH cx_ai_system_fault.
      ENDTRY.
    ENDMETHOD.
    Do I have to do any thing additionally in order to call the WebService in WDA?? Because, in the same system, if I test it in SE80, record is perfectly created in destination server.
    Also please suggest if I have to do any other configuration changes related to this.
    Keenly awaiting your reply.
    Have a nice day .
    Thank you.

  • How to call infotypes from webdynpro application

    Hi friends
    My requirement is, I need to call infotypes in r/3 system. Exact requirement is I got a dropdown, which gets the data from infotype, I got a textview which also gets the the data from other infotype.My question how to call these infotypes. Is this is the same way like importing bapis or different. Please let me know the detail procedure, and any doccuemnts mail me to [email protected]
    Regards
    keerthi

    For reading HR infotypes you have to do the following
    a. Create a Remote enabled function module (FM) in the HR syste. This FM shall wrap the standard FM HR_READ_INFOTYPE.
    b. Create a Model in your webdynpro project for the FM you developed in step a.
    Thanks and Regards,
    Prasanna Krishnamurthy

  • Calling smartform from other system in ECC.

    Hi friends,
    I have a smart form in other system....In Ecc there is an alv report  where in when i click on any line item,it should fetch the information in terms of smart form from the other system.that is a smart form present in other system should be displayed in ECC.I have not to create any smart form in ECC...Only call smart form from the other system....
    Has somebody done this before or have any ideas how to do it.
    I ll be highly thankful l to you
    kanishak

    Builld a RFC enabled FM () that wrap the call of Smartforms (*) in the other system.
    Regards,
    Raymond
    (*) [Writing Remote Function Modules in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/22/0425f2488911d189490000e829fbbd/content.htm]
    (**) [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm]

  • How to Call Smartform from Custom Transaction.

    Hi All,
    I have developed Module pool Program , in module pool program i have save button and Execute button when i press save button whatever the data is there in transaction, it will store in the tables and when i click Execute button, it will generate a smartform.
    so here my question is how to link with the smartform with Module Pool Program.
    plese help me on this
    Thanks in Advance.
    Prasad.

    in your Module pool program
    in PBO event you can do like this...
    either use
    CALL FUNCTION '/1BCDWB/SF00003434'.
    here /1BCDWB/SF00003434 is name of function module generated from smartform
    ==========================
    or if you want to get the function module name dynamically then use below function module to get the FM name for your Smart form name.
    SSF_FUNCTION_MODULE_NAME
    and then use that from export parameter..
    Hope it will solve your problem.
    Thanks & Regards
    ilesh 24x7

  • How to call transaction from webdynpro application

    Hi Experts,
    I have a web dynpro component zxx_comp.its corresponding web dynpro application zxx_app.
    my requirement is , when i test the webdynpro application, i have to call a transaction zxx_txn corresponds to the module pool program zxx_pgm  directly . How can i do that?
    Regards
    Ashwin KV

    Hi Ashwin,
    Use the following to open a T-Code from WD application.
    CALL METHOD cl_http_server=>if_http_server~get_location
    IMPORTING
      host = lv_host
      port = lv_port
      out_protocol = lv_protocol.
    DATA lv_url type string.
    concatenate lv_protocol  '://' lv_host  ':' lv_port  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='zxx_txn' into lv_url.
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window_manager->create_external_window(
         EXPORTING
           url    = lv_url
         RECEIVING
           window = lo_window ).
    Regards,
    Harsha

  • How to call smartforms from abap

    hi experts,
    I TRIED AND NOW I AM GETTING MY SF IN MY PROG.(I TRIED BY OWN)
    NOW I WANT TO CONVERT IT INTO PDF FORM ,AND THEN SAVE THIS SF IN COMPUTER ,
    thanks
    sunny

    hello mr thakur
    please take reference of this  code
    REPORT  ZTESTCURRENCY.
    data : IT_DATA  type table of  zstruct1.
    DATA : FM_NAME TYPE RS38L_FNAM.
    DATA : FORM_NAME TYPE TDSFNAME.
    selection-screen begin of block b1 with frame title text-000.
    parameters p_date type vbak-audat.
    selection-screen pushbutton /10(5) pb1 USER-COMMAND UC01.
    selection-screen end of block b1.
    initialization.
    move 'PRINT' to pb1.
    AT SELECTION-SCREEN.
    case SY-UCOMM.
    when 'UC01'.
    PERFORM SELECT_DATA.
    ENDCASE.
    *&      Form  SELECT_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SELECT_DATA .
         FM_NAME =  '/1BCDWB/SF00000042'.
         FORM_NAME = 'ZSF_TESTSMARTFORM'.
         SELECT AUDAT
                AUART
                NETWR
                WAERK
                INTO TABLE IT_DATA FROM VBAK WHERE AUDAT = p_date.
                CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                  EXPORTING
                    FORMNAME                 = FORM_NAME
    *               VARIANT                  = ' '
    *               DIRECT_CALL              = ' '
    *             IMPORTING
    *               FM_NAME                  =
    *             EXCEPTIONS
    *               NO_FORM                  = 1
    *               NO_FUNCTION_MODULE       = 2
    *               OTHERS                   = 3
                IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ENDIF.
                CALL FUNCTION FM_NAME
    *             EXPORTING
    *               ARCHIVE_INDEX              =
    *               ARCHIVE_INDEX_TAB          =
    *               ARCHIVE_PARAMETERS         =
    *               CONTROL_PARAMETERS         =
    *               MAIL_APPL_OBJ              =
    *               MAIL_RECIPIENT             =
    *               MAIL_SENDER                =
    *               OUTPUT_OPTIONS             =
    *               USER_SETTINGS              = 'X'
    *             IMPORTING
    *               DOCUMENT_OUTPUT_INFO       =
    *               JOB_OUTPUT_INFO            =
    *               JOB_OUTPUT_OPTIONS         =
                  TABLES
                    IT_DATA                    =  IT_DATA
    *             EXCEPTIONS
    *               FORMATTING_ERROR           = 1
    *               INTERNAL_ERROR             = 2
    *               SEND_ERROR                 = 3
    *               USER_CANCELED              = 4
    *               OTHERS                     = 5
                IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ENDIF.
    ENDFORM.                    " SELECT_DATA

  • Call EJB From WebDynpro

    Hai Experts,
                       I want to call an EJB from a web dynpro not by using wrapper class or by using a Ejb.jar in WD's classpath.
    The idea is to use reflection  and Properties class to call an EJB . Is it possible to call an EJB as mentioned above.
    Please help me to solve it.
    Thanks in advance.
    Regards,
    R.Jude Silvester.

    Hi
    Check this link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00bddb57-456c-2b10-cc8d-b6980d75299b
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    Thanks
    Tulasi
    Edited by: Tulasi Palnati on Feb 3, 2009 6:53 AM

  • How to Call Smartform from User defined Transaction

    Hi All,
    my requirement is users enters the  data in the module pool program and clicks on the save and generate smartform button and the data is updates the database tables and  updated data should be printed on smartform
    Can anyone Please tell me How to link Smart Program with module pool program.
    Regards,
    Prasad.

    In smartforms , right click any window and create->flow logic->program lines, then the screen for program logic appears. In the left most corner there a icon named statement struct.
    Click the statement struct icon, it will show the screen for pattern, there give the function module name that you want to include in smartforms
    case okcode.
    when 'SAVE'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING FORMNAME = P_FORM "Your form name
    variant = ' '
    direct_call = ' '
    IMPORTING FM_NAME = FM_NAME
    EXCEPTIONS NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    EXIT.
    ENDIF.
    calling the generated function module
    CALL FUNCTION FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = CPARAM
    OUTPUT_OPTIONS = OUTOP
    USER_SETTINGS = SPACE
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    IMPORTING
    JOB_OUTPUT_INFO = TAB_OTF_DATA
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endcase.
    endform.
    endcase.

  • Probelm in calling ME23N from WebDynpro ABAP application.

    Dear All,
    My requirement is to call the transaction ME23N by doing some action from WDA application.
    And I have to pass the Purchase Order Nubmer from this WDA application.
    This is for your information, For this I have created the Transactional iView for ME23N and I am using the PCD location .*
    I am using the " navigate_absolute " method from the portal intergration ( IF_WD_PORTAL_INTEGRATION ).
    There I am passing the launching paramerters and Business parameters . It is opening the ME23N Screen, But it is not taking the purchase order number what I am paasing in the business parameters . It is always taking the default purchase order number.
    And one more this , the same thing i have tried for VA03 transaction, here everything is going fine.
    But I did not understand the why it is not taking purchase order number what I am passing from the WDA application in the business parameters.
    Hope I have given my query clearly...
    Please help me...
    Thanks & Regards,
    Veerendra Nath

    Solution found.
    You can use Tcode MMPURPAMEPO Tcode.
    In your URL set the parameter P_EBELN with the PO number and set the OKCODE to execute the report.
    This transaction is used in Portail only.
    You can found the same for MIGO/MIRO and several other Tcode.
    Regards
    Ludovic Bento

Maybe you are looking for

  • Problem with Persistence.xml in JDev final after migration

    Hi, I am trying to migrate a current project from JDev 11gTp4 to the JDev production release. When deploying the EJB module I get the following problem though (Stack from DefaultServer.log) weblogic.application.ModuleException: Exception preparing mo

  • How do I create a local account from a network login from the command line?

    I am connecting to my organization's domain using 3rd party software which doesn't allow for using the GUI for creating local accounts.  How can I do this through the command line or is there a better way to script it?  Thanks in advance!

  • CTIOS Login - IPCC Error [10156]

    Hi, Customer recently upgraded to ICM/CTIOS 7.5.9. Since then some agents are intermittently seeing the following error message when logging on. " IPCC Error [10156]Login denied because agent exceeded unsuccessful login attempts. " I haven't seen thi

  • Word Wrapping JLabel

    I'm having trouble getting JLabel's to word wrap. I've tried using html tags. Is there any way I ca do this? What I'm trying to do is read in from a file, get Questions and Answers, and display quesitons and answers to a JLabel using setText(). The d

  • Adding firewire device takes host device off-line

    I've been daisy-chaining FW drives with successfully since I've had a G4, and now a G5. Lately though, if I daisy chain a FW drive to another, the drive that was online unmounts, and I get the "improper shutdown" prompt. This happens both with a newe