Logical flat file in SAP
Can anybody help me with documents regarding logical flat file in SAP?
I want to create a logical flat file . Moreover I want to load data which is stored in logical flat file path .Lastly if I want to make changes in that flat file ..
How should I proceed?
please help me as soon as possible with blogs or documents..
Hi,
ask your basis huys to define logical/physical path and assigments, use tcode FILE to create your logical filenames and definitions
/manfred
Similar Messages
-
How to upload schedule line from flat files to sap file
dear all,
i want to upload the schedule lines from flat files to sap schedulle lines
but the flat files have 15 schedule lines and the data is as per date
so how to upload that and the fields available in flat files are more than the sap screen
we are having more than 6 items
and 15scedule lines its abt 90data to be upload
for one customer in every 15 day
so how to do this
is there any direct use in functional side
with out the help of any abap
but my user will do it
so he need a permanent solution
with regards
subratHi Subrat ,
u can upload the data either ( Master /Transaction) data with the help of lsmw. for that all u need to do is go through the lsmw and do it. in that u can go Batch input recording/ BAPI/ IDOC any of that. here i am sending the LSMW Notes go through it and do the work.
once u create the LSMW project then u can ask the data from user or u can explain the user about the program and can run the flat file to upload the data.
if u require LSMW material Just send me blank mail from u. my mail id is [email protected]
Reward if Helpful.
Regards,
Praveen Kumar.D -
Build daily Big flat file using SAP R/3 material master data
Hi all,
I must build an interface between SAP R/3 4.7 and an external application
Daily a flat file must be generated contaning Material data in full exchange mode
(volume 100 000 materials, <10 fields => ~ File of 30Mo)
No complex mapping, only format mapping (Ex : Price quantity...)
I don't know yet if I will use Idocs or BAPI to extract data. However, I'm sure I must use multiple inbound messages because of volume
After reading documentation, I consider the both following solutions to manage it :
1) A simple asynchronous interface with a file adapter in construction mode APPEND to build flat file progressively with arrival of SAP messages
=>
viable solution ?
Is there problem of concurrent access to file in such a solution ?
(idocs or bapi data will be processed ones following the others )
2) BPM Collecting and Bundling Messages - One Interface
(Unlimited Loop with Deadline trigger correspondint to time I must build flat file)
=>
Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
Which solution do you advise ?
Is there another ?
Last question : (more general one)
In such scenario, I can't see XI-value added comparing a creation of flat file directly with R/3.
I will generate a big number of idocs, use a big part of XI memory ...
Can you give me your opinion about it ?
Thanks a lot
Best regards
Jean-Charles
Message was edited by:
Jean-Charles
Message was edited by:
Jean-CharlesHi Jean-Charles,
>>>volume 100 000 materials, <10 fields => ~ File of 30Mo
You have a performance task...
>>>Is there problem of concurrent access to file in such a solution ?
No, the adapter framework has its own queueing, the message would be stored and executed later. If sequence is important, you can use EOIO as well.
>>>BPM Collecting and Bundling Messages - One Interface
BPM is not required in your case, you should avoid becoz of performance task. You can append at file adapter, no problem. Bundling and splitting is even possible at Integration Server without BPM.
>>>Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
Avoid using BAD words
>>>Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
Use the <a href="https://websmp110.sap-ag.de/quicksizing">Quick Sizer</a> for sizing the hardware.
Regards,
Udo -
How to upload CSV file(Flat File) in SAP system.
Hi All,
Please guide me how to upload flat file into SAP system.
Regards
AvinavUse following syntax -
DATA L_P_FILE TYPE STRING.
L_P_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = L_P_FILE <-------Your PC file name
FILETYPE = u2018ASCu2019
HAS_FIELD_SEPARATOR = u2018Xu2019
TABLES
DATA_TAB = P_I_DATA[] <-----Your internal table
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Endif -
How to upload a Flat file into sap database if the file is in Appl'n Server
Hello Sap Experts , Can you tel me
" How to upload a Flat file into sap database if the file is in Application Server.
what is Path for that ?
Plz Tel Me its Urgent
Thanks for allHi,
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
*& Report ZUPLOADTAB *
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
* con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
* Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop. -
How to import a logo from flat file to SAP in SMARTFORM.
how to import a logo from flat file to SAP in SMARTFORM. i need to know whether TIFF format is used and also the full steps.
Thanks,Hi,
You can not directly use a logo from a file into a Smart form. First you will have to upload it to SAP. This has to be done only once. Once it is imported into SAP then you can use it in smart form. To import a logo to SAP, goto SE78. Open the tree under GRAPHICS. Select the file type and click on the Import (first button on the toolbar, just before delete button). Select the logo file and give it some appropriate name along with description. Select appropriate type of the image and click Continue. Your logo will be uploaded into SAP from a file. Now in your smartform, Create a Graphic Node, give the name of the logo along with other properties. In this way you can import a logo from a flat file into SAP and consequently in a smart form.
Reward points if the answer is helpful.
Regards,
Mukul -
Error in Data upload through Flat files in SAP BPC
Hi,
we are trying to upload data from flat files in SAP BPC but an error is coming viz Object reference not set to an instance of an object .Hi,
Can you please cross check the file structure and the transfer structure.
Cheers,
Malli.... -
Time taken to upload a flat file in SAP BI
Hello Experts,
Want to know , about how much time it will generally take to upload a flat file in SAP BI having data volume near about 10 million .
OR what is standard time taken to upload the data from a flat file what ever be the size of the the flat file in terms of records ,
please provide me the detaild information regarding the time taken , plz clarify it , and thanks in advanceHi,
there are some other points that you need to consider while trying to evaluate your question:
- how wide is your file/how many columns it has?
- what's the type of interface you using for flat file upload? is it: flat file loaded from user workstation? from application server? from web interface (like planning app)?
- how complex is login used to transform the data from flat file before data is saved in BW objects?
In general 10mil of records is not a problem is not a problem if you using upload from application server. If you using load from user workstation thsi can be an issue. Even less performant is load of that much data via web interface. -
Upload of Campaign and Leads from flat file into SAP CRM system
Hi Gurus,
We need to upload Campaign and Leads from our legacy systems to SAP CRM systems. The source data will be available in the form of flat files (tab delimited)
Please let me know the possible ways of doing this.
Reward points are assured.
Thanks in advance.Hi
you can use external list management functionality in CRM 5.0 useing the flat file tab delimited you can upload the contacts and create business partners followed by lead transaction types with business partners created and also external list management will allow you to create target groups for executing the campaigns in SAP CRM
please do reward points if helpful
regards
Dinaker vikas -
Flat File Extract - SAP BW System Directory
Hi,
I want to export a flat file using data manager so that it is saved in the SAP BW System Directory i.e. the /SAP/ directories.
How can I do this? When i use data manager it only gives me options to save in the SAP BPC directory structure.
Cheers,Hi Leo,
Look on the chain CPMB/EXPORT_TD_TO_APPL
Vadim -
Scheduling Problem for uploading Data from Flat file to SAP
Hi guys,
I am facing a weared problem in uploading some leave records in z table. The code is working fine if we run it through se38 after selecting the file from a shared location from production server which has all the access rights.
This folder lies in the \usr folder of SAP Production.
I have kept all the Flat files in the shared path "
Tis-mum-iz-s1\migration\SAP-INT\leave\" ...
To give u exact directory structure..
Tis-mum-iz-s1 is the Server Name
usr is the SAP System folder used for uploads and downloads
usr |
...-> Migration |
-> SAP-INT |
-> leave -> (Flat Files)
Migration folder is shared with all rights.
Obviously, we cannot give shared drive as the variant in the scheduler.
So i use the system path i.e. \usr\sap\tmp\migration\sap-int\leave\ as the variant.
All my other download programs are working fine with this path as a variant...
But my this particular upload program does not work with this path....
I am giving u my code...
TATA INTERACTIVE SYSTEMS (A Division of TATA INDUSTRIES LIMITED)
REPORT : ZMIGRATE_ZLEAVE
DESCRIPTION : To Upload the Leave data. (ZLEAVE)
CREATED BY : Abhishek Bachhawat
CREATED ON : 01.09.2005
CONSULTANT : ANAND
REPORT ZMIGRATE_ZLEAVE.
TABLES: ZLEAVE.
data: begin of wtab,
MANDT(3),
ZLVID(8),
PERNR(8),
ZSTDT(8),
ZENDT(8),
ZDAYS(4),
AEDAT(8),
ERDAT(8),
end of wtab,
itab like WTAB occurs 0 WITH HEADER LINE.
data: temp like zleave occurs 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK file
WITH FRAME TITLE text-005.
parameters: file like rlgrap-filename Obligatory.
Concatenate File SY-DATUM '_Leave.txt' into File.
SELECTION-SCREEN END OF BLOCK file.
at SELECTION-SCREEN ON VALUE-REQUEST FOR file .
CALL FUNCTION 'WS_FILENAME_GET'
IMPORTING
FILENAME = file.
IF SY-SUBRC <> 0.
ENDIF.
start-of-selection.
if file ne space.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = ITAB.
else.
message e000(zps) with 'Specify a file'.
endif.
SORT ITAB BY ZLVID.
LOOP AT ITAB.
REFRESH TEMP.
CLEAR TEMP.
TEMP-MANDT = sy-mandt.
TEMP-ERDAT = SY-DATUM.
TEMP-ZLVID = ITAB-ZLVID.
TEMP-PERNR = ITAB-PERNR.
TEMP-ZSTDT = ITAB-ZSTDT.
TEMP-ZENDT = ITAB-ZENDT.
TEMP-ZDAYS = ITAB-ZDAYS.
TEMP-AEDAT = ITAB-AEDAT.
TEMP-ERDAT = ITAB-ERDAT.
APPEND TEMP.
SELECT SINGLE *
FROM ZLEAVE
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
IF SY-SUBRC = 0.
UPDATE ZLEAVE SET ZSTDT = TEMP-ZSTDT
ZENDT = TEMP-ZENDT
ZDAYS = TEMP-ZDAYS
AEDAT = TEMP-AEDAT
ERDAT = TEMP-ERDAT
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
ELSE.
INSERT ZLEAVE FROM TABLE TEMP.
COMMIT WORK.
ENDIF.
ENDLOOP.Hi,
open dataset file for input in text mode.
check sy-subrc = 0.
while sy-subrc = 0.
read dataset file into wa.
if sy-subrc = 0.
append wa to itab.
else.
exit.
endif.
endwhile.
close dataset file.
regards
Siggi
PS: check also the F1-help for open, read and close statements! -
Hi Experts,
Need to load flat file which has month in the columnwise, how to do it.
Example
Companycode -- customer--- sales plan for jan sales plan for feb- sales plan for march.
1000 101 100 150
1000 102 200
need data to be loaded for doing planning in SAP BI..dnt suggest for BPS or IP.
Guide me how to load this data to DSO or CUBE.
I want the data has
COmpanycode-customer-fiscalperiod---planned sales quantity
1000 101 001 100
1000 101 002 150
1000 102 001 200
Above is just a sample.
Thanks,
AnandHi Araj,
you can do this 2ways.......
1. Try to create your provider with keyfigure modal(create key figure for period1, kyf period2, ......) & load it.
2. Changes your flatfile to char modal(here you will have one kyf) .
hope this will help you.
Thanks,
vijay. -
Data Transfer from Flat file To SAP system,
Hi SAP Guru's,
My query is :
How to update Material master data by using idoc type MATMAS05 . The data is present in flat file at application server.
I am new to idoc area.Please provide me the sample program that how to update material master data by using standard idoc type.
I am clear with the point that we have to read flat file from application server to internal table.
But i got stucked at this point that how to update data from internal table data , by using standard idoc type MATMAS 05.
I am in real need.Please provide me with the answer of this query.
I will really appreciate your <<removed by moderator>> reply.
Thanks
Simran
Edited by: Simran_SAP on Aug 25, 2010 10:46 AM
Edited by: kishan P on Aug 25, 2010 4:36 PMHi Vinod,
Thanks for reply..
I am new to idoc area.and my requirement is to generate the idoc after reading data from a flat file. The file is passed to the application server
by a middleware . The SAP interface program reads the file from the application server and then starts processing the data. Please help me how to create the inbound IDoc and which FM needs to be used.
Please provide a sample Program .
This will really help..
Waiting fr ur early response.
Thanks
Simran -
Bank of America Flat File in SAP
Hi,
One of our clients wants to use Bank of America Flat File Format for Electronic bank Statement. Is there any standard program in SAP for the same or I need to do a Z development for the same?
Please assist on this.Hi,
I am pretty sure that you will not get this as standard. You will need to create the format in DMEE transaction. You can read on how to use DMEE by following this link [DMEE|http://help.sap.com/saphelp_erp2004/helpdata/en/e0/443d38a4136168e10000009b38f8cf/frameset.htm]
Cheers. -
Hi,
i created a flat file using this :
http://help.sap.com/saphelp_nw70/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
now, i want to upload my flat file (csi.files) in SAP BW because i want to use it with business explorer.
I looked on the internet and forum but didn't find the right procedure.
Any idea?
Thank you
EdouardStep by step procedure of data load from a flat file?
/thread/256392 [original link is broken]
Maybe you are looking for
-
Installation failure on Windows 2000
Hi, we've successfully installed Weblogic Server 5.1.0 (InstallShield version) on a Windows 2000 Professional, but cannot get it to install on our test server which is running Windows 2000 Server. The installer goes through the motions of copying fil
-
Error while saving Report output-Authentication failed
Hi All, For the client system there is a customization report with output of html format. it can't display all with the error message unable to open the internet site. http://<site:port>/OA_CGI/FNDWRR.exe?temp_id=<temp_id>* operation aborted* if user
-
Sharing photos-iPad and MacBook with different users-help!
My sister has a 1st gen iPad and I have a MacBook Pro. She has my wedding pictures on her iPad. How do I get them onto my MacBook?
-
Most Yahoo pages are messed up in appearance
Using Firefox 3.63 under Windows 7 all Yahoo pages are messed up and appear wrong; some of the images haven't loaded. I also have a machine using 3.5.4 under Suse 11.2 and this has no problem; the settings on both machines are identiacl as far as I c
-
Maintenance Cycle - ChaRM - Operation type SDMN
HI, Gurus. I need to come back the status of the operation SDMN (Maintenance Cycle). The status was changed to "Being Completed" but this operation doesn't be closed. How i can change (rollback) the status to "Go Live"? Below, the error messagens: "P