Error in LSMW getting return code 6

Hi all,
             i Am getting a  Error in LSMW getting return code 6 , after asign a file , in the read data step i am getting the error , please help me it is very urgent,
sridhar

Hi,
If the Sy-Subrc is 0 then Success, if the Sy-SUBRC is 4 then failure, if the Sy-SUBRC = 6 then the user might be not access to read the file
AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the necessary authorization, otherwise 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause
Regards
Sudheer

Similar Messages

  • Error when uploading file : Return code = 6 in LSMW

    Hello All,
    Getting the bleow mentioned error in LSMW.
    Error when uploading file Return code = 6 )
    Is it related to access. please suggest.

    did you define the file in step 7 without any error and allocate in step 8 without any error before? 
    I mean in the same system where you execute the read step.
    Make sure you have the file not open when you execute the read step.

  • Error Getting return code while FTPing file through JAVA

    Hello experts
    My requirement is to send file to Mainframe server in a JOBQ.I used a socket to connect to server. A designated FTP ID is provided for authentication.
    I tried to FTP file to mainframe sever, but while getting return code from server, i m recieving Junk values.I am reading return code through BufferReader.readline().
    I have set up the connection mode to ASCII mode.I tried to set up the connection mode to EBSIDIC mode too, but i revieve the same error.
    Any one have tried to FTP file to mainframe in got the same error.What could be the possible reason.
    Here is the error looks like :-
    Inside SocketClient() class, in connect(String hostname, int port) socket = Socket[addr=xxx.xx.xx.com/xx.xxx.xx.xx,port=21,localport=2500]
    Inside SocketClient() class, in connectAction() method (InputStream) input = java.net.SocketInputStream@696fc610
    Inside SocketClient() class, in connectAction() method (OutputStream) output = java.net.SocketOutputStream@695b8610
    Inside FTP class, in __getReply() method _controlInput = java.io.BufferedReader@15370617
    Inside FTP class, in __getReply() method Line = ��&�&#63641;����(��&����/������<�������<&#63641;��|(?>
    Any help in this topic is appriciated
    Regards
    Samit

    This is the third party API's i have used
    http://www.enterprisedt.com/downloads/ftp.html
    download this.
    Version 1.2.1 (Jan 29, 2003). Download here. (tar.gz format. WinZip will unpack this). Compiled/tested for JDK1.4.x. Will work for 1.3.x etc

  • Error when uploading file :( Return code = 6 )

    Hello All,
    Getting the bleow mentioned error in LSMW.
    Error when uploading file Return code = 6 )
    Is it related to access. please suggest.

    Hi,
    If the Sy-Subrc is 0 then Success,
             Sy-SUBRC is 4 then failure,
             Sy-SUBRC = 6 then the user might be not access to read the file.
    This is due to authorization issue.

  • Document control failed due to error in [DOCMGR-CANCEL], return code = [OTH

    Hi,
    When i tried using the cancel PO API, it resulted in the following error.
    Document control failed due to error in [DOCMGR-CANCEL], return code = [OTHER]
    I searched the metalink and found out that it was a bug as p_doc_num variable was a number and in PO_HEADERS_ALL segment1 is VARCHAR2. But now the bug is fixed.
    I tried both ways, with and without quotes but it is still giving this error. Please suggest.
    I used the API in the following way.
    DECLARE
    l_return_status VARCHAR2(1);
    BEGIN
    fnd_global.apps_initialize(4480,20707,201);
    --call the Cancel API
    PO_Document_Control_PUB.control_document (
    p_api_version=>1.0, -- p_api_version
    p_init_msg_list=>FND_API.G_TRUE, -- p_init_msg_list
    p_commit=>FND_API.G_TRUE, -- p_commit
    x_return_status=>l_return_status,-- x_return_status
    p_doc_type=>'PO', -- p_doc_type
    p_doc_subtype=>'STANDARD', -- p_doc_subtype
    p_doc_id=>34, -- p_doc_id
    p_doc_num=>null, -- p_doc_num
    p_release_id=>null, -- p_release_id
    p_release_num=>null, -- p_release_num
    p_doc_line_id=>null, -- p_doc_line_id
    p_doc_line_num=>null, -- p_doc_line_num
    p_doc_line_loc_id=>null, -- p_doc_line_loc_id
    p_doc_shipment_num=>null, -- p_doc_shipment_num
    p_action=>'CANCEL', -- p_action
    p_action_date=>SYSDATE, -- p_action_date
    p_cancel_reason=>null, -- p_cancel_reason
    p_cancel_reqs_flag=>'N', -- p_cancel_reqs_flag
    p_print_flag=>null, -- p_print_flag
    p_note_to_vendor=>null ); -- p_note_to_vendor
    commit;
    -- Get any messages returned by the Cancel API
    FOR i IN 1..FND_MSG_PUB.count_msg
    LOOP
    DBMS_OUTPUT.put_line(FND_MSG_PUB.Get(p_msg_index => i,
    p_encoded => 'F'));
    END LOOP;
    END;
    /

    first you have to assign org_id to the program,like fnd_client_info.set_org_context('167');
    you also have to initialize,like this
    fnd_global.initialize(session_id => l_session_id
    ,user_id => 2613
    ,resp_id => 50459
    ,resp_appl_id => 201
    ,security_group_id => 0
    ,site_id => -1
    ,login_id => 1102144
    , --can't be -1,or else will be wrong
    conc_login_id => 1102144
    ,prog_appl_id => -1
    ,conc_program_id => -1
    ,conc_request_id => -1
    ,conc_priority_request => NULL);

  • Error during reading T001G (Return code

    Hi experts,
    In vl33n ( Inbound Delivery ) , Extras > Delivery Output >Select o/p type  and ,
    when I press Processing Log for a Inbound Delivery Output I get Following Errors
    "Error during reading TVKO (Return Code 4)"
      Error during reading T001G (Return code                                                 4
    What should be done?
    Thanks so much in advance!

    Hello Kaustubh,
    What is the processing mode of the output type. If processing type is any of the below :-
    1. Print - Set a break-point in the driver program and click on print preivew.
    2.EDI - Trigger output type and change processing mode to periodic(click on futher data tab) .
      Run RSNAST00 program with output type and inbound delivery as input parameters.
    Debug the driver program to know the actual root cause
    Thanks

  • Error during reading T001G (Return code     4

    Hi experts,
    In vl33n ( Inbound Delivery ) , Extras > Delivery Output >Select o/p type  and ,
    when I press Processing Log for a Inbound Delivery Output I get Following Errors
    "Error during reading TVKO (Return Code 4)"
      Error during reading T001G (Return code                                                 4
    What should be done?
    Thanks so much in advance!

    Hello Kaustubh,
    What is the processing mode of the output type. If processing type is any of the below :-
    1. Print - Set a break-point in the driver program and click on print preivew.
    2.EDI - Trigger output type and change processing mode to periodic(click on futher data tab) .
      Run RSNAST00 program with output type and inbound delivery as input parameters.
    Debug the driver program to know the actual root cause
    Thanks

  • Getting return code as 1 for SD_SHIPMENT_PROCESS_HU

    Hi All,
    Could you please tell me what is the use of SD_SHIPMENT_PROCESS_HU function module.
    I am debugging one standard program in that after processing  this FM in  SD_SHIPMENT_PROCESS Function module getting return code is 1.
    Could you please tell me,what might be the reason.
    Thanks in Advance.
    Regards,
    Rama.

    Hi Rama,
    if you will look into the specified function module
    CALL FUNCTION 'SD_SHIPMENT_PROCESS_HU'
      IMPORTING
        e_logfile =                 " v56e_logfile
      CHANGING
        c_activities =              " v56e_shipment_activities
        c_shipment =                " v56e_shipment
      EXCEPTIONS
        ERROR = 1                   "
    so if you are getting returned code as 1, it means there is any error.

  • Error: OCIEnvCreate failed with return code -1

    I am trying to run a 3rd party software that access Oracle. I have set up the ODBC connections and tested the connections. They tested successfully. But when I try and connect to Oracle using this tool I get the following error: OCIEnvCreate failed with return code -1. Any help would be greatly appreciated. Thanks

    792208 wrote:
    I am trying to run a 3rd party software that access Oracle. I have set up the ODBC connections and tested the connections. They tested successfully. But when I try and connect to Oracle using this tool I get the following error: OCIEnvCreate failed with return code -1. Any help would be greatly appreciated. Thanksif the connection request actually gets to the listener, then it will be logged.
    If no record exists within listener.log file, then the root cause & solution are external to Oracle.

  • Get return code in command line

    Hi,
    Is possible modify or get return code diferent 0 or 1 when start scenario using command line?

    i use control+M, and result with erros in E$, send to "hospital" whit this

  • Error for COM routine (Return code 40028)

    Dear Friends,
    Need your support in order to tackle this issue.
    Am working on SCM 4.1 ,Demand Planning.When you load the data in to the planning book you get the following error at the bottom:
    "Error for COM routine using application program (Return code 40028)".
    Well further investigation revealed the inconsistency in Live cache.It states the deviation in the start time in storage bucket profile and those in the data base.
    Your feedback on the same is welcome.
    Pramod

    Hello Pramod, 
    You reported the LCA < COM > routine error 40028:: Illegal timestamp in rough timegrid 
    You got this error, when you tried to load the data in to the planning book.
    The error could be due to the fact that the storage buckets profile and the time buckets profile in your application  scenario didn't match.
    Could you please check if they match or not using the report
    /SAPAPO/ADMIN_MVIEW_CONS_CHECK.
    Please check/change the definition of the bucket profiles that they match.
    Solutions may be:
    1) use a time bucket profile in your data view which match the storage bucket profile
    or
    2) deactivate your planning area, set there a storage bucket profile which match a time bucket profile, activate the planning area again and generate your planning book/data view again.
    If you need further assistance on this issue please create the OSS ticket to the component 'SCM-APO-FCS'.                                            
    Thank you and best regards, Natalia Khlopina

  • Getting return code from subprocess execution

    Hi,
    I am executing a batch file as a subprocess and need to get the return code from it.
    The batch file executes a java class, which exits (System.exits(rc)) with a return code on error and how this can be captured in the calling program.
    i am calling the batch file as follows: (fragment)
    Runtime r;
    process p = r.exec(execCmd, null, mqsiToolFile);
    istr = p.getInputStream();
    br = new BufferedReader(new InputStreamReader(istr));          
    returnCode = p.waitFor();
    System.out.println("exit value: "+p.exitValue());
    This successfully executes the subprocess and always returns with code '0', even though the sub-process exits with a code >0.
    p.waitFor() or p.exitValue() - doesn't giving the exit value of the subprocess.
    How can i capture the exit value (System.exit(rc)) from the sub-process.
    I am running the app on Windows NT4 sp6
    Any help would be greatful.
    Thanks in Advance.

    Peter,
    can u be more explanative on this, i can see the run time result (0, 1). But couldn't get familiar on the sample you have given.
    My code is as follows:
    Process p = null;
    Runtime r = Runtime.getRuntime();
    for loop {
    execSubProcess(.., .., ..)
    public int execSubProcess(String excmd, String[] env, File fileDir) throws Exception {
    int res = 0;
         try {
              System.out.println(excmd);
              p = r.exec(excmd, null, fileDir);
              istr = p.getInputStream();
              br = new BufferedReader(new InputStreamReader(istr));
              line = null;
              while ((line = br.readLine()) != null) {
                   System.out.println(line);
              res = p.waitFor();
         System.out.println("sub-process return code: "+p.waitFor());
              System.out.println("sub-process exitValue: "+p.exitValue());
         } catch (Exception e) {
         throw e;
         return res;
    Here i get all the time 'res=0' , even though the subprocess execCmd exits with a return code > 0.
    Is tehre any environment setup or ..needed to capture the subprocess exit code val (System.exit(rc)) in the calling program.
    Please provide more details as per ur convinience.
    thanks

  • Transport Error - tp finished with return code: 152

    Howdy All,
    I put through some transports into Production on Thursday 22/06/2007 which worked succesfully.
    Nothing has changed in the instance profiles, TP Parameters or the TMS. Now when I try to transport a different request I get the following :
    26.06.2007                              TP                                     1
    Transport executed for:    E75K913986           with command string:
    This is E:\usr\sap\P75\SYS\exe\run\tp.EXE version 340.16.31 (release 640)
    Warning: Parameter DBHOST is no longer used.
    Warning: Parameter DBNAME is no longer used.
    The import of the transport request E75K913986 for system P75 was not performed.
    Please check the tp command. The buffer entry is printed out below.
    P75 buffer:
    TASK                .CLI|PROJECT             |P|CMD I |DD Im |Activ |MainI |MC A
    ---------------+--+--+--
    E75K913986          .300|                    | |0000 |      |      |0000 |
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    SWARNS: Highest tp internal severe warning was: 0152
    tp finished with return code: 152
    meaning:
      Nothing done.
    Transport function error:    Call failed
    E75K913986 has previously been imported. It needs to be re-imported because since it went in another transport (which was created before it) has gone and overwritten some of the objects.
    Your advice / guidence would be greatly appreciated, there doesn't seem to be too many articles about this error.
    Cheers

    I know it has passed 7 years since this problem was recorded, but since we ran into this issue and were looking for assistance, the provided answers above did not apply to our case.  Therefore, we add some tips for the readers:
    Check the TMS alert in the system where the transpor was created.  It can be done in many ways, but you ca do STMS >  Monitor > TMS Alert > TMS Alert Viewer
    Our issue was with retrofit, which did not exist in 2007.  Basically TMS is reporting that the transport of copies that is being expected does not exist, hence "Nothing done".
    Solution was to generate in SolMan via report RETRO_SERVICE_CREATE_RFIT_DATA the missing transport of copies.  Once that was done, we could perform the transport move.
    Regards,
    Juan Carlos

  • Getting return code from remote script after Unix rsh call

    I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
    I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
    Jan Miller
    [email protected]
    202-237-9584

    Please ignore the first paragraph of my previous post.

  • Getting Return Code for cl_gui_frontend_services= execute

    Hey,
    im using the static method cl_gui_frontend_services=>execute  to start a program locally. The program is openens synchronously and i need to get the return code of the program. I mean not the one from the method-call but from the external tool on OS-level.
    Is there a way to get that one ?
    Thanks and regards,
    oliver

    well seems there is no way...solved it now over a result-file which is get written by the called tool and later read by sap.

Maybe you are looking for

  • Debit memo in AP

    Hi Consultants, We have a requirement to creation of Debit memo in AP for Purchase order and this should be tagged to PUrchase Order and user can see this debit memo in payment process Please advice me. Thanks, Ashok.

  • Programati​c Access to network published shared variable - Knowlege Nugget

    Wanted to Share a coding problem I have just resolved: I have been trying to debug the code above. It worked for one device and not the other (Identical devices: DevA,DevB) It has been throwing an error, unable to access variable. I resolved the prob

  • IPhone App: Image taken with camera showing up rotated?

    We are currently using the camera to take a photo and then upload it to a server. When we show the photo back to the user on the phone either by putting in the library or just displaying it within the app everything looks perfect. When we use that sa

  • Can i use a Gift card for in game purchases instead of my credit card?

    Ive never used a apple giftcard before and im curious if i can use the giftcard as a primary use to charge on it instead of my credit card, can someone please help me out.

  • Uprgaded to 6.0.4, now my computer runs like a turtle

    I just upgraded from itunes 5 to 6.0.4 Now my CPU usage is thru the roof and programs take forever to open up. Even tasks as simple as switching windows to other app's take a few seconds. I have 1GB of RAM i don't understand why this is happening but