on 02-19-2021 10:05 PM
I have a list of table names, and I need to download their respective DD03M tables with the columns ROLLNAME REPTEXT and SCRTEXT_S. Preferably all going into the same file, however this is not necessary. Is it possible to do this automatically? I have hundreds of tables, so it would be tedious to do so manually.
This is needed because the current tables I have on my machine have their REPTEXT headers, but I need their ROLLNAME headers to be displayed instead. I have written a python program that can parse the file from the downloaded DD03M table and automatically alter the tables as needed.
I am having trouble getting the correct ROLLNAMES and REPTEXTS, however. If I do not filter DD03M by table, then the amount of data is too large, and I find that REPTEXTS and up being mapped to multiple different ROLLNAMES. I figured that filtering by table would allow me to extract only the data needed, however as I said, this would be tedious, as there are hundreds of tables that need to be filtered.
Is there any way to automate this process? I am new so I am a bit uninformed. Is it possible for ABAP or Python to accomplish this? Or a different method? Thanks
Hi Alex,
It's me Tuncay again 🙂
With ABAP it means you need one internal table variable for table names that you have the list (you can upload the list from file to internal table) and one for DD03M list. Then loop lt_table for table names; inside the loop loop lt_dd03m search TABNAME so you can get correct DD03M values.
With Python it's a kind of same logic; you need one array for table names, and one array for DD03M and by looping table names array search DD03M values with related field TABNAME. There must be easier way doing with Python since Python is very good with datasets.
I know all my answer is hypothetical but it seems the solution somewhere there - using two arrays (two internal tables) and search & match; then update, etc..
Hope that helps.
Thanks,
Tuncay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tuncay, thanks for sticking with me 🙂
One issue I have been running into is that the data set is too large. Currently, I am using the DD04T table and have it set to have 999,999 entries. This, unfortunately, is still missing a significant amount of elements. When I try and increase the amount to 9,999,999 entries, SAP fails to load the table, giving a message saying there is too much data and it timed out, so I am unable to download it. This is why I need to somehow filter the table in SAP to reduce the number of entries.
Thanks,
Alex
Hi Alex,
How do you download data from DD04T table? Do you use SE16 and download the result as a file? How many table names do exist in your list of tables?
Thanks,
Tuncay
Hi Tuncay,
How you described it is how I download data from the DD04T table. Also, I had an idea to use the table name to ensure each table had the correct mapping. However, this does not work with DD04T, as DD04T does not include the option to have the table name as a column. As a result, I used the DD03M table. However, I realized that for some reason, not every element is showing up. For example, the CSKS table has a column with ROLLNAME: LTEXT and REPTEXT: Description, but this mapping does not appear in the DD03M table filtered on CSKS. do you know why?
Also, to answer your question, I have about 100 table names in my list of files
Thanks,
Alex
Alex,
1-) If you are using SE16 to display DD03M view data and manually downloading (System > System List > Save > Local File); you could filter based on TABNAME on selection screen of SE16 of DD03M. You can easily copy a row of table names -for example an Excel- and copy paste on TABNAME on selection. That way you can get DD03M list for only the required table.
2-) LTEXT column name is not in CSKS table but in CSKST table which is Text Table of CSKS. in DD03M > TABNAME = CSKST, FIELDNAME = LTEXT, ROLLNAME = KLTXT
Thanks,
Tuncay
Tuncay,
Thank you, this has helped me.
Regarding your 2nd point, that helped me in regards to the CSKS table, however, I am encountering a similar issue in the EKKN table. One of the items that does not show up is Data Filter Value for Data [A]ging (for some reason answers.sap does not actually allow me to put the full word [a]ging, so for reference, pretend the brackets aren't there), however, this appears when searching for just EKKN in se16, rather than going through DD03M first. The EKKNT table does not exist either.
Also, am I able to filter for multiple tables at once? I tried space separating the table names, as well as comma separating, but that did not work. Would I have to do them one by one? Let me know
Thank you,
Alex
Just as an update, I ended up altering my program to keep track of which tables were not successfully translated. I then went through these failed tables one by one, to see if I could figure the issue with them. For the some, I was able to resolve it, however, others did not contain the REPTEXT in SAP for some reason. Not sure if this is an issue with how the tables were first extracted, or if I am not looking in the correct place. Just to give an example, the USR02 extracted table has the header "user master record version", but this header does not appear in SE11 filtered on USR02. Something similar occurs with 7 more of the tables.
Alex, USR02 table's column (field) name VERSN (User master record version) and its data element is XUVERSION's (User master record version) text fields (REPTEXT, SCRTEXT_S, etc.) has no value, all are blank in both English and German languages. You can see the field VERSN for table USR02 with SE11; but data elements has no text value.
So for this type of scenarios you can use DDTEXT instead of REPTEXT - just like if REPTEXT is blank use DDTEXT which is the description of the data element.
Ah that's my bad. I was looking under SE11, but I guess I must have missed it!
Something similar is happening with the tables T161S, TVPT, and TVKGR. All of them contain the column "Description", but this does not appear in SAP. I am fairly certain I am not merely just accidentally missing this, because TVPT only has 3 entries in SE11, and none of them are close to "Description". Any ideas? Thanks
Alex, good news! You are welcome. I'm glad to be helpful. Have a good day too 🙂
User | Count |
---|---|
79 | |
11 | |
7 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.