How to display smart form stored in SAP in Webdynpro java( TLINE table)

Hi
I have a requirement where I have to display the smart form from WD Java end.
The BAPI is producing output in TLINE(TDLINE(132),TDFORMAT(2)). I am trying to concat both(TDLINE+TDFORMAT) and put in the interactive form but I am not able to get the output from BAPI.
Is it because the TLINE  format is not supported in the WD java. How can I solve the issue.
Looking forward for the reply.
Regards,
Pawan

Hi..
Try this PDF URL.... u might get useful things...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
Web Dynpro Java
yours GS

Similar Messages

  • Where the standard smart forms stored in sap

    hi
    this is kishore kumar
    i am new to smart forms
    please tell me any body
    in which table table standard smart froms r stored
    for example scripts r stored in  TNAPR TABLES
    so in which table smart forms r stored
    please tell me
    or how to use standard smart forms.
    thanks in advance

    Hi Kishore,
    Smartforms stores in table STXFADM
    Procedure to find where smartforms storeS:
    Run Tcode: SMARTFORMS
    Press F1 on smartform text box .
    Click on technical information icon. You can find table name as SSFSCREEN.
    Double click on SSFSCREEN, Which is a structure.
    In this you can find first field as FNAME(form name).
    Go to entry help/check tab .you can see check table for field FNAME as STXFADM.
    Double click on STXFADM . it takes you into table STXFADM.(this is the table actual table where you can find smartforms).
    click on content icon  where you can different smart forms.
    Regards,
    Jaipal Reddy.k

  • How to display Smart form in Multiple Languages ?

    Hello,
    Very Good evening!
    How can I print the Smart Form in Multiple Languages like Korea, German and Japneese....
    I got a requirement where I need to display the developed Smart form in these languages. As of now it is displayed only in the Language ENGLISH.
    Any Suggestions will be appreciated!
    Regards,
    Kittu

    Hello kittu....
    I would recommend that you create a single Smart Form in the primary supported language (or the one which you're most comfortable maintaining forms). Embed all necessary logic in this form, and design it with the idea that it would need to be viewable in multiple languages .
    Then use transaction SE63 to translate all necessary form components into each desired language -- one by one -- and they will all be bound together under the same form name. In my experience, a basic multi-column spreadsheet (put together with the guidance of professional translators) works well as a translation guide.
    The advantages of a single, shared form include: consistent look and feel, avoiding dual maintenance for shared logic (or, in your case, up to 10x maintenance), and simplified output determination. On the other hand, a single form does constrain your design and can make for a more complex implementation.
    Hope this is useful
    Best of luck,
    Bhumika

  • Display Smart form (PDF) in SAP UI5 Error

    Hello everyone,
    I was following the blog Display Smartform (PDF) in SAPUI5 by @Chandarshekhar .
    I am getting nothing displayed in the pdf. Just the logo is displayed. I really don't know what the problem is . Any help would be appreciated.

    Hi..
    Try this PDF URL.... u might get useful things...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    Web Dynpro Java
    yours GS

  • How to display the form of time statement, which was created in trans. PE50

    Hi to all!
    I have created the salary statement with the PE50 and I want the form to be displayed in the ESS.
    How to display this form?
    Thank.

    Dear Siddharth,
    I am getting this error for Time Statement here also we have used PE50 to create time statement for r/3 purpose, Which would be feasible one to work with for getting the display of Time Statement.
    Form TH_TIME_ST does not exist
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Form TH_TIME_ST does not exist
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Error.<init>(Error.java:49)
         at com.sap.pcuigp.xssfpm.java.FPMRuntimeException.<init>(FPMRuntimeException.java:34)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.reportBapiRet2Error(FcRepFramework.java:525)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:357)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
         at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelection.onInit(VcTimPerSelection.java:238)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelection.onInit(InternalVcTimPerSelection.java:246)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelectionInterface.onInit(VcTimPerSelectionInterface.java:162)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface.onInit(InternalVcTimPerSelectionInterface.java:144)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface$External.onInit(InternalVcTimPerSelectionInterface.java:220)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:467)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:359)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:755)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:722)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:70)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:818)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1265)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:750)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:715)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:113)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:107)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:60)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:335)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:963)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:249)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:101)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Appreciate your help on this.
    Regs,
    Raj

  • Display SMART form as PDF in WD ABAP

    Hi ,
    To display smart form as PDF  , I am following  the SDN article :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true
    In my component  , I have created the view VIEW_PDF, for this . I have created Adobe interactive UI element, and bind the property source to the attribute (XSTRING) where I will  get PDF (after OTF conversion).
    First of all I am using the FM SSF_FUNCTION_MODULE_NAME and usingf the import parameter fm_name .
    Then using this FM
    CALL FUNCTION lv_fm_name
      EXPORTING
       OUTPUT_OPTIONS             = lwa_output_options
        GW_VENREQDAT               = lwa_venreqdat
        GW_REQHEADER               = lwa_venreqhdr
    IMPORTING
       JOB_OUTPUT_INFO            = lv_ssf_output.
    from smart form ZVM_SFM_SUMMARY,I want to get  the data in OTF format using the importing parameter JOB_OUTPUT_INFO of the above FM.
    But I am not able to retrieve the data .Please direct me , where am I missing?
    For converting it to PDF , I am using the FM CONVERT_OTF .
    regards,
    amit

    You may continue like this there after...
    call function w_fmodule
        exporting
          control_parameters = w_cparam
          output_options     = w_outoptions   ":lv_output_options
          user_settings      = ' '
        importing
          job_output_info    = t_otf_from_fm
        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.
      t_otf[] = t_otf_from_fm-otfdata[].
      call function 'SSFCOMP_PDF_PREVIEW'
        exporting
          i_otf                    = t_otf
        exceptions
          convert_otf_to_pdf_error = 1
          cntl_error               = 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.
      data: l_dummy type standard table of tline,
      pdf_data type xstring,
      pdf_size type i.
      clear: pdf_data, pdf_size.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
    *      max_linewidth         = 132
        importing
          bin_filesize          = pdf_size
          bin_file              = pdf_data
        tables
          otf                   = t_otf[]
          lines                 = l_dummy
         exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 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.
      data lv_source like ls_pdf-source.
    * navigate from <CONTEXT> to <PDF> via lead selection
      lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
    * get element via lead selection
      lo_el_pdf = lo_nd_pdf->get_element(  ).
    * get single attribute
      lo_el_pdf->set_attribute(
        exporting
          name =  `SOURCE`
          value = pdf_data ).
    Regards
    Gopi

  • How to display the Form output in multiple languages ? ------ Urgent

    How to display the Form output in multiple languages ? -
    Urgent

    Hi,
    Do u mean the Form output in 2-3 languages ...like form output will be having english russian etc...
    for the above case , what u have to do ...
    first have to get the transalations for all the fields
    say for example : if the english word is PO Number , then u have to get the transalation text for PO Number :
    after this , what u have to is ,,, Log on to SAP with russian language ,  then in the form o/p u have to paste that russian test ( translation text ) ...
    do like this for all the components in the form .
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS

  • How to Display IMAGE BLOB stored in a table in a html region APEX

    Need to know how to display an image stored in a table in a HTML APEX Region.
    Please

    Hi
    Please explain what you mean by it doesn't work?
    Are there errors messages, at what point, how far did you get and exactly what did you do????
    Please provide more information.
    Thanks
    Ben

  • How to populate smart form with new values

    Hi!
    I am new to smart form . Can anybody help me in how to populate smart form with some new fileds. Actually i have to populate credit memo form with some customized values..

    Hello,
    Please elaborate your query more in order to be comprehendable.
    Regards,
    Shehryar

  • How to display struts form list values?

    HI,
    How to display struts form list values?
    I am having master and child data.
    I can set list values master and child in action class.
    How to display the master and child data in struts jsp form.
    <logic:iterate id="result" name="listofEmployees" >
    <td ><bean:write name="result" property="id"/></td>
    <td ><bean:write name="result" property="name"/></td>
    <td > <bean:write name="result" property="list"/>  </td>
    </tr>
    </logic:iterate>Here I am displaying master data succesfully.
    How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
    how to iterate this list with java bean and display my child data
    Thanks
    sai

    Struts 1 or 2?
    I guess 2 'cause you're just talking about Action, without mentioning the Form.
    In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
    bye.

  • How to display Lines and Boxes in SAP Script

    hi,
    Can any one help me how to display Lines and Boxes in SAP Script.
    Regards
    kiran

    The SAP printer drivers based on page-oriented printers use these commands when creating output whereas the line printers and non-supported page-oriented printers ignore these commands.
    Syntax:/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    This command draws a box of the specified size at the specified position.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH determines the width of the box.
    Default: WIDTH value of the SIZE command.
    HEIGHT determines height of the box.
    Default: HEIGHT value of the SIZE command.
    FRAME determines the thickness of frame.
    Default: 0 (no frame).
    INTENSITY determines the box contents as a grayscale percentage.
    Default: 100 (full black)
    The other details I guess is provided by friends who have posted before me.
    Regards,
    K.Sibi

  • How to color the mandatory fields in a Adobe WebDynpro Java form

    Hi Experts,
    How to color the mandatory fields in a Adobe WebDynpro Java form?
    This will avoid any confusion to he end user while filling the form as he would try to type something in field which is set as Read nlybut stil the cursor appears there.
    Regards,
    Shobhit

    Hi Shobhit,
    you can write something like xfa.host.setFocus(<text field name>). to set the focus or
    <text field name>.fillColor = "120,120,123";
    <text field name>.resolveNode"ui.#textEdit").border.edge.fill.color.value="120,150.200";
    to fill the color.
    Refer to adobe dev centger scripting samples to learn more on these.
    Hope these helps.
    Thanks and Regards,
    - anto.

  • Display smart form in PDF

    Hi all,
    I have created a smart form , and I can down load it to the local drive in PDF format.
    But  I want to display my smart form in PDF first , then if the user want to save , he should be able to do so. How can i do thtat.
    Many thanks ,
    Sandeep.

    hi friend,
    pls go through the code
    rewards are expecting .
    vivek
    *& Report  Y_SD_PRE_SHIPMENT
    REPORT  y_sd_pre_shipment.
    **************DATA DECLARATION****************************************
    DATA : BEGIN OF i_vbrk OCCURS 0,
           vbeln TYPE vbrp-vbeln,
           END OF i_vbrk.
    DATA:  prog TYPE sy-repid,
           dynnr TYPE sy-dynnr,
           FNAM  TYPE RS38L_FNAM,
           v_vbeln type ZSDTANNXINV-vbeln,
           idx type i,
           cnt type i.
    DATA: I_FINAL TYPE TABLE OF YPSHIP,
          W_FINAL TYPE YPSHIP.
    DATA: I_HEAD TYPE TABLE OF YPSHIP1,
          W_HEAD TYPE YPSHIP1.
    DATA: it_otf   TYPE STANDARD  TABLE OF itcoo,
          it_docs  TYPE STANDARD  TABLE OF docs,
          it_lines TYPE STANDARD  TABLE OF tline,
          st_job_output_info      TYPE ssfcrescl,
          st_document_output_info TYPE ssfcrespd,
          st_job_output_options   TYPE ssfcresop,
          st_output_options       TYPE ssfcompop,
          st_control_parameters   TYPE ssfctrlop,
          v_len_in                TYPE so_obj_len,
          v_language              TYPE sflangu VALUE 'E',
          v_e_devtype             TYPE rspoptype,
          v_bin_filesize          TYPE i,
          v_name                  TYPE string,
          v_path                  TYPE string,
          v_fullpath              TYPE string,
          v_filter                TYPE string,
          v_uact                  TYPE i,
          v_guiobj                TYPE REF TO cl_gui_frontend_services,
          v_filename              TYPE string.
    ******USER INTERACTION OPTION FOR THE INVOICE NO
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE r.
    PARAMETERS:  invoice LIKE ZSDTANNXINV-vbeln obligatory .
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR invoice.
      REFRESH i_vbrk.
      SELECT vbeln FROM vbrk INTO TABLE i_vbrk.
      IF sy-subrc IS INITIAL.
        prog = sy-repid.
        dynnr = sy-dynnr.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
    DDIC_STRUCTURE         = ' '
           retfield               = 'VBELN'
           dynpprog               = prog
           dynpnr                 = dynnr
           dynprofield            = 'INVOICE'
           value_org              = 'S'
           TABLES
           value_tab              = i_vbrk.
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
       exceptions
      parameter_error        = 1
      no_values_found        = 2
       others                 = 3
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    at selection-screen on invoice.
    if invoice is not initial.
    clear v_vbeln.
    select single vbeln from ZSDTANNXINV into v_vbeln where vbeln = invoice.
    if sy-subrc is not initial.
    message 'Enter Valid Document No' type 'E'.
    endif.
    endif.
    START-OF-SELECTION.
    perform get_data.
    perform process_data.
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
    IF INVOICE IS NOT INITIAL.
    SELECT  VBELN
            VTEXT
            NETWT
            GROSSWT
            vsslname
            kindofpack
            INCO1
            INCO2
            REMDATE
            DESTINATION
            SHPNGLIN1
            CNTRNO
            TRAILERNO1
            ETDDATE
            ETADATE
            baanr
            FROM ZSDTANNXINV
            INTO  TABLE I_HEAD
            WHERE VBELN = INVOICE.
    ENDIF.
    IF I_HEAD[] IS NOT INITIAL.
    select  vbeln
            POSNR
            MATNR
            MAKTX
            meins
            RATE
            VALUE
            WAERK
            PRPOSNR
            from zsafii
            into corresponding fields of table i_final
            for all entries in i_head
            where vbeln = i_head-vbeln.
    ENDIF.
    describe table i_final lines cnt.
    idx = 1.
    loop at i_final into w_final.
    if idx le cnt.
    read table i_head into w_head with key vbeln = w_final-vbeln.
    if sy-subrc is initial.
    move-corresponding w_head to w_final.
    modify i_final from w_final index idx.
    idx = idx + 1.
    endif.
    endif.
    endloop.
    endform.                    " get_data
    *&      Form  process_data
          text
    -->  p1        text
    <--  p2        text
    form process_data .
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
      EXPORTING
        i_language    = v_language
        i_application = 'SAPDEFAULT'
      IMPORTING
        e_devtype     = v_e_devtype.
    st_output_options-tdprinter = v_e_devtype.
    *st_output_options-tdprinter = 'locl'.
    st_control_parameters-no_dialog = 'X'.
    st_control_parameters-getotf = 'X'.
    sort i_final by vbeln.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'Y_SSF_PRESHIPMENT'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
        FM_NAME                  = FNAM
    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.
    if fnam is not initial.
    CALL FUNCTION FNAM
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = st_control_parameters
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = st_output_options
      USER_SETTINGS              = 'X'
    IMPORTING
       DOCUMENT_OUTPUT_INFO       = st_document_output_info
       JOB_OUTPUT_INFO            = st_job_output_info
       JOB_OUTPUT_OPTIONS         = st_job_output_options
      TABLES
        itab                       = I_FINAL
        i_head                     = I_HEAD
    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.
    .........................CONVERT TO OTF TO PDF.......................
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          bin_filesize           = v_bin_filesize
        TABLES
          otf                    = st_job_output_info-otfdata
          doctab_archive         = it_docs
          lines                  = it_lines
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 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.
    ........................GET THE FILE NAME TO STORE....................
      CONCATENATE 'smrt' '.pdf' INTO v_name.
      CREATE OBJECT v_guiobj.
      CALL METHOD v_guiobj->file_save_dialog
        EXPORTING
          default_extension = 'pdf'
          default_file_name = v_name
          file_filter       = v_filter
        CHANGING
          filename          = v_name
          path              = v_path
          fullpath          = v_fullpath
          user_action       = v_uact.
      IF v_uact = v_guiobj->action_cancel.
        EXIT.
      ENDIF.
    ..................................DOWNLOAD AS FILE....................
      MOVE v_fullpath TO v_filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize            = v_bin_filesize
          filename                = v_filename
          filetype                = 'BIN'
        TABLES
          data_tab                = it_lines
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDIF.
    ********************************************************************8
    endform.                    " process_data

  • How to user Smart form for the BID in SRM 4.0

    Hello,
    We have SRM 4.0 and we need to send the BID information to the vendor. This is because we have vendors that are not able to get in to our system and we have to send them a print out of the bid information so that they give us back the information. Then our users will insert it in the system.
    It could be as an attach to the email or it could be printable in the program SPPS - Selecting and Processing Outputs.
    SAP says that there is a smart form BBP_BIDINV_BID and BBP_BID_NOTIFICATION but I am not managing to make them work.
    I found some messages to help solving specific problems so I assume it is possible to do this...
    Is there someone that can help me?
    Thanks very much.
    My best regards,
    Catarina Campos

    Hi
    <u><b>Here is the standard solution to use your own forms:-></b></u>
    <u>- copy the smartform BBP_BIDINV_BID to ZBBP_BIDINV_BID (transaction SMARTFORMS) and apply your changes
    - use BADI to call your custom form ZBBP_BIDINV_BID</u>
    <b>For PDF output form change use BADI BBP_OUTPUT_CHANGE_SF.</b>
    <b>For email notification change use BADI BBP_CHANGE_SF_BID instead.</b>
    <u>You will find all relevant documentation in SPRO --> Supplier Relationship Management --></u>
    SRM Server --> Business Add-Ins (BAdIs) --> Document Output -->
    - Change Forms for Document Output
    - Change Smart Form for E-Mails Relating to Bids
    <u><b>Please go through the links below for more details -></b></u>
    Re: how to use cutom smartform instead standard?
    Re: Email message customization ?
    Re: Bid Invitation Email Subject
    Re: Email notification to bidder should reflect start/end date and time
    Re: RFQ Smartform in SRM
    Re: Standard Text
    Do let me know.
    Regards
    - Atul

  • How to Download Smart Form in 4.6C.

    Hi all,
    I am using the version 4.6C.
    Is there any standrd program like in SAP SCRIPTS to download the smart form layout to desktop later can upload to SAP.
    In 4.7 have a option to downloadand upload but how to do it in 4.6C?
    Any Ideas from your side? please let me know
    Thanks
    Martin.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 8, 2009 11:25 AM

    try this program "ZI_LOAD_SMARTFORMS_AND_STYLES"
    How could he try it...If it's a Z program?
    Greetings,
    Blag.

Maybe you are looking for

  • Plug the converter into an adapter?

    Will my 60w MagSafe Power Adapter that came with my MacBook work if I plug it into one of those simple outlet adapters for Europe. Because I know it does it's own converting so I figured...

  • MovieClip coding questions

    I'm only a few days into Flash 8, and I'm a little confused about conceptually what "MovieClips" should be, and was hoping to get a few quick answers: 1) I was looking through the sample code and it looks like they are creating new graphical items th

  • Managing storage of 16 gb iPhone?

    hi, I recently purchased a 16 gb iPhone. I Hope someone could clarify, how iOS manages the storage needs of apple'a cloud services. Say that I have music collection of over 50 GB, suppose I also uploaded my 20 gigabyte photo collection to the new pho

  • Highlighting nodes in JTree

    Hey guys please help me for this. I want to generate a Tree. In which after some action a few nodes are selected. Now i want to highlight those selected node in the Tree. Is it possible ?? Is anyone have any clue how to do that. Thanks in advance

  • Print much darker than displayed photo

    recently upgraaded to latest Mac system. Using Canon Pixma Pro 9000 printer. When printing image, final print very much darker than displayed on screen!  Using LR 4