PDF, MSS, and ADS

Are you looking for points?  Then you came to the right place! 
I have MSS installed.  However, when I go to start a Personnel Change Request form, I get a "Read timed out" error:
java.net.SocketTimeoutException: Read timed out
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF
Also, in ABAP, program FP_TEST_00 never finishes running.
I have followed all of the steps in the Adobe Document Services Configuration Guide for NetWeaver 7.0:
1.  The ABAP connection works fine with SA38 and FP_PDF_TEST_00
2.  Username and password is fine (http://<server>:<port>/AdobeDocumentServices/Config)
3.  I have installed xACF locally
etc. etc.
Anything I might be missing?  Any ideas?  What version of Adobe Reader should I have?

Hi,
Read Timeout using AdobeDocumentService/InteractiveForms within Web Dynpro. The problem may occur in complex system landscapes with proxies and firewalls. As a result, the servers have different names or ports when accessed internally. As the URL generation does not generate valid URLs or even firewalls are placed between the servers, the communication between Web Dynpro and the ADS fails.
If the system runs on stack 12, the latest WD runtime patch according to note 849851 must be applied. From stack 13 on, no additional patch need to be applied.
The communication between ADS and Web Dynpro should be configured to use SOAP only. As a result, the additional http calls between the internal servers are no longer used.
Use Visual Administrator to maintain propertysheet default:
go to Server -> Services -> Configuration Adapter -> webdynpro -> sap.com -> tcwddispwda
Edit the entry "sap.ADSCallingMode", change that value from "http" to "soap", save the changes and restart the cluster.
For more info refer note 867502
Regards,
Padman

Similar Messages

  • MSS and ADS

    We are installing the MSS version of web dynpro.  We have a straightforward environment thus far with a portal server (J2EE WAS) and an R/3 server (ABAP WAS).   Accordingly we have installed the ESS and MSS java componenets on the portal server.  ESS installed and  working well with this arrangement.
    We are beginning install/config of MSS Adobe-based PCR's, and from what I can glean from documentation and experience, 2 things seem to be true:
    (1) the Adobe PCR forms themselves are resident within R/3 (probably included in a plugin), NOT in the java components (MSS or PCUI_GP) as one might expect
    (2) to render the forms, you must have Adobe Document Services (ADS) installed on the R/3 server--not just on another portal server.  ADS requires the J2EE add-in to the ABAP WAS.  Therefore, it seems that use of the new PCRs requires the J2EE WAS add-in. 
    For those of you who have implemented "new" MSS, am I correct in making the 2 statements above?

    Hello Dwight,
    let me try to at least answer parts of your question.
    - Yes, the ADS need to be deployed on a J2EE WAS to generate PDF based forms (e.g. PCRs) in MSS
    - You can deploy the ADS on any Web AS 6.40 J2EE engine. It does not need need to be installed on the R/3 server. Typically we install it on a separate machine. The ADS is called by MSS through Web Services. You just need to configure the Java and ABAP WAS according to the ADS configuration guide.
    - The MSS forms itself as well as the form integration framework (called ISR) is delivered as part of MSS
    Cheers,
    Matthias Zeller
    Sr. Product Manager
    Adobe Systems

  • Saving SAPSCRIPT to a PDF file using ADS

    Hello,
    I had posted this message on thread Re: Want SAPSCRIPT Work orders to be saved as PDF via ADS. but i was adviced to post it here.
    I need to know whether a SAPSCRIPT (Work Order) in SAP ECC ABAP can be saved as a PDF form if ADS is installed and Configured?
    We have a 3rd party converter installed on users desktop which converts it into PDF so when user goes to IW32 to print WO, they get a print pop-up and they select this 3rd party converter which gives them the option to save it as PDF file.
    We need to know (since we have ADS installed/configured), whether it is possible to save this SAPSCRIPT WO to PDF instead of using this 3rd party tool? We dont want people to install the 3rd party converter since we have over 5000 users.
    Any help is appreciated.
    Thanks
    WR

    Hi try this below coding
    data: binfilesize type i.
      data: pdftab type table of tline with header line.
      data: i_itcpp like itcpp.
    DATA: i_zinv_spool LIKE zinv_spool OCCURS 0 WITH HEADER LINE.
    CLEAR i_zinv_spool. REFRESH i_zinv_spool.
      data: g_t_otfdata type standard table of itcoo with header line.
    DATA filename TYPE string.
      call function 'CLOSE_FORM'
       IMPORTING
         RESULT  = i_itcpp
          tables
            otfdata = g_t_otfdata[]
          exceptions
            others  = 1.
      if sy-subrc ne 0.
        retcode = sy-subrc.
        perform protocol_update.
      endif.
      call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    importing
    bin_filesize = binfilesize
    BIN_FILE =
    tables
    otf = g_t_otfdata[]
    lines = pdftab[]
    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.
    call function 'GUI_DOWNLOAD'
      exporting
      bin_filesize = binfilesize
      filename = filename
      filetype = 'BIN'
    tables
      data_tab = pdftab[]
    Thanks & Regards,
    Vallamuthu.M

  • Remove 'Page Extraction' security restriction in PDF generated by ADS

    Hello Experts,
    I am currently working on a SAP CRM project where we are using Adobe Document Services (ADS) to generate some PDF documents from SAP.
    I have an issue with the Page Extraction security restriction associated to PDF generated by ADS.
    This cause a problem to us since we are expecting the PDF to be processed by Streamserve later on. Streamserve is then 'converting' the PDF in its proprietary format (.lxf) and is preparing a Post Script file for our printing partner.
    I have understood that Streamserve cannot processed our PDF because of the Page Extraction restriction (out from ADS, value is set to Not Allowed by default).
    I have seen the following posts in SDN:
    Page extraction property in PDF document  is set to 'not allowed'
    Document Restriction Interactive Form
    I am then getting concerned since it does not look as straightforward as I would have expected.
    --> Can anyone confirm if there is a way to set the Page Extraction restriction as Allowed?
    Via ADS configuration? Via code? Via some work in SAP (SFP, output device config...)?
    In the above SDN posts, I can read things about buying a policy server, using Adobe Acrobat Pro or Reader Extensions.
    Does anyone have a clear cut?
    Thanks a lot.
    Brice.

    Hello,
    I don´t know how to make this work. I would open the OSS message for this and want SAP to give a workaround or say clearly this cannot be done. Well... in one of the mentioned threads it is mentioned that SAP said this is the right behavior but there was not a word about if that can be changed.
    Otto
    p.s.: probably it would be better for you to send only RAW data (i mean only XML data) and make the partner work with it. If the PDF is converted to "something" by a machine, then you don´t need PDF (what is a user GUI), to send only the data should suffice, or not?

  • Can anybody send me some docs on ESS/MSS and Adobe Forms.

    Hi all,
    Can anybody please send me some doc/materials/link on how to coonfigure/develop/work with ESS/MSS and Adobe forms.
    Its very urgent requirement.
    Thanks n Regards
    A.M.Rao

    For ERP 2005 check out
    hi ,
    for ess..
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAESS/ESSIAC.pdf
    Personnel Admin.http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/0fab358b096510e10000009b38f839/frameset.htm
    Training & Event management
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/44/2bc9367a23fb68e10000009b38f889/frameset.htm
    Personnel Development
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/cf/5e9b38f8236e6de10000009b38f842/frameset.htm
    ESS - http://help.sap.com/saphelp_erp2005vp/helpdata/en/5b/76a6d7fd3a4e91bfb422405bf3e04d/frameset.htm
    MSS - http://help.sap.com/saphelp_erp2005vp/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm
    For ERP 2004
    ESS - http://help.sap.com/saphelp_erp2004/helpdata/en/5b/76a6d7fd3a4e91bfb422405bf3e04d/frameset.htm
    MSS - http://help.sap.com/saphelp_erp2004/helpdata/en/0a/8b3b40b1607a56e10000000a1550b0/frameset.htm
    Also if you have S User ID on SAP Service Marketplace, check out https://service.sap.com/mss-staging for MSS.
    regards,
    venkat.

  • Manipulate plain pdf files with ADS

    Hi experts,
    We are struggling with following requirement:
    Within a webdynpro application plain pdf files (transferred dayly to the servers file system) may be accessed and viewed.
    The pdf should be viewed without any rights to print and save.
    The trouble is - the pdf files are printable and saveable but can not be manipulated before this step.
    We are using NW 7.01 and WD for Java.
    To solve this we configured ADS an tried to convert the PDF using the clientserver.adobe.pdfdocument.api.
    Yet we found no way to rewrite our pdf files with the api.
    Looking through serveral forums did not give us a hint.
    Are we going the wrong way?
    Did we assume falsely that we can manipulate plain pdf files via ADS?
    Thanks' and kind regards,
    Horst

    Hi Dezso,
    thank you for this information! So don't need to invest more time in research.
    As I understand the ADS is designed for forms and workflow stuff.
    On the other hand to have such a powerfull tool like ADS which can not perform such simple actions like manipulation of non ADS generated pdf appears to me quite sad.
    @Otto: As stated above - take a (non ads generated) pdf (e. g. from file system), add/remove rights and view it in a WD. No need of interactive form, template or data if not necessary.
    Best regards,
    Horst

  • NetWeaver Portal and ERP 6.0: BI, ESS/MSS and full Portal on one machine

    Hello,
    with ERP 6.0 you need a EP Core Portal for BI Java. An other EP Core Portal for HCM ECC/MSS. The iViews from this portal you integrate in the main portal via federated portal. But in this scenario i need to much portals and have a lot of maintenance costs (administration overhead for evry portal). For a small Customer i will build one Portal for all. It is possible e.g. to use the BI Portal with ESS/MSS and as full portal?
    Best regards,
    Patrick

    Hi,
    So you would like one BI installation with both the ABAP and the Java-stack with the full BI-functionallity and additionally the XSS-component and set it up to work against the ECC ABAP-only system ?
    I think the scenario would actually work, but:
    1) You might get future problems if you want to upgrade your BI-system and not the ECC-system.
    Is it possible to run the old XSS-components in the new java-stack ?
    2) You might get future problems if you want to upgrade your ECC-system and not the BI-system.
    What if the new version of the XSS-component demands certain java-components which the BI-system do not have.
    So my recommendation is still to run the java-stack on both systems.
    ECC with the XSS-java-components and BI with the Bi-java-components.
    This way you do not lock yourself into a corner and each system can be upgrade independent of the other.

  • My .jpg's have ALL suddenly been converted to .pdf's and I am unable to open them

    Using Windows 8.1, when I went to view some jpg's earlier today, I found they now show as "Adobe Acrobat Documents." When I try to open one, I get the error message that they are jpg's and Adobe is unable to open a jpg.???

    And it was easy -- once I went to "Properties" in Windows Explorer. That was the tough part -- finding where to make the change.
    Thank you for your help.
    Bob Slone
    [privated information removed by moderator]
          From: ~graffiti <[email protected]>
    To: Robert Slone <[email protected]>
    Sent: Wednesday, January 7, 2015 4:09 PM
    Subject:  My .jpg's have ALL suddenly been converted to .pdf's and I am unable to open them
    My .jpg's have ALL suddenly been converted to .pdf's and I am unable to open them
    created by ~graffiti in Adobe Reader - View the full discussionEasy enough to fix. You need to change your system file associations to whatever program you used in the past to open .jpg files. Here's how -
    > Choose the apps Windows uses by default - Windows Help If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7075247#7075247 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7075247#7075247 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Adobe Reader by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Hyperlinks do not work when exporting to PDF (Crystal and Visual Cut)

    I have a question about Crystal Reports XI Release 2 and Visual Cut 11. I create reports in Crystal and export them using Visual Cut. Some reports contain hyperlinks to files on a network drive. However, the links only work while in Crystal. The PDF files that are printed through Visual Cut display the links, but they are not clickable. How can this issue be fixed?
    In case it helps, the links also work when I export reports from Crystal to HTML, Word, and Excel, but not when I export to Acrobat. I believe it is a problem with tagging/accessibilityfeatures. So is there a setting/formula in Crystal or Visual Cut that would allow the exported PDF files to be accessible?

    While Crystal exports to pdf indeed lose hyperlink functionality (both in Crystal as well as in Visual CUT), Visual CUT allows you to use Crystal formulas (acting as hidden Tags) to create hyperlinks in the resulting pdf file. Another option supported by Visual CUT it to automatically detect file references in the pdf text and turn them into hyperlinks.  Contact MilletSoftware for more detail.
    Edited by: Ido Millet on Oct 27, 2010 5:11 PM

  • On a Mac I want to use Preview as default to read PDF's, and Firefox won't let me use anything but Adobe Reader. How to change?

    It had been working properly until recently. I have tried the usual setting in firefox>preferences>applications. It accepts Preview as default, but uses Adobe anyway. If I set it to Ask, it does ask me, and when I tell it to use Preview it uses Adobe.
    Desired default operation is download PDF's and open with Preview.

    The file that stores your preferences for how to open downloads is named mimeTypes.rdf. Since it has a somewhat inscrutable format, the usual remedy is to rename it and have Firefox generate a new one.
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show in Finder" button
    Leaving Finder open, switch back to Firefox and Quit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Restart Firefox and reselect your preference. Any improvement?

  • ALV output converted into PDF format and send that PDF to user through mail

    Hi Experts,
    I have report earlier its output was in alv grid.
    Now i want that ALV output converted into PDF format.And that PDF output send to user through mail.
    Can u please tell how to do?
    My code is here(output is displaying in ALV grid).
    INCLUDE <icon>.
    TYPE-POOLS: slis, kkblo.
    TABLES : zmsd_freight_hdr, zmsd_freight_det, zmsd_blinfo, zmsd_diheader.
    TABLES : lfa1.
    DATA : t_hdr   LIKE   zmsd_freight_hdr   OCCURS 0 WITH HEADER LINE,
           T_DET   LIKE   ZMSD_FREIGHT_DET   OCCURS 0 WITH HEADER LINE,
           t_bl    LIKE   zmsd_blinfo        OCCURS 0 WITH HEADER LINE,
           t_di    LIKE   zmsd_diheader      OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_det OCCURS 0.
            INCLUDE STRUCTURE zmsd_freight_det.
    DATA    type(30).
    DATA: END OF t_det.
    DATA: v_target2(30),
          v_zsammg LIKE t_det-zsammg,
          v_gsttotal LIKE t_det-zamount.
    DATA : BEGIN OF t_data OCCURS 0,
             zsammg       LIKE  zmsd_freight_hdr-zsammg,
             zdidbl       LIKE  zmsd_freight_hdr-zdidbl,
             zvkorg       LIKE  zmsd_freight_hdr-zvkorg,
             zinvno       LIKE  zmsd_freight_hdr-zinvno,
             zttlamt      LIKE  zmsd_freight_hdr-zttlamt,
             zstatus      LIKE  zmsd_freight_hdr-zstatus,
             ztype        LIKE  zmsd_freight_hdr-ztype,
             zconfirm     LIKE  zmsd_freight_hdr-zconfirm,
             zconfirmdate LIKE  zmsd_freight_hdr-zconfirmdate,
             erdat        LIKE  zmsd_freight_hdr-erdat,
             ernam        LIKE  zmsd_freight_hdr-ernam,
             erzet        LIKE  zmsd_freight_hdr-erzet,
             aedat(10),
             aenam        LIKE  zmsd_freight_hdr-aenam,
             aezet        LIKE  zmsd_freight_hdr-aezet,
             zline        LIKE  zmsd_freight_det-zline,
             zfptype      LIKE  zmsd_freight_det-zfptype,
             zchrcode     LIKE  zmsd_freight_det-zchrcode,
             zcurcode     LIKE  zmsd_freight_det-zcurcode,
             zqty         LIKE  zmsd_freight_det-zqty,
             zuom         LIKE  zmsd_freight_det-zuom,
             zrate        LIKE  zmsd_freight_det-zrate,
             zamount      LIKE  zmsd_freight_det-zamount,
             zexrate      LIKE  zmsd_freight_det-zexrate,
           zccode       LIKE  zmsd_blinfo-zccode,      "MADK991565
             zccode       like  ZMSD_FREIGHT_HDR-zfcode, "MADK991565
             zbldate(10),
             zbl          LIKE  zmsd_blinfo-zbl,
             type(3),
             waerk        LIKE  zmsd_freight_det-zcurcode,
             zamountl     LIKE  zmsd_freight_det-zamount,
           END OF t_data.
    DATA : w_layout      TYPE   slis_layout_alv,
           w_catalog     TYPE   slis_fieldcat_alv,
           t_catalog     TYPE   slis_t_fieldcat_alv,
           w_sort        TYPE   slis_sortinfo_alv,
           t_sort        TYPE   slis_t_sortinfo_alv.
    DATA   V_ZINVNO    like   T_HDR-ZINVNO.                   "MADK991565
    DATA : v_count  TYPE  i.
    SELECTION-SCREEN BEGIN OF BLOCK a0 WITH FRAME TITLE text-001.
    PARAMETERS     :  p_zvkorg LIKE zmsd_freight_hdr-zvkorg  OBLIGATORY .
    SELECT-OPTIONS :  s_zdidbl FOR  zmsd_freight_hdr-zdidbl             ,
                      s_zccode FOR  lfa1-lifnr                          ,
                      s_status FOR  zmsd_freight_hdr-zstatus            ,
                      s_ztype  FOR  zmsd_freight_hdr-ztype              ,
                      s_erdat  FOR  zmsd_freight_hdr-erdat              ,
                      s_ernam  FOR  zmsd_freight_hdr-ernam              ,
                      s_zconfd FOR  zmsd_freight_hdr-zconfirmdate       .
    PARAMETERS     :  p_zconf  AS   CHECKBOX                            .
    SELECTION-SCREEN END OF BLOCK a0.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-002.
    PARAMETERS     :  p_hdr    RADIOBUTTON GROUP rad DEFAULT 'X'        ,
                      p_det    RADIOBUTTON GROUP rad                    .
    SELECTION-SCREEN END OF BLOCK a1.
    INITIALIZATION.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM process.
      PERFORM display.
    END-OF-SELECTION.
      PERFORM fm_get_num_pages.
    AT USER-COMMAND.
    AT LINE-SELECTION.
    TOP-OF-PAGE.
      PERFORM fm_top_of_page USING '7010' sy-title space.
    FORM get_data.
      SELECT   *
        FROM   zmsd_freight_hdr
        INTO   TABLE t_hdr
       WHERE   zvkorg        EQ  p_zvkorg
         AND   zdidbl        IN  s_zdidbl
         AND   zstatus       IN  s_status
         AND   ztype         IN  s_ztype
         AND   erdat         IN  s_erdat
         AND   ernam         IN  s_ernam
         AND   zconfirmdate  IN  s_zconfd
         AND   ZFCODE        IN  S_ZCCODE.                      "MADK991565
      IF p_zconf = 'X'.
        DELETE t_hdr WHERE zconfirm NE 'C'.
      ENDIF.
      CHECK NOT t_hdr[] IS INITIAL.
      SELECT   *
        FROM   zmsd_blinfo
        INTO   TABLE t_bl
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_bl BY zsammg.
      SELECT   *
        FROM   zmsd_diheader
        INTO   TABLE t_di
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_di BY zsammg.
    IF P_DET = 'X'. "MADK933361
      SELECT   *
        FROM   zmsd_freight_det
        INTO   TABLE t_det
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg  =  t_hdr-zsammg
       AND ZINVNO =  T_HDR-ZINVNO .                           "MADK991565
    SORT t_det BY zsammg zline.                            "MADK991565
       SORT T_DET BY ZSAMMG ZINVNO ZLINE.                     "MADK991565
    ENDIF. "MADK933361
    ENDFORM.
    FORM process.
      REFRESH t_data.
      CLEAR v_gsttotal.                                         "MADK933361
      LOOP AT t_hdr.
    Start of MADK933361
        CLEAR: v_target2.
        v_zsammg = t_hdr-zsammg.
        V_ZINVNO = T_HDR-ZINVNO.                                "MADK991565
       AT NEW zsammg.                                         "MADK991565
         AT NEW ZINVNO.                                         "MADK991565
          PERFORM get_gst_value.
        ENDAT.
    End of MADK933361
        PERFORM move_header.
        CHECK t_data-zccode IN s_zccode.
        IF p_det = 'X'.
    CSF Project Changes Starts   DEV34    MADK985782
        LOOP AT T_DET WHERE ZSAMMG = T_HDR-ZSAMMG..
          LOOP AT t_det WHERE zsammg = t_hdr-zsammg AND
                              zinvno = t_hdr-zinvno.
    CSF Project Changes Ends     DEV34    MADK985782
            PERFORM move_header.
            CHECK t_data-zccode IN s_zccode.
            MOVE-CORRESPONDING t_det TO t_data.
            t_data-zamountl = t_data-zamount * t_data-zexrate.
            APPEND t_data.
            CLEAR t_data.
          ENDLOOP.
        ELSE.
          APPEND t_data.
          CLEAR t_data.
        ENDIF.
        AT END OF zsammg.
          CLEAR v_gsttotal.
        ENDAT.
    *Start of changes for  IS090901289-PIA MADK991565
        AT END OF ZINVNO.
          CLEAR V_GSTTOTAL.
        ENDAT.
    *End of changes for  IS090901289-PIA MADK991565
      ENDLOOP.
    ENDFORM.
    FORM move_header.
      MOVE-CORRESPONDING t_hdr TO t_data.
      t_data-zttlamt = t_data-zttlamt + v_gsttotal.             "MADK933361
      t_data-waerk = 'SGD'.
      IF NOT t_hdr-aedat IS INITIAL.
        WRITE: t_hdr-aedat TO t_data-aedat.
      ELSE.
        CLEAR : t_data-aedat.
      ENDIF.
      READ TABLE t_bl WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
      IF sy-subrc EQ 0.
      t_data-zccode  = t_bl-zccode.   "MADK991565
        T_DATA-ZCCODE = T_HDR-ZFCODE.   "MADK991565     
        IF NOT t_bl-zbldate IS INITIAL.
          WRITE: t_bl-zbldate TO t_data-zbldate.
        ENDIF.
        t_data-zbl     = t_bl-zbl.
        t_data-type    = 'DBL'.
      ELSE.
        READ TABLE t_di WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
        IF sy-subrc EQ 0.
        t_data-zccode  = t_di-zdiforcode.     "MADK991565
          T_DATA-ZCCODE = T_HDR-ZFCODE.         "MADK991565
          t_data-type    = 'DI'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM display.
      IF t_data[] IS INITIAL.
        MESSAGE s398(00) WITH 'No Data Selected'.
        EXIT.
      ENDIF.
      DATA : l_repid LIKE sy-repid.
      l_repid = sy-repid.
      REFRESH t_catalog.
      CLEAR   t_catalog.
      w_layout-cell_merge = 'X'.
      PERFORM map_fields.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = l_repid
                i_callback_user_command = 'ALV_USER_COMMAND'
                is_layout               = w_layout
                it_fieldcat             = t_catalog[]
                i_grid_title            = sy-title
                i_save                  = 'A'
                it_sort                 = t_sort[]
           TABLES
                t_outtab                = t_data
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.
    FORM map_fields.
    Sort Order
      CLEAR v_count.
      PERFORM sf USING 'ZDIDBL'   'X'  'X'.
    Fields to be displayed
      CLEAR v_count.
      IF p_hdr = 'X'.
        PERFORM af USING :
       DESCRIPTION       FIELD        LEN   RTABLE             RFIELD
        'DI/DBL         ' 'ZDIDBL'     '14' '                ' '        ',
        'Type           ' 'TYPE'       '04' '                ' '        ',
        'Forwarder Code ' 'ZCCODE'     '14' '                ' '        ',
        'BL Number      ' 'ZBL'        '14' '                ' '        ',
        'BL Date        ' 'ZBLDATE'    '10' '                ' '        ',
        'Invoice Number ' 'ZINVNO'     '15' '                ' '        ',
        'Extraction     ' 'ZSTATUS'    '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type   ' 'ZTYPE'      '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation   ' 'ZCONFIRM'   '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date   ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount   ' 'ZTTLAMT'    '18' '                ' '        ',
        'Created On     ' 'ERDAT'      '10' '                ' '        ',
        'Created By     ' 'ERNAM'      '10' '                ' '        ',
        'Changed On     ' 'AEDAT'      '10' '                ' '        ',
        'Changed By     ' 'AENAM'      '10' '                ' '        '.
      ELSE.
        PERFORM af USING :
       DESCRIPTION         FIELD     LEN   RTABLE             RFIELD
        'DI/DBL           ' 'ZDIDBL'   '14' '                ' '        ',
        'Type             ' 'TYPE'     '04' '                ' '        ',
        'Forwarder Code   ' 'ZCCODE'   '14' '                ' '        ',
        'BL Number        ' 'ZBL'      '14' '                ' '        ',
        'BL Date          ' 'ZBLDATE'  '10' '                ' '        ',
        'Invoice Number   ' 'ZINVNO'   '15' '                ' '        ',
        'Extraction       ' 'ZSTATUS'  '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type     ' 'ZTYPE'    '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation     ' 'ZCONFIRM' '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date     ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount     ' 'ZTTLAMT'  '18' '                ' '        ',
        'Freight Payment  ' 'ZFPTYPE'  '14' '                ' '        ',
        'Charge Code      ' 'ZCHRCODE' '10' '                ' '        ',
        'Currency         ' 'ZCURCODE' '08' '                ' '        ',
        'Quantity         ' 'ZQTY'     '13' '                ' '        ',
        'UoM              ' 'ZUOM'     '04' '                ' '        ',
        'Rate             ' 'ZRATE'    '15' '                ' '        ',
        'Amt(Foreign Curr)' 'ZAMOUNT'  '16' '                ' '        ',
        'Exchange Rate    ' 'ZEXRATE'  '13' '                ' '        ',
        'Amt(Local Curr)  ' 'ZAMOUNTL' '16' '                ' '        ',
        'Created On       ' 'ERDAT'    '10' '                ' '        ',
        'Created By       ' 'ERNAM'    '10' '                ' '        ',
        'Changed On       ' 'AEDAT'    '10' '                ' '        ',
        'Changed By       ' 'AENAM'    '10' '                ' '        '.
      ENDIF.
    ENDFORM.
    FORM af USING text
                  field
                  len
                  table
                  reffield.
      v_count = v_count + 1.
      w_catalog-col_pos       = v_count.
      w_catalog-fieldname     = field.
      w_catalog-ref_tabname   = table.
      w_catalog-ref_fieldname = reffield.
      w_catalog-seltext_s     = text.
      w_catalog-seltext_m     = text.
      w_catalog-seltext_l     = text.
      w_catalog-outputlen     = len.
      IF field = 'ZTTLAMT' OR field = 'ZAMOUNTL'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'WAERK'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
    IF FIELD = 'ZRATE' OR FIELD = 'ZAMOUNT'.
      IF field = 'ZAMOUNT'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'ZCURCODE'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
      IF field = 'ZQTY' OR field = 'ZRATE'.
        w_catalog-no_zero     = 'X'.
        w_catalog-datatype  =  'DEC'.
      ENDIF.
      APPEND w_catalog TO t_catalog.
      CLEAR  w_catalog.
    ENDFORM.
    FORM sf    USING   fieldname  sortup  group.
      v_count = v_count + 1.
      CLEAR w_sort.
      w_sort-fieldname = fieldname.
      w_sort-spos      = v_count.
      w_sort-up        = sortup.
      w_sort-group     = group.
      APPEND w_sort TO t_sort.
    ENDFORM.
    FORM alv_user_command USING  in_ucomm    LIKE sy-ucomm
                                 in_selfield TYPE slis_selfield.
      DATA: lfs_data LIKE t_data.
      IF in_ucomm = '&IC1'.
        READ TABLE t_data INDEX in_selfield-tabindex INTO lfs_data.
        CHECK NOT lfs_data-zdidbl IS INITIAL.
        IF lfs_data-type = 'DBL'.
          DATA: l_zdbl LIKE zmsd_diheader-zdinum.
          l_zdbl = in_selfield-value.
          EXPORT l_zdbl TO MEMORY ID 'VBL'.
          CALL TRANSACTION 'ZMSD_BL01'.
        ENDIF.
        IF lfs_data-type = 'DI'.
          DATA: v_dinum LIKE zmsd_diheader-zdinum.
          v_dinum = in_selfield-value.
          EXPORT v_dinum TO MEMORY ID 'VDI'.
          CALL TRANSACTION 'ZMSD_DI01'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM get_gst_value.
      LOOP AT t_det WHERE zsammg = v_zsammg
         AND ZINVNO = V_ZINVNO.                              "MADK991565
        CHECK t_data-zccode IN s_zccode.
        t_det-zamount  = t_det-zamount * t_det-zexrate.
        SELECT SINGLE  y0mmtarget2
                INTO   v_target2
                FROM   y0mmipstranslate
                WHERE  y0mmdatatype = '70' AND
                       y0mmsource = t_det-zchrcode.
        SELECT SINGLE y0mmtarget1
               INTO   t_det-type
               FROM   y0mmipstranslate
               WHERE  y0mmdatatype = '76' AND
                      y0mmsource = v_target2.
        IF t_det-type NE '3Z'.
          v_gsttotal    = v_gsttotal +
                               ( t_det-zamount * 5 / 100 ).
        ENDIF.
      ENDLOOP.
    Regards,
    Raj.

    Hello,
    Following is the procedure to convert alv output to spool and then it to PDF Format.
    After we display the ALV, we can check whether it is running in the background using system field u2018sy-batchu2018. Then,we call an function module named u2018GET_JOB_RUNTIME_INFOu2019 to get the current job information. Then go to spool request table tbtcp to get the spool id.
    Get current job details
      CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                               AND jobcount = gd_jobcount
                               AND stepcount = gd_stepcount
                               AND listident <> u20180000000000u2032
                               ORDER BY   jobname
                                                   jobcount
                                                   stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
    Finally, we can call function module u2018CONVERT_ABAPSPOOLJOB_2_PDFu2018 to convert spool reqeust(which is stored in OTF format) to PDF format. Then we can call either function module u2018SO_DOCUMENT_SEND_API1u2032 or SAP BCS (Business Communication Service) to send the pdf as an email attachment.
    CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount = gd_bytecount
           TABLES
                pdf = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
    Regards,
    Sayali
    Edited by: Sayali Paradkar on Apr 20, 2010 12:51 PM

  • Can I print web pages from firefox using adobe pro 9 (Not using PDF download) and if so how

    Can I print web pages from Firefox 3.6.12 using adobe pro 9 (not using PDF Download) and if so how.

    {Ctrl + P} - do you have a PDF Printer listed in the Printer - Name drop-down?

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • Accessible PDF files and forms

    I am beside myself with the lack of help and/or interest in the Accessiblity area. We have been mandated to make all our PDF files accessible on our Web site. We have been able to master many of the issues regarding tags and form fields, but still have questions regarding updating the original PDFs without loosing the tag structure.
    Is there any options on the Adobe site that may concentrate on this area? I called tech support yesterday (Bronze contract), was on hold for 10 mins and got disconnected. After leaving my number, they never called me back again.
    HELP
    KEN PANTHEN, Albany, NY

    Bill
    The point was not having to create the tags again in a new file before
    replacing the pages containing the form fields in the old file. We have
    many forms that get updated right up to the last minute and to go through
    the tagging process is too time consuming. We do not use PDF Maker, but
    produce all the PDFs directly out of InDesignCS3 to Adobe Acrobat
    Professional (Distiller).
    Thanks for your reply.
    KEN PANTHEN
    NYS Tax Department
    Information Technology Specialist 2
    FPM - Composition Services Unit
    (518) 457-1425
    (518) 485-7828 (fax)
    From:
    "Bill@VT" <[email protected]>
    To:
    Kenneth Panthen <[email protected]>
    Date:
    06/24/09 11:19 AM
    Subject:
    Accessible PDF files and forms
    I am really suggesting replacing all of the pages. I was thinking that the
    tag structure would go with the replacement and you would need to create
    the other PDF with PDF Maker to keep the tagging. I may be wrong, but that
    was the view I had. If you replace a single page, I am not sure what might
    happen since that would generally not be done with PDF Maker.
    Since you already have the application process going, it is probably
    easiest for you to try the variations on replacing pages and such --
    basically what I would be doing.

  • How to read  *.pdf files and store them in a database?

    Dear programmers,
    I have problem with reading *.pdf files and store them in a database.
    can any one help me, please!
    Is it possible to read more than one file from the local system and store them in a database.
    thnaks in advance.
    bye

    What "problem" are you encountering?
    Depending on your choice of database software, it may or may not support the storage of binary large objects (BLOBs).

Maybe you are looking for

  • How to create stub for C++ client to invoke a  j2ee web service

    Hi All, I have developed a j2ee web service which is deployed in Tomcat. I have to call this service from C++ client. I have followed "Axis C++ Client User's Guide" to create stub for my service. I am running WSDL2Ws tool with command D:\axisserver\a

  • Picture with Jaggies

    How do you smoothe a picture that has the 'jaggies.'  This happens when you enlarge a small picture.  Is anti-aliasing the answer?

  • Reader 11 on Win7(64) displays an oversized print dialogue with no bottom scrollbar. Useless!

    When I try to print from Adobe Reader 11, I get a print dialogue that's garbled. It's using full screen and really big fonts so I can only see a small part. Occationally it displays in the correct size, but then it shows no text. I have screen resolu

  • ILife '08 not included on CDs

    Hello, I have re-installed Mac OS X from the two CDs that came with the iMac, but the installation CDs don't include iLife '08. Is there a way to re-install iLife '08? Regards, Reda

  • Create a Quotation

    Hi Experts,                   Can any one tell me how can i use this FM SD_SALESDOCUMENT_CREATE for creating a Quotation. I want to know what are Minimum  parameters that i have to fill to run this Function module. I really appreciate yours valuable