How to read the long text in Transaction Code : VA02 at runtime??????
Hi,
I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
If any body has soluntion, please provide me. I would really be greatfull if any body provide the solution.
Deepak Kumar
E-Mail: [email protected]
Hi Sudheer,
Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
Couuld you send me some sample code? I would appreciate if you reply at the earliest.
Deepak Kumar.
Similar Messages
-
Error while reading the Long text Using READ_TEXT
Hi friends,
Right now I am working with Smartforms.While I am reading the Long text of the material using function module READ_TEXT I am getting the following error if the text is not there.
OUT_PURCH_PO ID GRUN language EN not found.
I should not get this error Instead I should get the blank value.
OUT_PURCH_PO - my material name.
Following is my code.
IF WA_EKPO-KNTTP = 'F' AND WA_MTART-MTART = 'ZMSC'.
READ TABLE IT_SGTXT INTO WA_SGTXT WITH KEY MATNR = WA_EKPO-MATNR.
WA_EKPO-TXZ01 = WA_SGTXT-SGTXT.
NAME = WA_EKPO-MATNR.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = ID
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = OBJECT
IMPORTING
HEADER = THEAD
TABLES
LINES = LTEXT.Hi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
TABLES
lines = ltext
EXCEPTIONS " --> have this
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.
ENDIF.
Edited by: Avinash Kodarapu on Jun 5, 2009 7:32 PM -
How to read the whole text file lines using FTP adapter
Hi all,
How to read the whole text file lines when error occured middle of the text file reading.
after it is not reading the remaining lines . how to read the whole text file using FTP adapter
pls can you help meYes there is you need to use the uniqueMessageSeparator property. Have a look at the following link for its implementation.
http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIACDAAC
cheers
James -
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 add the long text in Production order through FM
Hi,
Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
One option is after creation of Production order, through BDC(calling CO02 and update the long text) we can update the long text and client doesn't want this option.
Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
If any one of you came across this requirement, pl share with me how you addressed it.
Regards
A.SureshbabuHi,
The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
Order No.
Line - 1
Line - 2
Line - 3
Line - 4
Line - 5
12345
txt - 1
txt - 2
txt - 3
txt - 4
txt - 5
67890
txt - a
txt - b
txt - c
txt - d
txt - e
Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
Regards,
Vivek -
How to make the LONG TEXT as mandatory
Hi,
In one tansaction, I need to make the LONG TEXT as mandatory.
or
I need to raise an Error message if the long text is empty.
ThanksI want to make the long text mandatory in the transaction F-66.
In this, long text field (text box) is not displaying directly for typing.
We need to click on the button LONG TEXT, then text box is opening for typing.
I need to make this as mandatory.
Thanks -
How to read the method and put that code in 1 internal table
Hi,
Actually in the normal ABAP, if we want to read the report, then we will write read report statement.
If we want to read method then this statement will not work.
So, to read the method and put that code in 1 internal table , which statement we need to write?
Regards,
RadhikaHi Naimesh,
Thanks for your reply.
As, i am not aware of ABAP Objects i am having some issues:
Actually that is working for some methods in some classes.
Here 1 issue is there:
In se24 1 method is there in 1 class.
Even by using that FM in SE37 i am able to get the program name by giving class and method name,
but while using that FM in the program i am not able to get that program name.
so, i am unable to read the source code of the program?
1 example here:
Class name is CL_GUI_FRONTEND_SERVICES.
in this class, methods like FILE_EXIST , FILE_GET_SIZE, etc are there.
By giving the class name and method name i am able to get the program name also,
but while using that FM in the program i am not able to get that program name.
so, i am unable to read the source code of the program?
Here is my code:
REPORT Z16059_SCAN_METHOD.
DATA: BEGIN OF I_PROGRAM OCCURS 0,
LINE(256) TYPE C,
END OF I_PROGRAM.
DATA METHOD TYPE PROGRAM.
DATA: BEGIN OF I_STRUCTURE,
CLS_NAME(30) TYPE C,
METH_NAME(61) TYPE C,
END OF I_STRUCTURE.
I_STRUCTURE-CLS_NAME = 'CL_GUI_FRONTEND_SERVICES'.
I_STRUCTURE-METH_NAME = 'CL_GUI_FRONTEND_SERVICES-FILE_EXIST'.
CALL FUNCTION 'SEO_METHOD_GET_INCLUDE_BY_NAME'
EXPORTING
MTDKEY = I_STRUCTURE
IMPORTING
PROGNAME = METHOD
EXCEPTIONS
INTERNALMETHOD_NOT_EXISTING = 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.
READ REPORT METHOD INTO I_PROGRAM.
Please help me out in this regard.
Thanks & Regards,
Radhika -
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 -
How to read notes data in FBV3 transaction code
Hi Experts,
When i go to Tcode FBV3 parked vendor invoice i have tab notes along with workflow, tax, withholding tax tabs. Notes contains item long text, my requriement is i need to get this data into my report, i have tried but i couldn't able to get the details like Text Name, Language, Text ID and Text Object to pass it to READ_TEXT function module. Kindly suggest how to read this notes data.
Regards,
SridharSorry, but this issue is not Asset Accounting.
-
How to wrap the long text in page when the item is a messageStyledText
Hi,
I have one region which is a labeledfieldRN and two items under this RN which are messageStyledText.Now, those items are mapped to two VO attributes.Both are VARCHAR2(240).
While running the page all 240 characters are appearing for these two fields and we are forced to scroll the page horizontally.
'NoWrap' is made false for these two items.
Is there any way we can wrap the data in next lines so that we need not scroll?
Please help.
Thanks,
Abhijit.You may want to play around with the "Visual length" of other fields if you have them. Maybe by shortening other fields, you can prevent having to scroll for your 240 character length field.
-Scott -
How to remove the negative stocks in transaction code MB51
hi experts,
i have this problem, when i display this material 12345 in MB51 there is a movement type 601 created in it. now when we are processing a customized program the report that was displayed does not match with the actual stocks because of this negative qty. the material document was created 3 years ago.. please help what is the procedure that i will do in order to correct the report and remove the -value in MB51.
thank you very muhc in advance.Dear Ysabella Bautista
Can you please let me know whether MB51 shows the correct quantity when compared to physical stock ?? Why I am asking is that you had indicated that in customized programme, the report was showing wrongly which may be due to some wrong coding problem.
Also on your comments "remove the -value in MB51", please note that since this TCode is a standard one, 100% guarantee that the system shows ONLY correct value. This is my opinion !!!!!!
thanks
G. Lakshmipathi -
Problem in reading the modified text from text editor
Hi all,
Im using text editor for saving the long text entered in the text editor as standard text in So10 tcode.
Here im facing an issue in reading the text from text editor. That is, when the text is entered by the user for first time, then the below method reads the text successfully. But when i do some changes in the existing text present in the text editor and try to read, then the modified text is not returned by the below method.
I use the "CALL METHOD g_editor_ftext1->get_text_as_stream" to read the text. Given below is my code.
CALL METHOD g_editor_ftext1->get_text_as_stream
IMPORTING
text = ig_text_table
is_modified = g_xthead_updkz
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
The return value of "is_modified" is always returned as 0.
Could anyone pls help how to read the modified text using the above method?Check if this works and if it works then there should be some mistake in your coding
REPORT abc.
PARAMETERS:pa1 TYPE bwart.
DATA: container TYPE REF TO cl_gui_docking_container,
editor TYPE REF TO cl_gui_textedit,
report TYPE syrepid,
mod TYPE i,
modon TYPE i.
DATA:tlines TYPE TABLE OF tdline,
wa_tlines TYPE tdline.
AT SELECTION-SCREEN OUTPUT.
report = sy-repid.
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING repid = report
dynnr = sy-dynnr
side = container->dock_at_left
extension = 1070.
CREATE OBJECT editor
EXPORTING
parent = container.
ENDIF.
wa_tlines = 'This is test before a change'.
APPEND wa_tlines TO tlines.
CALL METHOD editor->set_text_as_r3table
EXPORTING
table = tlines
EXCEPTIONS
OTHERS = 1.
CALL METHOD editor->go_to_line( 1 ).
START-OF-SELECTION.
CLEAR tlines[].
CALL METHOD editor->get_text_as_stream
EXPORTING
only_when_modified = '1'
IMPORTING
text = tlines
is_modified = modon
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF modon = 1.
WRITE 'Changed'.
ELSE.
WRITE 'Not changed'.
ENDIF.
WRITE modon. -
Display the long text in alv by using function modules
Hi all,
How to display the long text in alv by using function modules ?
Send me any sample code.
Thanks in advance
krupali.Hello KR,
Use READ_TEXT and concatenate the first lines of the text.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F01'
language = sy-langu
name = lv_name " purchase order with leading zeroes
object = 'EKKO'
TABLES
lines = t_lines
EXCEPTIONS
OTHERS = 8.
You can loop at t_lines and concatenate header in to some other field.
Best Regards,
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Aug 13, 2008 12:25 PM -
I get the long text description 0f transaction fb03
Hi Gurus,
How can I get the long text description in the information view (field <b>ZEILE</b>,
data element EENO_ZEILE) on the G/L account documet overview(transaction Fb03)?
My prob is, This field stored in a structure called
Thanks in ad.
Regds,
BalaHi,
a) Find out for which <b>table</b> this long text is linked.
b) Go to <b>TTXOB</b> table and in the field <b>TDOBJECT</b>, check whether this entry is present.
c) If present, then use FM READ_TEXT, to get the long text value.
Important parameters to be passed in READ_TEXT
a) ID
b) Language (EN??)
c) Name ( I believe in this case it would be ZEILE)
d) Object (TTXOB-TDOBJECT value)
Regards,
Subramanian V. -
How can we update the Long texts in BP
Hi experts .
How can we maintain the long text tab in Business Partner at the time of Business partner creation using FM .This is the way I did it .
CALL FUNCTION 'INIT_TEXT'
CALL FUNCTION 'SAVE_TEXT'
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
Maybe you are looking for
-
Printing Problems since upgrading to 10.5.6
We are having problems printing since updating to 10.5.6 1. We have a HP5000 black & white printer and when we print to it straight from InDesign CS3 it will enlarge the the job. We have to make a pdf then print from Acrobat. (We are connected by App
-
Changing field position at runtime
I am running forms 6.0.8.14.1 I have a field with a when-mouse-double-click trigger. When the user double-clicks the field I want the cursor to move to a field in a different block and display it over the current field hiding it. This works fine clie
-
Content Engine transaction logs -- monitoring and analysis
At our remote sites there's a local Cisco CE511 to ease our WAN bandwidth. I have been tasked to find a method to gather CE usage for trending and troubleshooting. From my search on the internet I decided to go with the Webalizer application. I setup
-
Downloads Oracle 10.2.0.4 64 bit
Hi, I want to install Oracle 10.2.0.4 64 bit on a Windows 2003R3-64bit server. I found to downloads : http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Win
-
Forms 6i installation On linux
installed Oracle forms 6i developer on Redhat Linux AS 3.0 , but i can invoke the oracle Forms Developer only from the root and the user account which i used to install the forms developer . If i try to invoke the forms developer from a different use