Regarding number of entries in a flat file
Hi,
We are trying to uplaod F-02 Tcode, for GL Upload program. If the flat file contains less than 1000 records its working fine.But if it conains more than 1000 records, it showing a error message 'Maximum no of 999 records are allowed'. What might the mistake and pls suggest me how to resolve the problem.
Thanks,
Ram.
Hi,
I think ur uploading only 1 document at a time. if its right ....
each document can include max number of line item are 999.
check any uses exit or check with ur fun ppl to increase this line items by configaration.
By
Gupta
Similar Messages
-
Number of records in a flat file
Hi All,
I have a very big file in CSV format to be loaded into BW. When I try to open it to see the number of records, it is giving me a message "File not loaded completely". When I click on OK, it is showing some records, which I presume to be the maximum limit of the excel sheet. Is there anyway I can find the total number of records in this file?
Thanks,
RPK.Hi RPK,
You can open your file with Access, there you will see all the lines. Another way if you don't have Access is to use the Notepad, there you will be able to see the number of lines using the "status bar" in the display menu.
Regards,
Philippe -
Is use of flat file in SRM-MDM catalog search UI possible ?
Hello,
When user looks for materials inside SRM-MDM catalog (using search user interface), search is done manually with free form or drill down search.
Then, among the search result, user has to select items he wants to add to his shopping cart and finally transfer those items from his shopping cart overview inside SRM.
Is it possible to automate this user selection using for exemple a flat file uploading (or any other way you could know) ?
This flat file will have material number (or service), supplier code and quantity (no more information).
The aim of the request is to help requester to not have to select each item one by one (in the search result) knowing that :
- SC will have more than a hundred items,
- delivery time and price (for example) must be checked in MDM, being the master data reference
- materials (or service) to order are received by requester via a flat file without any information about prices, so i cannot upload my flat file directly into SRM because file missing data must come from MDM.
With this process, user should have only to transfer items automatically selected.
Could you please share your advises ?
We use SAP MDM 5.5.
Regards.
Laurent.Hello Masa,
Masayuki Sekihara wrote:
A vendor look at buyer stock information like VMI and fill stock weekly base. So the vendor sends material number and quantity information as flat file to buyer. Buyer should create SC from flat file and price information should fetch from catalog.
Yes, your are correct: example you gave corresponds to process for my SC uploading.
Regards.
Laurent. -
Hi,
I have to post the data from Flat File to SAP using IDOC. Please help me out with all the posibilities.
Regards,
Kiran.LHi,
Step 1 Read flate file into internal table.
step 2 Follow below program to create a idoc through Z program,
REPORT ZOUTBD_IDOC_TEMPLATE NO STANDARD PAGE HEADING.
*************************START OF DECLARATIONS**********************
*eject
Table Declarations
TABLES: ZIDOC_TAB_EX1, "Equivalent to an SAP Master table.
ZIDOC_TAB_EX2. "Equivalent to an SAP Master table.
*eject
Types Declarations with data work Areas / Internal tables.
TYPES: begin of ty_idoc_par,
werks LIKE ZIDOC_TAB_EX1-werks,
c_rec_ind LIKE ZIDOC_TAB_EX1-c_rec_ind,
name1 LIKE ZIDOC_TAB_EX1-name1,
name2 LIKE ZIDOC_TAB_EX1-name2,
stras LIKE ZIDOC_TAB_EX1-stras,
pfach LIKE ZIDOC_TAB_EX1-pfach,
ort01 LIKE ZIDOC_TAB_EX1-ort01,
counc LIKE ZIDOC_TAB_EX1-counc,
pstlz LIKE ZIDOC_TAB_EX1-pstlz,
telf1 LIKE ZIDOC_TAB_EX1-telf1,
regio LIKE ZIDOC_TAB_EX1-regio,
end of ty_idoc_par.
TYPES: begin of ty_idoc_chd,
werks LIKE ZIDOC_TAB_EX2-werks,
eroed LIKE ZIDOC_TAB_EX2-eroed,
schld LIKE ZIDOC_TAB_EX2-schld,
end of ty_idoc_chd.
TYPES: begin of ty_message,
OBJNR LIKE MCMAILOBJ-OBJNR,
OBJLEVEL LIKE MCMAILOBJ-OBJLEVEL,
OBJTYPE LIKE MCMAILOBJ-OBJTYPE,
OBJNAM LIKE MCMAILOBJ-OBJNAM,
OBJDES LIKE MCMAILOBJ-OBJDES,
OBJLINE LIKE MCMAILOBJ-OBJLINE,
end of ty_message.
TYPES: begin of ty_mess_output,
v_err_out(1000) TYPE C,
v_err_out_2(1000) TYPE C,
end of ty_mess_output.
*eject
Data Declarations
Essential declarations for populating the IDOC:
DATA: begin of itab_idoc_data occurs 0.
include structure edidd. "Data record.
DATA: end of itab_idoc_data.
DATA: begin of itab_comm_idoc_control occurs 0.
include structure edidc. "Control record.
DATA: end of itab_comm_idoc_control.
Internal Table for Mail Recipient.
DATA: BEGIN OF ITAB_RECIPIENT OCCURS 0.
INCLUDE STRUCTURE ZINT_RECEIVER.
DATA: END OF ITAB_RECIPIENT.
Declare an internal table for Parent segment.
DATA: itab_idoc_par TYPE ty_idoc_par occurs 0 with header line.
Declare an internal table for child segment.
DATA: itab_idoc_chd TYPE ty_idoc_chd occurs 0 with header line.
Declare variables for Parent and Child Segments
DATA: i_z1parseg LIKE z1parseg, "PARENT SEGMENT DATA.
i_z1child LIKE z1child. "CHILD SEGMENT DATA.
Internal table to process function to send error mails.
DATA: itab_err_mess TYPE ty_message occurs 0 with header line.
DATA: itab_mess_output TYPE ty_mess_output occurs 0 with header line.
Variables for sending error mails.
DATA: objnr LIKE SOOD1-ACNAM, "Name of object.
V_ERR_DESC_1 LIKE SOOD1-OBJDES,
"Error message on pop up box after program executes.
V_OBJLINE LIKE ITAB_ERR_MESS-OBJLINE,
V_MESSAGE_1(60) TYPE C,
V_MESSAGE_2(120) TYPE C,
V_MESSAGE_3(75) TYPE C,
V_MESSAGE_4(150) TYPE C,
V_MESSAGE_5(150) TYPE C,
V_MESSAGE_6(150) TYPE C,
V_RDATE(10) TYPE C,
V_RTIME(8) TYPE C,
V_RECIPIENT(12) TYPE C,
v_itab_idoc_par_lines,
v_itab_idoc_chd_lines,
child_counter TYPE C,
parent_counter TYPE C,
idoc_counter TYPE C,
v_mess_output(1000) TYPE C,
v_error_detail(88) TYPE C,
v_final_detail(1000) TYPE C,
V_DUMMY TYPE C. "Dummy File Indicator.
*eject.
Constant Declarations
CONSTANTS:
BASIC IDOC TYPE AS CREATED FROM TRANSACTION CODE we30.
C_Segment_type1(8) TYPE C VALUE 'Z1IDOCOB',
C_mestyp(11) TYPE C VALUE 'ZSAMPLEMESS',
C_SENDMODE TYPE C VALUE 'B', "Sending Mode
C_EXPRESS TYPE C VALUE 'E',
C_LANGUAGE LIKE sy-langu VALUE 'E'.
**********************END OF DECLARATIONS*****************************
*eject
Initialisation
INITIALIZATION.
Assign the initial settings for sending error mails.
v_err_desc_1 = 'Message from processing ZOUTBD_IDOC_TEMPLATE.'.
"Error message in pop up box after program executes.
v_error_detail = 'A complete set of detail records is not held for'.
idoc_counter = '0'. "No of Idocs processed.
parent_counter = '0'. "No of parent segments selected.
child_counter = '0'. "No of child segments selected.
*************************BEGIN OF PROCESSING**************************
Call form to initialize standard structures
PERFORM clear_Structures.
Fill report to tell user when the interface was run.
PERFORM fill_mail_report.
Call function to populate parent structure:
PERFORM select_parent_data.
Call function to populate child structure:
PERFORM select_child_data.
Inform the user of the number of records that were selected.
PERFORM fill_record_selected.
Loop at contents of parent structure:
LOOP AT itab_idoc_par.
Populate the control structure with the partner and port sending and
receiving details.
REFRESH itab_idoc_data.
PERFORM populate_Control_structure USING c_mestyp
c_SEGMENT_type1.
PERFORM transfer_Parent_data_to_seg.
Loop at the children structure - retrieving the children segments
for this parent.
LOOP AT itab_idoc_chd WHERE WERKS = itab_idoc_par-WERKS.
Call form to transfer data to child Idoc.
PERFORM transfer_Child_data_to_seg.
ENDLOOP. "Stop looping through the children structure.
Call SAP function to transfer data.
PERFORM master_idoc_distribute.
Form to close logical unit of work.
PERFORM COMMIT_WORK.
ENDLOOP. " Stop looping through the parent structure.
Fill the number of articles processed for online mail.
PERFORM fill_process_record.
Write to online mail report on data interface has processed.
PERFORM FILL_ERR_MESSAGE USING V_OBJLINE
V_MESSAGE_1
V_MESSAGE_2
V_MESSAGE_3
V_MESSAGE_4
V_MESSAGE_5
V_MESSAGE_6.
Send online mail with contents of message fields.
PERFORM SEND_MAIL. -
HAI
YSUSTAB1 IS MY DDIC-TABLE.
IN THIS TABLE
NAME IS A *FIELD NAME * ,CHARACTER TYPE ,LENGTH 20
ROLLNO FIELD NAME, INTEGER TYPE, LENGTH 10
ARE THE FIELDS .
I HAVE TO CREATE THE FLAT FILE. .PLZ TELL HOW TO CREATE FLAT FILE.
AND WHAT ARE THE PARAMETERS MANDATORY IN THE GUI_UPLOAD FUNCTION.
AND PLZ GIVE THE SIMPLE PROGRAM FOR MY PRESCRIPTION WITH FLAT FILE.
REGARDS
SURENDERHi,
You can create a flat file of your own with the fields separated by tab/comma/space delimiters. You can even prepare a flat file in a excel sheet.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE_NAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = I_XK01
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.
In this function module
EXPORTING
FILENAME,
FILETYPE,
HAS_FIELD_SEPARATOR,
TABLES
DATA_TAB
these values have to be provided ie mandatory. Exceptions, depending on your requirement you can make use of the available exceptions.
Reward points if useful.
Regards,
chandrasekhar -
HI Gurus ,
I am loading the data through csv file Flat file putting 0doc_number and 0s_ord_item in key fields of DSO and rest fileds like sales org , sales group upto 8 eights fields in data fileds when i am loading the data and clicking on the proposal tab and load examples it is showing all the fields in one row in proposal window , could you please guide me ...how to make every field in every coloum.
thanks in advance ,
prathamHi I wanted to load the order entry data from flat file source system for this i am taking infoobjects 0doc_number and 0s_ord_item as a key field for the data fields in dso i took salesorg , sales group,division , material group material , lastchanged on , sold to party , sales office , net_value, 0cml_or_qty .
now i extracted the data from r/3 into excel for all these fields and making file as csv , i am uploading the data .
(The oder of the fields in the file is same as the infoobjects in DSO )
when in application component while creating the DS i went into extraction tab where i had defined all the set parameteres like file name , etc after going into proposal tab when i am clicking on the load example data it loads data but all the fields goes into one row which is wrong every field should go in every row .
so because of this i am unable to create DTP and Transformation .
Could you please help me ..
Pratham -
Flat File loading Initialize with out Data transfer is disabled in BI 7.0
Hi experts,
When loading through flat file in BI 7.0 for Info Package Level Initialization Delta Process with data Transfer is coming by default,but when i want to select Initialization Delta Process without Data transfer is disabled. (in the creation of Data Source (flat file) in the Extraction Tab Delta Process is changed to FIL1 Delta Data (Delta Images).
please provide me Solution.
regards
Subba reddy.Hi Shubha,
For flat file load please go throught he following link:
http://help.sap.com/saphelp_nw70/helpdata/EN/43/03450525ee517be10000000a1553f6/frameset.htm
This will help.
Regards,
Mahesh -
Regarding Upload of Goods Issue data from flat file
Hi,
i am working with interface for Goods Issue
The following fields are provided in the flat file: BLDAT , BUDAT ,BWARTWE , WERKS and LGORT.
We also have to maintain Internal Order number in SAP which is not provided in the flat file ; how to go about it?
I have a doubt: since item level data is not provided in the flat file ; how that data will be captured ?
Should I go for BAPI_GOODSMVT_CREATE or write a BDC ?Hi,
You can only do a goods issue against a delivery. I dont understand how you can Issue goods using a flat file.you will have to check with your functional consultant.
regards,
Mahesh -
Number of rows in Flat File Sample Wizard.
Hi All,
Configuration is as follows.
OWB Client 9.0.2.56
OWB Repository 9.0.2.0.0
While importing a flat file of fixed width ,
in the screen "Flat File Sample Wizard" shows the text box number of rows with default value 200.
Can this value be extended beyond 200?
I understands this value is used for sampling of the source text file.
Thanks in Advance.
Regards,
VidyanandYou should be able to sample files bigger that 200 rows, but the UI usually becomes slow when a very large file is sampled. Bear in mind that the concept of sampling is to establish the file format, which should be done even on a very small portion of the file. The mapping will take care of loading the actual file.
Regards:
Igor -
To upload a flat file into BW using a variable entry in web application
hi guys,
how to upload a flat file into the web browser using a
a variable entry in the wad application.
Thanks,
your help will be duly appreciated
Message was edited by:
Vj.R Tthanks arun
but is it not possible to load the flat file at bex level which
might be the same at wad level
and also what do you mean the load package
triggered from the backend and how do i
manipulate the data is it at bex level or wad level
please elaborate.
thanks
your help will be rightly acknowledged. -
Attaching a flat file to the Document Number
Hi,
I want to attach a flat file to the Document Number generated .
Please follow the steps :
1) Goto transaction FB03.
2) Enter into it by giving a document number.
3) At the Document overview screen you will find the 'Services for Object' button(Left side upper part of the screen)
4) When you click it you will find Create-> Create attachment will be there where you can browse and upload a flat file that tags tagged to the Document number.
Is there any FM to do this activity.
Thanks in AdvanceHi Raja,
I have used the function module
'BDS_BUSINESSDOCUMENT_CREATEF' with the following parameters .
Export:
LOGICAL_SYSTEM = 'LS_TSX100'
CLASSNAME = 'BUS6035'
CLASSTYPE = 'BO'
CLIENT = '100'
OBJECT_KEY = 'SE1201000000012006'
Tables:
Files-directory = 'C:\'
files-filename = 'POSTING.TXT'.
After that I have committed it .
The file doesn't get attached . I went into the FB02 and entered the accounting number(100000001) and checked but it has not got attached .
Please help me . -
Query regarding Import Dimensions using Flat File in EPMA
Hi All,
I am trying to import dimensions and Dimension properties using a flat text file to the master dimension library. If I try to include any properties (HFM) in the !Members Section, I am getting an error "Input Line ... does not have the expected format of 1 columns". But if I remove the properties and just build the members and hierarchies without any properties definition, I am able to succeed. Can someone guide me on what I might be missing with regards to member properties? Below is the format of the input text file.
!Section=Dimensions
'Name,DimensionClass,DimensionAlias,CustomDimensionID
HFM_Entity,Entity,HFM_Entity,
!MEMBERS=HFM_Entity
'Name,Allow Adjustments
10001000,Y
10001100,Y
!HIERARCHIES=HFM_Entity
'Parent,Child
Please let me know if any other information is required.
Cheers,
HyperionUserHi,
Have a look in directory \Hyperion\products\Planning\bin\sampleapp
there is a sample ads file :- SampApp Source Flat File.ads
Cheers
John
http://john-goodwin.blogspot.com/ -
hi
for 0amount field i am getting data in excel like
-535.905.031.022.492
-111.801.379.067.257
433.124.355.469.709
-0.405316272683086
-0.378415176841429
-0.404278225058806
this allignmnet will be fine or we need code required all will be in proper allignmentHi,
select the entire column of 0AMOUNT in flate file ->Rt. Click->format cells->select number->uncheck Use 1000 seperators (,)
Hope this helps...
Rgs,
Ravikanth. -
Regarding ssis - Filter first 5 rows from flat file
Hi,
i have a requirement like this every day we receive 10-15 Flat files , we need to load these data into SQL Table ,here nothing is complex for this we need to use foreachloop Container,Dataflowtask..etc. here the issue is each flat file have top 5 rows has
Client information like ( We need to delete First 5 rows) and then insert into SQL Table . please suggest me how to develope the package..You need to use a script task to read file one by one and remove the first 5 rows from the file. The file name/path can be stored as a variable and read it from the script code. Insert the script task inside the foreach loop container just before importing
the file.
Refer the link to remove a line in .net
http://stackoverflow.com/questions/7008542/removing-the-first-line-of-a-text-file-in-c-sharp
Regards, RSingh -
hello guys,
can u tell me how to create a flate file during run time of programme with the help of function module?
ie.., I want to export the output of a report program to the flat file which is created during runtime of the program.
Regards,
S.Vinod1) file to presentation server: fm gui_download
2) file to application server: abap commands: open datset and transfer
A.
Maybe you are looking for
-
hi! i have applr iPhone 3gs 32gb. i want to import my all data, like pictures, videos, songs and my contact details from my cellular to computer system
-
How to use TDSCRNPOS in ITCPO structure for positioning the output screen?
Hi Guys, I am having a requirement to display the form as pop up window. I think for that I have to use TDSCRNPOS from ITCPO structure. But I don't know how to use this option. <b>I need to display the print preview as pop up window</b
-
I've interview tomorrow , still do not know how to run report from forms
hi all , i asked before about running report from forms 10g rel2 , but vainly , because i could not configure the reports server , and no one told me . now i've an interview tomorrow , and sure it will be included in the task which i have to do . i a
-
I have Firefox set to clear my history after I close the browser but did not check the box by active log-in. Yet I have to log into my e-mail and facebook every time even though I checked the "keep me logged in" boxes. I am now trying to also save Co
-
Using javac and classpath with Linux
My classpath is /usr/java/jdk1.3.1_02/bin (that's the path to jdk1.3.1) but I get a /usr/java/jdk1.3.1_02/bin/i386/native_threads/javac: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or d