Line item - flat file - BDC
hi gurus.......
could some one get me a real time flat file for BDC line items.
maximum points will be rewarded.
hi Rohit
what I mean is , for T codes like XK01 we have a multiple line items for a single vendor.
I need to practice BDC for T codes which has line items (ex ME21) .
It would be more helpfull for me if u provide me with flat file which u have use in real time for BDC , which has multiple line items for a single header.
am I clear?
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 -
How to eliminate empty lines in Flat file.
Hi All,
How to delete the empty lines in flat file,i am explaining below with data
Here we have 3 fields with field lengths 30,10,34 i am checking the condition in message mapping if the middle field containing 9999999999 i am deleting the total record but in output file i am getting empty line how to eleminate empy lines in file please suggest me is it possible through Content Convertion.
Thanks,
Sudheer.
0500189175247200000500003141700000142888073108000009640566210000
0500189175247200000500012449050000142889072908000009623017230000
0500189175247200000500000496210000142890073008000009631840760000
0500189175247200000500000162130000142891072808000009613028730000
0500189175247200000500001356750000142892072908000009621443430000
0500189175247200000500012982910000142893072908000009622158440000
0500189175247200000500001380990000142894073008000009631876720000
0500189175247200000500000074560000142895072808000009613904430000
0500189175247200000500003351650000142896072908000009623005030000
0500189175247200000500000061170000142898072808000009613026140000
0500189175247200000500000060590000142900073008000009630862400000
0500189175247200000500000155320000142901072908000009623234640000
0500189175247200000500043425220000142903072808000009612752160000
0500189175247200000500000517450000142904073108000009640911680000
0500189175247200000500006901140000142905073008000009630927540000
0500189175247200000500001565590000142906073008000009630938540000
0500189175247200000500000210440000142907073108000009640765850000
0500189175247200000500000187500000142908072908000009622980650000
0500189175247200000500000069240000142909072908000009622980660000Hi,
I think we could handle this with may be usage of Advanced UDF in Graphical mapping only.
Here as per the condition you are deleting the particular record but unknowingly blank value i.e. " " is getting passed so on target side blank node is created for this record.
You need to just avoid this blank Node.
If you can share the logic you have applied for Middle field as well the source and target structure I will be able to try the UDF code..based on it
Thanks
swarup -
Error Processing a line in Flat File ActiveSync
We are using IDM 5.5 running on Websphere 6.0.2.3.
We are feeding a caret seperated flat file to IDM which in turn writes to Sun One Directory Server.
A sample format of the caret seperated file is
ssocorrespondlanguage^ssouid^mail^cn^sn^givenname^appaccess^uid^ssostatus
^A1C1C423-71F0-138F-CB8C-BCC3BAAF484F^[email protected]^Luigi Marra^Marra^Luigi^portal^[email protected]^A
^3DCC1E95-4E7D-113A-BFC0-AAA3BA195331^[email protected]^adhi asokan^asokan^adhi^portal^aadhees^A
We are facing an issue where IDM is not able to process a line.
I suppose its because of the "@" or "." character in the uid field as higlighted. Not sure though.
But am not able to figure it out how to aviod this.
The error which we are getting is
2005-12-02T15:31:11.152-0500: Error Processing Line: {gessouid=A1C1C423-71F0-138F-CB8C-BCC3BAAF484F, sn=Marra, cn=Luigi Marra, uid=[email protected], gessostatus=A, gegcfappaccess=portal, mail=[email protected], givenname=Luigi, gessocorrespondlanguage=, diffAction=create}
com.waveset.adapter.iapi.IAPIException: Item Resource:uniteam.it@GECF_B2B_FF(id=null) was not found.
Have someone seen this issue.
Or someone have any idea on this.
Thanks.Thanks for the reply.
Sorry! I was out of pocket for couple of days........
I just double checked. I am using unique Employee ID as the "Unique key for diff" and also I have 'process diff. only' flag to set to true.
In my tests, I modified only contractor expiry date in the incoming sap flat file and then tried processing the file. It gave me the above error. Please note that the same employee id was available in the FFA* file also.
Interestingly, I tried the same test for another account and it worked for that account. That's what actually totally threw me off.
Thanks once again.........
- Lalit -
How to select line items in recording(BDC)
Hi All,
we are trying to Recording QP02 transaction ,we have inputs like material,plant,Group,Group Counter.
after entering these inputs we will get multiful line items(inspection characteristics).we need to check one field for each item.
How can we get this?
Please help me?
Thanks,
Peddi reddy.Hi Kamesh,
Thanks.
After selecting line items i am selecting control indicators Tab.
then Pop up screen called as (Edit characteristic control indicators) will open ,..then just pressing enter..the it will show another pop up ..here i am selecting one field(Long term Inspection)..the process has to do for all line items.
In My program i have copied BDC performs which i got from Recording.
Do i need to change tha performs or will it work?
i tested in foreground with another material .... upto 3 or 4 line items its working fine.after that sytem does.t say anything.
if i need to chage performs please help me . -
Hello experts,
In flat file ' | ' (vertical line) is maintained as seperator.
flat file format: J|1|A|
here
J is data of column-1
1 is data of column-2
A is data of column-3.
'|' is seperator,
I want to upload.
When i tried to upload the file with the same in internal table it gives me like this :
Column1 column2 column3
J | 1
how do i resolve this problem???
any sample code??ok.
i hv added new code that it can be converted into internal table format. ie. it will show with header line.
just check this code it will work definately..
with regards,
Kiran.Gouni
DATA : BEGIN OF itab OCCURS 0,
char(150) TYPE c,
END OF itab.
DATA : name TYPE rlgrap-filename.
DATA : string TYPE string.
DATA : BEGIN OF itab1 OCCURS 0,
no(10) TYPE c,
END OF itab1.
DATA : BEGIN OF itab2 OCCURS 0,
no(10) TYPE c,
no1(10) type c,
no2(10) type c,
no3(10) type c,
NO4(10) TYPE C,
END OF itab2.
PARAMETERS : p_name TYPE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
program_name = syst-repid
dynpro_number = syst-dynnr
CHANGING
file_name = p_name
EXCEPTIONS
MASK_TOO_LONG = 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.
START-OF-SELECTION.
MOVE p_name TO string.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = string
FILETYPE = 'ASC'
tables
data_tab = itab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA : char(10) TYPE c.
DATA : COUNT TYPE I.
LOOP AT itab.
SPLIT itab-char AT '|' INTO TABLE itab1.
COUNT = 0.
loop at itab1.
COUNT = COUNT + 1.
SY-INDEX = COUNT.
if sy-index = 1.
itab2-no = itab1-no.
endif.
if sy-index = 2.
itab2-no1 = itab1-no.
endif.
if sy-index = 3.
itab2-no2 = itab1-no.
endif.
if sy-index = 4.
itab2-no3 = itab1-no.
endif.
IF SY-INDEX = 5.
ITAB2-NO4 = ITAB1-NO.
APPEND ITAB2.
ENDIF.
endloop.
CLEAR ITAB1.
CLEAR ITAB1[].
ENDLOOP. -
Script or command line to comment out multiple lines in flat files
I am looking for a way to go through multiple flat files within the same directory for the occurance of a server name and if found to insert a comment (#) at the beginning of the line. Currently, I am grepping for the server name within the directory and then doing a vi on each individual flat file to comment out the line. The server name is separated by the pipe (|) symbol and each line of every file is in this format:
webservers:WEBSERVER|Env Name|servername|application name
So, in the above, I am grepping for the servername part and if found in there, I want to change the line to:
#webservers:WEBSERVER|Env Name|servername|application name
I would think there would be a way of doing this either with command line Perl or with maybe awk or sed. Any suggestions would be greatly appreciated.You could do something like this with a ksh shell script:
#!/usr/bin/ksh
for file in `ls`; do
echo $file
sed 's/^webserver/#webserver/g' $file > $file.parsed; mv $file.parsed $file
doneThis will go through everyfile in the directory and search for "start of line" webserver and replace it with "#webserver". Then the file will get move back to the original file name.
If you just want to change certain files ie. only filenames with the word "server" in it, then change:
for file in `ls`; do to something like
for file in `ls *server*`; doHope this help...
Cheers
pdaemon -
How to insert contract line item from file using any bapi
Hi gurus,
Just wanted to ask how can I insert new line item which were created from a file
when updating/changing contract details.
The requirement was to create new line item from a file and use those details in updating the contracts.
What BAPI can I use to address this requirement?
Thanks!Hi Rajvansh Ravi,
This is for Service Contracts. Sorry for missing this detail.
Hi Tarangini Katta,
I have already used BAPI_CONTRACT_CHANGE, and it was good in updating existing line items,
but it doesn't update the contract when a new line item is created in the file.
To make a clearer view of the flow (requirement)
First scenario:
From the tcode (ME32K or ME33K), we can download contract details into an excel file for a particular service contract.
Next scenario:
That same excel file (downloaded) can be enhanced per line item (can also insert new line) and be saved locally.
Next scenario:
This same excel file can also be uploaded. And the changes done to the file have to overwrite or rather have to changed the details of the same contract and then will appear/reflect in the tcode.
With this, if we had a new line item created (inserted) on the file (not change), we can not see the changes when we view the same contract in the tcode. (ME33K)
Do you have any idea how the insertion from the file can be reflected on the tcode using an existing bapi?
Hope this was clear enough...
Thanks and hope to hear something from you soon. -
Pass Idoc PO Multiple Line Items to file
Hello All,
we are using Message Type ORDERS and ORDERS1 as Basic type to pass PO and sales data. I have configured IDOC to File scenario. I'm able to successfully place a file in file folder.
But my issue is some of the PO's have multiple line items and saved file has one first line item information. I have even tried unbounded for line item but no luck.
<b>How do I pass all the line item values to the file ?.</b>
The output structure should be
1. PO Number
2. PO ITem
3. Material No
4. Delivery Date
5. Vendor Number
the data type I created is
Pur_Ord
|__ EBELN
|__ EBELP 0..Unbounded
|__ MATNR
|__ AEDAT
|__ LIFNR
the current output is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Pur_Ord_Out xmlns:ns0="http://PO_TO_FILE">
<EBELN>0004500066</EBELN>
<EBELP>00001</EBELP>
<MATNR>000000000000010027</MATNR>
<AEDAT>20051215</AEDAT>
<LIFNR>0001005780</LIFNR>
</ns0:Pur_Ord_Out>
Im looking for an output with all line items
Thanks in advance
PraveenPraveen
Try this
Pur_Ord
|__ ORDERS 0.. Unbounded
|__ EBELN
|__ EBELP
|__ MATNR
|__ AEDAT
|__ LIFNR
Here ORDERS is the parent node.
KK
Message was edited by: KK -
Unable to capture the Line items row in BDC kindly help
Hi All,
I am trying to run the Tcode CJ40 here after i enter the project id and press enter a tabular form appears and we need to select the appropriate line item in that table .
When i try to do teh recoding using SHDB tcode it is not capturing that line item at all :(.
I tried to do the recordig usig the page down and tehn selecting teh line item in the table but still it doesnt capture in teh recording ,
Kidnly suggest me what needs to be done.
Thanks in Advance.
Sana.Why dont you try with BAPI BAPI_BUS2054_CHANGE_MULTI
Check the Documentation -
Hi friends........ now i want to upload the data from flat file through recording method to "MMO1" tranction now how can i anlyze the data from flate file this data is related for particular field
Hi chakri,
If your flat file is of EXCEL file then in the first row write all your field name save Material No, Industry Sector, Material Group....and start uploading the data in the excel starting from 2nd row.
By which you can start uploading your material master from 2nd row and you can have heading for your field to know which value is of which field.
Cheers!!
VEnk@ -
Multiple Header Lines in Flat-File read by FileSenderAdapter
Hello XI and File Sender Adapter Species
We have the following file with fixed file lengths:
#H1 F1
#H2 F1
#H3 F1
#H4 F1
#H5 F1
#H6 F1
#D1 Field1 - Fieldn
#D2 Field1 - Fieldm
#D2 Field1 - Fieldm
#D1 Field1 - Fieldn
#D2 Field1 - Fieldm
#D2 Field1 - Fieldm
#F F1
Concrete example as follows:
#H1 150
#H2 ECH150_20070709_026745152.dat
#H3 20070709_1600
#H4 9.0
#H5 8712423010208
#H6 8712423009202
#MDDTD3 146307732 146202845 871687940006178374E70871687910000219120200707090032B 040235031 Noordkant 28 SINT ANTHONIS 5845EW 8716879000004871242300920287124230091962007070909550113533533 8716948000010501000L
#MDDTD4 59664 E10
#MDDTD4 30180 E11
#MDDTD3 146309776 146202839 871694840030212726E70871694830000000309200707090031B 0411 8 Flierakkers 21 VROOMSHOOP 7681XV 8716948000003871242300920287124230091962007070909590113533515 8716948000010503000L
#MDDTD4 3562 E10
#MDDTD4 2422 E11
#F6
This File Should be read via the File Sender Adapter and afterwards mapped into the following idoc structure:
IDOC-Type
ZUECH_010
Header Segment: H1, H2, H3, H4 , H5 ,H6
Detail1Segment: Field1, Field2 . Fieldn
Detail2Segment: Field1, Field2 . Fieldm
Detail2Segment: Field1, Field2 . Fieldm
Detail1Segment: Field1, Field2 . Fieldn
Detail2Segment: Field1, Field2 . Fieldm
Detail2Segment: Field1, Field2 . Fieldm
FooterSegment: Field1
Now my Questions:
1. As far as I know it is not possible to configure in the filesender adapter 2 different Record sets? We need two record sets, one for the header lines whose occurrences are once per File and one for the detail lines? Does anybody know if this is possible?
2. Any other ideas for a simple solution?
Thanks for a soon answer.
Regards MarliesThanks all very much for your answers:
The hint from Praveen was very helpful.
If possible we need a solution with the graphical mapping tool and as far as possible without UDF, because at the moment there is no java developer.
The file adapter now produces the following xml structure:
<ZUECH_0150>
<recordset>
<H1>
<KH1>#H1</KH1>
<H1>150</H1>
</H1>
<H2>
<KH2>#H2</KH2>
<H2>ECH150_20070709_026745152.dat</H2>
</H2>
<H3>
<KH3>#H3</KH3>
<H3>20070709_1600</H3>
</H3>
<H4>
<KH4>#H4</KH4>
<H4>9.0</H4>
</H4>
<H5>
<KH5>#H5</KH5>
<H5>8712423010208</H5>
</H5>
<H6>
<KH6>#H6</KH6>
<H6>8712423009202</H6>
</H6>
<MDDTD3>
<KMDDTD3>#MDDTD3</KMDDTD3>
<MDDTD3>146307732 146202845 </MDDTD3>
</MDDTD3>
<MDDTD4>
<KMDDTD4>#MDDTD4</KMDDTD4>
<MDDTD4>59664 E10</MDDTD4>
</MDDTD4>
<MDDTD4>
<KMDDTD4>#MDDTD4</KMDDTD4>
<MDDTD4>30180 E11</MDDTD4>
</MDDTD4>
</recordset>
</ ZUECH_0150>
I would prefer the following structure, because it fits exactly to the structure of the idoc.
That means the mapping is very simple:
<ZUECH_0150>
<HEADER>
<H1>150</H1>
<H2> ECH150_20070709_026745152.dat</H1>
</HEADER>
<MDDTD3>
<KMDDTD3></KMDDTD3>
<MDDTD3>146307732 146202845</MDDTD3>
<MDDTD4>
<KMDDTD4>#MDDTD4</KMDDTD4>
<MDDTD4>59664 E10</MDDTD4>
</MDDTD4>
<MDDTD4>
<KMDDTD4>#MDDTD4</KMDDTD4>
<MDDTD4>30180 E11</MDDTD4>
</MDDTD4>
</MDDTD3>
</ZUECH_0150>
Now my new questions:
1. Is it possible to configure the file adapter to produce a xml structure which afterwards can be mapped with a simple graphical mapping into the idoc structure?
(I can live with the suggestion from Praveen, that the header information is in each recordset but only has content in the first one.)
2. What about the MDDTD4? It is a substructure from MDDTD3. Is it possible to configure this in the file adapter?
Thanks a lot for your help and a soon answer.
Regards Marlies
Message was edited by:
Marlies Nowotka
Message was edited by:
Marlies Nowotka -
Multiple Line Items in Output File
Hi everyone,
I am using a IDOC to Flat File scenario
IDOC is PO Idoc.
Flat file should contain n no of records For example if IDOC of a PO contains 3 Line Item Flat file should have 3 records...
Suppose , my flat file has 3 fields
PO #
Item #
Material #
Now How to achieve this ?
Thanks.Use UseOneASMany standard function and map as given below
E1EDK01-BELNR (context E1EDK01) ------------------------\
E1EDP01 -------------------- ----------------------------- >useoneasmany ---> target PO field
E1EDP01-POSEX (context E1EDP01) ---------------------/
because you use function useOneAsMany() if a field that only occurs once needs to be replicated as often as another field occurs in the outbound message so that the fields can be written to the target structure in pairs as a record.
it takes three inputs
first input values to be replicated
second input for how often values to be repeated(Occurence)
third input How to structure the values(in your case you have to repeat values as often as E1EDP01 occurs and structure should be as Item or material field)
Edited by: Kubra fatima on Oct 7, 2009 8:44 AM -
Reg: LSMW Multiple line items of scale pricing in transaction VK11
Hi,
Iam using LSMW to upload price condition records(VK11)
Totally Iam having two records which i have split as 2 flat files.
one flat file with header details and another flat file with line items for scale quantity and scale pricing, something like below.
Header flat file
__ZPR3__
__cust1__
__Mat1__
__AUD__
__EA__
__100__
__10__
__ZPR3__
__cust2__
__Mat2__
__AUD__
__EA__
__300__
__10__
Line Item Flat file
__cust1__
__mat1__
__95__
__20__
__cust1__
__mat1__
__90__
__30__
__cust1__
__mat1__
__85__
__40__
__cust1__
__mat1__
__80__
__50__
__cust1__
__mat1__
__75__
__60__
__cust2__
__mat2__
__70__
__20__
__cust2__
__mat2__
__65__
__30__
__cust2__
__mat2__
__60__
__40__
When i do the step of Read Data in LSMW iam getting the data correctly.
in Display read data step i got the header data in yellow and its line item in blue.
In Convert data step iam gettin as
Transaction read = 2.
Records read = 11.
Transaction written = 2.
Record written = 9.
In Display Converted data step Iam getting every record as a higher level item (displayed in green)
In Create Batch Input Session step Iam getting the message as 1 batch Input folder with 9 transactions
Which is actually wrong because only two transaction only must be written.
I think i migh have problem in Convert data step but iam not sure, can anyone help me what should be done.
My requirement is to upload the two datas with multiple scale prices for transaction vk11.
Kindly Help.
Regards
Naveenhi,
For u r reqrmnt u can make use of direct input method.
1)
Object 0070 Condition record
Method 0000
Program name RV14BTCI
Program type B Batch input
it make use of transaction VK15( alternate for vk11where instead of selecting combination u can directly input table name)
2) create u r internal table structure with the following fields
KSCHL cond type
KOTABNR cond table
VKORG sales org
VTWEG distr chnnl
KUNNR customer
MATNR material num
WERKS plant
WAERK currency
DATAB from date
DATBI to date
KSTBM cond scale qty
KBETR rate
LOEVM_KO del ind
KPEIN cond pricing unit
in the above if u dont require any fields u can omit but make sure u r using all key fields.
i thnk in u r reqrmnt its customer specific pricing so customer, cond scale qty,rate r needed.
deltion indicator is used to delete existing records.
3) maintain structure relations till BKOND3
4) for field mapping do Auto field mapping
give Tcode VK15
give value for VAKEY ( concate salesorg, plant,materialno,customer)
assign dates in standard format (YYYYMMDD)
5) Run remaining steps like assigning files, read convert and all
u r flat file structure shud be da same like u r internal table.
if u r not givin values provide empty space.
flat file
zpr3 cust1 mat1 aud ea 100 10 95 20
zpr3 cust1 mat1 aud ea 100 10 90 30
zpr3 cust2 mat2 aud ea 300 10 70 20
i hope it gives u some idea .
if its useful rewrd me. -
Date o/p probelm when download into flat file inf110 tcode in fi
hi,
when im create payment transaction in f110 tcode in fi , and selct the record and down load into flat file
in flat file first line it shows run date same as we given in transaction,but in second line it shows same date as before
but it shows different date example : firstline it shows 12 .10.2008 and second line 12.10.2008 is right o/p.
but it shows as first line 12.10.2008,and seconde line 6.10.2008. why it show like that.Hi Ganesh,
As per my understanding you have an issue with the date while downloading it into the Flat file.
It is displaying the incorrect date in the second line in Flat file.
Are you downloading the data in Notepad or in the Excel sheet?
Can you please elaborate the issue, if it is in Excel sheet then check if it is displaying multiple records for the same date.
Ex :
Date Records
12 .10.2008 ad
fg
as
6.10.2008 we
af
Check if this is the case...
Regards,
Kittu
Maybe you are looking for
-
How can I sync Outlook Calendars on 2 PCs with my iPhone?
I have a PC at work and a PC at home ... both have MS Outlook 2007 running on them; I have an iPhone 3GS I want to be able to sync the calendar from BOTH my PCs on to the iPhone and (therefore) with each other. However, I get a message on the second
-
What size should my movies be to not get cut off?
I am making a tutorial DVD. I used Snapz Pro to record a bunch of screen capture movies and then edited them together in FCP and exported them as 1024x768 animation movies and they look great. Now I want to burn them to DVD. When I take them as they
-
CS3/AS2 need to add a function to FLVPlayer component play button
Hi, I have an instance of the FLVPlayback component in a movie. I need to assign an extra function to the play button in the component (to tell another swf on the same page to stop, I have the function working) how can I find out the button instance
-
C/C++ API for JMS ?
Hi, Is there any open standard C/C++ API to connect to JMS? Eric
-
Installed uverse and now email suspended
"upgraded to Uverse for phone and internet. Unable to recieve or send emails and get message that att.net account suspended....Thiis is my business acconut and this is killing my business!!!!!! How do I get this turned back on? I did not want to loos