Long Text Extraction
Hi all,
We are facing a situation where we have to be able to extract text that is longer than 60 Character. These are some custem built Master data for PM. R/3 is the source system here and we have to come up with a solution. If anyone has experienced this before plz help...... I know if we normally extract it, first 60 character will be extracted. but the business requirement is to extract the whole of it and it is way more than 60 ( I believe thats the maximum capacity). is there any ABAP routine or something else to do it? any advice will be highly appritiated....thanks in advance
Hi,
in addition to my first answer, check out the weblogs. There are some of Eugene Khusainov about that and what to do for reporting.
regards
Siggi
Message was edited by:
Siegfried Szameitat
Similar Messages
-
0ACCOUNT_TEXT no long text?
Hi all.
I need to load the long text for 0ACCOUNT, but if I check the datasource only medium and short text exists. However if I check the extract structure long text does exist.
This is propably very simple, but what do I have to do in order to get the long text extracted?
BR
StefanHi stefan,
are u able to see the field in the ROOSFIELD table...for ur datasource....check the field attribute coloum for ur TXTLG ..it may be "A"
if it is A there
check the properties
Definition of the individual values:
'A': Field is hidden in OLTP and BW, property cannot be changed the customer.
'M': The DataSource requires a selection across this field before it is able to extract data (Required field for the generation of a request); property cannot be changed by the customer
'X': The Data Source can select across this field. The customer can change selections and visibility (the field is currently visible and selectable, compare with 'P', '3')
'1': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (the field is currently selectable , compare with '2').
'2': Pure selection field for the DataSource. The customer can change the selection, but not the visibility (field is currently no selectable, compare with '1').
'3': The DataSource can select across this field. The customer can change selection and visibility (the field is currently not visible not selectable, compare with 'P', 'X')
'4': The DataSource cannot select across this field. The customer can change visibility (the field is currently not visible, compare with ' ')
hop eit helps
regards
AK
Message was edited by:
A K -
Extracting long text of a message
Hi,
I have a message in a message class with a long text.I want to extract this longtext in my program. Is there any method to access/extract lontext of a message of a mesasge class? i.e if i can give the message class and message id as input?Function module DOCU_GET_FOR_F1HELP will get you the message's long text. You'll need to set the ID to NA, and the rest of the parameters are the language and your message id and number.
The long text is returned in a table.
Regards,
Nick -
ALV Classic - How to extract the selection long text of TYPE LVC_T_FCAT?
DATA: e_dyntab_tb TYPE lvc_t_fcat,
e_dyntab_wa TYPE lvc_s_fcat,
t_line_reftab TYPE REF TO data.
*Populate ALV fiels of TYPE LVC_T_FCAT
MOVE: c_matnr TO e_dyntab_wa-fieldname.
MOVE: c_material TO e_dyntab_wa-scrtext_l.
APPEND e_dyntab_wa TO e_dyntab_tb.
LOOP AT t_hwk_date ASSIGNING <fs_hwk_date>. "t_hwk_date is DYNAMIC
CONCATENATE c_hwk <fs_hwk_date>-index INTO e_dyntab_wa-fieldname.
CONCATENATE c_hwk <fs_hwk_date>-calender_wk INTO e_dyntab_wa-scrtext_l.
APPEND e_dyntab_wa TO e_dyntab_tb.
ENDLOOP.
*Create dynamic itab from dynamic ALV output
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = e_dyntab_tb "Pass alv_fcat here
IMPORTING
ep_table = i_reftab.
* Create Dynamic Work Area and assign to FS
ASSIGN i_reftab->* TO <fs_final_itab>. "Assigning the Final Table,
CREATE DATA t_line_reftab LIKE LINE OF <fs_final_itab>.
ASSIGN t_line_reftab->* TO <fs_line_reftab>. "Create a Work Area
QUESTION:
e_dyntab_wa-fieldname = this is the fieldname / column heading for the dynamic internal table
e_dyntab_tb-scrtext_l = this "should" be the 1st row(Column Heading Title) for the dynamic itab
= this data will be used for MS Excel Functionality as always as the first row as
column heading in the MS Excel
Legend:
How can I extract the entries of e_dyntab_tb-scrtext_l to an internal table containing the same structure of <fs_line_reftab>?Maybe I missed something, but you already have the long text for the columns in your FCAT structure. The problem you will have is that you will NOT be able to place those fields in the table that you have created because the headings will always be text and the columns may or may not be text (i.e. placing a heading into a numeric). You will be required to use a different structure.
Since you are writing a custom export, you will need to do one of the following:
Option A:
1. Retrieve the layout from the ALV as it will not necessarily be the same as when the original was created. The user may have moved a column or hidden one.
2. Create a structure for the export file that has only text fields. It should contain all of the columns from the FCAT. This can be done by creating another dynamic table and using the original FCAT and current layout.
3. Insert the headings as the first row of the export file.
4. Loop thru the internal table, compare it with the layout, and only insert the requested records into the export file.
5. Export the file.
or Option B:
1. Make sure the internal table has only text fields and insert the headings as the first record.
2. Insert all other records with fields converted to alphanumeric.
3. Use the standard export function.
Hope this helps,
Brian -
Extract values from a long text
Hi, I need help in extracting value from a long text
Sample data:
A_BOARD_MEETING_600
I need to extract MEETING from the text.
I tried to use CHARINDEX and SUBSTRING but it's not returning the text I wanted. I hope you can help me.
select SUBSTRING(ID, CHARINDEX('_', ID,1+CHARINDEX('_', ID))+1, CHARINDEX('_', ID, 1+CHARINDEX('_', ID, 1+CHARINDEX('_', ID,1)))-1 ) from table
Using the query above it's returning MEETING_600.Hi, thanks! But would like to ask how can this be converted where it can get the column ID in a table, I'm still learning SQL.
Select Parsename(Replace(YOURCOLUMNNAME,'_','.'),2)From your tablename -
Can't extract long text from SAP command CN23 using VB script.
Am writing a VB Script to copy all the long text for a network (SAP command CN23) into an excel spreadsheet cell. I do the GUI script recording, but when the script displays the long text screen, the script does not copy the text. How can the script select all the text and save it to a cell of an open excel spreadsheet? The text window does not seem to follow the same functionality as the rest of the SAP screens.
hi satheesh,
I tried to extract using winrar but could not
cheers
ram -
Extract the Long Text in txt file
Hi
I want a generic program which can extact the long text for any of the object(Material, Customer, Vendor..) and for n number of records in the upload file format taken by the LSMW for long text.
Regards,using FM create_text you can upload multiple lines of text.., there is no separate LSMW program for this.....
-
Can not see long text description of a characteristics in portal
Hi experts,
I designed two queries via Query designer and published them to portal but I can not see the the long text description of "Name" attribute belongs to 0BPARTNER characteristics.
One of the queries shows only the last name of partner in portal while it is showing full name and last name in Bex Analyzer. The other query shows only the key value in both portal and Bex Analyzer.
I want to see long text description in both queries.
For an additional information, I'm extracting data from CRM 5.00 to BW 7.00
What will be the reason for this and how can I solve it?
Can anyone help me for this issue, it's a kind of emergency situation.Hi,
we have the same problem.
We want to change <b>only</b> in the screen variable the hierarchy text (from default to long\medium text) but even if there's a possibility to do this, really it doesn't happen anything - it' s possible when you start query, in the selection screen inside every the variable there's a command "User Settings" in which manage what you want to see (I put display custom, as text, medium text).
I try to do this also in query analizer, selecting variable (hierarchy) and enter in this (user setting), changing in display custom as text - medium text, but even if I save this settings, really doesn't happen anything.
It seems the system isn't sensitive to this selection...
By now, if someone has an answer, please write us!
Thanks in advance,
Alessandra Mirone -
Issue in maintaining Long Text in Message Class
Hi
For Note implementation 1413492, I have to maintain long text, when I click on Long Text , I get a pop-up Create Modification , with 2 options for Template Type (1) Original Text (2) Template (With Headers)
Can anyone let me know how to proceed further, whatever name I give for the Modification, I am getting Error Message saying 'Enhancement Name violates the namespace convention (Note 989653)', I have tried unchecking the Self Explanatory check box as well, but still I get the same error message.
Below is the Long text I have to maintain class FR, message number 533
7. Create new error messages in the message class FR:
Call transaction SE91, enter the message class FR, and choose "Display" and
then "Change". Enter the following new messages:
Message Message short text:
533 Error while calling RFC destination
534 Contract Accounts Receivable and Payable is not installed in the
system
535 For company code & there were & data records transferred from
FI-CA
536 Error during data transfer from FI-CA for company code &; error
text:
Set the "Self-explanat'y" indicator for messages 535 and 536.
Enter a long text for messages 533 and 534:
Long text FR 533:
CAUSE
An error occurred when testing the RFC connection to Contract Accounts
Receivable and Payable. The message text is:
&V1&&V2&&V3&
SYS_ADMIN
Check the settings of the RFC destination &V4&.Hi Ryan,
Extract from note 989653;
Note:
The name of the modification object must start with:
o 'Z'/'Y', or
o the customer namespace available in the system (TRNSPACE table).
Otherwise, message 645 will appear because the SAP namespace is not
permitted.
My suggestion would be to start the name with a Z.
Regards,
Nick -
How to download and upload long text for project, WBS , Network,
Hi all,
I have two isssues.
1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
BAPI_PROJECTDEF_GETDETAIL
BAPI_PROJECT_GETINFO
BAPI_NETWORK_GETINFO
BAPI_BUS2054_GETDATA
I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
2) I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
All help will be greatly appreciated and rewarded.
Thanks & Regards,
Rajanidhi Rajasekeran.I don't think there is any BAPI to do it.
We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
if not e_activity[] is initial.
select aaufnr aaufpl baplzl bobjnr b~vornr
into corresponding fields of table t_longtext
from afko
as a
left join afvc
as b
on aaufpl = baufpl
for all entries in e_activity
where a~aufnr = e_activity-network
and a~aufnr is not null.
endif.
txtname = wa_longtext-objnr.
replace c_nv in txtname with sy-mandt. -
Hi Guys,
I have to bring long text (7000 characters long) from table STXL into BI. I went through the discussions on the forum without much help. One option is to split the text into multiple infoobjects and joining them in analyzer. This option is not practically possible for me because of the text length.
I enhanced an existing datasource with a new filed and tried to populate the field from the text field in STXL table. The challenge now is to bring the field into BI. Someone mentioned in the forum that we can write couple of function modules (READ_TEXT and GUI_DOWNLOAD) to extract the text into BI as a file and write another program in BI and load the text into documents of infoobject. Is this the only option available?
Can you please send some sample code on ECC and BI for this purpose? Also, If I want to display the document in excel analyzer, will it be available as a separate column in the report?
Please help.
Thanks in advance.Hi,
This type of requirement was there in my previous project which was achieved using FM. Follwoing doc might be useful for you in writing FM:-
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
Regards,
Prakash -
(How) Can I include Long Texts in Reports or Queries?
Hello,
We need to send our vendors their contract details including some of the long texts data.
So far we were sending excel spreadsheets to the vendors without the long texts. Is there some way we can start sending the spreadsheets to our vendors adding few extra columns for the long texts. Some of the vendors contracts have 20+ lines of data in the long texts.
Are there any better or easier ways than excel spreadsheets?
Is any kind of query development possible where long texts can be included?
Appreciate your time and answers.
Fred.Sorry friends for not communicating my requirement clearly. I am aware of the functions to retrieve the long texts data for purchase orders/contracts.
I need some help in downloading the data to excel sheets. I believe there are restrictions in the number of characters that can be accomodated in a excel column, so I am not sure if very long texts (say >500 lines & 72 chars each) can be wrapped around within a excel column.
Also can a query be written to extract long texts, or can long texts, >500 lines & 72 chars each, be displayed using ALVs?
Thanks a lot for your time. Appreciate your inputs.
Below is a sample of how the report needs to look.
Contract Number Vendor Long Text1 Long Text2
0000000001 ABC Firm Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC'
Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC'
Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC'
Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'01ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC' Text ID'02ABC'
0000000002 XYZ Firm Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ'
Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ'
Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ'
Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'01XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ' Text ID'02XYZ' -
Problem loading hierarchy long text. Item text only displays 45 characters
Hi,
When loading the Financial Statement hierarchy from ECC to BI I am only getting a 45 character long text for the nodes. This text seems to correspond to the "Item" text seen in transaction fse3 in ECC. However, the text that I need to have is the (concatenated) long text enterer in the multiple fields under either "End of Group" or "Start of Group" (under Item: Display Texts in fse3).
Does anyone know if it is possible to extract this information and how to go about when doing this?
Points will be rewarded for help.
Regards
NilsHello Vânia,
>> fac586, Thank you very much for your help ….
Just so you know, fac586 is called Paul :).
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Author of Oracle Application Express 3.2 – The Essentials and More -
How to upload and download Long text for WBS, Project, Network
Hi all,
I have two isssues.
1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
BAPI_PROJECTDEF_GETDETAIL
BAPI_PROJECT_GETINFO
BAPI_NETWORK_GETINFO
BAPI_BUS2054_GETDATA
I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
2) I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
All help will be greatly appreciated and rewarded.
Thanks & Regards,
Rajanidhi Rajasekeran.One thread in the correct forum is good enough, no need to double post across ABAP forums. Thanks.
Regards,
Rich Heilman -
How can i get order long text?
Hi Experts
We are developing one order report and trying to get order long text, but we search several tables and we didn't fine which table is the right table to save long text, anyone can tell me how to achieve long text for order. Thanks in advance.
Best regards
georgeHi George,
STXL: Long Text (Header - English)
Extract all records where XTDOBJECT='AUFK' and XTDID='KOPF' and XTDSPRAS in ('E')
XTDNAME is MANDT+AUFNR
STXL: Long Text (Operations- English)
Extract all records where XTDOBJECT='AUFK' and XTDID='AVOT' and XTDSPRAS in ('E')
XTDNAME is MANDTAUFPLAPLZL
STXL: Long Text (Components- English)
Extract all records where XTDOBJECT='AUFK' and XTDID='MATK' and XTDSPRAS in ('E')
XTDNAME is MANDTRSNUMRSPOS
This may help you
Babu
Maybe you are looking for
-
I recently went to open my windows live mail,which normally opens because it has my login and password saved. Now it opens in firefox and I have to retype my login and password everytime I open my mail. I would like when I open my mail not to have to
-
Data source migration in parallel to CRM server upgradation
Hi Experts, We are working on BI 7.0 system which pulls data from CRM 2004. Recently we upgraded BI environment from BW3.5 (to BI.70 SP -16). Now we are re-modeling the existing BI design due to performance issues & to use BI functionalities. We woul
-
Email in CRM but not showing as tracked in Outlook
Hi Do others come across this where people try and track an email in Outlook but find it's already in crm but the 'Track in CRM' button and icon in Outlook do not show this fact. Is there anything that can be done about this? Thanks
-
Counting character in a string
I'm trying to count how many times a characters occurs in a string, and I'm having a lot of trouble. This is what I have so far: note: the method call has to be public static int countOccs(char f, String s) and I know that it can be done using only l
-
Please all, My iphone is working fine in every thing exept any one tries to give me a call his phone disconnects, I tried another SIM card and i faced the same problem. I tried with the show my caller ID feature ON & OFF but nothing is happning the s