Webdynpro application to find forntend printer name

Hi Experts,
My webdynpro application(runs within SAPGUI) is to print the smartform in local user printer. I'm using function module rspo_frontend_printer_for_dev to find the local windows printer. This function module logic is running fine in SE38 ( ABAP editor) to get the default windows local printer name in export parameter value in prdefault  <longprintername> but if I use the same function module in Webdynpro application it give export parameter value in prdefault  <__default> (which is not giving the longprintername).
How do I get the local windows default printer by using this function module or Is there any other approach I need to follow to get the printer name?
Note: This application does not required PDF print preview. I have also used submit program logic in webdynpro to call zreport program(using same function module) to find the local windows printer name but it give the same output prdefault  = <__default> .
Your help is highly appreciated.
Thanks,
Raj

Hi Thomas,
As you said in this forum How to print the smartforms to the windows local printer from WD4A  i will ask for the setup for each of these printers within the SAP backend print infrastructure
Thanks,
Raj

Similar Messages

  • Closing a webdynpro application, should call a portal page

    Hi All,
    I have a requirement in which, after a webdynpro application is closed in portal, the portal should show the workset content from which the webdynpro application is triggered.
    For example,
    Wedynpro application Created is  ZWDA1.
    Two iviews are created in portal which refers to the webdynpro application ZWDA1, the portal Iview names are ZPORTAL_IVIEW1, ZPORTAL_IVIEW2.
    Two worksets ZWORKSET1 & ZWORKSET2 are created in portal which refers to Iview ZPORTAL_IVEW1 and ZPORTAL_IVEW2 respectively.
    Two roles ZROLE1 & ZROLES2 are created in portal which refers to workset ZWORKSET1 & ZWORKSET2 resepectively. These two roles are assigned to users ZUSER1 and ZUSER2, when these user logs into portal they will see the content of the  workset ZWORKSET1 & ZWORKSET2 respectively.
    Assuming ZUSER1 and ZUSER2 invokes the portal ivew ZPORTAL_IVEW1 & ZPORTAL_IVEW2, the underlying webdynpro application called is same. So in the webdynpro application only I need to write the code to close the application and call the workset ZWORKSET1 for ZUSER1 and workset ZWORKSET2 FOR ZUSER2. This differentiation I am not able to indentify in webdynpro application, I thought of using relative navigation.
    Any suggestion to achieve this functionality is greatly appreciatable
    Regards,
    H.K.Hayath Basha.

    Just closing the message

  • Logon for ABAP WebDynpro Application

    Hi All,
    To run an ABAP webdynpro application, do the users need sepearate login for R/3 and SAP WAS, for which SSO can be configured. or is it just one login required?
    Thanks
    Hardik

    Thanks Thomas. I am creating a flow diagram for user logon process. Does below steps make sense?
    1. Enter URL of webdynpro application
    2. Enter User Name and Password
    3. SAPlogon.exe and SAPLOGON.INI provides user Data and server information to Work Processor in WAS
    4. Check User Name and Password information agains SAP User Directory
    5. Give Authentication if successful.
    Thanks
    Hardik

  • Cannot find PDL type for output device '(Printer name)'

    Hi,
    After seeing the statutory reports (PF, ESI etc) in standard format, we try to print form. We get the below error:
    Cannot find PDL type for output device '(Printer name)'
    Message no. FPRUNX113
    Diagnosis
    No PDL type has been found for the specified output device.
    System Response
    Error message
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    For more information, see SAP Note 685571.
    Any input will be off great help...
    Regards
    Pooja

    Hello
    It looks like that you had not installed the ADS(Adobe Document server) for the PDF type reports. Please check with your basis team if you want to configure ADS.
    If you need the output as a sapscript then please do the sollowing steps:
    (1) Execute transaction SM30
    (2) Enter 'Table/View' as V_T5F99OCFT
    (3) Select 'Maintain' option.
    (4) Select 'New Entries' option from the Application Too
    (5) Enter following entries:
         Logical Form Name    = HR_IN_EPF12A_99M
         Form Variant         = (Leave this field blank)
         End Date             = 31.12.9999
         Start Date           = 01.01.1990
         Form Type            = SAP Script (SSC)
         Def. Type            = (This field should be checke
         PDF Form Name        = HR_IN_EPF12A_99M
         SAP Script Form Name = HR_IN_EPF12A_99M
         Smart Form Name      = (Leave this field blank)
    (6) Save the entries
    The above example I have given you is only for the form 12A.
    You have to make entries for all the reports sapscript in this table.
    Please goto SE71 -> F4 -> Payroll -> Payroll India here you will find
    all the sapscripts you require.
    Regards
    Ramana

  • How to find out who is logged into portal through webdynpro application

    hi,
    whenever anyone logs in through the portal and runs a webdynpro iview, the webdynpro application should be such that it gives the name of the user logged in.
    Eg, if i logiin and run the webdynpro iview, the application should display that I have logged in.
    how can this be done?
    its urgent.

    add the jar file com.sap.security.api.jar
    IWDClientUser wdUser = null;
    IUser user = null;
    IUserAccount[] acct = null;
      try
         wdUser = WDClientUser.getCurrentUser();
         user = wdUser.getSAPUser();
         if (user!=null)
              acct = user.getUserAccounts();
              if (acct[0] != null)
                   strUserID = acct[0].getLogonUid();
                   wdContext.currentContextElement().setCa_UserId(strUserID);
              else
                   strUserID = "acc is null";
         else
              strUserID = "user is null";

  • How to find out the printer name for the Idoc

    Hi guys
    I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
    Regards
    Madhoo

    Hi,
    For ALE/IDOC the  medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
    Regards,
    Nagaraj

  • How to find path of a file in WebDynPro Application

    Hello,
    I have created a WebDynPro application. In this application i have created an XML file under
    src->packages->resources. The resources folder i created myself.
    I have also deployed the file on a remote server. This servername & portNumber can change too.
    Now i want to get the handle of my XML file (which is present in the same jar) so that i can user it and populate it.
    <b>The following code doesnt work:</b>
    <i>File file =new File("WebDynProProjectName/resources/filename.xml");</i>
    Regards,
    Aayush

    Hi
      By default it puts it under resources folder. If you want to create your own path then
    1. Create the XML file (eg. output.xml) to some location in the server (eg: c:\Test\files)
    2. Create a HTTP alias(eg. Test) in the Visual Adminsitrator pointing to the file location (eg: c:\Test\files).
    3. Set the linkToURL reference property to http://<<servername>>:50000/Test/<<XML file name>>
    For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"
    /people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
    Hope this solves your problem.
    regards
    Ravi

  • ITunes stops working moments after selecting . Microsoft offers to find solution but no response?Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     11.2.2.3   Application Timestamp:     5383f31a   Fault Module Name: 

    Microsoft report gives details of problem:
    Problem Event Name:
    BEX
      Application Name:
    iTunes.exe
      Application Version:
    11.2.2.3
      Application Timestamp:
    5383f31a
      Fault Module Name:
    StackHash_0a9e
      Fault Module Version:
    0.0.0.0
      Fault Module Timestamp:
    00000000
      Exception Offset:
    00000008
      Exception Code:
    c0000005
      Exception Data:
    00000008
      OS Version:
    6.1.7601.2.1.0.768.3
      Locale ID:
    2057
      Additional Information 1:
    0a9e
      Additional Information 2:
    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:
    0a9e
      Additional Information 4:
    0a9e372d3b4ad19135b953a78882e789
    I have tried reloading the iTunes player but same thing happens after selecting it.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • Print functionality using PDF form in a webdynpro application

    Hello! All
    Currently, we have a webdynpro application and we need to provide the print feature to print the content of the iview display on IE browser. We try the File-> print feature provide by Microsoft through IE but this doesn't work. We are looking for any other option like print to pdf form. We don't know if it is possible. Is there any tutorial, help or anything that can help us to print to pdf form. Please share any other suggestion, comment and it will be much appreciated. Thank you very much.

    Hi,
    The content (which is a pdf content) can be exported as a PDF from a WD Application. For this you can use File Download control whose source is in the form of bytes (which is PDF content).
    Do you have the PDF content already generated?
    If so it is very easy to generate PDF from WD.
    If you need further help, kindly let us know.
    Thanks and regards
    RK

  • How to find out Db name of perticular web application in sharepoint 2010

    how to find out Db name of perticular web application in sharepoint 2010 to take a backup from sql

    1.  Open the SharePoint 2010 Central Admin application.
    2.  On the SharePoint central administration website, click Application Management.
    3.  In the Databases section, click Manage Content Databases.
    4.  On the Manage Content Databases page, select a web application by clicking the Web Applications drop-down list and choosing a web application.
    5.  Can notice the  available database names for the webapplication. ******************************************************************************************
    Please remember to mark your question as answered &Vote helpful, if this solves/helps your problem
    s p kumar

  • How to secure the Webdynpro Application name ?

    Hi Experts,
      I have a requirement to send the Webdynpro Application name to Outlook inbox where the users will logs into that application and they will see the view the data and clicks on some action(Approve or Reject).
    Now the my client does not want send that actual Webdynpro URL to outlook mailbox as it is having some security issues(host and domain details). Instead of that, can we change the actual Application name to any custom name by changing the host , domain and etc, parameters ?
    Thanks in Advance,
    Regards,
    Giri

    Hi,
    If you want to hide the application path, goto SICF transaction and then create an External Alias for your WDA application path and then send the Alias path name.
    Suppose, you have the WDA application url as
    host:port/sap/bc/webdynpro/<APPLICATION_NAME> . Instead of this you can just show
    host:port/sap/<Your Name> ( or any other) using Alias.
    Regards,
    Kiran

  • Print button disabled on webdynpro application

    Hi
    I have a requirement to have 'PRINT' button on PDF form generated from webdynpro application.[POWL],whereas my 'SAVE' button enabled.
    Please suggest me where I need to check for this settings?
    I have checked in POWL_UI_COMP, not found any related stuff.
    Please help me.
    Thanks

    Follow the first 19 steps in below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL+CONFIGURATIONS
    Regards
    Srinivas

  • [solved]lpr - where to find printer name?

    I'm trying to set up my LaserJet 1220 USB printer. Installed hplip (as recommended), run cups. My system sees the printer:
    # tail /var/log/messages.log
    Apr 21 13:00:09 yubaba kernel: Clocksource tsc unstable (delta = -269655282 ns)
    Apr 21 13:00:54 yubaba kernel: usb 3-2: new full speed USB device using uhci_hcd and address 2
    Apr 21 13:00:54 yubaba kernel: usb 3-2: configuration #1 chosen from 1 choice
    Apr 21 13:00:55 yubaba kernel: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417
    Apr 21 13:00:55 yubaba kernel: usbcore: registered new interface driver usblp
    Apr 21 13:10:16 yubaba kernel: usb 3-2: USB disconnect, address 2
    Apr 21 13:10:16 yubaba kernel: usblp0: removed
    Apr 21 13:10:19 yubaba kernel: usb 3-2: new full speed USB device using uhci_hcd and address 3
    Apr 21 13:10:19 yubaba kernel: usb 3-2: configuration #1 chosen from 1 choice
    Apr 21 13:10:19 yubaba kernel: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417
    it's in /dev/usblp0 (echo "blah" > /dev/usblp0 as root prints "blah").
    Now trying to use lpr:
    $ lpr para.f
    lpr: Error - no default destination available.
    I guess I have to add some -P option but have no idea where to look for or set the printer name.
    Last edited by rzodkiewka (2009-04-21 19:13:05)

    Got it. In the large pages of hplip documentation I didn't notice that I just need to
    1. plug the printer in
    2. type
    # hp-conf
    And now it works
    Last edited by rzodkiewka (2009-04-21 19:17:21)

  • How to find windows default printer name

    Hi Experts,
    I have one requirement.....smartform should print in local default printer.
    you might be known in windows we can set default printer name .
    Suppose when the user executes my program, smartform should print in the default windows printer. not sap default printer. I tried by giving printer name as LOCL. In that case it is displaying pop-window by showing printer name. I don't want to see that pop-up window.
    If I pass printer name in the smartform function module.. it is not displaying pop-up window and printing directly.
    For this we need to findout what is the default printer of that particular system.
    I think ... there will be method / FM to findout the front end default printer name...
    Pls help me..
    Thanks in advance
    Raghu
    Edited by: r badveli on Apr 17, 2009 4:46 AM

    Hi Raghu,
    Check the following tables to fetch the printer settings of a user.
    TSPUSRSEL - Spool: User-Specific Settings
    TSP03D   Spool: Device Description (New Format)
    So that you can use this detail and can fill the printer name.
    Hope this will be useful.
    Thanks,
    Rajesh.

  • Using MS Access as backend in Webdynpro Application

    hi guys,
    I am creating a application in webdynpro in which i want to use MS Access as Backend, so can u please tell how to use MS Access as backend.
    What all needs to be done and where the database file needs to be stored etc. please give me all the details...
    thanks in advance
    Gaurav Makin

    Hi Gaurav,
    It is pretty easy to use the MSAccess as a  back end from the webdynpro applications. Take the driver as a JDBC-ODBBC driver and  creat the alias name for the  database  server  to use as a data source.Select the model as a Beanmodel  while creating a model in the Webdynpro explorer.
    please  find the below code which will help you lot.
    Please let me know if you need any further information.
    package com.accenture.radar.project;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    @author suvarna.chittoor
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class ProjectBean {
         private String name;
         private String description;
         private String du;
         private String saveOrUpdate;
         static DataSource dataSource;
         private Connection connection;
         private ResultSet rs;
         private ArrayList duArrayList =new ArrayList();
         private ArrayList projectArrayList =new ArrayList();
         public ProjectBean()
              try
                   //code to look up the datasource
                   InitialContext initialContext = new InitialContext();
                   dataSource = (DataSource)initialContext.lookup("jdbc/aliasforradar");
              catch(Exception e)
                   System.err.print("Error Message"+e.getMessage());
         public static Connection getConnection() throws SQLException, ClassNotFoundException
              System.err.println("In Get Connection");
              java.sql.Connection connection = null ;
              try
                   connection = dataSource.getConnection();
              catch (SQLException e)
                   System.err.println(e.getMessage());     
                   throw e;                         
              System.err.println("After getting Connection from the datasource");
              return connection;
         public void getDUInformation()throws SQLException, ClassNotFoundException
                        connection = getConnection();
                        PreparedStatement ps= connection.prepareStatement("select distinct name from du");
                        rs=ps.executeQuery();
                             while(rs.next())
                                  duArrayList.add(rs.getString("name"));
                        ps.close();
                        connection.close();
         public void saveProjectDetails() throws SQLException, ClassNotFoundException
                   Connection connection = null;
                             if(saveOrUpdate.equalsIgnoreCase("Save"))
                                  connection = getConnection();
                                  PreparedStatement ps =
                                       connection.prepareStatement(
                                            "insert into project values(?,?,?)");
                                       ps.setString(1, getName());
                                       ps.setString(2, getDescription());
                                       ps.setString(3, getDu());
                                       ps.executeUpdate();
                                       connection.close();
                                       ps.close();
                             else
                                  connection = getConnection();
                                  PreparedStatement ps =connection.prepareStatement("update project set du=?,description=? where name='"name.trim()"'");
                                  ps.setString(1,du);
                                  ps.setString(2,description);                         
                                  ps.executeUpdate();                         
                                  connection.close();
                                  ps.close();
         public void getProjectDetails() throws SQLException, ClassNotFoundException
                             Connection connection = null;
                                  connection = getConnection();
                                  PreparedStatement ps=connection.prepareStatement("select name,description,du from project");
                                  rs=ps.executeQuery();
                                       while(rs.next())
                                            Project_HelperClass proj= new Project_HelperClass();
                                            proj.setName(rs.getString("name"));
                                            proj.setDescription(rs.getString("Description"));
                                            proj.setDu(rs.getString("du"));
                                            projectArrayList.add(proj);
                                    ps.close();
                                    connection.close();
         public void getProjectInformation()
                   throws SQLException, ClassNotFoundException {
                   Connection connection = null;
                   connection = getConnection();
                   PreparedStatement ps =
                   connection.prepareStatement("select description,du from project where name='"name"'");
                   rs = ps.executeQuery();
                     while(rs.next())
                        this.description=rs.getString("description");
                        this.du=rs.getString("du");
                      connection.close();
                      ps.close();
    @return
              public String getDescription() {
                   return description;
         public void deleteProject() throws SQLException, ClassNotFoundException
             Connection connection = null;
              connection = getConnection();
              PreparedStatement ps=connection.prepareStatement("delete from sme_support where project = '"name"'");
              ps.executeUpdate();
              PreparedStatement ps1=connection.prepareStatement("delete from wbse where project = '"name"'");
              ps1.executeUpdate();
              PreparedStatement ps2=connection.prepareStatement("delete from supervisor where project = '"name"'");
              ps2.executeUpdate();
              PreparedStatement ps3=connection.prepareStatement("delete from du_lead where project = '"name"'");
              ps3.executeUpdate();
              PreparedStatement ps4=connection.prepareStatement("delete from project where name = '"name"'");
              ps4.executeUpdate();
              connection.close();
              ps.close();     
              ps1.close();
              ps2.close();
              ps3.close();
              ps4.close();          
    @return
         public String getDu() {
              return du;
    @return
              public ArrayList getDuArrayList() {
                   return duArrayList;
    @return
         public String getName() {
              return name;
    @param string
              public void setDescription(String string) {
                   description = string;
    @param string
         public void setDu(String string) {
              du = string;
    @param list
              public void setDuArrayList(ArrayList list) {
                   duArrayList = list;
    @param string
         public void setName(String string) {
              name = string;
    @return
         public ArrayList getProjectArrayList() {
              return projectArrayList;
    @param list
         public void setProjectArrayList(ArrayList list) {
              projectArrayList = list;
    @return
         public String getSaveOrUpdate() {
              return saveOrUpdate;
    @param string
         public void setSaveOrUpdate(String string) {
              saveOrUpdate = string;
    Thanks and regards
    Ratnakar reddy alwala

Maybe you are looking for