Long Text into BI
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
Similar Messages
-
How to get the long text into text area
Hi,
save_text is working fine .
Now I want to display the text in text area .
am using read_text fm for this and data is coming into the internal table of the function module.
how shd I display that long text into text area and that text shld appear has display mode only and how shd I make all other fields in my subscreen as display mode.
Pls guide me its urgent.
thanks,
krishnaHai.
check this.
Long Texts are stored in tables
STXH - header
STXL - details.
if you want to read the texts you can use Fun Module READ_TEXT
Any Application document Header and Item Long texts are stored in STXH table with the 4 parameters OBJECT,ID,NAME and LANG
These texts are fetched from database using READ_TEXT fun module by passing the above 4 parameters.
Double click on the text, from the text editor menu GOTO-> HEDAER
you will find the all above 4 parameters
so accordingly you have to pass to the fun module READ_TEXT to fetch the texts.
example:
Re: upload longtext from excel file
REPORT zupload_excel_to_itab.
TYPE-POOLS: truxs.
PARAMETERS: p_file TYPE rlgrap-filename.
TYPES: BEGIN OF t_datatab,
col1(30) TYPE c,
col2(30) TYPE c,
col3(30) TYPE c,
END OF t_datatab.
DATA: it_datatab type standard table of t_datatab,
wa_datatab type t_datatab.
DATA: it_raw TYPE truxs_t_text_data.
At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
*START-OF-SELECTION.
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
TABLES
i_tab_converted_data = it_datatab[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 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.
END-OF-SELECTION.
END-OF-SELECTION.
LOOP AT it_datatab INTO wa_datatab.
WRITE:/ wa_datatab-col1,
wa_datatab-col2,
wa_datatab-col3.
ENDLOOP.
refards.
sowjanya.b -
Ask split long text into two line into same cell for ALV
Dear All,
Is it possible split long text into two line into same cell for ALV display data?
Regards,
Luke
Moderator message: please search for information before asking.
Edited by: Thomas Zloch on Feb 24, 2011 10:12 AMKeep options: Select the paragraph, then CtrlAltK (Mac: CmdOptK, I
think).
If you want the paragraphs in pairs, create two paragraph styles. Style
A has keep options set to start on a new page, and also, its Next Style
is style B.
Style B has no keep options, but it's Next Style is Style A.
Select all the text.
From the flyout menu of the paragraph styles palette, apply Style A
"then next style."
Now all paragraphs will be alternating -- style A, style B, style A, etc.
Now do what I wrote initially, and you'll have pairs of paragraph in
separate text frames. -
Get the long text into BADI from text editor
hi all,
I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
Can anybody help how can i get the long text to the BADI.
Regards,
MadhaviHi
Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
IF_LONGTEXTS_MM~GET_TEXTOBJECT
IF_LONGTEXTS_MM~GET_TYPES
IF_LONGTEXTS_MM~GET_TEXT
IF_LONGTEXTS_MM~SET_TEXT
IF_LONGTEXTS_MM~ADOPT_TEXT
IF_LONGTEXTS_MM~DELETE_TEXT
IF_LONGTEXTS_MM~EDIT_TEXT
Regards
Eduardo -
Need to pull LONG TEXT into Sales Invoice
Hi All,
We have a Projects and we maintain some long text for these WBSes of projects. Now we need to move them to Invoices. Is there any table where in we can store these texts and then we pull in Invoice ? We can also move to Debot Memo request and then to Invoice. How do I store TEXT as its a structure where in it gets stored.
rgds..AmeetHi,
Following are some of the tables (PRTX, PSTX, PSTXB, PSTXH) where you can find the references for PS Text in WBS Elements.
Regards
Sreekanth -
How to get a long text into the SapScript
Hi.
I need to read text from header field from ME21N. I use to this READ_TEXT function module, which is called from SapScript but the problem is, that this function returns me just about 80 chars and trim rest of string.
First idea was use loop in form, but is impossible, how to solve this problem.
ThanksProblem was solved :
INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01 LANGUAGE &EKKO-SPRAS&
Edited by: Daniel Duras on Apr 23, 2008 10:51 PM -
Maintenance order header long text copy into PR header text
Dear all,
Can anyone please let me know how I can copy the Maintenance order header long text into the PR header text of service or component PR.
Thanks in advance.
Regards,
Vineet
Edited by: vineet sharma on Oct 19, 2011 1:23 AMHi
Please check this link Re: Copy text from PM order to Purchase Requisition
regards
pushpa -
How to display long text in smartforms
Hi experts,
Iam trying to display long text into smartforms.I got the long text into ITAB frm database
in the abap program.In the form interface how to define the variable?In the long text i have 6 lines.
points guaranteed
cheers
kakiKaki,
Delcare a table and getting the LONG TEXT is not the right way of doing this.
You create a TEXT object and change the TYPE to INCLUDE TEXT. Once that is done all you have to do specify the parameters of your long text - TEXT ID, TEXT OBJECT and TEXT NAME. These are the same parameters that you use for READ_TEXT funciton. You don't have to fetch the text manually, it happens automatically.
Make sure this is a part of the main window as this might run into multiple pages.
Regards,
Ravi
Note : Please reward the posts that help you. -
Get the long text from Text Editor
Hi,
I am using text editor to enter the long text, after entering the text in the text editor
when press the save button i am getting the long text into the internal table . this is working fine till here.
But when press SAVE button , i want the text into the internal table and the text editor to be closed.
but here i am not able to get the data into internal table as it is again creating text editor .
Can anyboby help me .Hi,
Refresh the table. -
PO LONG TEXT of Length 400+ char
Hello ABAPers,
I have a case where i want to update the PO_Long_Text field in MM02. The Text Editor in the Po Long Text screen can take only 72 char per line and an internal tables variable to which I will import my actual long text of approx 400 char.Since a CHAR variable can take max of 256 chars only,I will have to break the Long text into 2 parts. How can I achieve this? Any idea/hint?
Regards,
Bhavin P ShahHello,
Unfortunately, there is no possibility to change the length to more than 60. This is because all interfaces are based on 60 characters and the storage on the database is 60. Please refer to the attached SAP notes :
545923 FAQ: Technical limits/customer namespace/p
540868 Technical limits for characteristics
Best Regards,
Des -
Recovery of Long Texts with LSMW in CRM
Hi all,
<b>How can I recovered long texts in LSMW, texts with more than 132 characters and with a lot of lines ?</b>
I have to recovered Business Partners in CRM with technical IDOC (mesage type CRM_XIF_PARTNER_SAVE), and when the texts are recovered (structure E101BUS_EI_LONGTEXT), I have only one line (the first or the last).
Thanks for help.Hi,
Yes, I know that I can make a specific program to load the long texts with the function "SAVE_TEXT", but I want to know how to load long texts into LSMW. For example, I have the same problems when I used the standard program /SAPDMC/SAP_LSMW_IMPORT_TEXTS : it will only load one line with 132 characters. So, WHY ? and how to load more than one line ?
Thanks -
Loading Long text longer than 132.
Hi,
I am trying to load Material Master long text (Basic data, Purchase order Text) . The LSMW (a standard batch / direct input) for Long text only allows 132 chars and my long text is longer than 132?
What can i use to load the long text?
Regards,
K.Hi
Within the program, structure TLINE loads the text.
This structure consists to fields TDFORMAT and TDLINE.
The text exists in field TLINE-TDLINE.
Whereever, we need to give extended text we can use '=' symbol for TDFORMAT. Just like in SAP Script Form(Extended Line).
Alternatively you can use FM: SAVE_TEXT for loading the texts.
Insert a convert routine to split the text in several lines.
You can use the following function module to split your long text into multiple lines.
QADB_DOCU_CONVERT_TO_SAPSCRIPT
You can refer this link for further information
Re: insert it into the next line in internal table
Thanks. -
Hi,
We are trying to add GL long text into FB50 transaction screen. None of
the existing screen varaints have this field. The structure ACGL_ITEM
does not have the field TXT50 which is the corresponding table field
for GL long text.
What is the best way to get GL long text in FB50 transaction?. Is it
possible to add from the exisitng screen variants/ transaction variants?Please help.
Regards,
Jainy LazarHi, Jainy
How about trying follow step?
1.Make the Customer Field for G/L Long Text's view.
: You make the setting in Customizing for Financial Accounting (New) under Financial Accounting Global Settings (New) -> Ledgers -> Fields -> Customer Fields
2.Assign your customer fields to a screen variant.
: You make the setting in Customizing for Financial Accounting (New) under General Ledger Accounting (New) -> Business Transactions -> G/L Account Posting - Enjoy -> Include Customer Fields in Enjoy Transactions
I have never been trying over method, but i guess it's available.
Regards,
Sang Lim, Lee -
Long Text to Short Text connversion in IW31/IW32
Hi Experts,
I am working on a requirement where I need to overwrite the short text for material description with the long text while creating the maintenance order in IW31/IW32.
Initially I thought of handling this in a implementation of BADI IWO1_PREQ_BADI in method DECISION_COLL_PREQ.
But this this method is gettign triggered when the paurchasing data is being entered and even before the long text is entered.
Once the order is ready to be saved, and once the user clicks on save I want to write this conversion where I can copy the long text into short text overwriting the material description in component tab of IW31/IW32.
Please check and suggest the BADI/userexits for thsi purpose.
Regards
KishoreHi Kishore,
Go to transaction SE24, class name CL_EXITHANDLER, go to methods, double click on method GET_INSTANCE.
Set a break point at
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
CASE sy-subrc.
Now run trasaction IW31, press f8 till you reach bfore save button, enter the long text and all, now press the save buttton, control will break if in case any BADi is there(I think there is), exit name and instance will give you the BADI details.
I think this is one of the simplest way.
Thanks and Regards,
Antony Thomas
Edited by: Antony Thomas on Aug 10, 2010 12:13 PM -
Cannot upload QM Catalog long text
All,
Can you help with entering QM catalog code group long text into the Production System?
It works correctly in the Test System but I cannot edit the catalog using QS41 in Production (basis will not grant QS41 edit permission for client).
I understand that long texts cannot be transported but have not found the correct method to enter, import or upload the texts.
My question is similar to Long Text not Trasporting in QS41 but I'm not a programmer and cannot create new ABAP in SAP.
Can you assist or suggest a guide/tutorial to use?
Thank you! Any guidance and help would be greatly appreciated.
RannyTo resolve this problem you have to work with ABAPer. Please refer following link, if it would help you..
[Link1|http://www.sapfans.com/forums/viewtopic.php?f=27&t=246646]
Thanks!!!
Maybe you are looking for
-
When I try to update apps on my iPad, it asks me for my mothers password and displays her apple ID. How do I change it to ask for my apple id and password??? I am signed into the store and iCloud with my apple id. I am not signed into ITunes, the
-
MacBook hard drive transform into an external hard drive problem
My macbook pro early 2008 just died. The mother circuit fried and well its not usuable anymore and the repair for it are like 900$. Having alot of data in my macbook hard drive , i ask the guy that work at the genius bar to take out of macbook hard d
-
Selection routine in info package
Hi gurus, I need to load last month's data in to BW if I am executing the IP in this month. that is if Iam executing in Feb 2009 then it should load Jan 2009, and if Iam executing on JAn 2009 then it should pick data for Dec 2008, For this logic I ha
-
Can't login to SSO Server ... Please help!!!
Hi, When i try to login to the SSO Server, the page does not start : In the browser, http://host:7777/pls/orasso/orasso.home I click LOGIN Then i am redirect to the page http://stagiaire:7777/pls/orasso/orasso.wwsso_app_admin.ls_login?site2pstoretoke
-
Why am I unable to use sync ringtones to the iPhone through iTunes