JOB_OPEN - SUBMIT - JOB_CLOSE - User Name for the Job

Hi,
I have a code like that:
CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname          = lv_jobname
    IMPORTING
      jobcount         = lv_jobcount
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 4.
* Call Update PO from Sales Order
  SUBMIT zpcc_mm_upo3
    WITH p_vbeln = puv_vbeln
    USER lc_uname
    VIA JOB lv_jobname NUMBER lv_jobcount
    AND RETURN.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount             = lv_jobcount
      jobname              = lv_jobname
      strtimmed            = lc_true
    EXCEPTIONS
      cant_start_immediate = 1
      invalid_startdate    = 2
      jobname_missing      = 3
      job_close_failed     = 4
      job_nosteps          = 5
      job_notex            = 6
      lock_failed          = 7
      OTHERS               = 8.
In this code as you see I can run the SUBMIT program with a specified user. But the creator of the job always becomes SY-UNAME. So is there a way to specify the user name for a job creator? I don't want to use SY-UNAME.
Thanks,

Hio try this way...
CALL FUNCTION 'JOB_OPEN'
     EXPORTING
       jobname          = lv_jobname
     IMPORTING
       jobcount         = lv_jobcount
     EXCEPTIONS
       cant_create_job  = 1
       invalid_job_data = 2
       jobname_missing  = 3
       OTHERS           = 4.
"Comment this
* Call Update PO from Sales Order
   SUBMIT zpcc_mm_upo3
     WITH p_vbeln = puv_vbeln
     USER lc_uname
     VIA JOB lv_jobname NUMBER lv_jobcount
     AND RETURN.
"Comment end
* Call function to submit the job
  CALL FUNCTION 'JOB_SUBMIT'
       EXPORTING
            authcknam                   = wa_authchknam        "Pass the Other User name you want
            jobcount                    =  lv_jobcount
            jobname                     = lv_jobname
            REPORT                      = 'zpcc_mm_upo3'
            VARIANT                     = jobs-variant  "Create Varaqint
            PRIPARAMS                   = wa_PRI_PARAMS
      EXCEPTIONS
           BAD_PRIPARAMS               = 1
           BAD_XPGFLAGS                = 2
           INVALID_JOBDATA             = 3
           JOBNAME_MISSING             = 4
           JOB_NOTEX                   = 5
           JOB_SUBMIT_FAILED           = 6
           LOCK_FAILED                 = 7
           PROGRAM_MISSING             = 8
           PROG_ABAP_AND_EXTPG_SET     = 9
           OTHERS                      = 10
   CALL FUNCTION 'JOB_CLOSE'
     EXPORTING
       jobcount             = lv_jobcount
       jobname              = lv_jobname
       strtimmed            = lc_true
     EXCEPTIONS
       cant_start_immediate = 1
       invalid_startdate    = 2
       jobname_missing      = 3
       job_close_failed     = 4
       job_nosteps          = 5
       job_notex            = 6
       lock_failed          = 7
       OTHERS               = 8.
Prabhudas

Similar Messages

  • How to change your user name for the Ipod nano...

    Can anyone please explain how to change the user name on your Ipod nano?

    hiya!
    do you mean the nano's name in the ipod source list?
    if so, select the ipod in the itunes sourcelist. click on it once, and pause for a second or so. you should then be able to type in what you please.
    love, b

  • Destination disabled. []: [CrystalEnterprise.Ftp]. Please note the name of the job server used for your request and contact your system administrator to make sure the specified destination is enabled. (FWB 00031)

    Hi
    In BO 4.0 SP 9 when a administrator tries to schedule a report via CMC there is no error
    But when a user schedules a report and the destination is FTP location -> Use default settings he gets following error
    Destination disabled. []: [CrystalEnterprise.Ftp]. Please note the name of the job server used for your request and contact your system administrator to make sure the specified destination is enabled. (FWB 00031)
    There is only one Job Server and the destinations are enabled in it
    There is no Job server for Crystal Reports Job Server
    Do i need to create it and how.

    Please check if you have proper rights to schedule to FTP. You can create a new job server, whenever you schedule it, there are multiple job servers, it will handle based on the load. But it is not mandatory, depends on the load.

  • How to track the user name for audit trail ?

    Hi all,
    I chance the new user name from existing user code, How can i track the document that made by the old user name and the current username. Because when the username change, all the historical will be changed to the current.
    Thanks in advance
    Regards
    Jia shun

    Hi ,
    the problem is usersign is only connect to userid of OUSR. And the changes is on User Name field.
    For example know i make a document PO by using user code manager , user name Jason Butler.
    After that i change my user name become Alex, but the user code still same "manager".
    After that i re-login and update the Qty in PO doc, that i made before. After that i change again the username, the user code still same. After that i click the show history of the document that i made before. The Updated by and created by are always followed by the current user name that i change.
    thanks and regards
    Jia shun

  • DRM-61026: Unable to create user session for the following reason: Login failed. Invalid user name or password.

    All Im very new to Oracle DRM and Im trying to get the app setup on Windows server running SQL Server 2008.  When I try to login to the Web Client I keep getting this error.
    DRM-61026: Unable to create user session for the following reason: Login failed. Invalid user name or password.
    Can you please help

    This might be due to The 'Oracle Instance' path may not have been set to a path relative to the 'CSS Bridge Host' (i.e. the Foundation Services machine) on the Configuration > Host Machines > CSS > General tab of the DRM Configuration Utility.
    if this is the case then
    1. Open the DRM Configuration Console.
    2. Go to the Configuration > Host Machines > CSS > General tab of the DRM Configuration Utility.
    3. Ensure that the path in 'Oracle Instance' has been set relative to the 'CSS Bridge Host' (i.e. the Foundation Services machine defined in 'CSS Bridge Host').
    4. If corrections are made to 'Oracle Instance' then restart the DRM services to pick up the change.
    Thanks,
    ~KKT~

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Using a single user name for RADIUS

    I have a WLAN with 5 1200 Series AP (A/G) configured for Fast Roaming using the Cisco supplied documentation. Can I use one user name for all of my devices to connect to the Internal Radius Server? This would be similar to having a passphrase for WPA. Thank you for taking the time to read my post.

    Chris:
    I understood you have autonoomus/standalone APs wiht WDS (Wireless Domain Server) configured for FSR. right?
    You can use same username from multiple devices if your Radius does not prohipit more than one session per username.
    Make sure that your RADIUS server allows multiple sessions for the user you want to use and it should work.
    Note please that using same username with multuple users is not the same of using PSK (talking from security perspective). using 802.1x is usually more secure.
    HTH
    Amjad

  • Error message in time machine: "There was a problem with the user name or the password of the network

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

  • I do NOT want Firefox to remember my sign-on user name for my e-mail account. How can I get rid of this?

    When I start typing my user name for hotmail, it automatically pops up. I do NOT want this. How do I get rid of it?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *https://support.mozilla.com/kb/make-firefox-remember-usernames-and-passwords
    * https://support.mozilla.com/kb/Form+autocomplete

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • Alias name for the column name in Prompt

    Hi,
    I have a scenario where I am taking column names into prompt. I have used the following SQL in the SQL results under "Show" option of the Prompt.
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' END FROM "Real Time"
    My problem here is I am getting the column names into the Prompt as "Orders"."By OrderDate" and "Orders"."By ShipDate", which is not acceptable and readable for mat for the user. Is there any way that I can assign an alias name for the column name such as OrderDate and ShipDate in the above SQL.
    Your quick respose is appreciated.
    Thanks,
    Rama

    hi,
    try an alternative one....in your administrator make new columns with alias to ones you want...so you wiil be able to show whatever you want.
    Otherwise,is it possible to show
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By OrderDate"' as "xxxxxxxxxxxxx"END FROM " Real Time"
    UNION ALL
    SELECT CASE WHEN 1=0 THEN AGE.AGE ELSE '"Orders"."By ShipDate"' as "yyyyyyyyyyyyyyyy"END FROM "Real Time"
    Ending,you want the data from your columns?or just the name??
    hope i helped...
    http://greekoraclebi.blogspot.com/

  • Trivia question: internal production name for the Mac Book Pro

    Hi,
    I know Apple has internal production names for their products. So the Mac Book Pro has an internal name other than the Mac Book Pro.
    i was curious, for trivial purposes, what is Apple's internal production name they use for the MacBook Pro?

    Yes, the few people who worked on the project are just dying to post it here so that they can lose their jobs. I can't believe no one has replied yet!
    Seriously, no one knew they were ven announcing a new name for the PowerBook outside of the Apple Campus until Steve announced it. Why would anyone know the unannounced codename?

  • How to get the Users Name from the SSL certificate?

    Trying to achieve the following:
    Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
    Does SSO do this or something else?

    Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
         File scriptFile = File.createTempFile("script", ".js");
         FileWriter fw = new FileWriter(scriptFile);
         fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
         fw.flush();
         fw.close();
         BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
         String uName = br.readLine();
         br.close();
         scriptFile.delete();
         if (scriptFile.exists()) scriptFile.deleteOnExit();
         return uName;
    }

  • Linking of AD User name with the ip address

    hi team,
    i need your support to know about how we can establish Linking of AD User name with the ip address.???
    Regards, Ravi Kumar

    Hello,
    as said before, ip addresses belong to computers and NOT to users.
    Every time a computer starts it will either use a fixed ip address configured on the machine or get one from a DHCP server.
    If you have the need for finding user accounts logging on to a computer you have to enable logging/auditing so that information as this are logged in the event viewer either from the DCs or the local computers.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Delete a user name at the opening of the software

    Hello,
    I downloaded the Skype recently and always appears to me my user name at the opening of the software.
    How can I disable it? I do not want the program to remember me.
    Thank you!

    please visit the link below to learn how to delete usernames in the login or sign-in window.  however, there is option yet for Skype not to remember the username that logged in using a particular computer.  Your username will re-appear everytime you login using that machine and you may need to re-do the process.
    How to Delete Usernames in the Sign-in Window
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

Maybe you are looking for

  • Why aren't the pages of my site listed in the left-hand browser column?

    I've been able to edit the homepage of my site but the rest of the pages do not appear in the browser column and I haven't been able to figure out how to find them. Somehow I stumbled into the second page, I have no idea how. Anyone have any answers

  • Is this a bug in ipod software or am i doing something wrong?

    I got my ipod video a few weeks ago and was excited to be able to carry all 7000+ songs around in one place.. but then i ran into this problem and i'm not sure if it's a bug or if i'm doing something wrong. let's say i have exactly one album by an ar

  • How can we handle an invalid character while doing loading in bi7 ?

    means procedure and details      issues:              i have taken an invalid character in my flatfile               and i want to solve this so that i can see these invalid characters in report correctly Please search the forum before posting a thre

  • Transfer of Images from fone to PC not registering...

    Hi, I'm awaiting a new phone and sim as I'm currently experiencing problems and cannot transfer my pictures from my phone to pc and don't want to lose them when I exchange my phone. The Nokia PC Suite - Image Store states that "no new images or video

  • Cisco 5508 Firmware update 6.x 7.0.98 Questions

    Hi guys, Have not done an update on any cisco gear since about 2001 We have a cisco services contract with IBM that supplies us access to the usb drivers, firmwares etc, and we have a Cisco 5508 6.x running ~30 Cisco 1252's, some 1231's and (potentia