Process Chain/OS command issue

Hello,
I am trying to execute a command similar to the following in an OS command in a process chain:
cp /path/filename*.txt /path/filenamexxx.txt
I know it's not a permissions problem.
This is the error message from the Process Chain Maintenance Log View:
cp: cannot access /path/filename*.txt: No such file or directory
External program terminated with exit code 1
I'm thinking it is a problem with the *(wildcard). If I take out the *(wildcard) it works flawlessly. It seems like SAP is not correctly interpreting the * character.
The purpose of my doing this is to remove the date text from the end of the file and store it in a different directory without the date text. e.g.
filename08032006.txt copy to different directory as filename.txt
Any help will be greatly appreciated.
Thanks,
Gary Martins

hi,
i do not know what process cain maintenace view is but I wonder how this command should work on the commandline correctly:
say you have
filename_1.txt
filename_2.txt
and copy them according to your example to
filename_x.txt
This would be n files copied to one destination file. At best you had the destination overwritten n times and be left with the last source file in the destination file.
Would that make sense? Probably therefore this construct is not supported.
just my 2 cents,
anton

Similar Messages

  • Process chain 'OS COMMAND'

    Hi
    I would like to use the OS_COMMAND in process chain to rename file to another filename after data loaded from file into the targeted cube. Eg: I would like to delete brand.txt from folder named /interface/.
    I would like to create the command name via tcode SM49. However, I did not know the command to enter in fields 'Operating system command' and 'Parameters for operating system command'. Can anyone please guide me?
    Thanks and regards
    Kang Ring

    Hi,
    You can find System OS command process type in Other Processes section of RSPC.here you can add the same in your process chains and fulfill your requirement.
    hope this is clear for you.
    Regards
    Ramsunder

  • Info Spoke - Process Chain - OS Command usage help

    I am new to BW. My requirement is to extract the master data off of BW data targets on a weekly basis and ftp the files onto a different server.
    To meet this requirement, I am planning to create InfoSpoke(s), put it in a Process chain and using the OS Command ftp the files to different server.
    Is this the right way to do it or are there any better ways? If it is, I need help on where to give the target server name, user_id and PSW in the OS Command variant of Process Chain.
    Also, is it possible to schedule a Infospoke directly from the scheduler (Auotsys...) and still execute weekly/monthly?
    Thanks for your help in advance
    RK

    That's correct.  You'll define the command under the general services tab in the process chain transaction (It's labeled OS Command and is a silver circle thing with a blue dot in it).
    When you drag it into the process chain it will ask for a varient.  In the System Command field for this varient is where you'll define the actual command. (little pencil button next to it).  At this point you can call a script that does the copy or call an actual command that does the copy. 
    Might be easier to control with a script that does the work but if you want to call rcp/scp, the os command will be rcp and parameters will be the filename, etc.  If it's a script then you'll just enter the name of the script in the os command field.
    Hope this helps.
    -bill

  • Process Chain/OS Command cp problem

    Hello,
    I am trying to execute a command similar to the following in an OS command in a process chain:
    cp /path/filename*.txt /path/filenamexxx.txt
    I know it's not a permissions problem.
    This is the error message from the Process Chain Maintenance Log View:
    cp: cannot access /path/filename*.txt: No such file or directory
    External program terminated with exit code 1
    Any help will be greatly appreciated.
    Thanks,
    Gary Martins

    Hi Gary,
       Is this file(cp /path/filename*.txt /path/filenamexxx.txt) avaialble at perticular path...??
       File is in application server or workstation(PC). If file is available in one application server and your Pchain running againest another application server, you may get this error. Plz check.
    Hope it Helps
    Srini

  • Process chain email alert issue

    Hi,
    I'm working with BASIS to get the email alert for Process chains working.
    We've done the following so far:
    1. Created a mail exchange group "SAP BW" with all required email addresses
    2. In the Process chain, created a message variant and assigned the above private distribution list
    3. BASIS configured SMTP in SCOT to reference the correct port and mail path
    4. In SU01, Security added email addresses which were missing earlier for everyone in the distribution list
    5. BASIS scheduled a job to run every 5 minutes to collect and send emails
    I just ran a test process chain and failed a few loads. However, none of us are getting emails in our inbox. What step are we missing? Is there anything else we should be looking at?
    Thanks,
    Pooja.

    few more things to check
    1. Is the mail sent from SO01 working correctly?
    2. Are the mails sent getting accumulated and seen in SCOT transaction queue?
    3. Did you try using Individual addresses instead of distribution list?
    These might help in boiling down to the actual problem though may not solve it. good luck!
    Regards,
    Sree

  • Process chains data load

    Can any body help in data scheduling issue
    I am able to load data manually the issue is i selected some of the datafields  in InfoPackage  data selection field and saved .
    i put this Ip in the process chain.now the issue is i don't to load data immediately .. say i want to load the data after 3 hours for this i want to set the time .i did set up in the process chain start variant
    but it is not working can anybody give me the steps in detail please....
    Advance thanks
    Kelvin sam

    Hi Kelvin,
    This should work using the start variant in the chain but of course the infopackage variant will only run if the process
    before was successful (depending on your settings with the links joining the processes in the chain).
    If you right click on the start variant, select 'maintain variant' , on the next screen make sure 'direct
    scheduling' radio button is flagged unless you are using a meta chain as starter process.
    Click on 'change selections' button , on the next screen select 'date/Time' option and here
    you can set the start date and time. You then need to save this setting , select save
    and on the next screen save again. You then need to activate and schedule the
    chain again.
    If this still does not work can you check if there are errors messages generated in
    sm21/st22 or in the process chain log.
    Regards,
    Des.

  • BW: Not getting Dump For Program error in Process Chain

    I have one issue regarding Master data loading issue in BW(3.5).
    My business flow like we have received data from server A and Server A extract data from Server B and
    Server B which is extract data from source(R/3).
    Flow like this R/3-->Server B-->Server A(ETL) -
    > My Server.
    We have a mater data process chain and that chain we have have the source system Server A but in the process chain one process is there which is fethces data like global transport e.g UOM,factory calender etc through Custom program directly from Server B.
    Oneday what happened On that process the process chain Yellow since more than 16 hrs.Once nextday process chain trigger the process chain runs sucessfuly.
    But lastdays process chain paticular process stills remains yellow?
    We are not getting any dumps and even if from Server A there is no logs then anyone could please tell me what is reason and how to solve it.
    Note: it will be helpful for me  if any one know how to check dump for program errors in Process chain as narated issue.

    Guys, I am also facing the same issue.
    When DTP is completed successfully, it has the job log blow :
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391261, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    Program RSBATCH_EXECUTE_PROZESS successfully scheduled as job BIDTPR_335754_1 with ID 06532200
    Job finished
    When it fails or remain yelllow for long time and then turn into red.
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391306, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    EXTRACTION OF DATAPACKAGE 000001
    EXTRACTION OF DATAPACKAGE 000002
    Job finished
    The question is, why the program  RSBATCH_EXECUTE_PROZESS is not scheduled.  Is it because there is no free resource? Or poor response from SAP ECC?
    Finally what does "EXTRACTION OF DATAPACKAGE 000001" mean? Its not scheduled?
    Regards
    MultiABAP
    Edited by: MultiABAP on Oct 6, 2010 10:32 AM

  • Flat file data loading error using process chain

    Hi SAP Experts,
    I am having a problem loading the flat file data to the cube using process chain. The issue is that when i run the process chain it fails giving the message " Date format error, please enter the date in the format  _.yyyy" . I am using " 0calmonth in the datasource" . Strange is that when i manually execute the infopackage, i dont get any errors and am able to load the same file successfully to the dso and the cube. Is there any special setting for the process chain that i am missing?
    The date format in the flat file is mm/yyyy. I have tried all the options i could including recreating the datasource and invain dont see any success so far. please help me solving this problem as we r in the middle of testing cycle.
    Thanking you all for your quick response and support all the time.
    Kind Regards,
    Sanjeev

    Hi Sanjeev,
    I believe you are opening the .csv file again after saving it. In this case the initial 0 in single digit month (say 02/2010) is getting changed to 2/2010 and the resulting file is not readable to the system. Just do not open the file after you have entered data in the .csv file and saved and closed it. If required, open the file in notepad, but not in excel in case you want to re-check the data.
    Hope this helps.
    regards,
    biplab

  • Issue with ABAP program execution from process chains

    Hi All:
    We have a process chain with 3 steps, each of them executing the same program with three different variants. The program is ftp's the file from APO's dataexchange (mount) to another ftp server. The first variant transfers file A to a directory in the external ftp server (say /X) . The second and the third variants are supposed to transfer different files, B and C to the same directory.
    That is where the problem is. After the process chain is successful, I see two files B and C but the contents are same and that of C. So, if I switch the steps in the PC to bring in A then C and then B, I see files B and C with content of C. I tried C then A then B. I see the file names correct but now the contents are A, A then B.
    Have any of you come across this issue? Do you know that these is an existing problem? IF you have a solution, pl. let me know.
    Thanks
    Narayanan

    Narayanan,
    Instead of doing it in three steps - would it be possible for you to have one UNIX script or equivalent doing the above and calling the same from your process chain ...?
    We do a lot of FTPs but then our file names are standard and we have a UNIX script for the same executed using a system command through a process chain and it has been working without issues for the past 1 year ...
    Maybe I have not got your situation properly ... some more detail on the program details and what you are doing in more detail would help....  also SP levels please..

  • OS command in Process Chain

    Hi all,
    I'm using the OS Command in a process chain and I have the "Evaluate Output of Command" checked along with It will be repeated" selected.  It's looking for a file on the app server and repeating every 3600 seconds for 24 hours.  The issue is if the 24 hours goes by and no file is found the process chain continues on to the next Process.  I expecting the chain to stop with errors.  Is this the correct functionality?  If so, any ideas how I can stop the process if the repeat time is exceeded and file not found?
    Regards,
    Dae Jin

    Hi Dae,
       Try this way. Separate present Process chain into two chains.
       Create an ABAP program to trigger OS Command and an event(EVENT1) on success of finding the file or another event(EVENT2) if file not fround and to repeate the process to find the file.
       Create first chain, and make it event based(EVENT2) and create 2nd chain aldo event based(EVENT1).
    activate and schedule both chains event based. trigger the first chain. It will check the file and if it is success ABAP program raise and event(EVENT1) and it will trigger the 2nd chain. or it will raise the event(EVENT2), it will reapete the 1st chain for finding the file.
      So here 2nd chain triggers on EVENT, so time limit. And it only excutes if first chain picks the file successfully,
    Hope it Helps
    Srini

  • Issue while loading Master Data through Process Chain in Production

    Hi All,
    We are getting an error in Process chain while loading Master Data
    Non-updated Idocs found in Source System
    Diagnosis
    IDocs were found in the ALE inbox for Source System that are not updated.
    Processing is overdue.
    Error correction:
    Attempt to process the IDocs manually. You can process the IDocs manually using the Wizard or by selecting the IDocs with incorrect status and processing them manually.
    I had checked the PSA also but I could not find any record and the strange thing is, Job itself is not getting scheduled. Can any one help me out in order to resolve this issue.
    Regards
    Bhanumathi

    Hi
    This problem is not related to Process chain..
    u can try this..
    In RSMO, select the particular load you want to monitor.
    In the menu bar, Environment >>> Transact. RFC >>> Select whichever is required, BW or Source System.
    In the next screen you can select the Execute button and the IDOCS will be displayed.
    Check Note 561880 - Requests hang because IDocs are not processed.
    OR
    Transact RFC - status running Yellow for long time (Transact RFC will be enabled in Status tab in RSMO).
    Step 1: Goto Details, Status get the IDoc number,and go to BD87 in R/3,place the cursor in the RED IDoc entroes in tRFC
    queue thats under outbound processing and click on display the IDOC which is on the menu bar.
    Step 2: In the next screen click on Display tRFC calls (will take you to SM58 particular TRFC call)
    place the cursor on the particular Transaction ID and go to EDIT in the menu bar --> press 'Execute LUW'
    (Display tRFC calls (will take you to SM58 particular TRFC call) ---> select the TrasnID ---> EDIT ---> Execute LUW)
    Rather than going to SM58 and executing LUW directly it is safer to go through BD87 giving the IDOC name as it will take you
    to the particular TRFC request for that Idoc.
    OR
    Go into the JOB Overview of the Load there you should be able to find the Data Package ID.
    (For this in RSMO Screen> Environment> there is a option for Job overview.)
    This Data Package TID is Transaction ID in SM58.
    OR
    SM58 > Give * / user name or background (Aleremote) user name and execute.It will show you all the pending TRFC with
    Transaction ID.
    In the Status Text column you can see two status
    Transation Recorded and Transaction Executing
    Don't disturb, if the status is second one Transaction Executing. If the status is first one (Transation Recorded) manually
    execute the "Execute LUWs"
    OR
    Directly go to SM58 > Give * / user name or background (Aleremote) user name and execute. It will show TRFCs to be executed
    for that user. Find the particular TRFC (SM37 > Req name > TID from data packet with sysfail).select the TrasnID (SM58) --->
    EDIT ---> Execute LUW
    (from JituK)
    Hope it helps
    Darshan

  • "Still waiting for replays Issue In process chain please help me"

    Hi Xpertz
    Could any one clarify me in the following aspect .I have a process which is having
    4 infopackages updating to a single ods and then in to a cube I copnverted it in to
    a process chain evry thing seems to be fine how ever one issue is ther .I am not
    getting any repeat option on the failed infopackage .But if the ods activation fails
    then am able to see the repeat option on that activation process.
    How can we get the repeat option on the failuere info package .
    Other than segis weblog is ther any other option to restart the process chain.3
    ITs in BW 3.5
    Thanx in advance
    Regards
    R M K
    No need to say good answers willl get full pointz***

    Hi..
    I have worked on process chains..and I too have seen this..that when chain fails..often repeat option does not appear at infopackage step..
    but then this does not cause an issue..as I simply double click on the step..open the infopackage and run it..
    Siggi's blog is very useful..I havent found another method to kick off a chain from the failed step..(other than repeat)..
    sometimes..u manually correct the failure..but the process chain step remains RED..
    as per the blog..change the field on the table..so that step goes GREEN and kicks off further steps of the chain..
    Vishvesh

  • DTp issue in process chain

    HI guys,
    I have an issue with DTP in process chain.
    Actually we have a process cahin in quality as well as in development and production,the structure of chain in production and development is same but the structure in quality is not matching.we are getting 1 additional DTP in the chain in quality system .when we run the chain it get fail at the additional DTP,and the process cahin get stopped.
    now iam not able to find out wher from this additional DTP came and how to find out wher exactly it is from and how to restart the chain.
    can anybody help me out?Its very urgent for me.
    Regards
    sk

    Hi,
    I have asked u to deschedule the process chain and then Check the Process chain using the Check View..
    I think that this is a dummy process which has got added when u have done the transport.
    Check if u can see the error DTP when u check.. then u can delete this DTP as this is a Dummy one.. and then link the processes if the link breaks bcz of this... and then check the PC again, and activate the same..
    Finally u can use PC after this..
    Thanks
    Assign points if this helps

  • Supplier Process chain issue

    Hello,
    We loaded supplier(LSUPPLIER) from ECC to SPM. The data got loaded to PSA and info objects. But when I release the supplier load, the process chain is running for last 7 hours.
    We had same issue in QA where it ran for almot 2 days and even after 2 days it did not finish - in fact there was no progress as well. When I checked in SM50, there was a process with sequential read on /BI0/PXALOCSUPP for almost 2 days.
    Has anyone faced similar issue and any pointers for this issue?
    Regards,
    Prasanna

    WE have seen this happen if too many of local supplier point to the same cleansed supplier(generally a dummy cleansed supplier). Is that the case for you.
    If not then try recuding the package size of the PSA. That might improve performance for you.

  • Failure of OS command in Process Chain

    Hi All,
    I have OS command in a process chain. Sometimes this process gets failed and sometimes it is completed successfully.
    When it fails following message appears in Process Chain Maintenance Log View:
    ==== Output of System Commands: Repeat # 0 ====
    mv: cannot stat `/usr/sap/transBD1/upload/BP1/StockPosition/StockPosition_BNL.txt': No such file or directory
    External program terminated with exit code 1
    Kindly reply if anyone has any idea about it.
    Many Thanks in advance.!
    Regards,
    Swati Ramteke

    Hi Vikram and Srinivas
    In the process chain, file is first loaded to cube from the specified path. There is no problem in loading, it is completing successfully.
    Next, this file is archived from specified path to archived folder by OS Command.
    OS Command is:
    #!/bin/ksh
    FILEDATE=`date +%m%d%y`
    mv /usr/sap/transBD1/upload/BP1/StockPosition/StockPosition_BNL.txt /usr/sap/transBD1/upload/BP1/StockPosition/processed/StockPosition_BNL.$FILEDATE
    The file is archived successfully in processed folder but OS command process in process chain is getting failed with mentioned error in previous thread.
    Regards,
    Swati

Maybe you are looking for

  • Cant open dashboard on Essentials Role

    I've added the essentials role to a existing server on domain, my domain controller is on another machine. I've installed the dashboard on the DC and a 8.1 client for now. The problem is that while the dashboard opens without a problem on the origina

  • Can't Burn CDs (emachines T3830) - used to be able to

    All of a sudden, I can't burn CDs. I was able to up until recently. I installed the Acura TTS software to allow me use my IPOD in a new car and was wondering if anyone knew if this interfered with the burn function. Orif the CD diagnostics indicate s

  • .MOV file won't play in QuickTime Player? QT Components?

    I have a bunch of .MOV clips on my hard drive that I'd like to ultimately import to Final Cut Express (4.0.1) to edit (my wedding video!!). If I double click on the clip, it automatically opens in QuickTime Player (7.6.9), and I then prompted to a Qu

  • Mail to RFC is there way to make mail to READ only when data sent to RFC

    Hi friends ,                     My scenario is Mail to RFC  .  I am reading mails marking as read and sent to  RFC .                    Due to this , If   for eg 400 mails comes , xi is reading all mails correctly but sometimes  inbound queue gettin

  • Problem on configuring Alerts

    Hi Gurus, I'm having some requirement of which alerts need to be configured. I have created alert category in ALRTCATDEF on ABAP side, and the created one is also reflects in RWB--> Alert configuration. The problem is when I'm selecting the alert cat