Background doubt?

Hi..
If a report is run in background then I need to download a file in the bcgdrnd and pass it to the spool.
How can I achieve this functionality?
Thank You

Hello Subash,
Use OPEN DATASET .... READ DATASET .... CLOSE DATASET.
TO download the file.
The use this code to move the Itab to the spool.
DATA : X_NAME       LIKE TSP03D-NAME,
       X_DEST       LIKE TSP03D-PADEST VALUE 'LOCL',
       X_ROWS       LIKE SXPCKLSTI1-BODY_NUM VALUE 0,
       X_STARTROW   LIKE SXPCKLSTI1-BODY_START VALUE 1,
       X_PAGES      LIKE RSPOTYPE-PAGES VALUE 1,
       X_PAGES_1    TYPE P DECIMALS 2,
       X_RQTITLE    LIKE SXPCKLSTI1-OBJ_DESCR,
       X_RQCOPIES   TYPE I VALUE 1,
       X_RQOWNER    LIKE TRDYSE01CM-USERNAME,
       X_IMMEDIATE  LIKE PRI_PARAMS-PRIMM VALUE ' ',
       X_RQID       LIKE TSP01-RQIDENT,
       I_CONTENTS    LIKE  SOLISTI1 OCCURS 0 WITH HEADER LINE.
X_PAGES   = 1.
X_RQOWNER = SY-UNAME.
X_DEST     = 'LOCL'.
X_STARTROW = 1.
X_RQCOPIES = 1.
X_IMMEDIATE = ' ' .
I_CONTENTS-LINE = 'I Got your Childhood PHOTO'.
APPEND I_CONTENTS.
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
      name                 =   x_name
    DEST                 =  X_DEST
    ROWS                 =  X_ROWS
    STARTROW             =  X_STARTROW
    PAGES                =  X_PAGES
    RQTITLE              =  X_RQTITLE
    RQCOPIES             =  X_RQCOPIES
    RQOWNER              =  X_RQOWNER
    IMMEDIATELY          =  X_IMMEDIATE
    IMPORTING
    RQID                 =  X_RQID
    TABLES
    TEXT_DATA            = I_CONTENTS
    EXCEPTIONS
    NAME_MISSING         = 1
    NAME_TWICE           = 2
    NOT_FOUND            = 3
    ILLEGAL_LAYOUT       = 4
    INTERNAL_ERROR       = 5
    SIZE_MISMATCH        = 6
    OTHERS               = 7.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.      ENDIF.
ENDIF.
WRITE: X_RQID
If useful reward.
Vasanth

Similar Messages

  • E-Recruiting 604 Doubt about the planning of the background job.

    Hi,
    We are on E-Rec 604 with seperated standlone e-rec system.
    I did the initial transfer of the Org Management data through PFAL from ECC to E-Recruit and all were ok.
    Now I have to planed the job for the future changes.
    This is my doubt, I just have to plan the program RBDMIDOC in the HR system, or should I add something more?.
    Please somebody could guide me?.
    Thanks a lot,
    Esther

    Hello Esther,
    there are some more configuration steps for the regular update after the initial load.
    Probably already done by you is the activation of the change pointers for the message type otherwise RBDMIDOC won't create any IDoc.
    Additional settings to the ALE you should apply to the system:
    -  In the e-recruiting system, go to the partner profile settings for the ALE. Open the inbound parameters for the message type and switch radio button in the "process by function module" section from trigger immediatly to trigger by background program.
    - Create a variant for report RBDAPP01 on the e-rec system setting the package size to 1
    - Plan the report RBDAPP01 as job on the e-recruiting system to process the incomming IDocs
    Ensure in the job scheduling of RBDMIDOC and RBDAPP01 that both are running before midnight and the RBDMIDOC is running before RBDAPP01 of course.
    Additional E-Recruiting settings you have to do:
    - schedule HRALXSYNC on the e-rec system as daily job
    - Ensure that the e-rec periodical service PROCESS_CAND_STATUS_CHANGE (class CL_HRRCF_UPDATE_P_STAT) is activated in the e-rec customizing under E-Recruiting -> Technical Settings -> Periodical Services
    Best Regards
    Roman

  • Doubt regarding background job?

    Hi,
         I am working on IW32 transaction.
    iam going store Sys stataus SETC orders in one internal table then i need to schedule back ground job for orders complete by below procedure i.e <b>Go to Orders-Functions-complete----complete bussiness.</b>.
    Is there any automate procedure to do the same? or we can switch to recording for the that?
    URGENT...
    Regards
    Message was edited by:
            shiva kumar

    Hi shiva,
    I'm afraid I haven't worked at all with this transaction. But maybe I can give you some hints.
    My question is: when you access this menu "Goto > Orders > Functions > complete > complete business", is this creating a background job? If so, you have won the first prize? Because you can go to transaction SM37, display the jobs you have created, and then keep track of the report and the variant that SAP used to schedule this job. Finally, you may enter transaction SM36 to create a new repeating job using <b>exactly</b> the same report name and variant.
    I hope this helps. Best regards,
    Alvaro

  • Doubt on background job scheduling

    Hi all,
    I have one background job scheduled where vf03 tcode is executed.
    I want to know what are the documents updated through this backgroung job schedule.
    Can i know thru SM37 what r the documents updated in the table by running this background job?
    Regards
    cnu

    Hi
    Take the PROGRAMNAME from the table TBTCP related to Background job and
    from the program logic it will be known that what tables are get updated.
    generally when we are using VF01/02 tcodes the tables like VBRK and VBRP are get updated.
    Reward points for useful Answers
    Regards
    Anji

  • Doubt in downloading the file in background in production

    Hi ,
    we are facing the problem in one report which is used for downloading the data in a file........but this report is working in QA for both back ground and fore ground and giving the file.......but in Production if we run the same programe we r getting the downloaded file through foreground only if we run that in Back ground in Production file is not downloading in the path..........we r strugling a lot ......because of this problem.......
    so please help me in this problem.......
    Thanks in advance....

    HI
    I think it is not recognizing where to send the file as it not able to get the free space in the application server .
    So it is throwing it to the different application server.
    Ask your basis person to check the folder is working in the production or not?
    Then if it is working then define it in target server.
    Manoj Shakya.
    <b>Reminder : Points should be given on answers.</b>

  • Running a report in Background

    Hi Guys,
                  I am designing a ALV report.
    This report have option in the selection screen, to run immediately or Background.
    I am using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE FM's.
    My doubt is at which point I have to use these FM's.
    Immediately in START-OF-SELECTION ?
    If this is the case, I can write rest of my code after JOB_CLOSE FM.. Right ?.
    Thanks

    Hi Naresh,
                    Thanks for the reply.
    My doubt is, can I use these FM's in the report itself, or I have to write separate program for this ?
    If I can use in the same report, where exactly i can use it.
    For example.
    I have form to print ALV - GENERATE_ALV and send email - SEND_MAIL.
    do I use like this.
    start-of-selection.
    JOB_OPEN..
    JOB_SUBMIT..
    JOB_CLOSE..
    GENERATE_ALV
    SEND_MAIL
    Thanks

  • How to get background color in MVC programming

    Hi Experts,
    I am new to BSP.
    I am working in CRM 7.0 version and designing a view using MVC method in BSP.
    I have two doubts::
    1. How can i get background color in a view ?
    2. How can i attach a picture, that is in paint-brush, in background ?
    Thanks in Advance.
    Nitin Karamchandani.
    Edited by: Nitin Karamchandani on Jun 3, 2009 8:10 AM

    Hi,
    several html tags have the attribute bgcolor, like
    <body bgcolor="red">  or <body bgcolor="RRGGBB">  where RR, GG, BB is an hexadecimal value according to RGB color palette.
    you can also work with CSS and in this case you affect the attribute style, which is also available in several tags:
    document.body.style.backgroundColor="#EEEEEE"

  • Sy-batch value when debuggin a background process

    Hello All,
    I have a quick question. I am working with a background job and I have a doubt about the sy-batch value. I know it set to 1 when the process in run in background but if I turn the debuggin on [ via the infinite loop ] then will the sy-batch value change to SPACE ?
    In debugging I see its changed to space but I am wondering is it cause I am debuggin in background or is it because Its an update task ?
    can you please advise ?
    thanks,

    The SY-BATCH should come as "X" when you debug a background job via infinite loop. Have you called any code update task? If yes then it will be processed via dialog processing so here SY-BATCH will be initial.
    I just set this program in background and found that the SY-BATCH as "X" and it goes to infinite loop.
    REPORT ztest1.
    DATA: l_flag TYPE c LENGTH 1.
    DO.
      IF l_flag = sy-batch.
        EXIT.
      ENDIF.
    ENDDO.
    DATA: l_string TYPE string,
          l_final TYPE string.
    l_string =  'UPS Surface Collect #954365'.
    DATA: l_dummy1 TYPE string,
          l_dummy2 TYPE string.
    SPLIT l_string AT ' #' INTO l_dummy1 l_dummy2.
    CONCATENATE l_dummy1 l_dummy2 INTO l_final.
    WRITE:/1 l_final.
    Edited by: Sourav Bhaduri on Sep 29, 2008 2:47 PM

  • Doubt regarding SHDB transaction

    Hi All,   
                I have a doubt regarding the Process Tab in the application tool bar of SHDB transaction. What is the use of the following check boxes?
    1)       Default Size
    2)       Cont.after commit
    3)      not a batch input session
    4)      END: Not a Batch Input session
    5)      Simulate Background mode

    Hi,
    Basically these are the properties for CALL TRANSACTION using. You need not worry about these unless you really need those.
    1) Default Size: it will set the Default screen size for CALL TRANSACTION USING...
    2) Cont.after commit : it will set indicator that CALL TRANSACTION USING... is not completed by COMMIT. after commit also the process will continue
    3) not a batch input session: sets indicator that present session is not batch input
    4) END: Not a Batch Input session
    5) Simulate Background mode : session will be run in foreground. but similar to back grpund
    you can see the documentation by placing the cursor on these and click f1.

  • RSWUWFML2 is not working properly in Background.

    Hi Guru's,
    I want to send workitems created in sap to Outlook Email online.
    I know RSWUWFML2 is obselete, but due to some setup issues with Extended Notificaiton we are doing a workaround with RSWUWFML2.
    If I run RSWUWFML2 in foreground with date and Time set. Then Workitem created on that date and after the time is picked up and sent. This works good.
    But if I run RSWUWFML2 in background with dynamic date as current date and dynamic time as 5min - current time (saved as variant)then it does not pick any workitem. (I want to schedule this for every 5 mins so that only new workitems are picked and sent. If I dont give the time restriction then all the unprocesssed workitems are sent created for the day for every job run.)
    If I run RSWUWFML2 with only dynamic date as current date (saved as variant) in bacground all workitems are picked up for the current date.
    I am not able to figure out where am i going wrong. I have restricted the user to myself.
    I am doubting User Data settings. As the system time is CET and My User Data Setting is CST. Could this be the problem?
    Do let me know if you have any idea how to get this working or anyother method for acheving ths task.
    Thanks

    If You mark "New work items only", then You have to leave blank fields:
    From date
    From time
    user
    In code You can find block:
    where variable l_set_lastrun is set to "X"
    Then in block:
    this variable is used to modify timestamp in SWU_WLSCAN table.
    Timestamb from this table is used further for selecting new work items
    Best regards
    Wojciech Adamski

  • Schedule job in background and ftp the data to non-sap system

    Hello All,
    I have a requirement where in i have to write a program(with selection screen) to download 2 files into application server(frequency: end of each day i.e daily at 23:59), and then in turn i need to put those two files into FTP server using FTP script.
    i guess my flow of the code should be
    1. write the program with selection screen and
    2. get the data from corresponding tables and put it into internal tables.
    3. then i have download the data into application server
    my question is : how i will schedule the job in background to download the data into application server daily? using job_open, job_submit, job_close?
    4. then how i need to move the files from application server to FTP server using FTP SCRIPT?
    Also my doubt is once i execute the program ONLY, the background job is triigred (because i wrote job_open, job_submit and job_close inside my program). then how will i input the data into screen daily and download the data into application server in background automatically???? i am confused ...
    Please help me to solve the above issues
    thanks
    sangeetha

    >
    sangeetha s k wrote:
    How my data in application server will be transfer to another system using above FM? Because i am not passing application server file path in SAP to that FM. Could you please explain ?
    So the path name and the file name are always the same? In that case you could simply create a SM49 entry with hard coded file & path name.
    An easy example for the COPY command under WINDOWS OS:
    Create a command in SM49 called ZCOPY with following data:
    Operating System = Windows NT
    OS command: cmd
    Parameters for os command: /C copy  "C:\tmp\my_file.txt" "z:\tmp\my_file_copy.txt"
    Additional parameters allowed: (leave blank)
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 2  parameters:
         commandname                  = 'ZCOPY'     
         operatingsystem               = 'Windows NT'
    In the case that the file name and the path are not fixed you would set the following in the SM49 definition:
    Additional parameters allowed: X
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 3  parameters:
         commandname                   = 'ZCOPY'     
         operatingsystem                = 'Windows NT'
         additional_parameters       = params  "<== fill in the path and file name during run time into this variable

  • Cursor memory use in a background job

    I am researching a solution for a client, and need help as I'm admittedly an Oracle greenhorn. They run 10g Enterprise Edition.
    {color:navy}*The problem*{color}: create a low-priority background process that uses DB inactivity windows to read through a large table (over 25 million records) a row at a time, and perform some simple operations with a few fields from each row. The process needs to be running 24x7 by default, although able to be administratively paused/restarted at any time. It also needs to pause itself M hours after last row read, and restart after a subsequent N hours.
    h3.
    Oracle Jobs
    First, I'm wondering whether this sounds like a task suitable for a "job" managed by the Scheduler (<tt>DBMS_SCHEDULER</tt>), which could be enabled or disabled to mimic pausing/restarting functionality.
    h3.
    Cursors and memory usage
    My second, main question lies with memory usage. One of their main concerns is that the background process not occupy much memory on the server. The general flow I've worked up:
    <li> Function1: declare and open a cursor for the main SELECT. This would be run once only. Call Function2.
    <li> Function2: the second, main function would perform a fetch of one row on the cursor, and make a call to an auxiliary function to operate on the data. Function2 would be executed constantly as the main process.
    <li> Function3: close the cursor. Would be executed upon reaching the last row of the table, or if for some reason the admin. should decide to abort the process prematurely.
    <li> If the client decides such, this process may be constant, so it would be restarted automatically with a call back to Function1.
    However, I don't understand cursors enough to know if that would occupy a lot of memory on the server throughout the life-cycle of the master process, knowing ahead of time that the resultset the cursor identifies is very large. I've attempted to research this both in manuals (the DB Administrator, SQL Reference, Application Developer's Guide) and these forums, but not able to track down a clear answer -- I got lost somewhere between PGA and SGA memory. The furthest I've gotten in understanding cursors is that they're a mere instruction set, not a copy of the resultset, and therefore don't occupy a substantial amount of resident memory. I would very much appreciate some verification about whether this is accurate or not.
    I'm wide open to suggestions -- thanks in advance for the help!

    Wow, so many good questions make me only think of more questions! Part of the problem is I don't get to talk directly to the client -- any questions I have (such as statistical data about the main_table) must be formed to my manager, who relays them to the client and then we wait for an answer.
    Toine wrote:
    Are these 'DB inactivity windows' predictable time windows or do you mean that the process should only eat up resources when activity on the database server is low?Not predictable timeframes, but rather the process should take advantage of database server inactivity.
    acadet wrote:
    For the large table, how does it get its data and what happens to a row once it has been processed? Is the data static or constantly changing and if it does change, does it happen in a batch or in a series of small update/inserts etc.To my best knowledge, and without compromising the client's security: _the main table represent debts_. This is a financial institution, and it is their primary table. Each record contains about 100 fields which include various dates, amounts, rates, etc. Unfortunately, as I commented before, this table does not have a numeric primary key, but rather the 2 fields (one numeric and one varchar2) which serve together as unique identifiers. It's not a static table, as new debts are added a bit at a time for new clients, etc. Also, the existing debts are updated when rates change, etc. I've requested statistical information on the extent to which the data is updated.
    Billy Verreynne wrote:
    All SQLs that are parsed and executed in Oracle, is done as cursors. Do not confuse that with how the client deals with that cursor, explicitly, implicitly, via a cursor or ref cursor handle, etc. SQL = cursor.
    Andre raised an important point - it sounds like what should be business/functional specifications having technical detail included that needs to be part of the solution. Been in a few boardroom brawls myself over that - telling clients that they must state WHAT needs to be done, and not technically HOW it will be done. Worse offenders usually are senior or executive management that used to be techies decades ago and still think that they are somehow still technically competent at a software engineering level.Of course I was referring to an explicit cursor when I asked about disabling consistent read. I'm very doubtful that this is a good idea any more.
    Another challenge I have with this client is that since they are a large company and actually have their own development team, the requirements come from different members of that team. Depending who wrote them, they are better or more poorly stated, and often mix in detailed technical requirements framing a boxed solution. You would expect the management to revise these requirements and weed out the nonessentials that we should be able to propose ourselves... go figure. <steps down from soapbox>
    I know it's hard for everyone to understand the main requirements when I've piece-mealed the problem description together. I'm just concerned about not revealing too much information that might even possibly compromise the client.
    How does the following solution sound:
    I've discarded the "explicit big-momma cursor that does it all ;)" possibility, as it presents way too many issues. Instead, we can propose to the client that we add a column to the debts_table which tracks processing status, 0 or 1. 0 if it hasn't been processed yet or errors occur in processing, and 1 once it's processed successfully. 0 would be the default for all existing records and on addition of new debts. In this way, all I would have to do is select one row at a time, possibly in order of the debt's addition date, and if its processing status is 0 then process it. If it completes successfully, update the status to 1. Flow would return back to the select statement, which would select the next row with status=0, and so on.
    Edited by: CrackerJackhammer on Aug 5, 2009 2:43 AM

  • Regarding Background Job scheduling for file to file scenario

    Hi Guru's
    Good morining all of u
    I have one doubt on ...
    can we do background job scheduling for file to file scenario?
    Please give me response as early as possible.
    thanks and regards
    sai

    background jobscheduling for file adapter...
    you can schedule the file adapter according to your requirement as follows:
    In the  Communication Channel Monitoring Locate the link Availability Time Planning,  In Availability Time Planning, choose the Availability time as daily and say create, give the time details, select the communication channel in your case file adapter , goto the Communication Channels tab and filter and add the respective channel, save it
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-

  • One doubt on CRM Workflow.

    Hi All,
    I have a clarification to be made.
    Below are some requirements from a CRM project. Now we are planning to train some one to handle this part and essentialy his role is on Workflow. Now my doubt is whether this person should take CRM training or workflow training? One thing to note here is that the person does not have any CRM background also. So my question is whether this person needs to take Workflow training or CRM training( I am not sure whether CRM training has workflow in it) or something else(meaning first CRM and then Workflow, since the project is on CRM)?
    The requirements are in bold.
    <b>1. Ability to define a Customer Program, including, but not limited to:
    will adhere to role based security
    informational program characteristics
    program eligibility rules
    technical prerequisites (e.g. equipment)
    program specific options (e.g. bill protection)
    enrollment related work flow steps and prerequisites
    funding accounts
    <i>Comments : Standard SAP functionality. May need workflow</i>
    2.Ability to automatically enable or disable program functions.
    <i>Comments : Workflow or Actions can be used.</i>
    3.Ability to generate automated notifications/ticklers when program steps need to be taken.
    <i>Comments : Workflow or Actions can be defined to trigger Notification on certain events.</i>
    4. Notify appropriate Program Manager if measure factors or incentive rates are changed.
    <i>Comments : Need workflow or Actions to trigger this.</i>
    5. Associate the completed audits to actual programs and when applicable tie to a programs workflow requirements.
    <i>Comments : Link is Standard SAP Functionality and needs to define workflow.</i>
    6. Ability to generate customer communications based on triggers such as; dates, changes to customer information, work flow steps, etc.
    <i>Comments : Needs to develop workflow or actions to trigger Notifications on pre-defined rules.</i>
    7. Based on program, allow for multiple incentives or timed incentives based on workflow process completion steps.
    <i>Comments : Need to be configured in Rebate Processing</i>
    </b>
    Thank you,
    Regards,
    Manesh

    Hi,
    The steps which u have done al are correct
    Find the information below for BWA1,BWA5 and BWA7
    BWA1:
    1.BW adapter which will give you meta data information and if you want to chnage any settings relatede to mapping or if you want add any BDOC mapping you can  do by using this Tcode
    2. We c an copy  BW adapter data source and we can create custom BW adapter data  data source by using copy function
    3. We can change the selection conditions for the data source
    4. we can  bdoc mapping information under mapping tab,if you want to add any new field to map with new bdoc segment ,we have to map here;for ex  if you want to extract  Extractnal reference number from  0CRM_SRV_PROCESS_H  data source
    we have to follow below steps
    1.enhance Extract structure
    2.Add bdoc mapping in BWA1 with perticular BDOC segment for example Sales bdoc segment mapped with Extractnal reference number
    3.Add code in Mapping module of data sourc eto fetch data or write code in Badi CRM_BWA_MFLOW to fetch data for newly added fields
    BWA5:it will show all activated BW adapter data source information under ACTIVE  tab
    BWA7: it will have all BW adapter  delta enabled data source information,if your data source is not available under BWA7 ,that means you didnt enable delta for the same (not intialized )
    Table information:
    SMOXAFLD: Field List: Key Attributes for BWA Master Data Delta Queue
      for example :  DISTR_CHAN, PRODUCT_GUID,  SALES_ORG are key fields for data source 0CRM_PRODSL_ATTR        
    SMOXRELP:BWA: Use of Segments and Fields in DataSources
    BDOC segment mapping information fro the data source (which u have used in BWA1 under mapping tab)
    SMOXRELP_S: Shadow Table for Table smoxrelp
      which will give information  about BW selection whether we can use this field for BW selection for data loading iof its marked for selection u can see in rsa3 selections.

  • Trying to figure out how to change the desktop background with powershell/batch.

    The entire thing I'm doing is pretty pointless lol. But I wanted to prank my mother. This is my computer by the way nothing malicious. I just had an idea that the next time she goes to click and open opera I would have a batch files disguised as it instead
    that would just say some things. Mimic deleting files. Kill exlporer.exe. Change the background to one I created saying something like GOT YA! with a troll face or something. And then either run explorer.exe again or shutdown my laptop. I don't really know
    what I am doing lol. I have the batch file done but the changing of the desktop has me puzzled. I can have the batch file to replace the current bmp file with one I've made but it doesn't actually change the background. And JFY WPA files just happened to be
    where I decided to sit the files for this prank at until I'm done with them.
    I used this to copy it over.
    copy /y "C:\Users\user\Documents\WPA Files\Internet Explorer W
    allpaper.bmp" "C:\Users\user\AppData\Roaming\Microsoft\Internet Explorer\Inter
    net Explorer Wallpaper.bmp"
    I used this to try to get the wallpaper to refresh to show the new one before I found out this doesn't work with windows 8.1
    RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
    I found this but I am not entirely sure what to do with -name or -value or if I need to do anything to them or the others.. Doubt this would even refresh or what ever to make the new wallpaper actually show though.
    set-itemproperty -path "HKCU:Control Panel\Desktop" -name wallpaper -value $image
    Also found this which I don't get at all..
    Add-Type @"
    using System;
    using System.Runtime.InteropServices;
    using Microsoft.Win32;
    namespace Wallpaper
       public enum Style : int
           Tile, Center, Stretch, NoChange
       public class Setter {
          public const int SetDesktopWallpaper = 20;
          public const int UpdateIniFile = 0x01;
          public const int SendWinIniChange = 0x02;
          [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
          private static extern int SystemParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni);
          public static void SetWallpaper ( string path, Wallpaper.Style style ) {
             SystemParametersInfo( SetDesktopWallpaper, 0, path, UpdateIniFile | SendWinIniChange );
             RegistryKey key = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop", true);
             switch( style )
                case Style.Stretch :
                   key.SetValue(@"WallpaperStyle", "2") ; 
                   key.SetValue(@"TileWallpaper", "0") ;
                   break;
                case Style.Center :
                   key.SetValue(@"WallpaperStyle", "1") ; 
                   key.SetValue(@"TileWallpaper", "0") ; 
                   break;
                case Style.Tile :
                   key.SetValue(@"WallpaperStyle", "1") ; 
                   key.SetValue(@"TileWallpaper", "1") ;
                   break;
                case Style.NoChange :
                   break;
             key.Close();
    [Wallpaper.Setter]::SetWallpaper( 'C:\Users\user\Documents\WPA Files\Internet Explorer Wallpaper.bmp', 0 )
    And this to run the powershell script once I have one lol
    PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""C:\Users\user\Documents\WPA Files\desktopchange.ps1""' -Verb RunAs}"

    Haha you're funny. I can't decide if you sincerely want me to learn or if you enjoy my struggle(I'm dumb) and think I'm up to no good. I do enjoy learning though :). 
    If I thought you were dumb I would have ignored you.  I just think it would be more fun for you to find the answers.  This is a technical forum and not a free answer forum.  It is for people who are learning or who have specific technical
    questions.  I am dropping you in the "might be learning" bin.  If you had asked a specific technical question I would have answered it.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • IPHONE 5s Battery Draining Really Fast

    Hi, I have a Iphone 5s. The phone charges really slow, and dies really fast. I am barely on it now since this happen. I tried restoring at home, and also resetting. I took a trip to Apple two days ago, and they ran the diagnostic. He said the battery

  • How do I set the default printer to pdf in Firefox 8?

    Wish to set default printer to PDF, in specific folder. Always tries to print to .ps in my home folder. Using Linux, Fedora 16. I have had the same problem in Fedora 14.

  • Cannot save form with Windows Vista and Adobe Reader 8

    I have many forms created with Adobe Livecycle Designer 8. Users who have upgraded to Windows Vista can no longer save these forms. Any ideas? thanks.

  • Unable to connect to Exchange 2013 using Outlook 2010/2013 with latest patch

    Dear All, I'm setting up Exchange 2013 CU2 coexist with Exchange 2010 SP3. Since we are still planning and testing, the internet is still pointing to 2010 for send/receive mails. The 2013 environment are:- 2 X CAS server with MS NLB configured 2X MBX

  • Oid Configuration in WebLogic

    Hi, I am running an ADF Application which its secure by using the weblogic security provider (OID). With the following code: LOGGER.info(idStore.getStoreConfiguration().getProperty(OIDIdentityStoreFactory.ST_SUBSCRIBER_NAME).toString());I get "dc=com