Retrieving Old Long Text
Hi,
Please consider the following scenario:
I am entering long text for a text field and save it.
If I exit/cancel the screen,changes done to Long Text will be lost.
Upon saving it will save the Long Text.
Now upon saving , based on some condition i want changes done to Long Text should be lost.
Please let me know whether it is feasible, if yes how to achieve this. Any suggestions/advice will be highly appreciated.
Regards,
Akash Modi
Hi all,
I am entering Long texts for operations in standard SAP Transaction IW32.(Work Order Change)
On click of SAVE, user exit will be called, where we will check certain conditions for each operation.If condition doesn't satisfy, i have to rollback the changes done to Long Text for that operation, keeping the other changes done to Order intact.
Please let me know if any more clarification is required.
Akash
Similar Messages
-
How to retrieve the long texts from purchase Info record (ME13)
Hi,
How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13). I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
Thanks.Hello,
Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
Cheers ! -
How to compare New and Old long text at PO Line Item
Hi all,
I am Using user exit "EXIT_SAPMM06E_013". In user exit i am trying to compare the old and new values of PO maintain at item level. All this values, i am getting in X and Y structures in user exit
For long text there is no Such structures. When i am trying to fetch the details from FM Read_Text to fetch this values, Every time i am getting old values. Since new values has not yet been store to database.
Is there any way through which i can compare the old and new values of item Long text.
Thanks in advance,
Regards,
Vikram Singh.Hi Vikram,
Iam not sure though, did you chekced EXIT_SAPMM06E_022 if it helps you in anyway.
Regards,
Swarna Munukoti -
Function to retrieve long text in FI document for payment file
Hi
Is there a function i could use to retrieve the long text in the invoice document for the payment reference field in the payment file?
Would appreciate your urgetn advice.
Thanks.Possiblity could be that you have passed the wrong object name id or any parameters.
See below the similar code.
If you want to know the correct tdobject and correct tdname combinations go to table STXH and under name give the document number ie 1900000000 ie docno then you will come to know the correct tdname and object and tdid from which you can use the read_text function module
DATA : tdobject TYPE thead-tdobject,
tdname TYPE thead-tdname,
tdid TYPE thead-tdid,
tdspras TYPE thead-tdspras.
DATA : lines TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
wa_lines TYPE tline.
CONCATENATE bkpf-bukrs bkpf-belnr bkpf-gjahr INTO tdname.
tdobject = 'BELEG'.
tdid = '0005'.
tdspras = sy-langu.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = tdid
language = tdspras
name = tdname
object = tdobject
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
READ TABLE lines INTO wa_lines INDEX 1.
IF sy-subrc = 0.
write at 51(10) wa_lines-tdline.
ENDIF.
ENDIF.
Regards
Gopi -
How to retrieve long text data
Dear all,
How can i retrieve the long text for document line item
Gone thru this in forum..but unable to get the correct one
some say to use READ_TEXT FM
Pls advise steps
Rgds
NareshHi,
Please find here with link for bringing the long text.
http://scn.sap.com/thread/497205
Regards,
Ramana -
actually the requirement is given below , am stuck at fetching long text ......can anybody help me in retrieving the long text(suppose two or three lines) into single variable and passing it to read_text function module as per the condition
Plz reply ASAP............
i need to combine data from two tables n also add long text field in to the final internal table.
requirement is
IF QPMK- LTEXTKZ = u2018Xu2019 then Fetch the Long Text as
Language = P_SPARCHE,
TEXT ID = u2018QPMTu2019
Text Object = u2018QPMERKALu2019
Text Name = QPMK- MANDT + QPMK-ZAEHLER + QPMK-MKMNR + QPMK-VERSION + Language (single character)
Combine Values in a single internal table such that the table has only QPMK-MKMNR, QPMK-SORTFELD, QPMK-DUMMY20, QPMT-KURZTEXT, QPMT-LTEXTKZ, Long Texthi abap_sap leaner,
try to avoid using + for combining multiple fields, instead use concatenate and then pass to text name,
then u have to loop line table(which contain long text) and store each value from the loop in a variable of length 1500.
pls refer the following,
hd_name = p_ebeln.
call function 'READ_TEXT'
exporting
client = sy-mandt
id = 'A01'
language = sy-langu
name = hd_name
object = 'EKKO'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
importing
header = header
tables
lines = hd_lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8
here u have to loop hd_lines and store hd_lines-tdline values in a variable for every time the loop executes....
finally the variable contains long text..
hope it will help...
regards.. -
Hi,
In my PO history report, im displaying new and changed values of various fields (like net amount, quantity etc.) by taking data from CDPOS. Now the problem is that for PO item long text value (both new and changed) CDPOS is not showing the New, Old values. For Long Text it is just showing the details about insert or update. Can anyone let me know how to retrieve old value of a PO item long text?
Is there any other log table that will contain the history data.
Regards,
HKMHi Sathish,
I can capture the long text using Read_Text fm. But my query is that how can i capture the <b>old</b> Long Text value. Is there any table which has the old long text value of a PO item.
Regards,
hkm -
(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' -
Reading Infotype 0028 Long Text
Hi Experts,
I have a BADI Implementation which is dealing with Infotype 0028 (Internal Medicine Service).
My problem is that, at the time my badi implementation is triggered, long text is not yet saved to cluster table PCL1. For this reason, my statement "IMPORT ptext FROM DATABASE pcl1(tx) ID lwa_key" wasn't able to retrieve the long text of infotype 0028. I thought that if I would be able read from the buffer/memory of long text, I can get the long text value even if it is not yet saved in the cluster table.
Is there a way that I could read the memory/buffer of long text?
If you know other approach on how to solve this problem, kindly advice me.
Thanks in advance guys.
FerdyWell, when i give it a little thought here it goes
1. Is there no parameter in BADI which is storing this long text?
2.If not then one of the way is by use of field symbol ,first you need to find it out in which
variable the long text is stored and then you need to assign the memory of the variable
to your field symbol memory
The above two are just some simple feasible ideas which can be worked on
Regards
Bhanu -
How to get material long text at user exit EXIT_SAPLMGMU_001
Dear All,
I need to pass some material details from SAP to legacy system once user create / edit a material. I have no problems with fields like material no, type, group etc except the long text, I can't find the long text field from the user exit (EXIT_SAPLMGMU_001).
When I use READ_TEXT function, also can't retrieve the long text because it haven't save to STXH/STXL table yet, I guess.
Please help
TQhello Chong ,
if it havent saved yet , then try to pass document no as '$0000000001'( in most of cases it will work but i'm not sure abt ur transaction ), it should work..
regards
Prabhu -
Hi,
Please help.
I had to change long text message which I did using SE91 transaction. A popup window appeared asking for modification name. I gave the message class name as modification name. The long text message is maintained in EN lang.
I have to translate this message into DE which I tried to do with SE63 transaction
(Long Text->Other Documentation-> Message Documentation) . But the changes done in SE91 does not appear in SE63 screen. The old long text message (both source and target )appears with some Docu comments .
But when I execute the program by logging in EN lang, the long text message appears with the recent changes . But in DE the long text message is blanks.
Please do let me know why discrepancy exists in the long text message shown in SE91 and SE63 transaction. Please advise what must be done to make the changes appear in SE63 transaction and Text translation.
Thank You.hi,
If you are looking for the translations for the text-symbols and selection texts used in your program, you need not require to use Transaction SE63. Instead you can do this in SE38 (or SE80)itself.
For getting the translations in DE version, you need to maintain the corresponding DE version of text-symbols and selection texts in the EN version of the program.
for example, to maintain text elements in both versions, you can follow the steps mentioned below:
STEP1: in EN version, from the ABAP editor, GOTO->SELECTION TEXTS->TEXT ELEMENTS navigating from the menu bar.
STEP2: Select a particular text element and navigate as GOTO->TRANSLATION
STEP3: Now you get a popup, asking for source language and target language
STEP4: Choose DE as target lang and EN as source lang; press enter
STEP5: Now you are in a new screen, where you need to enter the DE text just below the EN Text appears
STEP6: Save and comeback; activate the program
STEP7: login in DE lang and see the difference
You can follow the above steps, for any selection texts, list headings or
text symbols in the program
regards,
keerthi -
Hi,
Is it possible to retrieve the long text in STXH and STXL by SQL instead of READ_TEXT FM?? How can i covert the HEX text back to normal text??
Regards,
KitHi,
1. Only the way to Read long text is use the function module READ_TEXT for which u need to pass TEXTOBJECT, TEXTID, TEXTLANGUAGE AND ONEMORE(I FORGET).
Because the STXL and STXH these tables are cluster tables in which data stored in LRAW field which is in RAW format which u can not understand and our normal SQL can also.
2. so u can read most of cluster tables by Function modules only.
3. u can modify or saved by save_text -
After restoring my iphone to factory settings is there a way to retrieve old text messages?
after restoring my iphone to factory settings is there a way to retrieve old text messages?
no there isnt any way unless you created a back up in icloud or itunes
-
Is there any way to access my old my Verizon account to retrieve old text messages from my own old account from 8 months ago? I am getting a divorce and I need info off of that account for my hearing to prove what he did.
What do you mean by "when I brought the messages up back in March"?
Were the messages on your phone? Simply because messages are on your phone does not mean they are still on Verizon's servers. You use internal phone memory to store messages on your phone. The messages do not stay on Verizon's servers until you delete them from your phone.
On the other hand, if you still have your phone and have not reset it since you stopped using it, the texts may still be on your phone. Good luck. -
How to retrieve long text for a particular record
Hi,
I've been looking through some of the numerous posts relating to reading long texts but I can't seem to find out how to retrieve the necessary parameters for READ_TEXT for a particular record without using the GUI.
Is there a way in ABAP that one could retrieve the parameters that are required to execute READ_TEXT just from one of the fields in the base table. eg. I would like to bring back a list of all materials with their associated long texts. I can run a query on MARA for example and retrieve the necessary material information but I would like to know how I could get the necessary information, for each row in my results, to pass to READ_TEXT.
What information would I need to perform the above, if at all possible?
Thanks in advance,
CharlesYou can check out SE75. Here is where the objects and ids are listed/maintained. There is one trick to find the object/id. That is, create the text in the specific transaction. If you are talking about header text for a sales orders, go to VA02 and enter some text and save. Now go to SE16, enter STXH as the table name. On the selection screen for STXH, enter your user name for "created by" and enter the date. Execute. The record that you see is probably the text that you just created. You can see the object, the id, and even how the name is built. In this case, it would be sales order number.
Sometimes where you enter the text, there is a little "scroll" icon under the text editor, clicking that will tell you the object and id. In some cases, this functionality is not there.
Regards,
Rich Heilman
Maybe you are looking for
-
Itunes 7.5 doesn't recognize by iPod nano (2nd gen)
After upgrading to iTunes 7.5, my Macs won't recognize the presence of my iPod nano. The iPod knows its connected, because the battery is charging, but iTunes doesn't know it's there and so can't sync. Any ideas?
-
XSD schema to xml file generation using C#
Hi fellow developers, I need small help with my current scenario. I have 2 xsd schemas one is input and other is output. Now my requirement is based on those xsd template or structure, i need to write a C# code that takes the 1 xsd template as input
-
I wanted to see if CS3 would run on my new notebook Core Duo 2 with Vista Home Premium? Min requirements say yes. I currently have DW MX on it as well as Expression Web.(I liked the way EW handled CSS but the crashes in the middle of a code session i
-
hi am trying to reset my security questions and i fallowed all the stpes but there is no option to rest the securty questions...what can i do? please help thanks
-
Setting up color space between Aperture, Photoshop and my Epson 3880
Hi. I use Aperture to do quick fixes and Photoshop for more complex edits and printing. I have setup my export preference in Aperture to the external editor as 8 bit ProPhoto RGB and in Photoshop my color space as Prophoto RGB. I use mainly Nikon RAW