How not to see password in the script?

Hi all,
11.2.0.1
Aix 6.1 5L
I have a script expdp01.sh
Which contains:
expdp system/$1 schemas=HR
Then I can run the script at  $ expdp01.sh  hrpass
This is done so that the password will not be hard-coded in the script. Is this a good idea?
Is there a way to hide the input parameter?
Thanks a lot,
zxy

yxes2013 wrote:
Hi all,
11.2.0.1
Aix 6.1 5L
I have a script expdp01.sh
Which contains:
expdp system/$1 schemas=HR
Then I can run the script at  $ expdp01.sh  hrpass
This is done so that the password will not be hard-coded in the script. Is this a good idea?
Is there a way to hide the input parameter?
Thanks a lot,
zxy
How is this question different from the one you asked two weeks ago?  ==> How not to see database password?

Similar Messages

  • After transferring clips to Final Cut, they do not show up in the events library. They show up in the timeline of my project, though. how can I see then in the events browser?

    After importing clips to Final Cut, they do not show up in the events library. Events from 2014 show up, but not 2015.They show up in the timeline of my project, though. How can I see them in the events browser?

    TThose aren't bins. Those are just groupings based on when the content was created or any other selected parameter. Use the action popup in the toolbar tho change the setting.

  • How do I get rid of the "your voice mail password is incorrect" as I do not have a password on the phone

    How do I get rid of the "your voice mail password is incorrect" as I do not have a password on the phone

    Settings > Music > Show All Music > Off
    tt2

  • How to create a password for the pdf file

    In Adore Acrobat XI, how to create a password for the file? The help states going to Tools Menu and clicking on Protection tab - but there is no such option. In the file - properties - security screen, it shows the security details but does not allow to edit it.

    I think you may be mixing up two different products: Adobe Reader (free), and Acrobat ($$).

  • HT1338 hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine.

    hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine. now though the pages just load very very slowly or load leaving out certain pictures and video content. i've tried clearing my cache's and cookies, resetting my browser etc, but it seems like its a system issue as both safari and firefox are having issues. i've run Avast to screen for malware and it came up empty. any suggestions?

    10.4.8's been a pain for Networking... not sure of all the reasons though, or whether all the complaints might not be MS working around Bugs/Non-compliance, but at this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    Fixes a lot of problems, and besides, if your Mac ever gets to the point it won't Boot... this is a life saver!
    After you run that... let's see where we are.
    BTW, several ISPs seem to have trouble with their DNS Servers lately, might try these insead...
    208.67.222.222
    208.67.220.220

  • How to reuse some components of the scripts layout to other programes

    how to reuse some components of the scripts layout to other programes

    You can't reuse components; the only solution would be to copy a script and to remove all components not needed.
    Regards,
    John.

  • ICal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed on alert.

    iCal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed.

    Calendar (not called iCal anymore) does not include that capability any longer, apparently.  What you have to do now is go to Automator and create a Calendar Alert action.  You can add a Run AppleScript object to the action and paste in your script there, then when you save it, it will become available as a choice in the alert menu in Calendar.

  • How not to get back on the page i just closed when opening a new session

    How not to get back on the page i just closed
    when opening a new session?
    I do have a live stream radio on now...
    Therefor new session might not be the complete truth.
    Gerard

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • HT5624 How to recover forgotten password in the itune phone data restore?

    How to recover forgotten password in the itune phone data restore?

    If the encryption password for the iPhone backup has been forgotten there is no way to recover it.

  • Hi, I bought a İphone 4, it asks activation İcloud but I do not know login & password, but the box and all the codes (IMEI,ICCID) available. What to do?

    Hi, I bought a İphone 4, it asks activation İcloud but I do not know login & password, but the box and all the codes (IMEI 013126007351651,ICCID 8999404110643086147) available. What to do?

    If you bought the phone used then you will need to contact the previous owner - only the owner of an account can remove a device from their account (neither Apple, nor fellow users here on these forums, can do it) : http://support.apple.com/kb/TS4515

  • Why in address bar in not the url but "go to the web site"? How can I see url in the address bar?

    Why in the address bar is not URL but "go to the web site"? How can I see the URL in the address bar?

    those are some addons that other users have reported to cause the same problem in the past: Gom player, Ask Toolbar, DivX (Plus) Web Player, RealPlayer Browser Record Plugin...
    in case you have one of them present, try to disable/remove it - otherwise you could disable all your extensions & reenable them one by one (a restart of the browser might be necessary after each step) until you find the culprit.

  • VuGen 11.00 script is not getting saved after recording the script.Getting JIT Debugging error

    Hi ,
    I am able record the script successfully through Vugen 11.00. But while i am trying to save the the script the Vugen stops responding for few minutes and gives a error pop up is coming Saying "Unhandled  exception occured in a component in your application.....".
    Below is exception caught:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at LogicNP.FileViewControl.x536ecdb7386d29a6.x2db8e1a2d8ef1ead(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189, DisplayNameFlags x9432081594ec509d, IntPtr x5e5a9895844ba8d2, x09b9e24e089559b0 x49a64970a3136cae)
       at LogicNP.FileViewControl.x536ecdb7386d29a6.x1dafd189c5465293(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189, DisplayNameFlags x9432081594ec509d, IntPtr x5e5a9895844ba8d2, x09b9e24e089559b0 x49a64970a3136cae)
       at LogicNP.FileViewControl.x536ecdb7386d29a6.x4e2d9d6d7d7d99b0(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189)
       at LogicNP.FileViewControl.ListItem.x77be53ce49261911()
       at LogicNP.FileViewControl.ListItem.get_Path()
       at QTFileDialogs.FSControl.fileView1_AfterItemAdd(Object sender, FileViewEventArgs e)
       at LogicNP.FileViewControl.FileView.x63783b721e2e30d9(Int32 xccb63ca5f63dc470)
       at LogicNP.FileViewControl.FileView.x5921718e79c67372(IntPtr xe2562f0dc0544189)
       at LogicNP.FileViewControl.FileView.x6d54aa19d20a6718(IntPtr x60b03290ec39ff34, Boolean x6aa0fd35fe33c0ce)
       at LogicNP.FileViewControl.FileView.x7cb4bb83abfb9710(String xaead53c3b2567ee7)
       at LogicNP.FileViewControl.FileView.set_CurrentFolder(String value)
       at QTFileDialogs.FSControl.FSControl_Load(Object sender, EventArgs e)
       at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
       at System.Windows.Forms.UserControl.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    BPTManagerImpl
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/BPTManagerImpl.DLL
    BPTManager
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/BPTManager.DLL
    Interop.TDExtendedAPI
        Assembly Version: 9.52.0.0
        Win32 Version: 9.52.0.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.TDExtendedAPI.DLL
    Interop.SOAMaf
        Assembly Version: 9.52.0.0
        Win32 Version: 9.52.0.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.SOAMaf.DLL
    VugenIntegration
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/VugenIntegration.DLL
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    interop.OTAClient
        Assembly Version: 11.9.9.9999
        Win32 Version: 11.9.9.9999
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/interop.OTAClient.DLL
    VuGenFileDialog
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/VuGenFileDialog.DLL
    QTFileDialogLib
        Assembly Version: 11.0.700.0
        Win32 Version: 11.0.700.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogLib.DLL
    OTAWrapperLib
        Assembly Version: 11.0.721.0
        Win32 Version: 11.0.721.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/OTAWrapperLib.DLL
    FileDialogServices
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/FileDialogServices.DLL
    QTFileDialogs
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogs.DLL
    QTFileDialogIfsLib
        Assembly Version: 11.0.700.0
        Win32 Version: 11.0.700.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogIfsLib.DLL
    QTOTAWrapper
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTOTAWrapper.DLL
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    Log4netWrap
        Assembly Version: 0.0.0.0
        Win32 Version: 11.0.700.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Log4netWrap.DLL
    msvcm80
        Assembly Version: 8.0.50727.6195
        Win32 Version: 8.00.50727.6195
        CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a/msvcm80.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    QTOTAWrapper.XmlSerializers
        Assembly Version: 11.0.1465.0
        Win32 Version: 11.0.1465.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTOTAWrapper.XmlSerializers.DLL
    ocap_h8y
        Assembly Version: 11.0.0.8825
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    0kybcvp7
        Assembly Version: 11.0.0.8825
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    Infragistics2.Win.Misc.v7.3
        Assembly Version: 7.3.20073.1053
        Win32 Version: 7.3.20073.1053
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.Misc.v7.3.DLL
    Infragistics2.Win.v7.3
        Assembly Version: 7.3.20073.1053
        Win32 Version: 7.3.20073.1053
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.v7.3.DLL
    Infragistics2.Shared.v7.3
        Assembly Version: 7.3.20073.1053
        Win32 Version: 7.3.20073.1053
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Shared.v7.3.DLL
    Infragistics2.Win.UltraWinEditors.v7.3
        Assembly Version: 7.3.20073.1053
        Win32 Version: 7.3.20073.1053
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.UltraWinEditors.v7.3.DLL
    Accessibility
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    Infragistics2.Win.UltraWinExplorerBar.v7.3
        Assembly Version: 7.3.20073.1053
        Win32 Version: 7.3.20073.1053
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.UltraWinExplorerBar.v7.3.DLL
    LogicNP.FileView
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.0.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/LogicNP.FileView.DLL
    LogicNP.ShComboBox
        Assembly Version: 10.0.0.0
        Win32 Version: 10.0.0.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/LogicNP.ShComboBox.DLL
    ScriptContext
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/ScriptContext.DLL
    CorrelationSDK
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/CorrelationSDK.DLL
    Interop.VugenBackEnd
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.VugenBackEnd.DLL
    Interop.VugenDocIfs
        Assembly Version: 11.0.0.8825
        Win32 Version: 11.0.0.8825
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.VugenDocIfs.DLL
    CorrelationFramework
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/CorrelationFramework.DLL
    FileLogger
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/FileLogger.DLL
    System.Web
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5479 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    HTTPSnapshot
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/HTTPSnapshot.DLL
    lxnorxdy
        Assembly Version: 11.0.9409.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    xp_nfinj
        Assembly Version: 11.0.9409.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    PostFilterCorrelationRules
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/PostFilterCorrelationRules.DLL
    PostFilterInScriptFinder
        Assembly Version: 11.0.9409.0
        Win32 Version: 11.0.9409.0
        CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/PostFilterInScriptFinder.DLL
    xftg046s
        Assembly Version: 11.0.9409.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    Please let me know how to resolve this issue. This is causing a major blocking for my testing

    Looking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
    emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
    As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
    -Ramesh

  • How to use encoded password in shell script ?

    Hi everybody,
    For make a load file in oracle table, I'm using a LKM File to Oracle updatding with a sqlldr (shell script).
    My problem is very simple : For security reason in this shell-script , I don't want to see in clear the password of the Oracle user for database connection. Is it possible and how do it ?
    Thanks in advance

    Hi-
    Yes it is possible by the way of KM custamization, You need to modify LKM call sqlldr via jython step to pass the user info and password as variable instead of ODI method. Try this command in your KM step:
    userid=#GLOBAL.user/#GLOBAL.psw
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • How would you assign passwords in a script for a user

    How would i assign a password in script??

    the only way to "automate" password/user additions is to use expect - to allow you to input some meaningful password - stdin doesn't work too well as you've probably seen
    Alternatively you can find the crypted value for some password and use that in a cut and paste fashion into the /etc/shadow file (as root obviously) but there are some limitations...
    i.e.
    echo "${newuserid}:x:${uid}:${gid}:${GCOS}:${homedir}:${usershell}" >> /etc/passwd
    echo "${newuserid}:${cryptedpasswd}:0:7:90::::" >> /etc/shadow
    this means that you have basically one password you're assigning to each new user, which may or may not be what you're digging after.
    If you can figure out how to crypt the password (with the appropriate salt) so it fits into the /etc/shadow crypted format, you'd have your problem solved.

  • Logo is not coming properly while mailing the script

    this is my code..
    m converting script output to pdf and sending as attachment... my pdf conatains LOGO.. when i received the mail,text is coming properly but LOGO is not getting printed properly..
    pls suggest any solution to this...
    thanking u in advance...
    *& Report  ZZGBTEST_PDF
    REPORT  ZZGBTEST_PDF.
    TABLES: PA0105.
    DATA: LF_FM_NAME TYPE RS38L_FNAM.
    DATA: WA_CTRLOP TYPE SSFCTRLOP,
          WA_OUTOPT TYPE SSFCOMPOP,
          WA_STXH LIKE STXH.
    DATA: T_OTFDATA TYPE SSFCRESCL,
          T_PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE,
          T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
    DATA : T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
           W_FILESIZE TYPE I,
           W_BIN_FILESIZE TYPE I.
    *OBJECTS TO SEND MAIL.
    DATA :  I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
            I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            I_OBJBIN LIKE SOLIX OCCURS 0 WITH HEADER LINE,
            I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
            I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            W_OBJHEAD TYPE SOLI_TAB,
            W_DOC_CHNG TYPE SODOCCHGI1,
            W_BUFFER TYPe STRING. "TO CONVERT FROM 132 TO 255.
    DATA : V_LINES_TXT TYPE I,
           V_LINES_BIN TYPE I.
    SELECTION-SCREEN BEGIN OF BLOCK SCR WITH FRAME TITLE TEXT-900.
      SELECT-OPTIONS: MAILTO FOR PA0105-USRID_LONG NO INTERVALS.
      PARAMETERS : WDATE LIKE SY-DATUM DEFAULT SY-DATUM,
                   TESTRUN AS CHECKBOX .
    SELECTION-SCREEN END OF BLOCK SCR.
    DATA: DATAB TYPE TABLE OF ITCOO WITH HEADER LINE,
          PDFTAB TYPE TABLE OF TLINE WITH HEADER LINE,
          BINFILESIZE TYPE I.
    DATA: FNAME TYPE STRING,
          FPATH TYPE STRING,
          FULL_PATH TYPE STRING.
    DATA: STRUCT TYPE ITCPO.
    START-OF-SELECTION.
    WA_CTRLOP-GETOTF = 'X'.
    WA_CTRLOP-NO_DIALOG = 'X'.
    WA_OUTOPT-TDNOPREV = 'X'.
    STRUCT-TDDEST   = 'LP01'.
    STRUCT-TDNOPREV = 'X'.
    STRUCT-TDGETOTF = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       DEVICE                            = 'PRINTER'
       DIALOG                            = SPACE
       FORM                              = 'ZGBTEST'
       LANGUAGE                          = SY-LANGU
       OPTIONS                           = STRUCT
    EXCEPTIONS
       CANCELED                          = 1
       DEVICE                            = 2
       FORM                              = 3
       OPTIONS                           = 4
       UNCLOSED                          = 5
       MAIL_OPTIONS                      = 6
       ARCHIVE_ERROR                     = 7
       INVALID_FAX_NUMBER                = 8
       MORE_PARAMS_NEEDED_IN_BATCH       = 9
       SPOOL_ERROR                       = 10
       CODEPAGE                          = 11
       OTHERS                            = 12
    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 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'MAIN'
       WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
    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 'CLOSE_FORM'
    TABLES
       OTFDATA                        = DATAB[]
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    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 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = 'PDF'
    IMPORTING
       BIN_FILESIZE                = BINFILESIZE
      TABLES
        OTF                         = DATAB[]
        LINES                       = T_PDF_TAB[]
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 4
       OTHERS                      = 5
    IF SY-SUBRC EQ  0.
    MESSAGE 'SCRIPT SUCCESSFULLY CONVERT IN TO PDF' TYPE 'I'.
    ENDIF.
      LOOP AT T_PDF_TAB.
    REPLACING SPACE BY ~
        TRANSLATE T_PDF_TAB USING ' ~'.
        CONCATENATE W_BUFFER T_PDF_TAB INTO W_BUFFER.
      ENDLOOP.
    REPLACING ~ BY SPACE
      TRANSLATE W_BUFFER USING '~ '.
      DO.
        I_RECORD = W_BUFFER.
    APPENDING 255 CHARACTERS AS A RECORD
        APPEND I_RECORD.
        SHIFT W_BUFFER LEFT BY 255 PLACES.
        IF W_BUFFER IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    REFRESH : I_RECLIST, I_OBJTXT, I_OBJBIN, I_OBJPACK.
    CLEAR W_OBJHEAD.
    OBJECT WITH PDF.
      I_OBJBIN[] = I_RECORD[].
      DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    MAIL TEXT TO BE FILLED UP HERE
      SELECT SINGLE TDID TDSPRAS TDNAME TDOBJECT FROM STXH INTO
      CORRESPONDING FIELDS OF WA_STXH
        WHERE TDOBJECT ='TEXT' AND TDNAME = 'ZGBTEST'.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
           CLIENT                        = SY-MANDT
            ID                            = WA_STXH-TDID
            LANGUAGE                      = WA_STXH-TDSPRAS
            NAME                          = WA_STXH-TDNAME
            OBJECT                        = WA_STXH-TDOBJECT
          TABLES
            LINES                         = T_LINE.
        LOOP AT T_LINE.
          I_OBJTXT = T_LINE-TDLINE.
          APPEND I_OBJTXT.
        ENDLOOP.
      ENDIF.
      DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    DOCUMENT INFORMATION.
      W_DOC_CHNG-OBJ_NAME = 'FORM'.
      W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
      W_DOC_CHNG-SENSITIVTY = 'F'. "FUNCTIONAL OBJECT
      W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    PACK TO MAIN BODY AS RAW.
    OBJ. TO BE TRANSPORTED NOT IN BINARY FORM
      CLEAR I_OBJPACK-TRANSF_BIN.
    START LINE OF OBJECT HEADER IN TRANSPORT PACKET
      I_OBJPACK-HEAD_START = 1.
    NUMBER OF LINES OF AN OBJECT HEADER IN OBJECT PACKET
      I_OBJPACK-HEAD_NUM = 0.
    START LINE OF OBJECT CONTENTS IN AN OBJECT PACKET
      I_OBJPACK-BODY_START = 1.
    NUMBER OF LINES OF THE OBJECT CONTENTS IN AN OBJECT PACKET
      I_OBJPACK-BODY_NUM = V_LINES_TXT.
    CODE FOR DOCUMENT CLASS
      I_OBJPACK-DOC_TYPE = 'RAW'.
      APPEND I_OBJPACK.
    PACKING AS PDF.
      I_OBJPACK-TRANSF_BIN = 'X'.
      I_OBJPACK-HEAD_START = 1.
      I_OBJPACK-HEAD_NUM = 1.
      I_OBJPACK-BODY_START = 1.
      I_OBJPACK-BODY_NUM = V_LINES_BIN.
      I_OBJPACK-DOC_TYPE = 'PDF'.
      I_OBJPACK-OBJ_NAME = 'FORM'.
      I_OBJPACK-OBJ_DESCR = 'temp.PDF'.
      I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
      APPEND I_OBJPACK.
    DOCUMENT INFORMATION.
      CLEAR I_RECLIST.
      CLEAR I_RECLIST[].
    E-MAIL RECEIVERS.
    LOOP AT MAILTO.
      I_RECLIST-RECEIVER = MAILTO-LOW.
      I_RECLIST-EXPRESS  = 'X'.
      I_RECLIST-REC_TYPE = 'U'. "INTERNET ADDRESS
      APPEND I_RECLIST.
    ENDLOOP.
    SENDING MAIL.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = W_DOC_CHNG
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = I_OBJPACK
          OBJECT_HEADER              = W_OBJHEAD
          CONTENTS_HEX               = I_OBJBIN
          CONTENTS_TXT               = I_OBJTXT
          RECEIVERS                  = I_RECLIST
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
      IF SY-SUBRC = 0.
        WRITE :/ 'MAIL SENT SUCCESSFULLY...'.
      ENDIF.
    *CALL METHOD cl_gui_frontend_services=>FILE_SAVE_DIALOG
      CHANGING
         FILENAME = FNAME
         PATH = FPATH
         FULLPATH = FULL_PATH.
    *CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
       BIN_FILESIZE                    = BINFILESIZE
       FILENAME                        = FULL_PATH
       FILETYPE                        = 'BIN'
    TABLES
       DATA_TAB                        = PDFTAB[]
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    *IF SY-SUBRC <> 0.
    MESSAGE 'Error !!!' TYPE 'E'.
    *ELSE.
    MESSAGE 'PDF FILE SUCCESSFULLY DOWNLOADED ...!!!' TYPE 'I'.
    *ENDIF.

    Hi Sagar,
    In scripts when you will see print preview the logo will be not shown up with clarity.Take the print out of the document and check whether logo is printing up with clarity.
    Thanks
    Phani

Maybe you are looking for