HELP !!! Problem in R/3 trying to get a PDF on to Web Dynpro

Hi,
I read a note about <b>How to get PDF on to Web Dynpro iView </b>, it was very helpfull, but the problem is in R/3 because I need that the Print Window do not open and send data direct to Web Dynpro.
the code is:
  control_parameters-no_dialog  = 'X'.
  control_parameters-preview    = ' '.
  control_parameters-langu      = 'S'.
  control_parameters-getotf     = 'X'.
  output_options-xsfcmode   = 'X'.
  output_options-xsf        = space.
  output_options-xdfcmode   = 'X'.
  output_options-xdf        = space.
  output_options-tdnoprev   = 'X'.
*  OUTPUT_OPTIONS-TDNOPRINT  = 'X'.
  output_options-xsfoutdev = output_options-tddest = 'ZWIN'.
  output_options-tdimmed    = 'X'.
  output_options-tddelete   = 'X'.
call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname              = 'Z_REP_TRANS_PRES'
*   VARIANT                 = ' '
*   DIRECT_CALL             = ' '
   importing
     fm_name                  = formato
* EXCEPTIONS
*   NO_FORM                 = 1
*   NO_FUNCTION_MODULE      = 2
*   OTHERS                  = 3
call function '/1BCDWB/SF00000022'
exporting
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
   control_parameters         = control_parameters
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
   output_options             = output_options
*   USER_SETTINGS              = 'X'
*   USUARIO                    =
*   FECHA_INI                  =
*   FECHA_FIN                  =
   tipo_rep                   = tipo_rep
*   TIPO                       =
*   LOGO                       = 'ZHR_CANTV_LOGO'
importing
*   DOCUMENT_OUTPUT_INFO       =
   job_output_info            = output_job
*   JOB_OUTPUT_OPTIONS         =
  tables
    transf_pres                = transf_pres
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
  call function 'CONVERT_OTF'
    exporting
      format                = 'PDF'
*/      MAX_LINEWIDTH         = 132
    importing
      bin_filesize          = numbytes
      bin_file              = bin_file
    tables
      otf                   = zoftdata
      lines                 = zpdf
    exceptions
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      others                = 0.
Thanks in advance!!!
tgfch

Hi Claus,
Try use this web dynpro code to open the XSTRING that coming from abap side:
IWDCachedWebResource resource = WDWebResource.getWebResource(
wdContext.currentZReport_OutputElement().getPdf(), WDWebResourceType.getWebResourceTypeForFileExtensio("pdf"));
resource.setResourceName(this.getDescriptionReport());
// Create a External Window with the URL destination
IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), this.getDescriptionReport(), true);
// Eliminate some features of the window
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.MENU_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.setWindowSize(780,430);
window.setWindowPosition(20,140);
window.open();
This code will open its PDF report!!!
Regards,
Luciano Leite

Similar Messages

  • Sorry the answer to my previous question did not help....when trying to get app message tells me I do not have acc or its been disabled. Is this because of joint usage of email as my partner has account with iTunes using same email?

    Sorry the answer to my previous question did not help....when trying to get new app installed on iPad  message tells me I do not have acc or its been disabled. Is this because of joint usage of email as my partner has account with iTunes using same email?

    Whatever the reasons are that you think the problem exists, you will not be able to resolve it on your own. Did you see this at the bottom of the support article that I suggested that you read?
    Additional Information
    If the issue persists, you can visit iCloud Support, iTunes Support, Apple Print Products, or contact AppleCare for further assistance.
    You should probably contact iTunes Support.

  • Strange problem of Pdf downloading  with Web Dynpro

    Hi, experts, I have to setup a project to realize pdf downloading with web dynpro. But unluckily, I have tried all the methods in this froum ,there's really strange problem .Because when I click the link of Download UI link, there's no reaction at all, I really don't know why.Below is the codes I used , can anyone help me ? thank you very much!
    public void wdDoInit()
        //@@begin wdDoInit()
              IWDAttributeInfo attInfo =
                   wdContext
                        .currentContextElement()
                        .node()
                        .getNodeInfo()
                        .getAttribute(
                        "Pdfsource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("test.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              try {
                   int length =
                        (int) wdContext.currentPdfdownloadElement().getBin_Filesize();
                   byte b[] = new byte[length];
                   b = wdContext.currentPdfdownloadElement().getBin_File();
                   wdContext.currentContextElement().setPdfsource(b);
              } catch (Exception ex) {
    "Pdfsource" is the context value attribute of type binary.And Bin_File is the xstring type parameter from my RFC contains pdf content.
    I used two views and one customer-controller . I put some value in the first view to set search condition.and the second then appears and have the download UI element. Are there any additional codes I should use? pls help!

    Hi Hao,
    Try this out
    Suppose the file name is test.doc in c drive in server
    create a context attribute filedata of binary type
    bind it to data property
    write the following code
    try
       File input = new File("C:
    test.doc");
       int length =(int)input.length();
       //Create a byte array b to hold the file
       byte b[] = new byte[length];
       FileInputStream in = new FileInputStream(input);
       //Reading the file to a byte array b
       in.read(b);            
       in.close();
       //Setting the data from the byte array to the context element.
       wdContext.currentContextElement().setfiledata(b);
    catch(Exception ex)
      wdComponentAPI.getMessageManager().reportSuccess("Error in File 
      IO"+ex.toString());
    // Structure information of the context attribute
    IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("filedata");
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attinfo.getModifiableSimpleType();
    // Default File name which appears when opened on client machine
    binaryType.setFileName("testing.doc");
    //Explicitly setting the file type
    binaryType.setMimeType(WDWebResourceType.DOC);

  • Problems with Adobe PDF forms in Web Dynpro Java

    As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .
    1.Text getting wrapped and repeated from the first line :
    Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .
    For eg:
    If I have 4 lines in a text field that is at the end of the page
    1111111111111111111111
    2222222222222222222222
    3333333333333333333333
    4444444444444444444444
    and the page holds space for only two lines it prints the lines
    1111111111111111111111
    2222222222222222222222
    in the first page and then proceeds to the next page and prints
    1111111111111111111111
    2222222222222222222222
    rather than printing
    3333333333333333333333
    4444444444444444444444
    2.No way to hide a page at runtime:
    It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .
    Any pointers on this????????
    Helpful answers will be suitably rewarded with points!!!!

    Yes,I am using the versions that you mentioned.
    I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>
    if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
    then
    MasterData.MngrCmptnc.presence = "visible"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
    MasterData.StrImp.presence = "visible"
    else
    MasterData.MngrCmptnc.presence = "hidden"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
    MasterData.StrImp.presence = "hidden"
    endif

  • Help Please! I am trying to get the 7232 DVR

    I have been trying to get the 7232 DVR since installation.
    My Triple Play was installed on 12/23/2011 and I was given NO DVR.
    I was told I needed to go to the neaest store to get my DVR. At the store they told me they did not have the 7232 but gave me an older DVR, the only one they had in stock but I should call customer service to get the 7232 DVR.
    I called customer service and they said I could only order the 7232 online. I ordered it online around 1/1/2012. Ticket NJDQ026S1V
    I called customer service today and they have no idea where I am in the waiting list and how long it will take.
    I don't think it si fair that since the installer made a mistake that I get stuck with an old DVR.
    Please tell me what I can do
    Thank you for your help 

    The installer did not make a mistake. Installs are done with available equipment. The installation tech likely did not have that box. That ticket you referenced did not show ordering a box. The 7232 can not be ordered on the phone. It must be ordered online. Please follow these steps...
    Go to www.verizon.com/fiostvcentral 
    Sign In
    Select the “FiOS TV” Tab
    Select “Settings”  sub-listing
    Select “Set Top Boxes” from the drop down list
    Select the “Go” button under “Want more from your FiOS DVR.”
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Problems with ML when trying to get online using a manual IP

    Hi there!
    We discovered this today:
    We had to install 2 mac minis at a customer. One of them is a Mini Server. The "normal" one got into the companys Ethernet Network using DHCP. This one worked nearly flawless (except for the usual ML bugs).
    But the Server-Mini had to have a static IP. In the Network Pref Pane in the "Configure IPv4" i chose "Manually" and put in all the numbers the companys IT-Guys gave me.
    There the problems began: I wasnt able to get this Mini online! Some sort of afp-connection from the other Mini was possible but very slow (i think this connection worked directly).
    The IP-Guy i was workin with had no clue what is wrong so was i.
    So far so good - we decided to do some research (this one here is one of my attempts...).
    At home i took my good 'ol 3.1 8-core Mac Pro (which really likes ML ) and did nothing other than change my Macs Network setting from "DHCP" to "Manually" typing in the same numbers (and trying many more numbers afterwards) it got from the Router using DHCP.
    Guess what happend...
    Yepp - Network connection got dead!!
    Doing the same thing with my wifes MacBook Pro (10.6.8), my Mac Mini (10.6.8) my Doughters iMac (PPC 10.4) and my others doughters PowerBook G4 (10.5.8) showed nothing. Network simply went on - no disconnect!
    So what is wrong? I cant believe Apple isnt able to handle such a basic thing like fixed IP-Numbers!
    Greetings
    J. Kellner

    Hi again!
    Combination with Manual IP and open DNS Servers works with my Mac Pro.
    But there at this company they have their own DNS-Servers. That is where ML doesnt work. But old Leopard and SL.
    Maybe Apple simply forgot that there are still some closed environments out there...
    Best wishes
    J.Kellner

  • HT1338 Why won't my AppStore open?  Anyone else having that problem?  I'm trying to get to Mountain Lion to download it.

    Every time I try to open up the Mac AppStore on my MacBook Air, it sends an error message.  What's the issue?  (I'm trying to get to the AppStore to download Mountain Lion!)

    Are you unable to download the videos?
    Or, are you unable to open/view the videos once you download them?

  • Managed account. trying to get safari to access ALL web sites

    I have a managed account for someone on my computer. Everything is working well except when this person goes to get their web mail and there is a link in the message to a web site. When the person clicks on the web site in the message, sarfari asks for administrative permisson in order to access the web site.
    Is there any way to give a person with a managed account ALL access to web sites without having the admin clearing it for them?

    OK, I am going to answer my own question.
    I put FireFox on the desktop of the managed account and now that person has the ability to go online and download files from their web mail as well as view it once it is downloaded. End of problem. Now, I have to get this person off of my computer all the time LOL.

  • Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application

    Hello,
    I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
    at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
    I have configured the connector on the WAS as needed.
    The problem is that when I run the application I receive an Unauthorized error on the connector URL.
    If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
    Any ideas?

    I've never tried using BI in WebDynpro !!!
    But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
    Regards,Anilkumar

  • Umlaut characters getting distorted while displaying in Web dynpro java

    Hi All,
    I have a scenario where I am reading some string values from  a properties file placed in java DC.
    The values read from properties file are to be displayed in  Web Dynpro application.
    The string values contain some umlaut characters eg (ü,ä).
    While displaying in web Dynpro application the umlaut characters  are getting  distorted.
    Any pointers for the same?
    Regards
    Radhika Kuthiala

    Hi Radhika,
    Solution1> you can convert the property file in the encoded format, in the DC having the pr0perty file.
    use this command in the command line:-->native2ascii -encoding utf8 file.txt file2.txt
    Are we renaming hte files after changing the format?
    In one of my previous project we have property file with the french character so we got error, to avoid this we have manually transtaled the file and utilized in the application and used the command in dos promt:-
    native2ascii -encoding utf8 source.txt destination.txt ,
    here if you want to replace the existing file u have to give same name source and destination file. But we have created 2 seprate file. after translation you will something like Fre/uooch king of output.
    Solution3> you can read the file and save in the Strign format and use java package import java.nio.charset.; and encode the string. ---
    Pls refer the below link:-
    http://mindprod.com/jgloss/encoding.html
    Hope this may help you.
    Deepak!!!

  • Can't get BAPI return node in web dynpro!!

    I'm calling BAPI in web dynpro, I already map the <BAPIName>_Input->Output->Return to our custom controller context. I can get the value of some other output parameters in Output node, but can't get the return node.
    wdContext->currentOutputElement is Ok, but wdContext->currentBapiReturnElement is null, what is the problem??!!!
    Can anybody give me an hint, or give me a example to access the return value of Bapi??
    Thank you very much!
    Regards,
    Xiaoming Yang

    Hi Vitaliano,
    Thanks for your reply.
    yes, I've call the invalidate method, like this:
    wdContext.currentBapi_Trip_Create_From_Data_InputElement().modelObject().execute();
    //wdContext.nodeBapireturn().invalidate();//do I need this?
    wdContext.nodeOutput().invalidate();
    But it still can't work!
    The return node is a child note of Output, does it ok?
    Thank you!

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Checkout error when trying to edit a local DC in Web Dynpro

    Hey,
    I've followed the JDI Cookbook and imported the ESS in the Development Configuration.
    When I now try to change anything in the Local DC of the ESS in web dynpro I always got a message:
    <b>
    Checkout is not possible. See below for details.
    The operation requires the writeability of the following Objects:
    View com.sap.xss.hr.rep.vciframe.view.VcRfwIFrameView
    ======>problem: DTR workspace is not modifiable /KDJ_ESSTrack_Dessrep~sap.com/src/packages/com/sap/xss/hr/rep/vciframe/view/VcRfwIFrameView.wdview_pl.xlf
    ======>problem: DTR workspace is not modifiable /KDJ_ESSTrack_Dessrep~sap.com/src/packages/com/sap/xss/hr/rep/vciframe/view/VcRfwIFrameView.wdview_sh.xlf
    ======>problem: DTR workspace is not modifiable
    </b>
    Does anybody has an idea what I should change?
    Thanks
    Lien

    Hello Lien,
    The problem is because the files in read only mode. Remove the read only property of the file from its properties. The issue will be solved.
    Regards,
    Sudeep.

  • IE stops working when trying to open a PDF on the web.

    I have checked the add-ons and Adobe Reader is enabled. I have the file AcroIEHelperShim.dll installed. When I try to open a PDF from a web page, IE stops working. What to do?

    Thanks for your reply.
    IE version 9.0.8112.16421; Adobe Reader version 10.1.3. Only in the last week IE stops responding when I try to open a .PDF file from the web – eg bus route map, catalogue etc.  The messages sometimes say “error in preview handler” and sometimes “runtime error – abnormal program termination” – each time the program is terminated. The Reader opens any previous saved files OK, both downloaded from web or via email. Occasionally one from the web displays, with the error message over the top, but am unable to scroll the document or picture, enlarge it etc. I tried copying the PDF file to put on the desktop, but all that copied was the icon for the file.

  • Problems trying to get create pdf printer to work

    I just subscribed to the create pdf solution specifically for the print to
    pdf capability.
    I use Windows 7 and installed the software OK (after several abortive
    attempts due to various installation error messages).
    I now have two printers created: Xerox Phaser 6120 PS (created to overcome
    the installation errors) and Adobe Create pdf desktop printer.
    If I print a file to the Xerox printer, it prompts for a file name but
    creates a prn file, not a pdf file.
    If I print to the Adobe create pdf desktop printer, it just sends the file
    to the print queue and after a few minutes the print queue displays printer
    error.
    How can I get this to work? It used to be so simple with my old Adobe
    Acrobat v6 on Windows XP. I have wasted so much time on this; it is so
    frustrating!
    Any help would be appreciated.
    Thanks
    David

    Thanks, David.
    That has fixed the problem.
    It would be nice if the print to pdf facility actually prompted to provide a file name and location where you wanted the file to be stored, rather than putting it into a print queue, then disappearing., for it to upload it to the Adobe server from where you have to login and copy it back down to a pc again just wastes time and bandwidth.
    But at least I can now do what I wanted, so many thanks.
    Regards
    David

Maybe you are looking for