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.Vendhan
HI 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
Similar Messages
-
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,
Kabilhi 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. -
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 -
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 -
Problem with line items print in Script MAIN window.
Dear Friends,
I am facing a problem with display the line items in main window.
Here i have created my form with 2 pages,
in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
i am having the Footer information about to off the page.
and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
my client want me to remove that place also. he wants to display continue..
i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
Thanks
Sridhar.Hi Sridher,
If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
Regards,
Vidya. -
Can Adobe read specific text from Excel and merge them together?
I have a catalog in PDF format with thousands of part numbers. I want to be able to click on each part number and be directed to a specific web page. All web pages will be different. I know how to do this ONE at a time but that would be too time consuming and not something my company would be willing to do. I have an Excel spreadsheet with the part numbers listed in one column and the URL's in one and a column of them as hyperlinks already. Is it possible for Adobe to match the part numbers from both files and merge them together?
Thanks!
AmandaThe part numbers will all be together but most have alot of dashes and some are very long. Here are 3 examples. Alot of them are this size, some much larger but they are all together on one line.
CV-LED-W
SDOP-LED-2M
SIF-232
Thanks,
Amanda -
How can I extract a still picture from footage in iMovie, add text to it and print it ?
How can I extract a still picture from footage in imovie, add text to it and print it ?
Assuming you have iMovie 11 (also known as Version 9.0.4), here is how you do it. (If you have a different version, let me know. The instructions will be different).
First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
Open MPEG Streamclip.
In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
Drag this clip into MPEG Streamclip
In MPEG Streamclip, move the playhead to the frame you want.
In MPEG Streamclip, click FILE/EXPORT FRAME.
Choose JPEG, TIFF, or PNG and give it a name.
You can then use this photo in Photoshop, Pixelmator, Acorn, or the app of your choice to add text.
Here is a demo I made the other day for how to extract the still image using MPEG Streamclip. -
AcroPDF in VB6 - Find text in PDF and print that page.
Okay, so I'm certain that this question has been asked and answered a hundred times, but for some reason my googling skills are seriously failing me today...
I have a legacy application built in VB6 that generates PDF documents of a particular form letter. Each PDF contains all of the form letters that were printed on that particular day. I actually have it all working rather decently, but something came up a little while ago that set me on a new programming obsession. I want to enable the following functionality from my application:
The user provides a text string that should be unique among all pages of all PDF's (customer ID).
The application then finds the PDF that contains that text string and identifies which page number contains that text string.
Finally, send only that page to the printer.
Currently I can easily create, display and print the PDF from my application. While the creation of the document is done through a third-party reporting system, all display and printing functions are basically handled using AcroPDF.dll. Going through the available properties and methods for an AcroPDF object, I see that I can tell it to print only specified pages, which gives me the last part of my requirements, and I've got the user input part down pat. I'm just totally stumped at finding a solution for "step 2".
Any suggestions, ideas or comments would be greatly appreciated. I'm kinda tired of banging my head against a wall. Thank you for your time.If you are only using Adobe Reader, then that feature isn't available.
If you have Adobe Acrobat, then you have a few options.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Wed, 26 Oct 2011 08:15:12 -0700
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: AcroPDF in VB6 - Find text in PDF and print that page.
AcroPDF in VB6 - Find text in PDF and print that page.
created by GHosaPhat<http://forums.adobe.com/people/GHosaPhat> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3991293#3991293 -
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... -
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 -
I want to bring in text from Word (and the web) that is already hyperlinked into InDesign. How do I do it while keeping the links active?
Whenever I copy/paste from web or Word it removes the hyperlinks. And when I try to do it by "Place"ing a Word document into my InDesign project it keeps the formatting with it, the rectangles around the text.
I have the latest version of InDesign.
Any help is appreciated.Copy-and-paste may not include formatting. A regular import using Place is the best way.
The rectangles around the hyperlinks are just to indicate they are links -- they do not print, but they do show up in your PDF.
You can remove them by double-clicking the hyperlink in the Hyperlinks panel and select "Invisible Rectangle" as type.
Typically, Word hyperlinks are formatted -- blue text, underline -- with a Character Style. If you want to remove or change the formatting, all you have to do is change the character style. My experience, though, is you must check all hyperlinks because for no apparent reason sometimes they appear in the document without the character style. -
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. -
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
Maybe you are looking for
-
75-minute film to DVD -- how?
Greetings. A simple question, I'm sure... I've got a 75-minute film that I need to export to DVD. My elementary-school students and actors each need a copy; we'd also like a DVD to show the whole school on a big screen. I've got... ... Final Cut Pro
-
How can remove gcc from solaris 10
HI All, how can i remove gcc pkg from solaris 10 thanks
-
Deploy the larger rulebases and determinations-server to WSL 10.3.5 slow
On : 10.1.0.27 version, Oracle Policy Automation Determination Server WLS managed server ACTUAL BEHAVIOR Deploy the larger rulebases and determinations-server to WSL 10.3.5 It takes around 20 minutes to deploy. Often the WLS times out during the depl
-
SDB tree view in SAP ERP 4.7
Hello I have the view for my symptoms and solutions in Solution Database in tcode IS02. Is there any way to display this hierarchy in tree? any tcode? Regards Radek
-
Not printing colors right and can not find the button to get it aligned properly, very green
Ink was low bought all new carteriges and it is still printing colors off. More green tones of green. dont know how to get adjusted to print correctly.