Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism

Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?

Through 'SXPG_COMMAND_EXECUTE' u can execute a External command  (ie.. UNIX /Windows/OS/400) In ABAP programming..
for Conversion Of Aplication server File/Move the file from one directory to Other...
The Command must be present in SM69.
Using this function module'SXPG_COMMAND_EXECUTE' , you can check the authorization of a user to execute a particular external command and run the command:
With the arguments specified in ADDITIONAL_PARAMETERS
On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM
If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.
After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems.
If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command.
If the authorization checks complete successfully, the command is run on the target host system.
Through Open Data Set u can read and write the file in the same directory...
Thnaks,
SD
Moderator message: copy/paste without credit, points removed, please do not repeat!
http://www.google.de/search?hl=de&q=%22youcanchecktheauthorizationofauserto+execute%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
http://www.google.de/search?hl=de&q=%22Aftersubstitution%2Cthecommandischeckedforthepresence%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
Edited by: Thomas Zloch on Aug 17, 2010 12:47 PM

Similar Messages

  • Difference between 0FI_AP_30 and 0FI_AP_4 Data source

    HI,
    What is the difference between 0FI_AP_30 and 0FI_AP_4 Data source.
    Thanks in advance

    Hi,
    In addition to above differences. Below is the functional difference between 0FI_AP_30 & 0FI_AP_4:
    0FI_AP_4 gives you accounts payable line items in your report. Here GL account shows the balances of particular types of  vendors/payables to which that particular GL account is been assigned.
    And If subledger is activated in ECC, then by using 0FI_AP_30 you can get the break up of that particular GL balance according to vendors.
    To make use of datasource 0FI_AP_30, subledger accounting must be activated in ECC.
    Regards,
    Pradip

  • Difference between passive and active data connection mode for  FTP

    Hi,
    Does any body have the idea of passive and active data connection mode for the transport protocol FTP.
    I have one server with FTP, I have to pick the data from this FTP to XI.
    What is the difference between active and passive data connection? Does XI supports both the connections?
    Thanks & Regards
    Katta Mohan Reddy

    Hi
    According to SAP Note - 821267
    Q: Does the File Adapter support active data connections when connecting to an FTP server?
    A: Up to and including SP14, the File Adapter exclusively uses passive data connections. Starting with SP15, active connections will be available.
    Difference between active and passive,
    You can definitely refer to the site mentioned by Suraj
    cheers
    Sameer

  • Difference between INFOSPOKE  and OPEN HUB DESTINATION

    HAI,
      i want the  difference between INFOSPOKE  and OPEN HUB DESTINATION in detailed....
      thank you
    @jay

    Hi
    See this
    Re: Open Hub and Infospoke
    Bye
    N Ganesh

  • Answer the following question regarding GUI_UPLOAD and Open Data Set

    1. what’s the connection or relationship of S_GUI to GUI_UPLOAD?
    2. GUI_UPLOAD saves files to local directory of a use while OPEN DATA SET saves/archives files in the server directory.  Where is the risk directed towards consuming disk space?  Server disk or workstation disk space?
    3. how will this work for multiple files?
    4. Regarding Open Data Set - How the files will be put in AL11?

    The GUI_DOWNLOAD only download the file to local PC...so any abap code running in other pc will not able to use the file.
    BUt if you use open dataset to load the file APPLICATION server any ABAP pogram can access the file.
    Following code explains how you load file using open data setto appl server,
    you can check in t-code <b>AL11</b> for files/dir in applicatin server.
    you to change the value of <b>myfile</b> variable in my code..
    you have to give the full path of the dirctory.
    <b><b>plz reward  points if it hlps you.</b></b>
    Report ZANID_TEST2 message-id ZM.
    data begin of itab occurs 0. "your internal table
    include structure MARA.
    data end of itab.
    *--file upload purpose--
    DATA: BEGIN OF it_file OCCURS 0,
    buffer(200),
    END OF it_file.
    DATA: myfile(128) type c value 'E:\usr\sap\put\sample1xx.txt',
    start-of-selection.
    *--populating itab--
    select * from mara into corresponding fields of table itab
    up to 100 rows.
    perform UPLOAD_FILE_TO_APPL.
    *--form definitin--
    form UPLOAD_FILE_TO_APPL.
    OPEN DATASET myfile FOR OUTPUT IN TEXT MODE.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be opened'.
    ENDIF.
    *-- creating the file data table
    loop at itab.
    *-- i am only taking two fields
    concatenate itab-matnr itab-matkl into it_file-buffer
    separated by space.
    append it_file.
    endloop.
    LOOP AT it_file.
    TRANSFER it_file-buffer TO myfile.
    CLEAR IT_FILE-BUFFER.
    ENDLOOP.
    CLOSE DATASET myfile.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be closed'.
    ENDIF.
    endform. " DUPLOAD_FILE_TO_APPL

  • Difference between Model and Open MBeans?

    Hey all,
    does somebody know what the difference is between an Open ManagedBean and an Model ManagedBean?
    Thanks a lot!
    theKeymaker

    Hey,
    I've already read the specification of JMX, so also
    the chapter about Model and Open MBeans, but I don't
    get the point when I'd have to use a Open and a Model
    MBean.
    What's the real difference between them?
    Thanx!
    Hi,
    The "real" difference is that Open MBeans are restricted to using data types that are portable to any Java /JMX client. This allows management applications to immediately make use of MBeans without
    recompilation, re-assembly, or dynamic linking.
    hope this answers your question,
    -Hans
    Hans Hrasna - Sun Java Software

  • Difference between master and transaction data

    whts the difference and relaionship between master data and transaction data?why do we need to upload or extract both type of data's?cant we have only transaction data?please clarify

    Hi ,
    <b>Master Data :</b>
    The data which do not change frequently and that is needed generally for many reporting .
    Eg : Customer Name , Customer Address Etcc..
    <b>Transaction Data :</b>
    This the data that is derived based on some master data
    Eg : Creating a sales order for a Customer . So the transaction data will be
           Customer Number , Order Quantity .
    Why we keep master data as seperate in BW ?
    Because master data is general , So we have to use that master data in many cubes for reporting purpose . Because for any report on Customer we need to give cutomer name , So we keep that master data outside of cube so that any cubes that need to use customer master can take that , So we can concentrate on other dimensions for cube ,Other wise we need to include customer name in all cubes which is reppetitive .
    So the best method is to ....
    First Load master Data
    Then load Transactio data .
    In the Bex part we combine the master data with transaction data so that we get combined data .
    Eg :
    Master Data : Customer No , Cust Name , Cust Address
    Tran Data    :  Customer No , SD No , Order Qty .
    We first load the master data into master data tables /BI0/M*
    Then we load tarnsaction data into Cubes .
    Then in BEX Reporting we create query for Transaction Cube , But fetch some master data using Bex feature , So the report output will be
    Cust No   CustName    CustomerAddress    SD no    Order Quantity
    Hope this Solves your Problem

  • Difference between Gmail and Exchange when setting up email

    Hi all,
    When adding my Gmail email details in Settings in iOS7 (Via Settings > Mail, Contacts, Calendars > Add Account) I’m presented with the options to use Exchange or Google.
    I know back in the early days of the iOS it was always preferable to use Exchange as it synced everything on your phone perfectly (mail, contacts, calendar) but it seems that now the Google option is just as good…?
    Other than the capability to push emails to my device (a function that I don't use anyway), is there any other difference between the Exchange and Google options when setting up email?
    Thanks,
    David

    I've tested it out on my iOS7 5s; the calendar and contact syncing seems to work absolutely fine though?
    This was in reference to the Google option. It syncs mail, calendar, contacts and notes all absolutely fine as far as I can see - I wanted to check I wasn't missing anything.
    Any need to get narky there?

  • Difference between Bulk and Open Storage

    Hi All
    Can any one give me the brief description of Bulk storage type and Open Storage type and the difference between them.
    With Rgds
    Vinod

    Hi,
    Bulk:
    Warehouse without shelves where similar pallets or containers are stacked.
    The storage bins in bulk storage are separated by lines on the floor. Each bin can store only one material, for example, cases of 1 liter bottles of orange juice.
    The SAP System provides a strategy for bulk storage.
    Open:
    Type of warehouse organization in which only one storage bin is defined for each storage section.
    The quants in the bin conform to mixed storage.

  • Difference between hyperlink and open document link

    Hi experts,
    Currently i am using sap bo 4.0
    when i see the both hyperlink and open doc link the options are same like link to web page and link to document.
    if there is no difference what is the exact use

    Hi Venkat,
    For linking 2 reports you need to go with hyperlink/document link which uses opendocument concept. please refer the URL for opendoc tutorial.
    IT Developer's World: OpenDoc URL's with SAP BI4.0

  • What is difference between GUI_download and Open dataset

    Dear All,
    I know there are 2 options for downloading SAP data.
    1)  GUI_DOWNLOAD Functional Module.
    2)  OPEN DATASET DSET FOR OUTPUT IN TEXT MODE.
    What is the difference ??
    When I should use ?? What are the deciding factors ??
    Regards
    venkat

    Hi All,
    Thank You very Much for quick replies.
    1) GUI_DOWNLOAD is used to download data into your local PC. can be run only in frontend.
    2) OPEN DATASET is used for downloading into Application Server
    Thank You one and all.
    Closing Thread, Alloting Points.

  • What's the difference between Infospokes and Open Hub Destination in BI 7?

    I understand the API that a 3rd party tool uses to get data our of BW using infospokes.    Is it the same API that a 3rd party tools such as MS-SSIS uses?   Supposedly  that software only communicates with an OH Destination and not Infospokes.   So apparently is does use a different API.   If that's the case, where can I find documentation on that API for OH Destintations?

    Open Hub Destination (OHD) replaced InfoSpokes as of BI 7 SPS 6, for Open Hub Service. Existing InfoSpokes can be used still, but it's recommended that any new retractions be created as an Open Hub Desitnation, because it exposes more functionality (e.g. Transformations and functionalities with DTPs).
    Here's a document on [Open Hub Service - 3rd Party Integration|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/com.sap.km.cm.docs/library/icc/bw-ohs%20open%20hub%20service%2c%20third-party%20integration.pdf] (see Page 7). Hope this helps.
    Edited by: Dennis Scoville on Aug 3, 2009 1:45 PM

  • Differences between Linux and Solaris command set

    Hi,
    It is complicated to learn Solaris? Is the set of commands the same of Linux?
    It is because is more simple for me to find a Linux Admin book than a Solaris book.
    Thanks.
    Lorenzo

    BTW: You might want to start with this peace if information:
    http://wwws.sun.com/software/whitepapers/linux/linux_overview.pdf
    One remark: this Blue/white paper is written for audience known to Solaris and new to Linux, but usefull the other way around.
    Specially table 1 is very usefull !
    Good luck, and Welcome as new Solaris Administrator.
    Eric.

  • Difference between 0PM_OM_OPA_1 and 0PM_PRM_PLCS_1

    Hello,
    Can you pls provide me information about difference between 0PM_OM_OPA_1 and 0PM_PRM_PLCS_1 data sources?
    Both of them extract plan data.
    Regards,
    Romano

    Hi,
    0PM_PRM_PLCS_1 - This DataSource is used to load the movement data for maintenance planned costs.
    Prerequisites
    Configure the desired extraction parameters in the TPM_C05 Customizing table (transaction SM30).
    Parameters for the Costing of Maintenance Task Lists
    ·        Reference date for the costing
    ·        Order type for the costing
    ·        Package size for the internal subdivision of the extraction
    Parameters for the Costing of Maintenance Plans
    ·        Reference time for the costing
    ·        Package size for the internal subdivision of the extraction
    whereas Only full upload for DataSource 0PM_OM_OPA_1
    -Vikram

  • Difference between cleared items,open items and all postings (FI).

    Hi experts,
    Can anybody tell me the difference between cleared items,open items and all postings for an account.
    While running corresponding bapis and transaction FAGLL03 (for GL) or FBL1N (for accounts payable) i found that in some cases all postings is less than cleared items or open items for a time period. How could it happen.According to my knowledge all postings should contain cleared items and open items.
    Please correct me..
    Thanks and Regards
    Arjun

    Hi Arjun,
    For every Billing Documnet created(VBRK/VBRP-VBELN) there will be an accounting document created in BSID/BSAD tables.
    OPEN ITEMS means the Billed/Invoice Amounts that are pending from Customers, i.e which we have to receive from Customers.
    CLOSED ITEMS means the AMOUNTS received from that customer.
    OPEN ITEMS : fetch data from BSID table Only
    CLOSED ITEMS : fetch data from BSAD only.
    ALL POSTINGS : fetch data from both BSID and BSAD.
    Hope this will help.
    Regards,
    Nitin.

Maybe you are looking for

  • How do I install design suite without disc

    I have installed adobe creative suite 5.5 on my laptop and want to install it on my larger desktop (mac). Disc go stuck. How do I install without the disc. I have the serial number?

  • How to find index and minimium value in ArrayList?

    Hi, I got an ArrayList numbers that contains the following.... [4,5,4,3,3,4,4,3,6,5] How do I go through the ArrayList numbers, such that I can get the minimum value and it's index number in the arrayList? For example, the above arrayList got three m

  • How do I create and display a text file?

    Hello friends, I am trying to create a simple unix like operating system with very basic functionality. I have a hard time trying to create a "mktext" file and actually display the contents of the text file with the "cat" command. For example: // If

  • 80 Gb data lost in a blinck of an eye!

    Tonight I was working on my iMac, creating gift calendars in iPhoto and picking pictures from Aperture. After I finished, I closed all programs, up to then everything was fine. I moved pictures from Aperture to iPhoto, full size with no problem. Then

  • Columns to Rows in PDW

    Hi All, I'm working in Parallel Data-warehouse which doesn't support PIVOT/UNPIVOT. I need to transform few columns in a table to rows and I was wondering what would be the best way to do it. I can achieve the desired result using UNION ALL but since