Read Header Text From VF03 Transaction
Hi Frds,
I want to Read Header Text From VF03 Transaction
Read Transport Number and Transport Date From Vf03 Transaction.
Guide Me Briefly
How to pass the varaibles to the function Module
Regards,
Kabil
hi Kabil ,
Your issue completely accepted just keep in mind
1) if you have to read both text you have to use read_text 2 times
2) in that for first read_text
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0002'
LANGUAGE = SY-LANGU
NAME = ' ' "" YOUR VARIABLE THAT CONTAINS Invoices number
OBJECT = 'VBRK'
TABLES
LINES = TLINE
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
is ok for Header note 1 .(means first text ) but for second text your ID is change other thing is same .
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0013'
LANGUAGE = SY-LANGU
NAME = ' ' "" YOUR VARIABLE THAT CONTAINS Invoices number
OBJECT = 'VBRK'
TABLES
LINES = TLINE
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope this will help you
Thanking You,
shrikant padwale.
Similar Messages
-
How to read header text from VF03 into smartfrom
Hi all,
i want to print header text from vf03 in smartforms
byeHi,
Tcode VF03 enter Billing Doc no -
>goto header-----> select header texts
When you get the values Textname, text id, textobject to the smartform.
call the FM read_text in the programing lines to get the long text in the internal table. Another way to retrieve the long text is to use INCLUDE but for your requirement is better to uses READ_TEXT function module.
Once you get the data in the internal table.
Create table and loop the long text internal table. Now in the table when create a text node, keep a condition on the text node in the conditions column that when sy-tabix = 3. Which means you are skipping two lines (Administrative data).
Procedure:
1. Right click > create-> programming lines.
2. In the Input parameters pass TEXT NAME, TEXT ID, Text Object and Interanal table(itab) and In output paramaeters the Internal table (itab).
3. call function Read_text and pass the values.
4. create a table for Itab.
5. create a text node.
6. Keep a condition on the text node sy-tabix = 3 in the condition tab of the text node.
7. &itab-line&
<b>Check this link for sample program</b>
long text in smartform
Regards,
Maha -
Hi experts,
I have a requirement of getting the Header note from VF03 for a specific document and extract it to our BI System. What is the best function module to use to get that Header text and what database table to where i can see those header text that the user input for a document?
Please help......
Thanks,
nipsHi,
fetch the texts using the fm READ_TEXT, they header details are stored in the d/b table STXH,
the parameters that are to be passed to the function module can be obtained by double clicking
on the text then follow the menu path Goto VF03>, header> texts click on the text
and use Call log icon, which willl show u the Object , ID details of text
Regards
Kiran Sure -
Read header text from vf01 and print in script main window
Hi Gurus,
I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but one line only fetched. i declare variable like data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
Regards
G.VendhanHI GURUS,
Thank u for reply i declare like
ID = '0002'.
PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
FORM READTEXT USING P_EN
P_NAME
P_OBJECT
P_ID
P_TEXT_OUTPUT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = P_ID
LANGUAGE = P_EN
NAME = P_NAME
OBJECT = P_OBJECT
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.
LOOP AT LINES.
P_TEXT_OUTPUT = LINES-TDLINE.
EXIT.
ENDLOOP.
FREE LINES. CLEAR LINES.
ENDFORM. " READTEXT -
PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP
I am writing a function to read column names in advanced data
grid. There is no operation for that and any of the properties that
I can use to read the column names.
Please suggest any way that I can get the names of columns in
the advanced data grid.
ThanksI hope to hear something from adobe folks...I am providing
more info.....
I am using QTP 9.2 and Flex 3 add-in available from Adobe.
My application has flex Advanced datagrid object and I am
trying to read column names for the datagrid.
I have contacted developers and they told me that column
names for flex advanced datagrid are stored in "Header Text"
I have tried reading "Header Text" using
GetROProperty("HeaderText") but it doesn't return anything.
I have tried the following code:
x =
Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
Text")
msgbox x
I have also tried getting value for column names using other
available properties for webtables like outerhtml, outertext, alt
etc. but I don't get any data.
Part of the problem may be because none of the above
mentioned properties are supported by Flex Advanced datagrid.
I have also tried getting child objects but I always get the
data in datagrid as values but not the column names.
My primary reason for getting column names is to write a
function to update cell in datagrid independent of application. So,
I want to pass column name as a parameter to the function and get
the corresponding columnIndex in the function by comparing the
parameter value against column names.
Thanks to all for you help... -
How can i read header text?
how can i read header text?
ie, i want to read two values that are stored as header text in purchase order.
how can i retrieve that values?Hi,
The long texts of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the
long text like TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME which is
the actual name of the long text.
As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function READ_TEXT. The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu Go To --> Header, you should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
TREC-TDSPRAS = SY-LANGU.
TREC-TDID = 'ECCS'.
TREC-TDOBJECT = 'ZECCS'.
TREC-TDNAME = Z_ACCOUNT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = TREC-TDID
LANGUAGE = TREC-TDSPRAS
NAME = TREC-TDNAME
OBJECT = TREC-TDOBJECT
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.
Details:
Language DE
Text ID F01 Header text
Text Object EKKO Purchasing doc. header texts
Regards,
Shiva Kumar -
Read header text before saving delivery during creation
Dear All,
Could you please suggest, how to read the header text before saving the delivery during creation.
Regards,I dont think you can do it before saving the delivery but you can after saving the delivery.
Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
Document number is not available in user exit "userexit_save_document_prepare" but it is available in "userexit_save_document" .
I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
good luck -
How to retrieve the item text from VL03 transaction .
How to retrieve the item text from VL03 transaction .
The requirement is like this, the item text thus retrieved should be printed in the script under the item.Jagadieshwar,
Use <b>READ_TEXT</b> function module to get the proper item text of Delivery.
<b>ID</b>: Probably you want 0002 (Item Note), but it depends which text you want Item Note, Material Sales Text ,etc..
<b>NAME</b>: CONCATENATE Delivery Doc. Number + Delivery Item Number (e.g. 0080001729000010)
<b>OBJECT</b>: VBBP
<b>
LANGUAGE</b>: sy-langu or whatever you want. -
How to read/extract text from pdf
Respected All,
I want to read/extract text from pdf. I tried using etymon but not succed.
Could anyone will guide me in this.
Thanks and regards,
Ajay.Thank you very much Abhilshit, PDFBox works for reading pdf.
Regards,
Ajay. -
Reading long text from excel file to an internal table
Hi
Can any body tell me how to read long text from excel file to an internal table.
When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
may i know which FM or what logic i need to use for this problem.
RegardsHi,
Here is an example program. It will upload an Excel file with two columns. You could also assign the Excel structure dynamically, but I wanted to keep the example simple. The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
Remember, this is just an example to help you figure out how to properly use the technique. It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
*& Report zexcel_upload_test *
REPORT zexcel_upload_test.
TYPE-POOLS: truxs.
TYPES: BEGIN OF ty_excel,
col_a(10) TYPE n,
col_b(35) TYPE c,
END OF ty_excel.
DATA: l_data_tab TYPE TABLE OF string,
l_text_data TYPE truxs_t_text_data,
l_gui_filename TYPE string,
it_excel TYPE TABLE OF ty_excel.
FIELD-SYMBOLS: <wa_excel> TYPE ty_excel.
PARAMETERS: p_file TYPE rlgrap-filename.
* Pass the file name in the correct format
l_gui_filename = p_file.
* Upload data from PC
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_gui_filename
filetype = 'ASC'
has_field_separator = 'X'
CHANGING
data_tab = l_data_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
* Convert from Excel into the appropriate itab
l_text_data[] = l_data_tab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_tab_raw_data = l_text_data
i_filename = p_file
TABLES
i_tab_converted_data = it_excel
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
LOOP AT it_excel ASSIGNING <wa_excel>.
* Do something here...
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM filename_get CHANGING p_file.
* FORM filename_get *
FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
DATA: l_in_file TYPE string,
l_filetab TYPE filetable,
wa_filetab TYPE LINE OF filetable,
l_rc TYPE i,
l_action TYPE i,
l_init_dir TYPE string.
* Set the initial directory to whatever you want it to be
l_init_dir = 'C:\'.
* Call the file open dialog without multiselect
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Load file'
default_extension = '.XLS'
default_filename = l_in_file
initial_directory = l_init_dir
multiselection = 'X'
CHANGING
file_table = l_filetab
rc = l_rc
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
REFRESH l_filetab.
ENDIF.
* Read the selected filename
READ TABLE l_filetab INTO wa_filetab INDEX 1.
IF sy-subrc = 0.
p_in_file = wa_filetab-filename.
ENDIF.
ENDFORM. " filename_get
Regards,
Jamie -
Javascrip to read Header text in pdf
Hi all
I'm new to use javascritp in PDf , i used javascript in Photoshop and illustrator i'm new to PDF
i need a script to read header text in all pages of pdf where font, fontsize must be same
Please anyone help me to develop scriptJS has no access to the type face information of text in a file. Best you
can do is get the font size by analysing the coordinates (quads) that
define each word on the page. -
User exit/BADi to change the header text in MIRO transaction
Hi all,
I am searching user exit or badi to change the header text in MIRO transaction.
My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
Thanks,
PranavTry BADI INVOICE_UPDATE.
If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
Hope this helps.
Thanks,
Balaji
Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM -
User exit/BADi to populate the header text in MIRO transaction
Hi all,
I am searching user exit or badi to populate the header text in MIRO transaction.
My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
Thanks,
Santosh
Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PMHello santosh,
I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
there is one related forum:
User exit/BADi to change the header text in MIRO transaction
Hope, it may helpful for you to proceed with some other parallel solution.
Regards,
Selva K.
Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM -
Copy header text from Purchage Requisition to Purchage order
hi,
My scenario is
i was created Purchage Requisition 10000534 and i was maintained Header Text (any thing).
Then i was created Purchase Order with reference to purchase Requisition. But in Purchase Order Header Text not copied. Purchase Requisition.( I want to copy the Header Text From Purchase Requisition to Purchase Order).
I am Using this Badi (ME-REQ-HEADER-TEXT).
Thanks
MunnaHi,
Have you done the required configuration for this issue.
SPRO --> Materials Management --> Purchasing --> Purchase Order --> Texts for Purchase Orders
Define Copying Rules for Header Texts
Define Copying Rules for Item Texts
Regards,
MT -
Header Text from VF01 into Line layout of F-30
Good day..
i Need help on this
I need to display the header text from VF01 into F-30 line layout
or
display the text field from fbl5n into line layout of F-30 Process Open Items.
thank you in advanceHi,
As per your requirement is possible through by develop the Z tcode that means Zf-30, why because you didnt post the only acounting documents in this particular Tcode
Is this ok for you means, talk with the abper they will the changes as per your reuirement
Regards,
Kanike
Maybe you are looking for
-
IPod Shuffle=Can't read or write to-Can't Sync-Can't Update-or Restore-Can'
%*#.........."What the ???"..........#*% Tell ya wot.... I Aint Happy.... (òó) ( not impressed at all ) Whats goin on here ??? I've never had a problem with my Shuffle or Itunes, everythin was fine untill I updated to 'Itunes 7' and now its dead as a
-
TS1702 How do I back up my book to my computer?
How do I back up my books from my IPad to my computer?
-
Qosmio x300 and Win7 - FN buttons dont work
I reinstalled Windows 7 and now the FN buttons dont work. I have installed the newest version of VAP, the flash card utility is running. So I have no idea. Did I forget to install something? Or is there a tool who installs all drivers for my Qosmio x
-
Hi there, I have some problems with my account. While I tried to set up a sync account, I am not able to log in. Resetting the password does not help, the first attempt at reset password fail for not receiving the email. Then requested username, this
-
Looking for a simple sql select statement that will select the last 50 records closed in the database. I found a few helps out there that have an example like: SELECT RecordID, closed_date FROM ( SELECT RecordID, closed_date, RANK() OVER (ORDER BY cl