How make difference between 2 files in ABAP
Dear all,
I need some help to make a difference between 2 text files.
I know the function 'SYSTEM' to launch an UNIX command :
TYPES :
BEGIN OF ty_delta_data,
data TYPE string,
END OF ty_delta_data.
DATA : lt_delta_data TYPE TABLE OF ty_delta_data.
CONCATENATE 'diff -f' "--> command UNIX to have difference between the 2 following files
lw_cur_file_data "--> content path + name file
lw_prev_file_data
'| grep F5'
INTO lw_unix_cmd SEPARATED BY space.
CALL 'SYSTEM' ID 'COMMAND' FIELD lw_unix_cmd
ID 'TAB' FIELD lt_delta_data[].
Unfortunately I have a dump :
STRING_BAD_REF
Error analysis
When accessing a string reference, an invalid value has been detected:
String reference (hexadecimal): 0038003300310037
String header Id: 3211319
String header Id (hexadecimal): 00310037
Shared objects Id (hexadecimal): "1C0019"
Shared objects lock flag: 1
Check value (hexadecimal): 00
The check value should be hexadecimal "C1".
However, in this case, it is not.
Have you got an idea about this?
Do you think there is other solution?
Thank you very much in advance.
Best regards,
Robin
Hi Robin,
The error is that strings are not supported by kernel/C/OLE calls. You must use C type.
Anyway, you must not use SAP internal statements (CALL, SYSTEM-CALL, ...). The official API for calling OS commands is SXPG_COMMAND_EXECUTE -> http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971fb543b11d1898e0000e8322d00/frameset.htm
BR
Sandra
Similar Messages
-
What are the differences between file vault and legacy file vault?
what are the differences between file vault and legacy file vault?
Legacy is an encrypted disk image of your Home folder, FileVault2 is whole disk encryption
-
Difference between file interface Idoc & Structure Interface Idoc?
Hi,
an any one tell me Difference between file interface Idoc & Structure Interface Idoc?
Thanks In Advance.Hi
[IDOC Structure|http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b824843d711d1893e0000e8323c4f/content.htm]
[File Interface|http://help.sap.com/saphelp_di46c2/helpdata/EN/dc/6b7f6343d711d1893e0000e8323c4f/content.htm]
Regards
Pavan -
Difference between File adapter and FTP adapter
hi,
I would like to know what is the difference between File adapter and FTP adapter
thanks
YatanBoth file and ftp adapters are non-concurrent jca adaps, however we go for file adapters mostly when you have files on your local environment and do not need to wait for someone to FTP the files on a timely basis. In case of FTP Adapter, we would need an FTP Server, a remote location with access where in files pitch in for polling.
Also, File adapter is dependent on the local folder and OS, however FTP adapter is dependent on the local as well as the remote file system/OS/folder permissions/user access. -
Difference between Web Dynpro Abap and Web Dynpro Java
Hi,
What is the difference between Web Dynpro Abap and Web Dynpro Java.
Thanks,
Sureshhi suresh......
from the end point of view, the customer wont know whether the application is done by java or abap. only the programming language differs and nothing much more.
---regards,
alex b justin -
Difference between SAP BC ABAP and SAP ABAP Training
What is the basic difference between SAP BC ABAP and SAP ABAP Training ?
Can any one answer these? I am little confused about the learning material I searched on internet and the course provided. It has similar topics but different name. I have course like SAP ABAP ECC 6.0 (TAW10 and TAW12) but on search I also found SAP BC ABAP beside this.Hello
SAP BC means SAP Business Connector
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/content.htm
http://en.wikipedia.org/wiki/SAP_Business_Connector
So you can know SAP BC ABAP is ABAP for SAP BC
SAP ABAP/4 is a program lanuague
https://en.wikipedia.org/wiki/ABAP
For ABAP certification
TAW10 and 12 are the right materials.
Regards -
Difference Between files in FCE -
I have the option to export in FCE to quicktime movie or export as quicktime format..... what is the difference and why?
I want to be able to play the finished project on a dvd for TV or mac/pc
is one better for quality?
Does one compress it too much?
thanksDid you even take a look at the article I linked to?
From FCE, do this:
1. Export -> QuickTime Movie (uncheck self-contained)
2. Bring that QT movie into iDVD
3. Make your DVD and burn it
iDVD will encode the QT movie (reference movie) to DVD for you. Read more about the difference between reference movies and self-contained movies in the article by Larry Jordan. You don't have to worry about fitting the file on the DVD your self. As long as the video duration is under two hours (160 minutes), iDVD will take care of the compression.
In iDVD you can choose between Best Performance and Best Quality. I would go for Best Quality. In iDVD, choose the Project-menu -> Project Info. Make sure you select the right Video Mode (NTSC for the US, PAL for Europe), and choose between the two quality options. -
How much difference between Premier Elements and PS VII?
How much difference is there between Premiere Elenebts and Photoshop Elements VII? Considereing upgrading, but need to know how much time I will have to spend in training?
It’s certainly worth considering the bundle PSE10 & PRE10 which is very favorably priced. The two applications seamlessly integrate. There are some interesting new video features - even for bringing your stills to life.
New color correction tools make it possible to enhance video clips, just like photos.
It’s also possible to burn HD quality movies to both Blu-ray disc and onto standard DVD’s. PRE10 is Adobe’s first consumer package with 64 bit support for enhanced performance (Windows 7 only)
Mac users were first introduced to PRE9 and can now use SmartSound® to add a variety of royalty free music soundtracks that automatically adjust to perfectly match the length of their movies.
To see the new features and system requirements click here for PDF
You Tube click here for video -
How to display HTML files using ABAP Webdynpro?
Hi,
I have a html index file and a bunch of other files accessed by the index file in a specific directory on the SAP server. I'd like to display the index file via ABAP webdynpro and allow the users to click on what they need to see. How can I achieve this using utilizing the ABAP webdynpro technology ?
Thanks!Hi Thomas,
Thanks for taking the time to answer my question.
I have the main html file and all other files needed by the main file in one directory on the application layer of SAP. I'd like to provide the user with a link, by clicking on which they should be able to get to the main html file using the browser. This is just a standalone application.
I can try the approach using BSPs, however, I'm new to that area. Could you point me in the right direction to get started? -
Difference between file structure; iTunes, XP and Vista
I've noticed if I use iTunes to keep my music file organized that there's a difference between the way it organizes the file structure on XP vs Vista. In Vista it puts a Music folder in the iTunes Media folder whereas on XP it puts all the music directly into the iTunes Media folder.
The reason this is a concern for me is that I'm using an online sync service to sync my music folders between my laptop and my desktop, but with different paths on two different OSes (XP and Vista) this is causing issues.
Does anyone know if Apple is going to keep things consistent or if there's a reason for the differences? In the meantime I'll have to un-sync the folders and find a workaround.I've noticed if I use iTunes to keep my music file organized that there's a difference between the way it organizes the file structure on XP vs Vista. In Vista it puts a Music folder in the iTunes Media folder whereas on XP it puts all the music directly into the iTunes Media folder.
The reason this is a concern for me is that I'm using an online sync service to sync my music folders between my laptop and my desktop, but with different paths on two different OSes (XP and Vista) this is causing issues.
Does anyone know if Apple is going to keep things consistent or if there's a reason for the differences? In the meantime I'll have to un-sync the folders and find a workaround. -
HOW-TO Distinguish between file exported from Datapump and normal export
How to distinguish between the dmp file export from the data pump utility and the export utility in Oracle 10g and 11g .
Thanks,
SSLike Werner suggested, it's never hurt to try anyway.
use imp with SHOW=Y, if it works then Original otherwise Data pump.
Once you determined one file, there's good chance that the rest are same. I don't think previous DBA will go through the trouble by mixing data pump and traditional exp/imp. -
How to print external file using ABAP program
Hello
I want to print an external file which is located in server (
20.99.0.18\GUI\xyz\8.0QUALITY\QM_TS.DOC) .....i want to print these kind of files(which i have retrieved from table 'DRAW' field 'filep' )......i need to print these files using ABAP program.
thank you
Vikram.
Message was edited by:
Vikram Bojjaextract the data and pass to script or smartform for printing
-
How to create .csv file from ABAP report
Hi
We have a requirement to generate .csv file from abap report.
Currently user saves data from abap report to spreadsheet(.xls format) in desktop. Then opens excel file and save as .csv format. Need option to save directly in .csv format instead of .xls format.
Please let me know, if there is any standard function module available to create .csv file.
Regards
UmaI tried with your code it's going to dump
REPORT ZTEMP101 message-id 00.
tables: lfa1.
types: begin of t_lfa1,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
end of t_lfa1.
data: i_lfa1 type standard table of t_lfa1,
wa_lfa1 type t_lfa1.
types truxs_t_text_data(4096) type c occurs 0.
data: csv_converted_table type table of TRUXS_T_TEXT_DATA.
select-options: s_lifnr for lfa1-lifnr.
select lifnr name1 from lfa1 into table i_lfa1
where lifnr in s_lifnr.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ';'
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = I_LFA1
CHANGING
I_TAB_CONVERTED_DATA = csv_converted_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME =
'C:\Documents and Settings\ps12\Desktop\Test folder\exl.cvs'
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = csv_converted_table
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
my version is 4.6c -
Difference between File Sharing, Dropbox, and Public Folder?
I have this MBP out front & my Mac Mini in back. I'm comparatively new to networking, altho I've used File Sharing (FS) & Dropbox (Db). It seems now, there are a myriad of ways to sync my two computers. (ICloud is also used, just for Mail & iCal, since those are the only two I have that Apple allows on iCloud. I have the computers networked w/ an Airport Extreme. That all works flawlessly.)
I'm aware of Apple's Drop Box, but it doesn't work since the two computers are over 30' apart.
The three subject features all do the same thing, I believe, so along with this question, I'm asking which of the 3 is preferable. Dropbox confuses me because it refers to the Public Folder, when it seems only necessary to drag a file to the Db folder, rather than the Public Folder. Anyone know where the Public Folder fits into the Db scheme of things? Or even into the FS scheme of things? Or even into the total file sharing/snycing landscape? My hunch is to ignore the Public Folder.
As to File Sharing, if I opt for this, then I don't need Db or the Public Folder. Right? The problem w/ FS is that both machines need to be up & running (and not in a Sleep mode). Also, FS is irrelevant when it comes to the Web. On top of all this, most apps come w/ the capability to upload files, photos, etc., for the Web. I'm in a situation where I need to keep track of what I'm sharing, whether it be through FS, Dropbox, or the Public Folder.
I would really like to simplify my workflow by settling on just one means of syncing my two computers. I'm aware that Db is good for sharing files not only between my 2 Macs, but putting stuff on the Web.
How do some of you share data between computers? What do you go with? All 3, 2, or just one? How do you keep things straight?I'm aware of Apple's Drop Box...
You mean AirDrop.
The three subject features all do the same thing, I believe...
No, they're entirely different.
File Sharing is a file service that works over a local network.
Dropbox, which I've never used, is a cloud-based storage and file-synchronization service.
The Public Folder is the subfolder of your home folder that's accessible to other users of the same computer, and also to other users on the network if File Sharing is active. (The term "Public Folder" may have another meaning in the context of Dropbox.)
How do some of you share data between computers?
There are many ways to do that, in addition to the ones you mentioned. It's not really clear what your requirements are. -
Difference between files generated by converter
hi to all
can anybody plz tell me the diff between the .cap ,.ijc & .jca file generated by converter & use of those files while loading the SIM toolkit applet on the java card?
thanks in advance
Regards
Divyesh.i but i think that will also not work .as Java Card
2.1 development kit uses the same jar file as java
card 2.1.2 kit.I think that the converter is different...you should try it.
and one more thing Axalto views internally uses java
card development kit 2.1.2 as a converter ,so how can
i try with java card kit 2.1?Call the converter process directly using the command line with the jar. See the Java Card Development Kit documentation for details.
-OR-
Create a converter configuration for the Views tool by editing the Views converter configuration:
VIEWS-Professional-1.8.X\config\converter\converter_globalconfig.xml
- Add the Java Card 2.1 converter to the converter defintions at the top of the file
- Add a custom <CardType> entry to your Views converter configuration file by copying an existing <CardType> entry. Change the CardType name value to something unique. Change the converter to match the converter definition you specified above. If you like, you can change the ATR to match your card.
Now start Views, on the converter page, you will see that you can select the newly created card type, and based on the specified "Sun Java Card Converter" version will be selected.
Now attempt to convert and load! Good luck - this is a possible solution. I hope it works...
When the tools limit you, find an alternate path!
Maybe you are looking for
-
How to eliminate empty node space from tree when rendered property is false
Hi I have created a menu Tree for my ADF BC application while working in JDev 10.1.3.3. I have tried two methods, first is by creating a menu model as discussed in example in ADF Developers Guide Book Section 19.2.1. Second by creating two view objec
-
IMessage beta problem, how do I uninstall it?
I installed iMessage beta (free) on my MacBook Pro with Mac OS X 10.7.3 and began messaging a friend, "Sue". My daughter received those messages I sent to Sue as though she wrote them herself and I began receiving messages my daughter sent to Sue. S
-
Mac Mini emitting a constant clicking soud,
I have a Mac Mini that started exhibiting the following problem. From the moment I turn it on I hear a clicking sound coming from the machine. It is rapid and constant. I did all of the tests, hardware test, boot into single user mode and did a fsck
-
How do I repair a damaged song on the IPhone?
I have a song that only plays 1/2 of the lyrics and then stops. It appears that the song is damaged and didn't download correctly since I can play the song with no problems from the laptop. How can I re-sync this one song? I need toi first erase it f
-
HI getting Below Error Item WBS Element XXXXXX Budget exceeded Message BP604 When User wants to release the Budget in CJ32 he get the above error they do Bottom up budget, Period Wise they have assigned the Budget At first level after total up budge