Smart Form implementation

Hello,
I would like to set up the smart form in SRM.
Since there is in our R/3 backend a Smart form for PO, I would ask if I can import this Smart form from R/3 to SRM.
Could you please describe the detailed step to integrate the R/3 PO smart form in SRM.
SRM 4.0 Extended classic scenario
Regards,
Shaiek

Hi,
Create a Remote enabled FM in ECC and import parameters of smartform in FM.
Now put this code inside the FM
  DATA lv_smartform       TYPE rs38l_fnam.
  DATA ls_ssfctrlop       TYPE ssfctrlop. 
  DATA ls_output_options  TYPE ssfcompop. 
  DATA ls_job_output_info TYPE ssfcrescl. 
  DATA lt_lines           TYPE STANDARD TABLE OF tline. 
  DATA lv_bin_filesize    TYPE i. 
  DATA lv_pdf_xstring     TYPE xstring. 
* -- Get the name of the smartform function module 
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' 
    EXPORTING 
      formname = 'ZMY_SMARTFORM' 
    IMPORTING 
      fm_name  = lv_smartform. 
* -- Call the smartform 
  ls_ssfctrlop-no_dialog = abap_true. 
  ls_ssfctrlop-getotf    = abap_true. 
  ls_output_options-tdprinter = 'PDF1'. 
  CALL FUNCTION lv_smartform 
    EXPORTING 
      control_parameters = ls_ssfctrlop 
      output_options     = ls_output_options 
      custom_input       = ls_your_custom_smartform_input 
    IMPORTING 
      job_output_info    = ls_job_output_info 
    EXCEPTIONS 
      OTHERS             = 0. 
* -- Convert the OTF data to xstring 
  CALL FUNCTION 'CONVERT_OTF' 
    EXPORTING 
      format       = 'PDF' 
    IMPORTING 
      bin_filesize = lv_bin_filesize 
      bin_file     = lv_pdf_xstring
    TABLES 
      otf          = ls_job_output_info-otfdata[] 
      lines        = lt_lines 
    EXCEPTIONS 
      OTHERS       = 0. 
Now, export the  lv_pdf_xstring  to the SRM system.
In srm print the pdf by using
cl_wd_runtime_services=>attach_file_to_response( 
    i_filename       = 'mypdf.pdf' 
    i_content        = lv_pdf_xstring 
    i_mime_type      = 'application/pdf' 
Thanks & regds
Pksurya

Similar Messages

  • How to get the PO no in the smart form and in the print program from ME23N

    hello all,
                     I am new to smart form printing.I want to make a smartform along with print program that will show PO Details.It has to be created as an o/p type in ME23N. I have created an o/p type ZPO using NACE ..Can some one tell me how to get the PO number in the smart form and in the print program  from ME23N ,so that I can then program the necessary calculations?plz help me with the code.Thanks in advance.
    Subhabrata.

    Hello Everyone,
    I am new to the forum and also to abap.
    Excuse me if it is a basic question.
    I am taking care of the output types.
    This is 1st time SAP will be implemented .
    For purchase order , I go to NACE ---EF----NEU---Processing routines
    print output---SAPFM06P---ENTRY_NEU----MEDRUCK
    FAX-----------SAPFM06P---ENTRY_NEU----MEDRUCK
    EDI------------RANASTED--EDI_PROCESSING
    DISTRIBUTION(ALE)---RANASTED---ALE_PROCESSING
    Are the above settings fine ?
    What are the standard programs for the PO outputs . I am looking for the smartforms and the driver program .
    I searched and found that IN ECC 6 , we have to install OSS notes .
    Gurus, please help  me . Let me know what all oss notes be implemented and how to proceed from here .
    Any help will be greatly appreciated ,
    Monalisa

  • Smart form - Long text in all the items?

    Hello gurus,
    We are using something similar to smart form (I don't know the exactly name, like pretty form).
    So, we are using a long text in the "Item text" by item.
    Sometimes the item can be more than 20 lines in the "Item text" as long text and sometimes not.
    Example: I have a PO with 4 items:
    Item 1 - Without Item text.
    Item 2 - With 20 lines in the Item text
    Item 3 -With 1 line in the Item text
    But, when the PO is printed, the PO form has to all the items 20 lines by item.
    That's mean that if in the first item I don't have item text, the first item is showed with a very long space in blank (space of 20 lines).
    The secont item is showed correctly.
    The third item has one line wrote and 19 lines in blank, like a long space in blank.
    How we can manage this situation in the format?
    How we can program these spaces to see in the format to the first item without the space in blank and to the third item only 1 item and the other 19 lines without being shown?
    Can you help me please a.s.a.p.?
    Thanks for your time and I will wait the answer.
    Regards,
    Sandra Palomo

    Hi ,
    Can you please let me know the solution implemented ?

  • How to use protect and endprotect in smart form

    hi to all experts,
                        im still begineer in smart form , i have two headings like
    company_code:              purchase doc no:
    after this i have a table to be displayed with four columns
    what i want is the whole data should not be split by a page break
    i know this can be achieved by using protect and end protect in sap scripts how to implement in smart form

    probably u have the table inside a loop or a folder or something....
    see this
    Page protection attribute
    Switch for page protection.
    Use
    Page protection switch.
    In some cases you may want to avoid that text is divided by a page break. Therefore, you can protect text sections with a page protection.
    Page protection can extend to
    a paragraph
    a text node
    all output within a folder, for example, several text nodes combined in this folder.
    a line type (table node)
    If on the current page there is not enough space left for the protected text, it is displayed entirely on the next page.
    So u can page protect a line in table...
    in the table node..goto tables tab and click the details tab-->select the line type and check the 'no page break'
    check box

  • How to use loop inside table in smart form

    Hi All
    i have to use page break at the end of each pernr. i got table in smart form and print cells on event on sort begin. it is working ok . i have an other itab in  as well .which i want to the same page with respect to the pernr no.
    but the problem is as i loop the 2nd itab. it prints all the record what it has.
    e.g  i have two pernr 54 and 55.
    the records of itab1 prints on page1 and page 2 properly. now i loop at itab2 it also have relevent records of above said pernrs. but i m unable to control those pernrs and loop print all the records on both pages.
    if u get some thing out of it kindly help me
    Regards
    ammad

    hi,
    Place the second loop ie. itab2 inside the first loop of itab1.  And in the conditions tab of looping itab2 give the condition for checking the pernr.
    try to implement this logic.
    loop itab
      at new pernr
        new-page
      endat.
        loop at itab2 where pernr eq itab-pernr.
       endloop.
    endloop.
    revert back for further queries.
    regards
    Rajitha.

  • Mail subject modification for smart-form SMIV

    Hi Experts,
    We have implemented ServiceDesk in Solution Manager 7.1 SPS 08 & are using automatic notifications to be generated as alert emails to the customer key users / service desk support team / message processors etc.
    We are using Actions under transaction SPPFCADM, which is using smart-form AI_CRM_IM_SHORT_TEXT_LINK_FORM for the email content.
    We need to modify the notification mail subject as follows - 
    Current Mail Subject – 80000xxxxxx : <Incident Description>
    Required Mail Subject – 80000xxxxxx : <Incident Description> : <Incident Status>
    Can you please suggest, how this can be achieved? What modifications are needed in smart form for the same?
    Best Regards,
    Tanmeya

    Hi Tanmeya,
    Go through the following Links, here u can find example with step
    by step.
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Check these step-by-step links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    Check these links also.
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    https://scn.sap.com/thread/499311

  • 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

  • Printing Chinese Characters in Smart Forms

    Hi,
    Iu2019m trying to print Chinese characters via smart forms. However during print preview or print, all Chinese characters are showing as # symbols.
    I have researched and implemented for some possible solutions posted in the forum like:
    a.) Setting the regional language control panel.
    b.) Activating the multi-byte function in I18N.
    c.) Checked the output device is SWINCF.
    d.) Control parameter language is ZH (Chinese).
    Unfortunately it still doesnu2019t solve the problem. Any input is highly appreciated.
    With regards,
    Marc

    Remark following basics:
    Forms:
    Language of the form must be: "ZH".
    Due to a SAPNOTE only font family CN* (CNSONG etc.) is mapped.
    For frontend print, you must install chinese true type on you local PC and print via "CNSAPWIN" .
    For backend print, you must install neccesaary fonts in your printer to the resident fonts. You must use a printer like "CNHPL4" or so.
    For PDF archiving, you must upload truetype fonts to application server -> basis guys.
    Cascading Fonts:
    If you mix different subfonts to unicode areas, you must use CNSAPWINCF.
    Until now, only frontend printing is available.
    Note:
    Spool created for back end print with print preview is only a simulation of getting a picture of the output created with front end technology. So it can differ, when the printer does not have the resident fonts.
    Regards,
    Christian

  • Upload facility for smart forms and expense account rules in oracle iprocurement R12.1.3

    Hi All, 
    We are implementing iprocurement for new operating unit.
    We have many expense account rules and approximately 450 smart forms to be setup for new OU. But as part of R12, the setups are to be done through HTML pages.
    Currently I do not see any option to upload these 2 items, as doing them manually will take lot of manual effort.
    Are there any APIs available to load these 2 items? OR any workaround like using dataloader or isetup?
    I am sure many clients are using R12 for very long time and not sure if there are any issues raised on this?
    Could you please let us know if there are any options avialble to upload them?
    Thanks
    sreenivas

    How to Setup a Valid Vacation Rule for Purchasing Notifications (Doc ID 378023.1)
    Goal
    What steps are required for proper setup of a Vacation Rule for routing of Purchasing Notifications?
    Fix
    1.  Enter the Notification Summary or Worklist for a user
    2.  Select the "Vacation Rule" link
    3.  Select the "Create New Rule" link
    4.  For Item Type select "All" for all Notifications or select the desired Notification Type from List of Values
    5.  Select the "Next" link to proceed to the next setup page for the rule
    6.  Enter both a a valid Start and End Date for the new rule
    7.  Ensure the "Reassign" radio button is selected
    8.  Keep "All Employees and Users" in the menu box
    9.  Select the "Delegate" radio button - Assign/Reassign action is prohibited for Purchasing Notifications
    10.  Select the Flashlight icon next to the blank menu box for selecting a user
    11.  A new sub-screen should pop-up to perform the user search
    12.  For "Search By" select "Username" - (DO NOT search by Name)
    13.  Perform the needed wildcard (%) search at the top of the page to locate the desired username
    14.  Click the radio button next to the desired name of the user to have the notifications sent to
    15.  Press the "Select" button followed by the "Apply" button
    16.  Continue on with the saving of the Vacation Rule for latter use
    Note:
    The key to setting-up a valid Vacation Rule is to ensure the rule is tied to a Username rather then the Full Name of the desired user.  The reason for this is that the Worklist and Notification Summary for the user is linked to their username and not full name record.
    Reference:
    Oracle Workflow User's Guide - Release 2.6.3.5
    Part Number : B12162-02

  • Driver program for the Smart form

    Hi all.
    I have an issue in smart forms.
    we are implementing RE(Real Estate) module with the version ECC 6.0.
    In the RE ,for printing the forms.I know the name of the SMART form only.
    how can i know the corresponding Driver program.
    Plaese help me to solve this issue.
    Thanks on advance,
    Regards,
    Eswar

    Hi,
    You can get your driver program name from tnapr table but some are also configured from others way also.
    Try this will work in any case.
    Open your Smartform then execute.
    Then function module name is displayed
    Open function module and put a break point on first executable statement.
    May be break point on statement like
    CLEAR DOCUMENT_OUTPUT_INFO.
    After giving breakpoint trigger your Smartform for printing in fresh session then it will stop in debug mode then in call tab you can see your driver program name.

  • Smart form update

    Dear all
      we are implementing sap ecc 6.0 and my previous project is SAP All in one ecc 5.0 where i have installed building blocks. After installing building blocks some Abap smart forms got updated then it became easy for our Abap consultant to make the necessary Abap smart form program
    my query is there any updates like particular support pack to make the smart forms to be updated or any program that can be down loaded from sap market site to make the smart forms to be updated
    Requirement is to make the smartform to be updated and to make the work easy
    In this project our product is SAP ecc 6.0 R3 product so we cant install building blocks but is there any othe way to update our smart forms
    pls help me friends
    regards
    senthil

    Hi Senthil,
    Please read the information form marketplace regarding the same. All the information is there.
    Regards,
    Anil

  • Smart form dynamic tray selection on printing

    Hi Experts,
    I have a requirement in smart form that need to output the a particular invoice to a particular tray a printer. For e.g. tray 2.
    I have added TRY02 to the resource name of the pages in the smartform, but still the invoice is being printed to the default tray of the printer.
    I have done a test to that printer by printing the SAPCRIPT-TRAYTEST from SO10, and the output is being printed correctly i.e. to the different trays. So I guess the printer has been configured correctly.
    Is there any additional configurations that need to be done for smart forms for the tray selection works correctly? And, is it correct the way I implemented the functionality in the smart form?
    Can someone help please?
    Thanks in advance
    Regards,
    Zaheed

    Hi Experts,
    I have a requirement in smart form that need to output the a particular invoice to a particular tray a printer. For e.g. tray 2.
    I have added TRY02 to the resource name of the pages in the smartform, but still the invoice is being printed to the default tray of the printer.
    I have done a test to that printer by printing the SAPCRIPT-TRAYTEST from SO10, and the output is being printed correctly i.e. to the different trays. So I guess the printer has been configured correctly.
    Is there any additional configurations that need to be done for smart forms for the tray selection works correctly? And, is it correct the way I implemented the functionality in the smart form?
    Can someone help please?
    Thanks in advance
    Regards,
    Zaheed

  • New smart form picking enjoy purchase order /SAPDII/SPP_ORDER

    Hi Experts,
    Ours is a new implementation project.
    Requirement is to design a new smart form for purchase order.
    The print program for the purchase order is loaded.
    When I go for print preview the print program is calling the enjoy PO and not my form.
    I checked in the transaction NACE
    PRINT PROGRAM : Z_SMBZA_ZA_FM06P
    FORM ROUTINE :ENTRY_NEU
    FORM : -
    PDF/SMARTFORM : Z_MMPO_ZA
    My print program has 2 includes
    INCLUDE Z_SMBA0_AA_FM06TOP.
    INCLUDE Z_SMBA0_AA_FM06PE02.
    Every thing is working fine except with the following piece of code
    IF NOT tnapr-sform IS INITIAL.
        lf_formname = tnapr-sform.
      ELSE.
        MESSAGE e001(ssfcomposer).
      ENDIF.
    Here I am getting tnapr-form as /SAPDII/SPP_ORDER and not Z_MMPO_ZA
    If I change the field to Z_MMPO_ZA in debugging it works fine and I am getting the output of my form.
    In the table TNAPR the field SFORM  shows Z_MMPO_ZA
    In the table NAST the field PFLD3 shows /SAPDII/SPP_ORDER
    Can some one help me how to make the program by default read my form and not /SAPDII/SPP_ORDER
    Thanks
    Joshi

    Hi,
    IF NOT tnapr-sform IS INITIAL.
    lf_formname = tnapr-sform.
    ELSE.
    MESSAGE e001(ssfcomposer).
    ENDIF.
    In debugging check what is value in TNAPR-KSCHL and confirm whether this is the desired output for PO printing.
    Also check in PO Header --> Messages, what is the output type configured there. If it is not the desired output type, try adding your desired output type there and chek the print preview.
    Also confirm the NACE settings are correct for your Output Type used wihile taking the PO printout.
    Thanks & Regards,
    Harish

  • Hi all doubt on smart forms ????????

    hi ,
    i am new to smart forms i need to create a smert form in which complex validation are all had to be implemented .. can anybody send  any nice materials where i can get a brief decsription of what a smart form is how to create it how to implement conditions as i had to start from scrap i ned to have a brief idea ..please send even if u find any nice links for that also ......
    rewards will be sure for  replies................

    Hi,
    Check these links.
    <b>SMARTFORMS</b>
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sap-img.com/smartforms/smart-002.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    FAQ's on Smartforms
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Regards,
    Padmam.

  • How to Call smart form in Action

    Hi All,
    Could some one tell me how to call the smart form in action.
    Eg. PB40 - Offer Contract Action.
    Appreciate your respnse.
    Regards
    Raj

    Hi ,
    attached you find  some  abap code to call a smartform with some comments in it. Hope that helps:
    DATA: l_fn_name               TYPE rs38l_fnam
          , l_devtype               TYPE rspoptype
          , ls_output_options       TYPE ssfcompop
          , ls_control_parameters   TYPE ssfctrlop
          , ls_job_output_info      TYPE ssfcrescl
          , l_pdf_fsize             TYPE i                      "#EC NEEDED
          , lt_otf_tab              TYPE tsfotf
          , lt_pdf_lines            TYPE TABLE OF tline
    To do
       The mapping from the UI structure to the Smortform structure has to be
       implemented here or in a pirvate method.....
    Call function module u201CSSF_FUNCTION_MODULE_NAMEu201D to get the name of the smartform.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = zh38tm_cl_zz_2gen_bl_constants=>c_smartforms_hipo
        IMPORTING
          fm_name            = l_fn_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       Call function module u201CSSF_GET_DEVICE_TYPEu201D to get the print parameter
        CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
          EXPORTING
            i_language             = sy-langu
          IMPORTING
            e_devtype              = l_devtype
          EXCEPTIONS
            no_language            = 1
            language_not_installed = 2
            no_devtype_found       = 3
            system_error           = 4
            OTHERS                 = 5.
        IF sy-subrc = 0.
        Fill label structure to smartform
         ls_labels = zh38pm_cl_zz_bl_perf_plan=>set_sf_label( ).
         Set output parameters u201CLANGUAGEu201D, u201CNO_DIALOGu201D and u201CGETOTFu201D
          ls_output_options-tdprinter     = l_devtype.
          ls_control_parameters-no_dialog = abap_true.
          ls_control_parameters-getotf    = abap_true.
          ls_control_parameters-langu     = sy-langu.
         Call smartform with the structures u201CIMP_S_PERF_PLANu201D, u201CCHG_S_PRINT_PLAN
          CALL FUNCTION l_fn_name
            EXPORTING
              control_parameters      = ls_control_parameters
              output_options          = ls_output_options
              s_doc_processing        = gs_doc-s_doc_processing
              s_header_display        = gs_doc-s_header_display
              s_header_texts          = gs_doc-s_header_texts
              s_header_status         = gs_doc-s_header_status
              t_header_appraiser      = gs_doc-t_header_appraiser
              t_header_appraisee      = gs_doc-t_header_appraisee
              t_header_part_appraiser = gs_doc-t_header_part_appraisers
              t_header_other          = gs_doc-t_header_others
              s_header_dates          = gs_doc-s_header_dates
              t_header_add_data       = gs_doc-t_header_add_data
              t_body_columns          = gs_doc-t_body_columns
              t_body_element_descr    = gs_doc-t_body_element_descr
              t_body_elements         = gs_doc-t_body_elements
              t_body_cells            = gs_doc-t_body_cells
              t_body_cell_notes       = gs_doc-t_body_cell_notes
              t_body_cell_val_values  = gs_doc-t_body_cell_val_values
              t_body_cell_val_ranges  = gs_doc-t_body_cell_val_ranges
              t_body_cell_val_c_like  = gs_doc-t_body_cell_val_c_like
              t_body_cell_val_descr   = gs_doc-t_body_cell_val_descr
            IMPORTING
              job_output_info         = ls_job_output_info
            EXCEPTIONS
              formattinl_error        = 1
              internal_error          = 2
              send_error              = 3
              user_canceled           = 4.
          IF sy-subrc = 0.
            APPEND LINES OF ls_job_output_info-otfdata TO lt_otf_tab.
            exp_t_otf = lt_otf_tab.
           Call function module u201CCONVERT_OTFu201D to convert the smartform data
          to exporting parameter u201CEXP_PDF_XSTRING
            CALL FUNCTION 'CONVERT_OTF'
              EXPORTING
                format                = 'PDF'
              IMPORTING
                bin_filesize          = l_pdf_fsize
                bin_file              = exp_pdf_xstring
              TABLES
                otf                   = lt_otf_tab
                lines                 = lt_pdf_lines
              EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                OTHERS                = 4.
            IF sy-subrc ne 0.
              CLEAR exp_pdf_xstring.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    First you have to determine the smartforms function modules name the wxecute it.

Maybe you are looking for

  • MSI K7N2 DELTA-ILSR ( MS-6570G ) AGP DISABLED PROBLEM

      Hi .  i have the above MB + Radeon 9800 pro graphics card + 1gb of ram + 550w PSU + 2.8 athlon XP. Bios is set to enable agp8. AGP is always disabled and will not switch on . Even when i try to enable AGP thru the ATI SmartGart software the system

  • No sound device

    Hi all, I need some help for a little problem. Got my new 13" MacBook Pro today and after starting it with the delivered HDD and quick checking its functionality I swapped the HDD. I took the bigger and faster drive with the Leopard installation from

  • Still Images In FCE

    Working with 3 still photos as a test I have taken to 2 Procare Sessions. Using DV-NTSC Easy Setup for output in TV aspect ratio burned through iDVD. When adding a push in motion via 2 keyframes the photo "swims". A 2nd photo with a 360 degree rotati

  • BAPI_INSPECTIONPLAN_CREATE..issue

    Hi Experts, I am using BAPI , BAPI_INSPECTIONPLAN_CREATE..Its creating inspection plane..THe only issue is its creating below mentioned locks. Lock mode Table name Lock Argument E OPR_CLASS_LOCK 796Q51999002########00000157 E OPR_CLASS_LOCK 796Q51999

  • How do I change SSID setting? Getting message "using network with default ssid'

    Getting message "using network with default ssid'