Changing the Spool Name

In the SP01 Transaction there is an option to search for the Spool by .
1.Spool request name
2.Spool request name (suffix 1)
3.Spool request name (suffix 2)
The above three parameters are set automatically by system.
I am printing the spool in the following way
  NEW-PAGE PRINT ON NO DIALOG
                       COVER TEXT 'Test Spool'
                       DESTINATION space
                       IMMEDIATELY space
                       KEEP IN SPOOL space.
     WRITE : / 'Amit Behera'.
  NEW-PAGE PRINT OFF.
I tried to change the default value of the system fields <b>SY-PRDSN</b> and     <b>SY-PLIST</b> when the control was on <b>WRITE : / 'Amit Behera'.</b>, the values got changed at the runtime but when I double clicked the spool number the <b>'Name'</b> section still contained the default system values and not the one I had changed at the runtime.
I tried the FM <b>'SET_PRINT_PARAMETERS'</b> and <b>'RSPO_SET_ATTRIBUTES_SPOOLJOB'</b> but it didn't work.
How do I go on to change these values ? Please let me know.
Thanks in advance.
Regards,
Amit Behera.

Hi.
Try something like this.
data:
  params like pri_params,
  valid(1) type c.
get default params
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    NO_DIALOG                    = 'X'
  IMPORTING
    OUT_PARAMETERS               = params
    VALID                        = valid
EXCEPTIONS
  ARCHIVE_INFO_NOT_FOUND       = 1
  INVALID_PRINT_PARAMS         = 2
  INVALID_ARCHIVE_PARAMS       = 3
  OTHERS                       = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
amend default params
params-prdsn = 'PLUM'.
params-plist = 'PRUNE'.
use params
NEW-PAGE PRINT ON NO DIALOG
parameters params.
WRITE : / 'Amit Behera'.
NEW-PAGE PRINT OFF.
John

Similar Messages

  • To change the printer name while printing the invoice

    Hi,
    I have a requirement like if there is already an entry in NAST table with o/p type ZURD and printer name USJC-PM03,then an error message has to be displayed like 'This Output already printed in USJC-PM03,Change the printer name 'USJC-PM03' to 'LOCL' and then print' on the vf03 screen.
    But even if  I change the printer name from 'USJC-PM03'  to 'LOCL',it is showing the same error message.This message should not be shown.
    I have used the following code in the program.
    lf_formname = tnapr-sform.
    determine print data
      PERFORM set_print_data_to_read USING    lf_formname
                                     CHANGING ls_print_data_to_read
                                     cf_retcode.
      IF cf_retcode = 0.
    select print data
        PERFORM get_data USING    ls_print_data_to_read
                         CHANGING ls_addr_key
                                  ls_dlv-land
                                  ls_bil_invoice
                                  cf_retcode.
      ENDIF.
      IF sy-tcode = C_VF03.
        SELECT SINGLE * FROM tnapr WHERE kschl = 'ZURD'
                                       AND nacha = 1
                                       AND kappl = 'V3'.
        SELECT count(*)
        FROM NAST
        INTO lv_count
        WHERE objky = ls_bil_invoice-hd_gen-bil_number
        AND    kappl = c_v3
        AND    kschl = c_ZURD
        AND   ldest = c_PM03.
        IF LV_COUNT GE 1.
          Message e000(zup) with text-001 text-002 text-003.
        ELSE.
    determine smartform function module for invoice
            CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                 EXPORTING  formname           = lf_formname
                    variant            = ' '
                    direct_call        = ' '
                 IMPORTING  fm_name            = lf_fm_name
                 EXCEPTIONS no_form            = 1
                            no_function_module = 2
                            OTHERS             = 3.
    call smartform invoice
              CALL FUNCTION lf_fm_name
                   EXPORTING
                              archive_index        = toa_dara
                              archive_parameters   = arc_params
                              control_parameters   = ls_control_param
                    mail_appl_obj        =
                              mail_recipient       = ls_recipient
                              mail_sender          = ls_sender
                              output_options       = ls_composer_param
                              user_settings        = space
                              is_bil_invoice       = ls_bil_invoice
                              is_nast              = nast
                              is_repeat            = repeat
         importing  document_output_info =
    *Uncomented the line to get the spool id or OTF formatted data -
    *NY047532
                   IMPORTING
                          job_output_info      = w_job
    NY047532
                    job_output_options   =
                   EXCEPTIONS formatting_error     = 1
                              internal_error       = 2
                              send_error           = 3
                              user_canceled        = 4
                              OTHERS               = 5.
          ENDIF.
        ENDIF.
    When should be done for the error message not to be shown when the printer name is 'LOCL'.

    Hi,
    Here my requirement is first the user has to check the nast table if there is any entry with o/p type ZURD and printer 'USJC-PM03' .If there is an entry then an error message 'This Output already printed in USJC-PM03,Change the printer name 'USJC-PM03' to 'LOCL' and then print' has to be displayed.
    Then if i close this popup window which is showing error message and change the printer name from 'USJC-PM03' to 'LOCL', and click on execute button,the printer name is not getting changed and still the error message is getting displayed.How to remove this error message?

  • How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    To change your iCloud ID, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.
    To change the ID on your Mac, go to System Preferences>iCloud, sign out, choose Delete for all the prompts (your data will still be in iCloud), then sign back in with the changed ID.

  • How can I change the "Full Name" for my iCloud account?

    Hello,
    At some point in the past, iCloud started identifying me as someone else when I send emails. This incorrect name appears to be the "Full Name" setting of the email account, but when modifying the properties for the email account in Mail the field for modifying the "Full Name" setting is disabled, not allowing me to make any changes.
    Where is the correct place to change the "Full Name" setting for my iCloud account?
    Thanks,
    - Josh
    <Email Edited By Host>

    I believe it can be changed by going to https://appleid.apple.com/, click Manage your Apple ID, sign in with your iCloud ID, select "Name, ID and Email Addresses", then click "Edit" next to the name listed under "Your Name" and change it as desired.
    Also, if you are trying to change the sender name for your iCloud email account, you'll want to go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.  Then quit Mail (Command-Q) on your Mac and re-open it.  Your new From name should now appear in the drop-down list when you compose a new email.
    (The image was removed in your post above because it showed your iCloud email address.)

  • How can i change the screen name in my icould account?

    my Apple ID used to have my Dad's name because of the billing issues.. now is changed again to have my name, but i keep seeing that my account on icloud.com still says my dad's name, so if i try to send an email through there it says my dad's name and my email address instead of my name...
    how can i change the name that appears linked to my icloud account? (note that as i already sayd my Apple ID has my name now, i jsut want to know why is not my name in my icloud account?)
    thank you,

    I believe it can be changed by going to https://appleid.apple.com/, click Manage your Apple ID, sign in with your iCloud ID, select "Name, ID and Email Addresses", then click "Edit" next to the name listed under "Your Name" and change it as desired.
    Also, if you are trying to change the sender name for your iCloud email account, you'll want to go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.  Then quit Mail (Command-Q) on your Mac and re-open it.  Your new From name should now appear in the drop-down list when you compose a new email.
    (The image was removed in your post above because it showed your iCloud email address.)

  • How can I change the "short name" of my account?

    I want to change the short name of my account because when my dad bought this computer for me he set up the account with his name as the short name and it has been bothering me ever since.
    When I go to system preferences and then accounts my account is listed and when I click on it under password I am able to change my name, but not my short name because it is greyed out and cannot be clicked. Is there any way to change the short name on my account? I can't even delete my account and make a new one because the account delete button is greyed out when I click on my account.
    Also, I went to my home folder and changed that from my dad's name to my name. This has reset every program on my computer to default settings! For example when I open my Safari browser a message pops up saying a keychain cannot be found to store Safari and asks me if I want to restore default settings.
    So pretty much I've tried to change the short name on my administrative account, I reset everything to default settings and my short name is still my father's name. Can anyone help me out here?

    Try this.
    Or you could just create a new account and delete the old one.

  • How to change the default name of new adjustment layers? (and other Q's)

    How do I change the default name of new adjustment layers?
    How can I make it so that adjustment layers don't come with a mask when I create them (unless I have a selection active)?
    Why isn't the Shadows/Highlights functionality an adjustment layer? It's accessable under "adjustments" but you can't use it non-destructive
    Where can I find documentation on Photoshop's API? (I want o make tools for it - javascript)

    Forgive me for not looking into your Maya-specific links, but one can automate Photoshop using JavaScript indeed (on Windows also VB, on Mac also AppleScript).
    Not everything can be automated naturally, but a lot – and it can really speed up many tasks; and with the »small« repetitive ones like saving copies off of files etc. combining Scripts with Configurator Panels can be especially convenient.
    There is a Scripting Forum over at
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    As for plugins: it's something I would like to learn some day (I guess you would have to go with Flash and AS3 for making actual plugins)
    I think you might also have to learn C++ or C.
    There is Forum the contributors to which might be able to give you pointers if you get to that. 
    http://forums.adobe.com/community/photoshop/photoshop_sdk

  • Script : how to change the Field name in standard program(ZM_MEDRUCK)

    Hi Experts,
    I am working with SAP SCRIPT. i need to change the Field Name that is PO NO to Document No & PO DATE to Document Date.
    These are assigned in data declaration as gv_name and gv_date.
    Can anyone help me to change this Fields.
    Regards,
    Vijayan.R

    Hi,
    You can archive this by making change in SAP script only. You don't need to touch the standard prgm.
    Debug the script and find it out which fields (In script editor) are printing these text on layout... then just replace them by creating your own text...
    You can create a text in TTDTG table,, like ZZPO_NAME = ( Document Name),, and use this filed in the script editor.
    &ZZPO_NAME&

  • How to Change the Alias name for Internet user in SU01 tr code through cod?

    Hi Guys,
                 My req is we have to change the Alias name(SU01 tr code) for the existing users thru code.So can anybody tell me how to change the Alias name like which we do it in SU01 tr code thru code or FM.?
                Is there any FM for tha changing Alias Name?
    Thanks,
    Gopi.

    Hello Gopi Anne ,
                                 You can use the following FM / BAPI :
    BAPI_USER_CHANGE
    MY_BAPI_USER_CHANGE
    For BAPI_USER_CHANGE :
    You need to make use of the IMPORT parameter :
    ALIAS     TYPE     BAPIALIAS                               User Name Alias
    ALIASX     LIKE     BAPIALIASX                               User alias change flag
    Thanks,
    Greetson

  • How to Change the iPod "name"

    Well friends,
    I posted a msg and got an answer that my wife claims doesn't work. Short story - I am new to iPod. Never touched one before. Bought one for wife in Iraq. Loaded music and shipped it in 24 hours. Well, somewhere in the process I "changed the iPod name" to her Name and Rank - go figure, she's in the Army. Well, I am the devil and she can't figure out the name change (to her first name only). I received the following steps that she claims to have followed. Can some one please look at their pod and help me?
    To change the name of the iPod, you must connect it to a computer with iTunes installed. If you have Windows, follow these instructions: Once connected, start iTunes and follow these instructions:
    1. Once the iPod appears in the Playlist tree to the left, Single-click on the name of the iPod.
    2. In a second or two, a text box will appear around the name.
    3. Enter the new name.
    4. Click anywhere else in the iTunes window.
    5. The iPod will be renamed. (this may take a few seconds)
    Sincerely,
    Suffering Husband
    aka The Devil for Naming her iPod
    60 GB iPod   Windows XP  

    You could also try selecting the iPod in iTunes (in the source pane on the left) and then click F2 on the keyboard. You should be able to rename it there.
    Also, if the iPod is updating new songs an all (and blinking red in iTunes) it might now work right away. You can try again later in the updating process.
    btabz

  • How to change the administrator name

    I have tried to change the administrator name on a Macbook pro that I recently sold. I used the following:
    Rebooted and held the command and s button, pressed enter and ended up with the following at the prompt: bash-3.2#.
    I was trying to get to the root directory in order to continue with:
    mount uw /
    rm /var/db/.AppleSetupDone
    shutdown -h now
    I saw a video that said this would allow the new user to start fresh and type in his information however the
    bash-3.2# does not allow me to

    When you reinstall the OSX, you can change not only the password but the administrator as well.
    Ciao.

  • How to change the computer name

    I need to change the computer name but after this I cannot access to the historical data (printing alarms).
    I have already changed the settings in Options->System and restarted the system.
    With MAX 3.0 I can see that all the alarm records are stored with the old computer name \\computer name\process\....
    How can I do to read the old alarms with the new computer name?
    Thank you
    Michael

    Hi,
    When you change the computer name in Options>>System, you are not changing the name of the computer. Rather, you are telling Lookout to log to either a remote or local system. Here are the specifics:
    1. Computer Name: Name you want the traces to appear with (\\computer_name\process\...)
    2. Default Computer: Computer you want to log to. If the name listed here is different than your computer's name (as seen by Windows), then it will attempt to log directly to that remote machine.
    3. Default Path: Directory on either your local or remote machine that you want to log to.
    To change the name of your local computer, you will need to do that in Windows. If you have WinXP, you can do this by right-clicking on My Computer and selecting Computer Name.
    Go
    od Luck
    Mike

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • How to change the folder name in KM

    Hi All,
    As a Enduser I have a got a role who can create His/Her own folder to dump the documents.
    Now my requirement is to change the folder which i have created before......
    It may be root folder or Mid folder.
    Please throw some light on this issue.
    Higher points will be rewarded for the valuable input.
    Thanks in Advance,
    Dharani

    Hi Dharani,
    You can change the folder name using "Rename" option from the context menu of the folder. You can also change the name by selecting Folder -> Details->Actions->Rename.
    Regards,
    Vaishali

  • How to change the folder name in the web report.

    hi experts,
    can anybody give me the solution, how to change the folder name in the web report. any help is appreciated.
    waiting for ur favourable response.
    thanks
    suri

    Hi Tony,
    Yes, the business requires, only to change in the webreport only not in bex and roles. any suggestions will be helpful to me.
    thanks
    surendra

Maybe you are looking for