Code for command line

Hello everyone,
I have a SQL SSIS package that I would like to trigger
through Cold fusion. I looked into SQL help, it said that using
"dtexec" at command line will work. My question is: how do I get
Cold Fusion do a command line job? What is the sytext/code for
that?
Thanks in advance.

Lei Hu wrote:
> Hello everyone,
> I have a SQL SSIS package that I would like to trigger
through Cold fusion.
> I looked into SQL help, it said that using "dtexec" at
command line will work.
> My question is: how do I get Cold Fusion do a command
line job? What is the
> sytext/code for that?
>
> Thanks in advance.
>
The <cfexecute...> tag allows ColdFusion to run command
line code. It
can take a lot of trial and error to get that to work
properly. User
permissions of the ColdFusion server standard output versus
standard
error, version of ColdFusion are all potential hickups with
this type of
code.
Take it slow, one step at the time is the best advice I can
give you for
using <cfexecute...>.
Ian

Similar Messages

  • P.O. with different Tax codes for each line item.

    Hi
    I would like to know how the IV has been done for the P.O. with differnt tax codes for each line item. Since in MIRO at header level we can select only one tax code.

    Hi
    Raju,
    It means we can post only one invoice at time i.e.for line item same taxcode is there.
    e.g. If line item 10 has tax code A1, 20 has A2 then on header i can only select either A1 or A2 tax code & post invoice of that line item.

  • Since updating to OS X Mavericks I get a continuous update request for command line developer tools.  How do I stop this?

    Since installing OS X Mavericks, automatic updates keep producing download demand for Command Line Developer tools 6.0 and 6.1.  I don't need these but cannot seem to stop the updates available, even if they are downloaded and installed.  Can anyone tell me how to stop this?

    Try re-indexing Spotlight.
    Spotlight – Re-index

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • How to configure Two Tax Codes for single line item in work order

    Hi All,
    Please do Review the below scenario and tell me how to solve it.
    A) Certified Work Done Gross Bill Amt      100,000      
    Total Work Done Value      100,000      
    Less : Labour & Like Charges @ 30 % on Rs 100,000 =  30,000      
    Vat applicable Amount =      70,000      
    Add VAT @12.5%  Chargeable on Taxable Turnover of Rs. 70,000.00     = 8750
    Total Bill Value = 108750
    Service Tax @ 12.36% on 33% Value of Rs. 100000     = 4079
    G.Bill Amt = 112829
    Total Amt Due for Payment = 112829

    HI,  There is a possible solution for this scenario.
    1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
    2. While posting the Invoice (TRX - FB60) following steps need to be followed.
    3. Amount has to be split into two line items
    4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
        created for 12.5%
    5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that    
        was created for 12.36%.
    Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
    Regards
    K.Sanjai Babu

  • Fi document: different tax code for each line item

    Dear All,
    Our FI department needs to post FI documents by uploading the list of line items. For each line item (even when they have the same g/l account) tax code may be different from 0 to 10%. Also the tax code needs to be entered in EUR not in %. So for example they may need to post the folowing document:
              PstKey   Account    Amount     Tax amt
    001     21          Vendor       95 EUR     Tax amount 5 EUR
    002     50          GRIR          100 EUR
    003     21          Vendor       90 EUR     Tax amount 10 EUR
    004     50          GRIR          100 EUR
    At the moment users have to post it manually. Tax rate cannot be restricted to allow tax from 0 to 10%.
    Can you please advice what would be the best approach for them to make it? Providing they do want to upload the document not enter the items manually..
    Thanks a lot in advance for your help!

    Hi,
    are there some messages during this process? Upload this list in foreground batch input execution. Verify if in stop point displays any messagem. If it is the case, go to OBA5 to change its status.
    Let me know results.
    regards

  • Posting multiple tax codes for single line order in MIRO

    Hi all ,
    I have received a request from my business colleagues to investigate the possibility of posting multiple tax codes against a single line order in MIRO.
    This apparently can be a possibility for such things as training.
    I have searched a number of forums and tried and tested different ways in my develoment client but am unable to find a solution. admittedly I am no real expert in this area and would be gratefu;lt of any ideas / assistance  / etc..

    HI,  There is a possible solution for this scenario.
    1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
    2. While posting the Invoice (TRX - FB60) following steps need to be followed.
    3. Amount has to be split into two line items
    4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
        created for 12.5%
    5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that    
        was created for 12.36%.
    Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
    Regards
    K.Sanjai Babu

  • Java API Calls for command line operations

    I would like to use the command line operations programmatically from Java, or PL/SQL.
    I would like to parse a XML file. From DOS Command line I can issue a ifsput test.xml and I can have the file parsed and stored in the database.
    Can I do the same thing programmatically using java or plsql from database.
    Thanks
    Ramna

    The following code allows you to parse an XML file. In this case it parses a string containing a SimpleUserDefinition.
    package ifs.demo.common.users;
    import oracle.ifs.beans.*;
    import oracle.ifs.beans.parsers.Parser;
    import oracle.ifs.beans.parsers.SimpleXmlParser;
    import oracle.ifs.common.*;
    import java.io.File;
    import java.io.StringReader;
    import java.io.FileNotFoundException;
    import ifs.demo.vcard.type.Vcard;
    import ifs.demo.vcard.parser.VcardParser;
    import java.util.Locale;
    import java.util.Hashtable;
    public class UserCreator extends Object {
    private static LibrarySession getConnection(String user,String password,String serviceName, String schemaPassword)
    throws IfsException
    LibraryService service = new LibraryService();
    CleartextCredential me = new CleartextCredential(user,password);
    ConnectOptions connect = new ConnectOptions();
    connect.setLocale(Locale.getDefault());
    connect.setServiceName(serviceName);
    connect.setServicePassword(schemaPassword);
    return service.connect(me,connect);
    private static void createUser(LibrarySession ifs)
    throws IfsException
    String simpleUserString = "<?xml version = '1.0' standalone = 'yes'?>\n"
    + "<SimpleUser>\n"
    + " <UserName>TestUser2</UserName>\n"
    + " <Password>ifs</Password>\n"
    + " <HomeFolderRoot>/home</HomeFolderRoot>\n"
    + "</SimpleUser>\n";
    StringReader userDefinition = new StringReader(simpleUserString);
    SimpleXmlParser xmlParser = new SimpleXmlParser(ifs);
    xmlParser.parse(userDefinition,null,null);
    public static void main(String[] args)
    try {
    LibrarySession ifs = getConnection("system","manager","IfsDefault","manager");
    ifs.setAdministrationMode(true);
    createUser(ifs);
    } catch (IfsException e) {
    IfsException.setVerboseMessage(true);
    e.printStackTrace();
    Note that you ask about doing this from the database. If you mean that you want to run this code from inside the database the answer is not supported in 1.1. What you would need to do is use Oracle Advanced QUeuing to send a message, containing the XML to a process running outside the database and have that process connect to iFS and perform the parsing.
    null

  • Xjc in code - not command line

    I'm new to java xml, and may be wanting to force a square peg through a round hole but, I would like to create source files using xjc from dtd's and xjs's from datasources or other basically non file based sources. Am I looking at the wrong tool? I don't want to write the dtd's and xjs's to disk and then compile through a command line.
    Thanks
    fj

    Thanks Danny,
    I've read through the pdf's got the example to work as well as many in the java_xml_pack-spring-02-dev. Wipped up a proof of concept database, some JDBC classess, and a servlet. Went through XML Hell with Tomcat 4, then deleted the xerces from the common folder, changed some classpath statements and the example works being triggered from a servlet. Then I gabbed DTD, XJS, and XML content like so
    (1) a couple prepared statements
    first statement to retrieve an xml file from the database
    "SELECT XML_NAM, XML_CNT " +
    "FROM XML_CNT_JAXB "
    second one to retrieve the DTD and XJS content from a database
    "SELECT INFO_DTD_CNT.DTD_CNT, INFO_XJS_CNT.XJS_CNT " +
    "FROM INFO_DTDXJS_BLD " +
    "INNER JOIN " +
    "INFO_DTD_CNT ON INFO_DTDXJS_BLD.DTD_ID = INFO_DTD_CNT.DTD_ID " +
    "INNER JOIN " +
    "INFO_XJS_CNT ON INFO_DTDXJS_BLD.XJS_ID = INFO_XJS_CNT.XJS_ID " +
    "WHERE (INFO_DTDXJS_BLD.DTD_BLD_NM = ?)"
    (2) execute and get results
    ResultSet resultSet = sqlXML_CNT.executeQuery();
    etc..
    (3) place resultset XML strings in an InputStream
    sbin_XML_CNT = new StringBufferInputStream(str_XML_CNT);
    etc..
    (4) now it works fine if you already used xjc to create your java classes and compile... then you can just use the BufferedInputStream to build your trees
    buildTrees(StringBufferInputStream bIn)
    foo = foo.unmarshal(bIn);
    etc...
    (5) what I don' want to do with the DTD and XJS is stream the content write the file to disk and execute commands to build the java files..
    Process myXJC = Runtime.getRuntime().exec("myXJC.bat");
    Again I'm new to Java XML, but if people want to use an XML file that does not have a DTD or XJS within a system, say they are requesting a new content area, the app then gives them a screen to define the DTD or builds a DTD for them or whatever, and then asks them for the content they want to manipulate or reports or whatever, and them creates an XJS, Java classes are then built compiled and someone can test and approve them... etc then save them to disk, database, a distributed server,.. etc
    I'm sure there is a way to compile Java from within a application. what I'm not sure of is if there is a way avoid the Java -jar %JAXB_HOME%\lib\jaxb-xjc-1.0-ea.jar file.dtd file.xjs -d directory from command line.
    If you could point me to any articles or book chapters address this, I'd really appreciate it!
    Thanks
    fj

  • 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

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • Openoffice quickstart for command line available

    hi
    i put the ooqstart package up to staging
    (since staging is not reachable build it yourself it's a very small app)
    now it is possible to use the openoffice quickstart with every wm/de you want
    all you have to to is to put a bash script in the autostart directory of your favourite de/wm
    here is the pkgbuild:
    # Contributor : Tobias Powalowski <[email protected]>
    pkgname=ooqstart
    pkgver=0.8.3
    pkgrel=s1
    pkgdesc="OpenOffice Quickstarter is a small command line tool for caching OO in memory"
    url="http://ooqstart.sourceforge.net"
    depends=('gcc')
    source=(http://switch.dl.sourceforge.net/sourceforge/ooqstart/$pkgname-$pkgver.tgz)
    install=ooqstart.install
    build() {
      cd $startdir/src/$pkgname-$pkgver
       make ooqstart || return 1
       mkdir -p $startdir/pkg/usr/bin
       mv ooqstart $startdir/pkg/usr/bin
    md5sums=('f3c15a29e8bbd7780972e69f11f564a4')
    ooqstart.install:
    # arg 1:  the new package version
    post_install() {
    cat << EOF
    ==> Add the following script to your Autostart directory to enable Quickstart on    login:
    !# /bin/bash
    killall -9 ooqstart
    killall -9 soffice.bin
    ooqstart /opt/openoffice&
    EOF
    # arg 1:  the new package version
    # arg 2:  the old package version
    post_upgrade() {
      /bin/true
    # arg 1:  the old package version
    pre_remove() {
      /bin/true
    # arg 1:  the old package version
    post_remove() {
    cat << EOF
    ==> Remove the script from your Autostart directory if you have used it
    EOF
    op=$1
    shift
    $op $*

    I received the following build error:
    ==> Validating source files with MD5sums
    ooqstart-0.8.3.tgz ... Passed
    ==> Extracting Sources...
    ==> tar --use-compress-program=gzip -xf ooqstart-0.8.3.tgz
    ==> Starting build()...
    g++ -g -DVERSION='"0.8.3"' -Wall -Werror -I. -O2 -o model.o -c model.cxx
    cc1plus: warnings being treated as errors
    model.cxx: In function 'int startProcess(const char*, const char*, const char*, const char*)':
    model.cxx:72: warning: missing sentinel in function call
    make: *** [model.o] Error 1
    ==> ERROR: Build Failed. Aborting...
    Thanks.

  • Declaring UTIs for command line utilities?

    I'm working on some command line tools for manipulating Intel Hex files and I'd like to include a Quick Look generator. It appears there aren't any built-in UTIs for this file type, so I need to declare them, which apparently is handled by an application bundle. But command line utilities don't have an application bundle. So where do I put the plist to declare the new UTIs?

    The part of the plist for specifying the UTIs that the generator can handle doesn't seem to allow for defining a new UTI, so I'm assuming it has to be done someplace else.
    Here's the documentation I'm looking at: http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/Q uicklookProgramming_Guide/Introduction/Introduction.html#//appleref/doc/uid/TP40005020-CH1-SW1
    From Listing 3-1
    <array>
    <string>SUPPORTEDUTITYPE</string> // change this!
    </array>
    it looks like the generator plist can only specify existing UTI strings. I don't see where to specify all the other bits, like file name extension. Am I missing something?

  • DP Execution-Execute a DP without supplying value for command line argument

    DP Execution - How to execute a DP without supplying value for a command line argument?
    My requirement is like Directive should have an optional command line argument.
    i.e., even if the value is not supplied for the command line arg, my DP should run.
    Your help is appreciable.

    What is DP?
    What is Directive?

Maybe you are looking for

  • What is wrong with my computer?

    About a month ago, my early 2008 iMac running Snow Leopard bega getting really slow. Excruciatingly slow. Unusable. Constant beachballing. The only way to quit anything is to force quit it. I feel like I've tried eveything at this point with no succe

  • HDMI audio and video problems on new DV6t se

    Just received my HP Dv6t laptop and i immediately upgraded to Windows 7 ultimate. I am facing two problems, Firstly, if i disconnect and reconnect the HDMI cable the sound only comes from the speakers and not the monitor (works fine with my HP HDX16t

  • Displaying drop down menu lists on :hover

    I'm currently trying to implement a drop down menu into my website. My site is at http://www.derektoigo.com/assets/livesites/deploy/index.html (CSS - http://www.derektoigo.com/assets/livesites/deploy/css/style.css ) I've been working with CSS for a w

  • IWeb hanging at logging into MobileMe (Personal Domain Problem)

    I've searched and searched for an answer to my problem all over the internet and these forums and keep coming up blank. Apologies if the answer is somewhere and I've missed it. It could be a wider problem with my MobileMe, but iWeb is where it first

  • "An error occured querying a data source" - Web Service connecting to GetUserCollectionFromGroupSupport

    I have an infopath form that is getting the error when opening an existing form or creating a new form:- Warning An error occurred querying a data source. Click OK to resume filling out the form. You may want to check your form data for errors. Hide