Академический Документы
Профессиональный Документы
Культура Документы
Max M
Nov 23, 2010 5:03 PM
Hi experts, Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained. As by now, we would like to verify - what data is extracted now. Any help, would be appreciated! Correct Answer by Rahul K Rai on Nov 24, 2010 8:22 PM Hi, The path that I mentioned was on Menu bar( the bar at the topmost of screen). There, Settings -> Layout-> Change and then change the lengthfor Application data to what I had mentioned. What you changed was Maximum Width list. This can only increas width of screen display. As the field length to be displayed for Application data has been restricted to 255, therefore even if you increas Maximum width list, there would be no difference. Go to the path mentioned, and then increase the length of Application data field to 900. As to your last question, you can change this field length for display at user level. There is no restriction on that. Alternatively, try the below as well. Change the table display from SE16 standard list to ALV list.(Get in touch with any ABAPer in your team and show him this statement, he would be able to help you out). Once you do this, some new icons would come up in Toolbar. One of those icons will be Change Layout. Click on that and change the length of Application data field. If this way also doesn't works, then you would have to write a report to extract the data from table to excel. Hi, The data that exists in an IDOC can be found in table EDID4. This table gives you multiple entries for an IDOC. If any IDOC has 10 segments present in it, this table would contain 10 records for this idoc, along with the segment name field & segment data in the table. There's another table EDSAPPL, which would give you the fields that exist in each segment and its length. Now since, each segment inside an IDOC contains multiple fields, therefore, the field that contains Segment data in EDID4 is a long one. To actually understand the data contained in this field, you would have to map the field length given in EDSAPPL with the position of data in EDID4. This way you can extract the data from any IDOC.
But, I still donu2019t get how can I map info from u201Capplication datau201D from EDID4 with every field name from EDSAPPL table. As a result, I need to see segment, all itu2019s fields and content from every field. Please note that every segment has multiple fields. Is it possible?
Data in EDID4 would be as follows IDOC 12345 SEGMENT SEGMENT1 APPLICATION DATA XYZ R Y
When you are extracting data from these tables into your internal table, mapping has to be as follows: FIELD1 = APPLICATIONDATA+0(4) field would belong to FIELD1 Similarly, FIELD2 = APPLICATIONDATA+4(2). FIELD3 = APPLICATIONDATA+6(2). to read first 4 characters of this field, because the first 4 characters in this
FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table. Hope this was helpful in explaining how to derive the data.
System Response and I have found another field in Help - Settings, under System defaults with the title changeable --- and value 255 (No Limit). It looks that it's restricted by the system not display more then 255 characters. Is it possible to increase it on user level? Please kindly comment. The field is output in a format restricted to 200 characters.
Can anyone guide me as to how we can export the IDOC data into excel sheet. Alternatively you can go to the transaction IDOC and check Analyse Idoc field values in the check programs tab. Once you execute, it will ask for the idoc number. Execute with the idoc number and you would get a ALV list. You can go to system> List> Save as Local file. go to WE02 => Menu "IDoc" => Print IDoc => Menu "List" => Export => Spreadsheet Choose all avalilable formats. Save the XLS file thank you for the reply , but when they go to Tcode WE02, and get the display of IDOC, and when they select the IDOC by double clicking it . and when they select MENU-IDOC-Print IDOC they are not going to the screen where we get the various columns , here itself they r getting the printer option. is there way to deactivate the printer option and for them to get varios colums for us to export it to excel you can try this: Menu "System" => User profile => Own data Go to tab "Defaults" and enter LOCL under OutputDevice. If this does not work there might be no sufficient authorization for the user in his roles. You must contact someone form basis / security then. Alternatively you can go to the transaction IDOC and check Analyse Idoc field values in the check programs tab. Once you execute, it will ask for the idoc number. Execute with the idoc number and you would get a ALV list. You can go to system> List> Save as Local file. I have tired the method which you have given me but will it give me the same data as i get from WE02? as i can see i get ony 119 fields in this way (IDOC method) whereas WE02 is giving me 241 feilds feilds a difference of 122
I presume what you do not get are the empty fields by using the IDOC transaction as compared to WE02. In IDOC transaction click on Also Output Empty fields, and see if it works.