Print forms send  in  portal

Is somebody can summarize the ways to print out PO, Invoice.
As we know, ABAP: Report ,query,sartform,
and
adobe forms in Web Dynpro

OK. I answer myself.
SAP introduces the  Interactive forms, which in <b>Web Dynpro Java and ABAP</b> applications and forms including online and offline, since netweaver 2004
To create a from, we can use the <b>Form Builder</b> that is integrated with the ABAP Workbench.(tcode is SFP)
SAP provides an API (application programming interface) that you can use to generate a form template.You can use all interfaces from the package SAXFT.
<b>User SmartForms.</b>
<b>Calling Forms in an Application Program</b> 
1.      FP_JOB_OPEN opens the spool job.
       2.      FP_FUNCTION_MODULE_NAME gets the form name.
       3.      Generated function module of the form
       4.      FP_JOB_CLOSE closes the spool job.

Similar Messages

  • How send a Print Form as attachment PDF?

    Hi everybody,
    I have created an Interactive Forms where I can input any new data.
    When I click on the button for save the new data, I must also convert my Interactive Form in PDF for send it as attachment to email. When I have groped to convert the interactive form in a PDF file, I lost the data that I have inserted.
    So I have created a Print Form through transaction SFP.
    I recall the print form in background mode and gets the form of Interactive Data and requiring as import table OTF,  but the OTF table is returned to me is different from that of a smartform and so I can not use the function module u2018CONVERT_OTFu2019.
    Carryover in the code, you know give me directions?
    With the code I'm used to create the PDF file and attach it to email, but the files that I receive by email can not I open it, probably because of an error in formatting during its creation.
    I look forward to your advice,
    Davide.

    Dear sirs, I can provide this program schema to send PDF print form as an email attachment. Hope it will help a bit.
    FUNCTION ZPDF_MAIL_SEND.
    ""Lokální rozhraní:
    *"  IMPORTING
    *"     VALUE(PDF) TYPE  FPCONTENT
    *"     VALUE(EMAIL) TYPE  AD_SMTPADR
      DATA lt_att_content_hex TYPE solix_tab.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer     = pdf
        TABLES
          binary_tab = lt_att_content_hex.
      CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      CALL FUNCTION 'ZREC_MAIL_GET_BODY'
        IMPORTING
          message_body = lt_message_body.
    Message document
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'Úloha: vyplňte prosím následující formulář' ).
    Add attachment
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'Formulář'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          i_att_content_hex = lt_att_content_hex ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL.
      lo_sender = cl_cam_address_bcs=>create_internet_address( email ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
      lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      TRY.
          lo_send_request->send(
            EXPORTING
              i_with_error_screen = 'X'
            RECEIVING
              result = lv_sent_to_all
            EXCEPTIONS
              OTHERS = 1 ).
       CATCH cx_send_req_bcs. .
        CLEANUP.
      ENDTRY.
      COMMIT WORK.
      MESSAGE 'Formulář byl odeslán' TYPE 'I'.
    ENDFUNCTION.

  • W2 Forms availability on Portal

    Hi All,
    We are implementing SAP HR, Payroll along with Portal with ESS/MSS.
    We have a trouble around making W2 Forms available in Portal.
    There is no standard functionality available to make W2 Forms available over Portal.
    Std SAP Process for W2 is workflow based W2 Reprint application which goes to HR of the Org Unit.
    But we have a requirement that W2 should be available to employees directly on Portal in ESS for viewing and printing.
    Can any one suggest solution, how this can be done?
    Thanking in you in anticipation.
    Regards,
    Rajesh

    Hello,
    You can find the application under
    Personnel Management->Employee Self-Service->Service-Specific
    Settings->Benefits and Payment->W-2 Reprint-> Maintain Address Subtype.
    Please have a look over the note 953877.
    The W2 reprint ESS service is just a workflow that allows employees to
    ask for a W2 reprint. This service will only initiate the Workflow and
    then send out a Workflow item to the Business Workplace Inbox of the
    employee's HR Administrator.
    The HR Admin then executes this item to display and print the W2 reprint
    which is then mailed/sent to the employee. Note 1072770 was released to
    enable HR admin to take a PDF print of the W2 print based on correct
    configuration.
    With Regards,
    S.Karthik

  • Open Adobe Print Form from ALV Int. Rprt using the XSTRING already present

    Hello Friends,
    I have a typicall issue that how to open a Adobe Print Form when a user double clicks in the ALV Report. Here when the user double clicks in the ALV Interactive Report using the unique ID I am getting the Adobe Form from a FTP location in the Form of XSTRING, now using the ABAP ADOBE PRINT FORM not using WebDynpro Application, I need to process this XSTRING and show up the Adobe Print Form.
    OR
    Is there a way to send the XSTRING to the Output Device or Printer to Display the PDF Form.
    Friends please help me in solving this issue.
    Thanks and Regards
    Pradeep Goli
    Edited by: Pradeep Goli on Mar 19, 2009 1:49 PM
    Edited by: Pradeep Goli on Mar 19, 2009 2:51 PM

    Hi Pradeep Goli,
    it is possible to show PDF in SAP GUI.
    Michal
    REPORT  ZTEST_DISPLAY_PDF.
    * You must create dynpro 500 with custom control named HTML.
    * In this custom control will be displayed PDF.
    DATA: g_pdf              TYPE xstring,
          pdf_my_container   TYPE REF TO cl_gui_custom_container,
          pdf_html_control   TYPE REF TO cl_gui_html_viewer.
    START-OF-SELECTION.
    PERFORM create_and_display.
    FORM create_and_display.
    *** Your code fo filling g_pdf
    CALL SCREEN '500'.
    ENDFORM.
    * PDF preview in HTML control
    module html_control output.
      perform pbo_html_control.
    endmodule.
    module html_control input.
      perform pai_html_control.
    endmodule.
    * PAI
    FORM pai_html_control.
      SET SCREEN '0'.
    ENDFORM.
    * Showing of PDF
    FORM pbo_html_control.
      DATA: l_pdf_alignment TYPE i,
            l_count         TYPE i,
            l_noprint       TYPE fpboolean,
            l_noarc         TYPE fpboolean,
            l_noprintarc    TYPE fpboolean.
    *  CLEAR: fcode.
      SET PF-STATUS 'VIEW_PDF'.
    * container
      IF pdf_my_container IS INITIAL.
        CREATE OBJECT pdf_my_container
          EXPORTING
            container_name = 'HTML'
          EXCEPTIONS
            OTHERS         = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
    * html control
      IF pdf_html_control IS INITIAL.
        CREATE OBJECT pdf_html_control
          EXPORTING
            parent = pdf_my_container
          EXCEPTIONS
            OTHERS = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
    *   alignment
        l_pdf_alignment = pdf_html_control->align_at_left  +
                        pdf_html_control->align_at_right +
                        pdf_html_control->align_at_top   +
                        pdf_html_control->align_at_bottom.
        CALL METHOD pdf_html_control->set_alignment
          EXPORTING
            alignment = l_pdf_alignment
          EXCEPTIONS
            OTHERS    = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
      PERFORM pdf_show USING g_pdf.
    ENDFORM.
    FORM pdf_show USING p_pdf_data TYPE xstring.
      STATICS: ls_url           TYPE i.
      TYPES: lt_pdf_table(1000) TYPE x.
      DATA:  l_myurl(80)        TYPE c,
             l_url(80)          TYPE c,
             l_pdf_data         TYPE STANDARD TABLE OF lt_pdf_table,
             l_pdf_size         TYPE i,
             l_pdf_line         TYPE lt_pdf_table,
             l_offset           TYPE i,
             l_len              TYPE i.
      l_pdf_size = XSTRLEN( p_pdf_data ).
      l_len = l_pdf_size.
      WHILE l_len >= 1000.
        l_pdf_line = p_pdf_data+l_offset(1000).
        APPEND l_pdf_line TO l_pdf_data.
        ADD 1000 TO l_offset.
        SUBTRACT 1000 FROM l_len.
      ENDWHILE.
      IF l_len > 0.
        l_pdf_line = p_pdf_data+l_offset(l_len).
        APPEND l_pdf_line TO l_pdf_data.
      ENDIF.
      ADD 1 TO ls_url.
      l_myurl(8) = ls_url.
      CONCATENATE l_myurl '.pdf' INTO l_myurl.
      SHIFT l_myurl LEFT DELETING LEADING space.
      CALL METHOD pdf_html_control->load_data
        EXPORTING
          url          = l_myurl
          size         = l_pdf_size
          type         = 'application'                          "#EC NOTEXT
          subtype      = 'pdf'                                  "#EC NOTEXT
        IMPORTING
          assigned_url = l_url
        CHANGING
          data_table   = l_pdf_data
        EXCEPTIONS
          OTHERS       = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    * show data
      CALL METHOD pdf_html_control->show_data
        EXPORTING
          url    = l_url
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    ENDFORM.

  • Error while generating form 16 in portal - Screen output without connection

    Dear Gurus,
    We are facing error while generating form 16 through portal and getting the below error in portal.
    Screen output without connection to user.    error key: RFC_ERROR_SYSTEM_FAILURE
    When we checked for dumps in R/3 the following dump is coming:
    DYNPRO_SEND_IN_BACKGROUND with error message :
    Message class : FPRUNX
    Message number: 102: No job started.
    Then we tried to execute the form 16 through R/3 itself using tcode PC00_M40_F16 after putting in the relevant values in the selection screen and then press on PRINT FORM button, but surprisingly the system logs out without giving any error or dump.
    We tried doing it repeatedly and once in these attempts we got an error saying Initialization of font server module failed.
    We are not getting clue as to why this is happening. <<Text removed>>
    Regards
    Edited by: Matt on Jul 27, 2011 9:50 AM

    Dear,
    This might be the problem of Adobe Acrobat Reader. what is the version of Adobe you are using ?? If it 9.0, then uninstall it and reinstall 8.0 and then check .
    Could you please check your installed SAPGUI component? If component 'Engineering Client Viewer' is installed, please uninstall
    it. And try to call same transaction again.
    BR, Deepak

  • Question regarding Graphics - Print Forms

    Hi,
    This is a print forms question. We are on ECC 5.0, basis release 640
    Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules.
    For our Smartforms, we loaded BMP files to the BDS using transaction SE78.
    Adobe brings up the exciting possibility of using smaller sized JPG/JPEG files.
    The only place I can think of storing the JPEG files in the SAP system is the MIME Repository. Looks like SE78 does not support JPEG files.
    Here's my requirement and question.
    In the mime repository, I created folder 'LOGOS' in SAP/PUBLIC. So, the path would be /SAP/PUBLIC/LOGOS
    The names of the files in the mime repository are 'LOGO_A' and 'LOGO_B'.
    We need to print the company logo based on company code.
    If company code is 'A' then 'LOGO_A' else, 'LOGO_B'.
    We are reluctant to read the graphic in the ABAP program and pass the whole content through the Interface.
    I cannot embed the graphic in the form since the LOGO will change based on company code.
    Since we can use an url for an image field in Adobe forms, how can I point the url to the mime repository?
    Any help on this is greatly appreciated.
    Thank you.
    Best regards,
    -Ramesh

    Thanks Markus.
    By what you said, I am inferring that you mean access to load the graphic files to the Mime Repository.
    My question is to read the Mime repository since users of bsp applications can still see the LOGOs in their bsp pages (I think. Never did BSP before).
    Here is what I am doing currently.
    Here's my interface:
    LOGO_DATA TYPE XSTRING.
    In my driver program, I am reading the Mime Repository graphic into an XSTRING and passing it through the interface to the LOGO_DATA field.
    I created a Graphic in the Context and set it to 'Graphic Content'.
    I am setting the 'Field' property to LOGO_DATA and MIME Type to 'image/jpeg'
    Now,
    Instead of reading and sending the whole binary content across through the function call, I am looking to see if the following would be possible:
    Interface:
    LOGO_URL TYPE STRING
    In the driver program, assign the URL of the Graphic to field LOGO_URL (Don't know how yet).
    In the context, create a Graphic and set it to 'Graphic Reference'
    In the URL property, set the Graphic URL property to LOGO_URL field and then clear out the delimiter field.
    If it is not possible with the Mime Repository, will it be possible with the Business Document Server (Transaction SE78).
    Thank you.
    Best regards,
    -Ramesh

  • Part II: Adobe Print Forms with Web Dynpro for ABAP. -Practice issue

    Hi,
    I am practicing Thomas jung Tutorial on Adobe forms [Part II: Adobe Print Forms with Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97].
    I am trying to complete this and looks like this tutorial in not complete.Anybody can help me in completing this until we get a preview of adobe form?
    FYI.. Ic ompleted evevrything in tutorial and I am waiting to complete and test.
    Rgds
    Vara

    Thomas,
    Here is where I am stuck.
    Wrote this code in ONACTIONSEARCH.I am getting my entries in internal table ISFLIGHT.
    but unable to bind it to adobe form and show in the form.
    *  SELECT statement
        clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    * navigate from <ADOBE_DATA> to <SFLIGHT> via lead selection
      lo_nd_sflight = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_sflight ).
      lo_nd_sflight->bind_table( new_items = isflight set_initial_elements = abap_true ).
    Error is Access via 'NULL' object reference not possible.
    FYI.. I just dragged and dropped 2 elements from DATA to Adobe form.what are the other changes do i need to do in form gui elements so that it shows the internal table contents?
    this would really help me..
    Rgds
    vara
    Edited by: Vara K on Jan 21, 2009 5:51 PM

  • SOAP Runtime Exception: CSoapExceptionTransport when activ adobe Print Form

    Hi
    I am trying to activate an Adobe Print Form, but I am getting the error "SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport: HTTP send failed with exception communication_failure(100.101)".
    I have searched the forum and can see several thread stating that this is a ADS Configuration/Basis error, but when we try to execute the test report it works just fine, so I am guessing the ADS is working quite fine, or ?
    Any help / hints to fix this error will be very appreciated
    Regards
    Morten Nielsen

    A year back I have experienced the same behaviour of my forms which were very large (30 pages at design time). After some time (number of changes I guess) they stopped working. I had to start all over from the last backup (that was few days ago once, what is a lot of work lost).
    Why I would now do is:
    1) copy your form and try to activate the copy
    2) create a new form with the same interface, create some dummy layout with one field and try to activate
    3) do you have any older version of this form? Or you´ve created it just now and this is the first activation? if you have an older one, try that one
    Otto

  • How to enable frontend printing using Adobe Print Forms

    Otto Gold at the forum "SAP Interactive Forms by Adobe" gave me the tip that Sandra Rossi in this forum might help me out. Here is the link to my original thread How to enable frontend printing using Adobe Print Forms
    My question was:
    Hi Experts!
    Did anyone of you manage to enable frontend printing using Adobe Print Forms? In order to save administration effort we use frontend printing in our ERP system. We just changed some SMARTFORMS to the new Adobe Forms technology. Now we learned that direct frontend printing does not work with these forms.
    Any help will be very much appreciated.
    Kind Regards,
    Gerald

    I think you'll be disappointed by a rather negative answer but I'll try to explain everything I know (or think I know) the best I can
    The simplest solution is to do a preview, and print from Adobe Reader! (as I could see on one project, users have to display one more dialog than usually to print) It's the best workaround according to me.
    How Adobe form printing works:
    When you print an Adobe form from SAP, a printer language (PCL, PS, ZPL, PDF) is retrieved from TSP0B table according to the device type, ADS (Adobe Document Services, installed in the SAP java stack) is then contacted to generate the form: a file corresponding to the printer language is generated and sent back to SAP (there are also 2 other little files but it's of none interest here). SAP stores it as a file (named SPOOL...) in the global directory (DIR_GLOBAL when you use AL11 transaction).
    When you ask SAP to print it, it sends the file as is to the printer.
    Note: when you ask SAP to display the spool, SAP sends a request to ADS which will send back a PDF (binary stream which is not stored on disk, just displayed on frontend).
    How frontend printing works:
    If you want to print a normal spool via frontend, SAP doesn't know the language of the printer you will choose. SAP sends the spool in a format named SAPWIN to a frontend program named SAPLPD, it converts the SAPWIN format into GDI, a Windows format that is understood by all printer drivers, and it is sent to the printer driver (you have selected) which converts the GDI format into the printer language.
    Any workaround?
    First possibility would be that ADS converts the PDF into SAPWIN format (by creating an Adobe .XDC file at the ADS side). SAP says it's not possible in Note 685571 - Printing PDF-based forms. As I understand, SAPWIN is a very simple language compared to PCL for example, so it is very difficult to convert a PDF to SAPWIN without losing much information. There's a SAP note about the SAPWIN language if you want to check.
    Second possibility is to print directly the PDF through Adobe Reader: you get the PDF from ADS, download it to the frontend (easy), and execute directly Adobe Reader print function. Unfortunately, I don't know if it's possible. Moreover, we should enhance the standard SAP print dialog...
    Third possibility is the one I recommended at the beginning of this post

  • Trouble with unprintable characters in Adobe Print form

    Hi experts,
    I'm trying to implement an adobe printform containing a PDF417 Barcode. To separate the datafields within the barcode, i have to use some unprinteable characters like hex 1E or 1C and so on.
    I had the same issue in SMARTFORMS a few years ago, but was able to solve it in smartforms using /0x1E or /0x1C. Now I tried the same in Adobe Forms, but there comes an error in SM21 (syslog), telling me, that there was a problem during a Render operation. (Processing exception during a "Render" operation... A problem was encountered with the results: RenderResult array is null.)
    I tried to use this coding as well:
      data: zrecsep type c.
    field-symbols: <f>.
    label_data_barcode-recsep   = '1E'. "recsep is type x
    ASSIGN label_data_barcode-recsep to <f> CASTING TYPE C.
    move <f> to zrecsep.
    clear <f>.
    After that, zrecsep contains '#', but in hex the correct value '1E'.
    This coding works for all printable characters, such as hex 66 for 'f' or hex 5B for '[', but not for unrintable characters like hex 1E. In case of an unprintable character, a new syslog entry appears.
    Any ideas?
    Many thanks
    Ralf

    Hi, it's me again
    Here is the answer of the SAP support:
    unfortunatelly this control character is not supported by the XML
    standard and the data in the SOAP request is delivered in XML format to
    the ADS. Therefore such character cannot be used.
    I can only suggest the following web page:
    Link: [http://www.w3.org/International/questions/qa-controls#further]
    I then asked another question:
    Is there any other possibility to generate the pdf417 barcode and use
    it inside the pdf form? For example: Is it possible, to generate the
    barcode-image before calling the ADS-function and submit the address of
    the image instead of the string for the barcode?
    answer:
    I understand that you don't want to print out the string value. But it
    works as follows: the template (which contains the empty label
    definition) and the data (which contains the value for the label) are
    sent to ADS and on ADS side will the label generated.
    Therefore it is also not possible with ADS that you create the label
    befor sending it to ADS.
    The only thing I can imagine that you create the label with an external
    program and you insert it into the template as an image. But I don't
    know if it is possible for you.
    Conclusion: There is definitely no chance to use such characters in Adobe print forms due to the XML standard which is used to process the data inside the ADS.
    In my case, i have to use SMARTFORMS technology to create the label with a pdf417 barcode containing these special characters.
    regards
    Ralf

  • Adobe Print form problem

    Hello,
    I have a funny problem. Well, this is the first Adobe Print form development in my current project.
    We have configured ADS and am able to create my Adobe form. I tried testing my form directly and it shows me my form in PRINT PREVIEW properly.
    I tried creating the PRINT PROGRAM as shown below. For my suprise, I dont find the PRINT PREVIEW window itself. Niether the OUTPUT.Can anyone help me in correcting my mistake. I hope someone must have had this kind of similar problem before.
    <i>* Get the Generated function module name
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name                     = 'Z_TEST_APPLICATION_FORM'
      IMPORTING
        e_funcname                 = l_funcname
        E_INTERFACE_TYPE           =
    IF sy-subrc <> 0.
      WRITE : 'Exit at FP_FUNCTION_MODULE_NAME'.
      EXIT.
    ENDIF.
    Set the form processing attributes
    l_outputparams-device = 'PRINTER'.    "Set the output Device to PRINTER
    l_outputparams-getpdf = 'X'.          "Launch Print Preview
    l_outputparams-preview = 'X'.
    l_outputparams-immexit = 'X'.
    l_outputparams-NODIALOG = ' '.
    *l_outputparams-dest = 'LOCA'.
    Start the form processing
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams       = l_outputparams
        EXCEPTIONS
          CANCEL                = 1
          USAGE_ERROR           = 2
          SYSTEM_ERROR          = 3
          INTERNAL_ERROR        = 4
          OTHERS                = 5
    IF sy-subrc <> 0.
      WRITE : 'Exit at FP_JOB_OPEN'.
      EXIT.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    l_docparams-LANGU = 'E'.
    *l_docparams-fillable = 'X'.
    Call our Deferment Application form
    CALL FUNCTION l_funcname
      EXPORTING
        /1bcdwb/docparams = l_docparams
        p9230    = p9230
        ndgp     = l_ndgp
        ldate    = l_ldate
        lsubty   = l_lsubty
        stext    = l_stext
        nric     = l_nric
        ttext    = l_ttext
        rankname = l_rankname
        ndgrant  = l_ndgrant.
    IF sy-subrc <> 0.
      WRITE : 'Exit at l_funcname'.
      EXIT.
    endif.
    Close the Form Processing.
    CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             =
      EXCEPTIONS
        USAGE_ERROR          = 1
        SYSTEM_ERROR         = 2
        INTERNAL_ERROR       = 3
        OTHERS               = 4
    IF sy-subrc <> 0.
      WRITE : 'Exit at FP_JOB_CLOSE'.
      EXIT.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE : 'Sucessful'.</i>
    Expecting a fast response. Thanks in advance.
    Regards
    <i><b>Raja Sekhar</b></i>

    Hi Raj,
    Its really nice to hear from you. getPDf is used for getting the pdf document to process in the code.
    Say, i require to attach the PDF and send the form through mail. In that case, I flag this parameter and get the values in the result import parameter of the FM.
    Hope this will give you some idea. You may refer Jeff Gebo's webinar or Vani krishnamoorthy's papers available in SDN, which illustrates, how you can attach a PDF and ssend the mail..
    Hey, btw, i am posting a new thread regarding drop downs. Please reply to it [:D]
    Regards,
    Anto.

  • How to change company code address in Print form used

    Hi.
    I have maintained the company address under the gobal data in config. However when I used the print form to print out the invoice from AP (FBL1N -> correspondence -> Request), the address of the sender / company code is different.
    How do I change the address from the form / invoice ? How to find out where the form pulls the data from ? I tried SE71 but couldn't trace out anytime.
    Please help.
    Thanks.
    Angel

    Check your configuration.
    Please follow the following steps:
    IMG ==> Financial Accounting ==> Accounts Receivables and Accounts Payables ==> Customer Accounts ==> Line Items ==> Correspondence ==> Make and Check Settings for Correspondence
    Define Correspondence Types
    Create Report Variants for Correspondence
    Assign Programs for Correspondence Types
    Define Form Names for Correspondence Print (even you assign your form to blank company code also)
    If you complete these steps you will get the spool request get generated.
    Please ask your ABAPer to change the company code address and logo etc. on the form.
    You go to FB12 - request for the statement
    then go to F.61
    Then go to SP02 - Take print out.
    Regards,
    Ravi

  • Generate or import xml form content into portal

    Hi, we have a content repository type "fsdb" in wich we have created a xml form to publish content.
    Now we need to develope a program or process that read information from a database and generate the xml content in the repository,
    How can we generate the xml form content?
    I have tried coping and existing element of the repository from the file system and changing the data but something more is needed, I think that is necesary to update the database.
    Any suggestion is welcomed.
    Thanks in advanced.
    Regards.

    Hi,
    I differred my theme, cause I also had to use and transport the xml-forms into another portal. For this reason I have to use xml-forms. I've found out how to modify the the content/text of an subscription-mail.
    Is there any way to define different layouts for subscription-mails? (Maybe depending on the folder.)
    Is there any way to send an e-Mail to a specified address (including the content) when saving the xml-form?
    Greets
    Janko

  • ISU - Print Forms

    hello techies,
    pl tell me what are print forms ? what are different types of print forms ?  any docs and/or links ?
    thanx in advance.

    Please refer below link that explains SmartForms
    http://help.sap.com/saphelp_47x200/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    Scenarios
    1) You may want to print order confirmation in a specified format and send it to your customer as soon as you recieve their PO
    2) You may want to print packing slip along with the goods delivered to the customer
    3) You may want to print invoice and mail it your customer
    All these templates to print different kinds of documents in a specified format is called Forms in SAP
    Is this what you are looking for?
    Raj
    Reward points if helpful

  • FlexBens:Open Enrollment/Print form- No correct adjustment reason specified

    Hi Experts,
    Need help on Flexible benefits of UK.
    I have done all the necessary configuration, but somehow im facing the "No correct adjustment reason specified" on the ESS pages of FlexBens:Open Enrollment & FlexBens:Print Form Screen. However, im able to view Participation screen.
    Also, i have maintained 171 and 378 aswell. but still this error comes. I have used Tcode HRFBN0001 for enroll ment from R/3. Its working fine here. Also I looked in functional module HR_BEN_ESS_RFC_ENRO_REASONS. Data is shown properly.
    I doubt if this is an authorization issue. If anyone of you know what should be the portal Role to access Flexible Benefits ok UK. or if you think the reason is something else, the please share with me your thoughts.
    Regards,
    Pranitha

    Hello Bhargava,
    Please assign/ Configure General Benefits Information (Infotype 0171) for PERNER.
    Go thru this link it will help you
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/7e/8a62e6545711d1891c0000e8322f96/content.htm]
    Thankyou,
    Regards
    Vijai

Maybe you are looking for

  • Can not view help in any adobe product

    In Photoshop, Bridge & Device Central, Adobe Help Viewer 1.1 opens with message "This topic is in the Help system of another product. To view the topic, install that product. about:blank" In Adobe Reader, Adobe Help Viewer has message "File not found

  • How can I delete a junk folder I accidentally created in an IMAP email  account

    I need to know if anyone knows how to delete a junk folder. I created the folder by accident in a IMAP email account.  It's empty and I don't need it .  I don't want to delete the account and re- install it. Any ideas?

  • Quicktime 7.5.5 update breaks FCP?

    FCP/Studio 2 and all my updates are current. My FCP project was fine till I updated QT to 7.5.5. Anybody else have this issue? What can I do to go backwards with QT? thanks for the replys Dan

  • Run time improvement strategies in Oracle 9i PL/SQL

    Hi, I have a PL/SQL program that does some calculations and updates few tables. The program now needs to scale to support some terabytes of data. Also I have a constraint on the run time of the program (around 30 mins). The Logic for the program supp

  • Set up ix500 scansnap with AP Extreme {6th gen}

    I am having problems getting my ix500 scansnap to set up wirelessly with my AP Extreme 6th generation.  I keep getting a message that the security access is not established and that I need to change the access on the ap extreme.  Not sure how to do t