Invalid_jobdata when submitting job with rfc user

Hi,
I've created a function module in the erp system to remotly trigger a report program by a bw prossess chain.
When running in the forground it works fine, but the runtime is so long that I want it as a background job.
So I call job_open, job_submit, job_close in the function module. When I test the function module in the erp system with my dev user it opens a new job, adds a step and release correctly. It also runs fine if I intercept it in the debugger and change sy-uname to aleremote (the standard rfc user).
It does not work when it's acctually called rfc from the bw system. The job is opened, but job_submit throws invalid_jobdata.
Could this have anything to do with rfc or the executing user (which is of type SYSTEM)?

I've caught the execption so there is no dump, but I'm unable to determine why the function module job_submit gives invalid_jobdata only when the executing user is the aleremote user and only when the call originated (the call to my module) from a remote system (the module job_submit is called locally thru my module). Authorization for the user is sap_all, but I was woundering maybe the user type system could be a problem?

Similar Messages

  • Order not getting saved with RFC user

    Hi CRM experts,
    We have custom report to update payment card details in CRM order. For an error order when I try to update the card details in CRM it successfully deactivates the "Contains Error(I1030)" status and saves the order.
    Whereas the same error order when I try to update the card details through external system, the user is RFC user, the program does not deactivates the status I1030 and the order gets saved with error.
    Initially I thought it is an authorization issue with RFC user, so I tried applying SAP_ALL access to RFC user but it did not work.
    Kindly suggest the possible solution.
    Thanks in advance
    Meenu.

    Hi Meenu,
    The standard one order framework works in such a way that when any changes to any object like PARTNER , HEADER , ITEMS , CARDS etc take place, then after changes done, the system checks for any inconsistency for that particular object and displays error messages accordingly.
    At the next change, the check runs again and the messages are removed. The checks are run through the standard event framework of BEFORE and AFTER. So in case the error messages are not getting removed, it means that these events are not getting triggered properly. I think that you are using individual FM for changing the details which could be something like CRM*CARD*MAINTAIN*OW*, you can try using CRM_ORDER_MAINTAIN, as this FM triggers all events correctly.
    /Hasan

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • AUTO PO print out creates spool with RFC user.

    We have classic scenario where AUTO SRM PO print out spool is create with RFC user. While PO data is passing to R/3 is correct with correct user (created_by). Out put is created on the name with RFC user not with user who create SRM SC& PO. BADI BBP_CREATE_PO_BACK will help?

    Hi Vishal,
    Welcome to SDN.
    Do they use custom PO SAPScript/Smartform?
    If they do, you may want to check the print program (custom one) and the custom PO form. Perhaps there is some logic to set/display with the european decimal notation.
    If they don't, you can also check the print program setting and do debugging (if necessary) to find out the logic to assign european decimal notation. 
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Who scheduled a job with service user

    Hi,
    In my one of the system one job is running with service user. As service user cannot log into system. One of the dialog user logged in to system and scheduled one job with service user. this job is running more than 2 months. Now we want to know who is that dialog user scheduled this job with service user.  I have checked in job details it is not showing dialog user who has sheduelded first time.
    Pls someone help me in this case.
    Kind regards,
    Ram
    <subject_modified>
    Use a proper subject
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on Jul 1, 2009 10:25 AM

    Just check the job owner.... If the Owner is the service user then most likely the user was changed to service user after the job creation. Also be aware that some jobs are generated by the system.
    Regards
    Juan

  • Problems with in/out points when submitting jobs via Terminal/command-line

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

  • Error when submitting job to Qmaster cluster

    Hi all,
    I'm new to working with the Qmaster cluster but I created a cluster (at least I think I did it right) using the distributed processing apple document from the help menu. Everything looks right...I have an active cluster with two machines. What is a little weird is that the Cluster that I can choose in Compressor when submitting a job has a format like "ThisComputer.RScomputer.local:50411" instead of the name of the cluster I made (I called it Zeus Cluster).
    So, I choose this long cluster name and submit the job but I get this error:
    Error: An internal error occurred: NSException raised by 'NSPortTimeoutException', reason = '[NSPortCoder sendBeforeTime:sendReplyPort:] timed out'.
    Has anyone seen this error. What could I be doing wrong? Apple Qadministrator has the Cluster active and both machines are sharing fine.
    Any help would be appreciated. Thank you!

    Have you looked in the /Library/Logs/Qmaster for any specific detail? (use /applications/utilities/console.app )
    there's usually some detail in there that will give you an insight. If you see smething in there of significance, by all means post it here so w can examine and suggest to you.
    I have had his before, and in my case is related to the cluster setup I had.

  • Unable to interact with Flash content when running Firefox with restricted user

    When running Firefox with limited Windows user on Windows XP the Flash elements are displayed, the content that is set to auto-play does so even, but the flash area doesn't receive any mouse input: e.g. when I right click in the area instead of the flash context menu I get the browser context menu as if the flash plug-in wasn't even there. The exact same page on the exact same computer but with Administrator user works as expected: can press buttons, interact with flash controls and the context menu upon right-click is of course the flash one. This behavior occurs even if I disable all add-ons.

    Try uninstalling your sound card driver in Device Manager and reboot your PC.

  • Error while submitting job under another user account

    Hi,
    Im logging with my userid (ie: prem). I have dba privilege. Im trying to submit a job under scott user account.
    Im getting the below error.
    prem@db1>BEGIN
    2 DECLARE
    3 wk_job NUMBER;
    4 BEGIN
    5 sys.DBMS_iJOB.SUBMIT(wk_job,LUSER=>'SCOTT', PUSER=>'SCOTT', CUSER=>'SCOTT','INSERT_JOB;',
    6 TO_DATE(TO_CHAR(TRUNC(SYSDATE),'dd/mm/yyyy') || '23:55','dd/mm/yyyy hh24:mi'),'SYSDATE+1');
    7 COMMIT;
    8 END;
    9 END;
    10 /
    sys.DBMS_iJOB.SUBMIT(wk_job,LUSER=>'SCOTT', PUSER=>'SCOTT', CUSER=>'SCOTT','INSERT_JOB;',
    ERROR at line 5:
    ORA-06550: line 5, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SUBMIT'
    ORA-06550: line 5, column 3:
    PL/SQL: Statement ignored
    Please help me in this regard.
    Thanks,
    Prem

    Hi,
    As you may know, in versions 10gR1 and higher, Oracle recommends the use of dbms_scheduler instead of dbms_job.
    You can easily create jobs in other user's schemas using dbms_scheduler, but this is not supported in dbms_job.
    dbms_ijob is an Oracle internal package which should never be called directly (it is neither supported or recommended by Oracle and doing any updates may break this usage). What you should be doing is connecting as that user and then using dbms_job.submit (or better yet using dbms_scheduler.create_job).
    The error message you are getting is because you are not calling the internal procedure correctly. This procedure is not officially documented by Oracle and your use of it will not be supported by Oracle.
    Hope this helps,
    Ravi.

  • Password inconsistancy issue with RFC users in ECC 6.0 System after upgrade

    Hi,
    We have upgraded the system from 4.7 to ECC 6.0, but facing the password inconsistancy problem for RFC users. We have set the parameters like "login/min_password_lng" as "8" and "login/password_downwards_compatibility" as "3" & RFC user Type is "system". Could you please suggest how to resolve the password inconsistancy issue.

    Hi Chandan,
    you need to run the txn. SECSTORE and there it will shows you all the RFCs that have inconsistent passwords. Please maintain the correct passwords there.
    In case the existing passwords are no longer acceptable due to new security policies as per the new SAP version, you will have to change the password from SU01.
    Regards,
    Shitij

  • Schedule background job with different user

    hi ,
    i want to schedule a background job under a different user
    i have used the parameter AUTHCKNAM of 'job_submit'
    it is giving sy-subrc = 0 .
    but it is not working
    i have also used the FM 'bp_job_create' in place of 'job_open'
    it is giving sy-subrc = 0 .
    but not working as needed
    kindly help
    regards...

    hi
    Try this
    We can do that via SUBMIT statement:
    Go through the documentation os SUBMIT statement with addition:
    ... USER user VIA JOB job NUMBER n
    Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
    OR
    go through this link , i hope this ll help you to solve your problem
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/ff2138faeb3807e10000009b38f889/content.htm
    Hope this helps.
    Thanks
    Tushar

  • Submitting Job with parameterised procedure using DBMS_JOB

    Hi,
    I need to submit a job which makes a call to a procedure with parameters as shown below:
    PROCDURE SUB_JOB ( P_PAR1 VARCHAR2, P_PAR2 VARCHAR2)
    IS
    L_JOBID INTEGER;
    BEGIN
    DBMS_JOB.SUBMIT ( L_JOBID, ' BEGIN PROC1 ('''||P_PAR1||''','''||P_PAR2||'''); END;' );
    COMMIT;
    END;
    But when I execute the above procedure I get the error like below:
    PLS-00103: Encountered the symbol ")" when expecting one of the following: ( - + case mod new not null others <an identifier> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe <an alternatively-quoted string literal with character set specification> <an alternatively-q
    I checked many examples but all are with hard coded values. In this I will know the values of parameters to PROC1 only at run time.
    Is there any other way of doing this. I'm using Oracle 10g. Please advise.
    Thanks. Pat

    Works for me...
    SQL>create or replace procedure p(p_par1 number, p_par2 number)
      2  as
      3  begin
      4    null;
      5  end;
      6  /
    Procedure created.
    SQL>declare
      2      p_par1 number;
      3      p_par2 number;
      4      L_JOBID INTEGER;
      5  begin
      6      DBMS_JOB.SUBMIT ( L_JOBID, ' BEGIN P ('''||P_PAR1||''','''||P_PAR2||'''); END;');
      7  end;
      8  /
    PL/SQL procedure successfully completed.Message was edited by:
    SamB

  • Hide ui/pw when submitting job via FORMS HOST cmd

    I have a oracle procedure that returns the run_command string. Ex . ‘sqlplus ui/pwd @report.sql’. The run_command string returned by the procedure is run via the HOST command in oracle Forms.
    HOST(run_command) submits the job but it exposes the ui and pa that is used in the run_command string. On UNIX, if I do ps –ef | grep sqlplus after the job is submitted by the HOST command, I can see the ui/pwd in the run_command.
    How can I submit the job via HOST command without exposing the ui/pwd ?
    Thanks
    GP

    Thanks for the reply.
    The users have individual userid and passwords and I will have to pass it to the shell script that runs the report.
    That will be exposed by ps -ef.
    I can't create a single query only id because I have some reports that do inserts and updates.
    Is there a way I can hide the userid and password that I am passing to the shell script.
    Thanks.

  • Software center dont show the package(not applications) on the client as installed when logging in with other User ID.

    It is showing as Installed in software center with user ID through which it is actually installed but not from other User ID's.
    Please send me suggestions or how we can resolve this issue.

    Software center might not show it if there are multiple users logged in. It will only be shown to the
    user that got the highest (lowest? Can't remember it) session id.
    http://social.technet.microsoft.com/Forums/en-US/a3c20fe1-226d-4667-afeb-74879ee93c6a/applications-but-not-programs-showing-in-software-centre?forum=configmanagerapps
    Regards, Ibrahim Hamdy

  • Background Job with User Name

    I am trying to submit report program in background job. I want to submit it with specific user name so I am submitting with user name as 'ABC'  as below
    data: user type sy-uname.
    user = 'ABC'.
    SUBMIT z_program AND RETURN
                 WITH matnr = matnr
                 WITH werks = werks
                 USER user
                 VIA JOB jobname
                 NUMBER jobcount
    But it creates job with current user(sy-uname) running the program and  not 'ABC'. How I can change it for specified user?

    SUBMIT z_program AND RETURN
    WITH matnr = matnr
    WITH werks = werks
    USER user
    VIA JOB jobname
    NUMBER jobcount
    AND RETURN.    "you forgot to return back
    Of course the user should be the one existing in the system. I guess there is no such ABC. Find the one which exists (use i.e. su01).

Maybe you are looking for

  • How do I use 1 Apple ID for iCloud and iTunes Purchases?

    Hey Guys and Gals, I would like to use 1 Apple ID instead of 2.  I know that Apple ID's cannot be merged. My original solution was to change my Apple ID, which is a Yahoo address to an iCloud address.  However, you cannot do this since it is an Apple

  • Error 1722 Uninstall Failure - BDS 6.1

    Running a Windows 7 machine, and trying to uninstall an old version of BDS (6.1) because I no longer use BB. I'm getting 'Error 1722 - There is a problem with this Windows Installer package'. This seems to be a common error, but I've yet to see a goo

  • Change the mouse icon.

    Hi all I need to change the mouse icon. I'm using: setCursor(Cursor.WAIT_CURSOR); buet the problem is that this only works inside the application. If the mouse cursors does out of the application (f.e. to the windows desk) the mouse changes into the

  • Enabling ports and services with svccfg

    Hi, I had a problem today which appears to have been a result of running jass security hardening on a system. The webconsole failed to restart, it was eventualy resolved by # svccfg -s svc:/system/webconsole setprop options/tcp_listen = true # svcadm

  • Peak search outputs wrong value

    I'm using the peak search VI to trend amplitudes from a power spectrum. The peak search VI is not outputing the correct amplitudes.  They are off by a little bit everytime.  I have looked at the output arrays from the power spectrum, and I have verif