How to remove first two headerlines while appending files
Hi,
Currently the requirement is client only needs the file name without any time stamp or counter. They do not want to overwrite the records.
They need the csv file structure as:
Customer
Custnum,Custname
123,ABC
While I am using append, it is also appending the first two header lines.
Can you please suggest how to append without headers.
Hi Swapna
One option is of course to have the flag in the source structure so that you can identify whether it is first run or not. But if there is no such flag in source structure then the only possible solution will be done
based on a look up.
You can perform the same in java mapping using a hash table which will be updated with the file name in its first run and in the next run you will check whether the file name exists in the has table or not.Depending on that you have to pass the header value.
Next solution can be maintaining a table in ABAP and perform a RFC look up in message mapping.
When the file arrives, its will check whether the name is already there in the table or not. If the file not exists, then it will insert the file name in the table and return true. Based on this you will pass the header names.
When the next file will arrive with the same name , The look up will find that file has already present in the table so it will return false and no header information will be sent. Only data will be sent.
Similar Messages
-
How to skip first TWO Lines of .txt file using XSLT Mapping
Hi Friends ,
I have an .txt file in has the format as
<TEST>
4564564545
56456444566
56465
How can i skip the first two Lines when i am writing the XSLT Mapping ?
That <TEST> and empty line shouldn't go the rfc .
How can i skip and sent to rfc using XSLT Mapping ?
Best Regards .,
V.Rangarajanyou can avoid the empty lines in your File Content Conversion by defining offset.
<i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
then the generated XML after FCC will not have the empty lines. -
How to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv
Hello,
how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap alv
Thanks
RaksharUse this.
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv1( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
data lo_interfacecontroller type ref to iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv1( ).
data lo_value type ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
data: lr_std type ref to if_salv_wd_std_functions.
lr_std ?= lo_value.
lr_std->set_export_allowed( abap_false ).
NOte: ALV1 is alv component name
Regards
Srinivas
Edited by: sanasrinivas on Dec 1, 2011 6:11 AM -
How to capture first two digit in a number
Hi,
I have numbers with differeent lenth in a variable How to capture first two digit??
Thanks.Hi,
We can achieve that using the following methods:
DATA : loc_1 type string,
loc_2(2) type c.
loc_1 = '123423428340923990'.
loc_2 = loc_1+0(2).
Here you will get only the first two digits.
You can use move statement also.
MOVE LOC_1(2) TO loc_2.
If you are having mixed string with characters and digits mixed together i.e. like this 'test01test03sample01'.
You can so that using this method.
data : lv_length type I.
loc_1 = 'test01test03sample0'.
LV_LENGTH = STRLEN( loc_1 ).
DO LV_LENGTH TIMES.
*&-- Read from first string validing the numeric fields and move your first two digits to the required variable --&*
ENDDO.
Hope it will be useful.
Regards,
Sakthi
Edited by: Sakthi Saravanan C on Oct 8, 2010 6:45 PM -
How to remove a click from a sequence file mp4 or mp3, and make it only sequence left and right in GarageBand?
"adrianTNT" <[email protected]> wrote in message
news:e6aitv$hkm$[email protected]..
>
quote:
Originally posted by:
kglad
> you're welcome. with your solution loading another mp3,
are you sure it stops
> the download of the first mp3?
> Yes, it seems to work fine, it loads another sound in
same sound (my_sound)
> and it seems to replace loaded progress with the empty
sound I gave and stops
> previous loading.
> I look at traffic icons on task bar and I see that there
is no network traffic
> after I click "stop" before this I could see continuous
traffic while sound was
> loading in background.
Yeah, I remember someone posted that solution a long time
ago. It seems if you load a file with the same name the cache
doesn't
know any better and adjusts the download size to the smaller
one. Maybe it's a good way to do it! Could it be a way to remove an
mp3 from someone's cache after it plays? hmmmm Will have to
do more testing.
tralfaz -
HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE
HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE IN PNG FORMAT...
I ususally do that type of thing with a state machine... read a token, look for what is next, and if it's the closing token, I don't write it out. You have well defined opening token syntax and closing token syntax, so it should be relatively easy.
-
Anyone know how to remove a envelope around a PDF file?
anyone know how to remove an envelope from a PDF file imported to AI?
Ask your question in the Acrobat forum:
http://forums.adobe.com/community/acrobat/acrobat_windows -
How to keep first two columns constant
Hi
IF i move the scroll bar till end i should get first two Columns constant....
I mean i want to set Freez to First two columns in my report
how to du this?
Regards
SmithHI
Can you try below for your firtst column while filling the field catalog.
wa_fieldcat_alv-fix_column = 'X'.
it works.
Thanks! -
Remove First Two Pages of Print from ALV
Dear All,
I am trying to give a print of standard ALV report <b>BCALV_GRID_VERIFY</b>. When I give a print of the Output ALV Grid using the Icon on the ALV toolbar. I get two more pages with Print Parameters and the total count.
Could someone tell me how to remove the first two pages before I get the actual print. Everytime I give a Print I get these two pages so it budget issue wasting everytime two pages for a single page print even.
Thanks & Regards,
JJ.Hi Joseph,
in my case these are the settings...
Just change your spool settings also ..
in my case
SAP Cover Page System Administrator: Default Settings
OS Covert Sheet System Administrator: Default Settings
ALV statastics NO
i think for your case ALV statastics is markes as YES is it true.
Can you change the settings.
Regards
Vijay -
On outgoing messages, when I look in MONI, I see properly formatted XML message.
The first line of all my outgoing files has this line:
<?xml version="1.0" encoding="UTF-8" ?>
Is there a way to suppress this?
If so, is there a way to suppress for only certain partners within one interface?
Thanks,
JeffHi Jeff,
As others pointed without this line the document will not be a valid document. Can you tell your complete requirment. One of these kind of requirement is discussed in this thread, you can see whether its the same in your case or not. If not then tell your complete req. so that somebody can help you out here.
Remove first line in the XML Document
Regards,
---Satish -
How do I install Snow Leopard while keeping files, applications, and settings
I need to update my system, I realized that I need Snow Leopard (quiet late) before Maverick. My question is, how can I install it keeping files and all the data. I found this on Internet, does it work?
Install Snow Leopard while keeping files, applications, and settings
If you follow these steps, the installer will replace your operating system if one is already present, but will preserve your account information and personal files. You may have to reinstall some applications, however.
Insert the install disc (or the first install disc if you have more than one) into your disc drive. Restart your computer while holding down the c key. This causes your computer to start up from the install disc rather than your hard drive. When you see the gray Apple insignia, release c .
The Mac OS X installer should open automatically. Follow the on-screen prompts to read and accept the license agreement and begin the installation. When prompted to choose a destination disk, select your preferred location and click Install.
When the Mac OS X installation finishes with the disc, restart your computer. After the installation completes, a configuration program may begin automatically if you are installing for the first time. You will need to supply basic setup information for your computer.
Update your system software to ensure that you have the most recent operating system components. From the Apple menu, select Software Update... , and then follow the instructions on the screen. Often, you will have to restart your computer, and you may have to run Software Update multiple times before it can completely update your system.That's why you need to back it up. You won't need to restore the backup immediately afterwards unless something goes wrong during the upgrade, but you'll need it later; the drive will eventually fail.
(105428) -
How to create column header text while downloading file
How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
4.6c version.Hii,
Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
REPORT z_file_download.
DATA: w_name(90) TYPE c.
DATA:
BEGIN OF fs_flight,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price LIKE sflight-price,
currency LIKE sflight-currency,
END OF fs_flight.
DATA:
BEGIN OF fs_head,
carrid(10) TYPE c,
connid(10) TYPE c,
fldate(10) TYPE c,
price(10) TYPE c,
curr(10) TYPE c,
END OF fs_head.
DATA:
t_head LIKE
TABLE OF
fs_head.
DATA:
t_flight LIKE
TABLE OF
fs_flight.
fs_head-carrid = 'CARRID'.
fs_head-connid = 'CONNID'.
fs_head-fldate = 'FLDATE'.
fs_head-price = 'PRICE'.
fs_head-curr = 'CURRENCY'.
APPEND fs_head TO t_head.
SELECT-OPTIONS:
s_carrid FOR fs_flight-carrid.
START-OF-SELECTION.
SELECT carrid
connid
fldate
price
currency
FROM sflight
INTO TABLE t_flight
WHERE carrid IN s_carrid.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\flight.xls'
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* IMPORTING
* FILELENGTH =
tables
data_tab = t_head
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'D:\flight.xls'
filetype = 'ASC'
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = t_flight
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc EQ 0.
MESSAGE 'Download successful' TYPE 'I'.
ENDIF.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Abhijeet -
How to remove first 7 seconds of imported video & audio files
I've imported 2-hour audio & video files (edited in FCP, then taken to Compressor) into my DVDSP project.
Can I now edit out the first 7 seconds of what I imported, before I burn the DVD? If so, how? (I want to remove a title that I should have removed originally in FCP, but didn't. Don't want to wait hours to re-compress the files.)There is no editing in DVD SP. If you want to edit out the first 7 seconds you will have to do that in FCP.
An alternative is to put a chapter marker at the 7 second spot and then target that. The problems with this is that you might not be able to put the chapter marker on the exact frame you might want, and people can rewind and discover those 7 seconds. -
How to remove the two black sidebars
Hello
I am putting together a slideshow in Elements 11 and I am just at the stage where I have imported the photos to the Timeline. The photos are all 720px (wide) x 576px (high) and have the same resolution. Each image on the Timeline has a Pixel Aspect ratio of 1.0940.
In my Presets, I have configured this project as a PAL DV widescreen project, and I have turned off the Default Scale to Frame Size option in Edit Menu/Preferences/General.
The problem I have is that black sidebars appear down each left and right side of every photo - please see screenshot. How would I eliminate those sidebars, please?
Thanks!
SteveHello ATR
Thanks again for getting back to me.
I got the Pixel Aspect ratio of 1.0940 by right-clicking on a jpg on the Timeline and selecting 'Show Properties' at the bottom of the drop-down menu.
OK, I abandoned the above project and gave my new widescreen project the same Preset values (please see screenshot)
except that this time I turned on the Default Scale to Frame Size option in Edit Menu/Preferences/General. Then I imported my images (the same 720 x 576px images) onto the Timeline. The two black sidebars still appeared down the left and right-hand sides.
So, I abandoned that project.
Now I have opened up a new project, PAL DV Standard (screenshot):
I have also turn on the Default Scale to Frame Size option in Edit Menu/Preferences/General. I have imported the images to the Timeline and this time - hooray! - the image fits in the monitor/editor with no black sidebars. (This is what I wanted to achieve with widescreen.)
What I now need to do is allocate a time, let's say 5 seconds, for when each image is visible onscreen plus add a transition, probably a 1-second 'Cross Dissolve' between each image. In order to allocate that time of 5 seconds for the appearance of each image, how do I determine that amount of time (keyframes?) and, after doing so, would you then select Transitions | Dissolve | Cross Dissolve and add the transition that way?
Thanks again!
Steve -
FCC..how to remove first row
Hello experts,
I have configured a end to end sccenario fo csv files, Im using fcc for the sender file adapter
The first row has all the field names such as name,number and the rest of the rows have the values.
when I run the scenario the xml being formed has the field names and the vales..
example
<name>name</name>
<number>number</number>
<name>Teja</name>
<number>10</number>
what i want in the xml is just
<name>Teja</name>
<number>10</number>
could any one pls help me out on this?
I have used fieldNames,fielsSeparaor and ignorerecorstSetName as the content conversion parameters..
do i have to add any more?
Regards,
TejaHi,
You should achieve this by using Document Offset parameter on the Sender side. Set Document Offset to 1 in order to ignore the first line.
"● Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines."
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
Thanks,
Pooja
Maybe you are looking for
-
Audio Output with firewire audio interface issue
Hi, i have a quick question that maybe someone here can answer for me. I originally posted this in the OS X forum but someone recommended that I may get better help here. I have a PowerPC G5 with Mac OS X 10.4.11. I do a lot of home recording and use
-
Problem in Idoc to JDBC scenario(uses BPM)
Hi I have a IDoc to JDBC scenario which also uses BPM. The JDBC adapter has to execute a Stored procedure on Sybase database. I work on XI3.0 SP14. When I am sending IDoc to XI it is failing in CALL adapter step. The error message is "Unable to conve
-
I AM TRYING TO PUT TEXT ON A PHOTO USING THE T ON THE BOARD. I GET A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME ADD TEXT.
-
Permissions needed to view and close open files
Hi all, We have a 2012 R2 file server, and we would like to give Helpdesk permissions to view open files on that file server, and close them if necessary if someone complains that it is locked. What is the minimum permissions needed to accomplish thi
-
Stop(); problem
HI im new to flash and im tryingto im i have created sections a timeline for a website, ive added frame labels and in actionscrip 3.0 i have typed in stop(); and evry time i get this message 1026:constructor functions must be instance methods ive tr