Read / Get the link destination name in PDF file by JavaScript
Is there is any way to read or retrieve the link destination name by the JavaScript?
In my document there is more then 100 of link with destination name of the named destination, now I want read all the link and retrieve the destination name in the link.
Here I was used getLinks(,) method to get the links in the document. And also I am able to get the properties of getLinks such as borderColor, borderWidth, highlightMode, rect and so on.
But I want to get the destination name of the link.
Is possible?
Thanks & Regard
Thirusanguraja Venkatesan
You may need to use a plug-in.
One of the experts on this forum, Gilad D, has a tool called Batch Edit URL Links here:
http://try67.blogspot.com.au/2010/03/acrobat-batch-edit-links.html
There is also one called AutoBookmark that also handles links:
http://www.evermap.com/autobookmark.asp
Similar Messages
-
Paste the link function in a pdf file in the preview is missing?
Paste the link function in a pdf file in the preview is missing? Please insert again, in Lion he was still there, please help me
Don't think so. If it is it would be in the metadata for the PDF -- ctrl D and select the left most tab. There should be a button for additional data if you want to explore.
-
How to get the link report of a swf file to the set of clases
He But How to get the link Report of the SwF File
Here are some links with additional information:
http://stackoverflow.com/questions/185252/optimizing-flex-when-multiple-modules-are-used
http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html
http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
If this post answers your question or helps, please mark it as such. -
How to get the pull path name from a file upload window
Hello everyone!
I have encountered the following problem with the following JSP code:
<form method="post" action="filename.jsp">
Upload JAVA program:
<input type=file size=20 name="fname" accept="java">
<input type=submit value="go">
</form>
<%
String s = "";
if (request.getParameter("fname") != null)
s = request.getParameter("fname")
%>
The value of s is alway the filename. However I want to get the full path in addition to the filename, so that I can read the file. Does anyone know how to get the pull name of the file?
thanks a lot in advance,Dear Sir,
thanks a lot for your reply. Please let me explain what I intended to do: I want to upload a file from the local machine and then read the content of the file. Therefore I need to the fullpath of the filename like /var/local/file.java instead of file.java. The latter is what I got.
The problem I have with your code is that the function like "request.getServerScheme()" is not recognized. Maybe is it because I didn't install servelet package? I only installed javax package btw. Also my application runns on Tomcat server if this could give you some information. The error message I had is as follows:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 36 in the jsp file: /addExercise.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:133: cannot resolve symbol
symbol : method getServerScheme ()
location: interface javax.servlet.http.HttpServletRequest
url = request.getServerScheme()
^
An error occurred at line: 36 in the jsp file: /addExercise.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:136: cannot resolve symbol
symbol : method getServerScheme ()
location: interface javax.servlet.http.HttpServletRequest
+ ((("http".equals(request.getServerScheme()) && request.getServerPort() != 80)
^
An error occurred at line: 36 in the jsp file: /addExercise.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:137: cannot resolve symbol
symbol : method getServerScheme ()
location: interface javax.servlet.http.HttpServletRequest
||("https".equals(request.getServerScheme()) && request.getServerPort() != 443))
^
An error occurred at line: 36 in the jsp file: /addExercise.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:139: cannot resolve symbol
symbol : method getServletConfig ()
location: interface javax.servlet.http.HttpServletRequest
+ "/" + request.getServletConfig().getServletName()
^
An error occurred at line: 36 in the jsp file: /addExercise.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.12/work/Catalina/localhost/tutor/org/apache/jsp/addExercise_jsp.java:140: cannot resolve symbol
symbol : variable path
location: class org.apache.jsp.addExercise_jsp
+ "/" + path
^
5 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) -
Why can't I get the Preview application to open PDF files?
Since the end of April 2014, I have had problems with the Preview application. When I try to open Preview, I get the following message: "This application 'Preview.app can't be opened." "-1712.". I tried a recommended solution that I found in the Apple Support Communities, which said I could go to Finder > press the Option key to show Library and then go Preferences and then search for the Preview plist file and delete it.
Unfortunately, that did not work.
Two other Apple owners had the same problem and said the above procedure had worked for them, but post were back in the year 2012. When I followed the above procedures, it did not make any change in the problem with Preview. I still cannot open it. Does any one out there have an suggestions?
It is possible that any recent updates for MacBook Pro from Apple caused the problem? Will I forever have to resort to using Adobe's PDF program?Hi aK'
Nice, memorable user name!
-1712 is a timed out error. One reported cause (with other applications) is that the application is attempting to open a large number of files, or a file that no longer exists.
Try holding down the shift key when launching preview. This prevents the application from attempting to open windows that were not closed before quitting the application.
Regards,
Barry -
How to get the full path name of a file
Hey everybody, I'm new here and in Java.
so I will explain my question by giving an example:
I want to send file from the Desktop by the "Send to" on the popup menu to my program.
I want to know how can I read the full path name and the file name, and show it on my text box.
Thanx alotIf this is a client side application then I'd say look into drag-n-drop tutorials.
i.e. drag file to your application, action listener fires, create File object giving you full name and path of users action.
If this is a web application then look into the "multipart/form-data" content type specifications on how to upload files.
i.e. user specifies file from <input type='file' ... /> type, submits, servlet receives data and recreates file locally on application server side.
If you are thinking that all you need to send a file to a program is the full path and name in a textbox its a little bit more complicated then that.
Good luck, hope that helps! -
Writings, produced by me and some collegues are to be uploaded to some site. This writings are PDF files. When trying to upload an error message apperars, telling this file is NOT an PDF file. In Google Chrome and Opera there is no problem.
Hi H.Barker,
Zou is correct, LabVIEW supports all GIF bit depth images 24bit and below.
Thank you for forwarding the GIF images, I also experienced the same error when trying to import the "logo.gif" image in LabVIEW however I was able to import the image when I opened it in Microsoft Paint and resaved it as a new GIF.
This suggests there is a corruption in the original GIF file generated on the web, for example a "terminiating block" may be missing at the end of the GIF file. LabVIEW is not forgiving of GIF images that do not meet the GIF specification whereas other Windows editors may be, it seems that opening and resaving the GIF file in Microsoft Paint added the missing characters thus allowing for the file to be imported into LabVIEW.
I have attached the working GIF image to this post.
Hopefully this assists with your application H.Barker.
Many Thanks
Jamie S.
Applications Engineer
National Instruments
Attachments:
LOGO GIF (2).gif 34 KB -
Downloading a pdf file from javascript() window does not work
PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no extension or has a different one (not .pdf).
Later I realized that I can manually rename the downloaded file to insert .pdf extension and open it in reader.
How can I solve this? I don't have this problem when using IE or Chrome.
ThanksCould you try a new profile?
Create a new profile as a test to check if your current profile is causing the problems.
See "Creating a profile":
https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
If it still happens with a new and clean profile then the most likely cause is that you have security software that is blocking this JavaScript. -
What is the proper HTML code for I linking to a destination in a .pdf file in firefox?
If I create an HTML link to a destination within a .PDF file, it works fine in IE but not in Firefox. The code I use is this:
<a href="website/pdf-file.pdf#destination-name>Cool. Thanks to you both.
I vaguely recall doing a "chmod 700" on my previous machine. Those strict permissions survived the migration to this one it seems. "chmod 755" will be fine now. I wanted to know what the default was. Now I do Thank you!
Here is a quote from the Wikipedia entry on Filesystem_permissions:
<it>"The execute permission, which grants the ability to execute a file. This permission must be set for executable binaries (for example, a compiled c++ program) or shell scripts (for example, a Perl program) in order to allow the operating system to run them. When set for a directory, this permission grants the ability to traverse its tree in order to access files or subdirectories, but not see files inside the directory (unless read is set)."</it> -
We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
1) When myself and coworkers click on the pdf document in the library, we get the check out option as expected. However when we click on the document
link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option. Why does this happen?????
2) The same thing happens when we click on the document link in the workflow task email; HOWEVER, one of our co-workers does get the
check out option when clicking on the link in the email task. Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ???? We have compared our internet settings and adobe
settings to ours and found no differences.
We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI. Some of us have Adobe Pro X and have the same issues.Hi,
According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
It will be better if you can descript how you
get the check out option as expected when you click on the pdf document in the library.
Then I upload a
word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
I recommend to use the other type docuemts to check whether the check out option works.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to change the file name of pdf file in html page?
Hi,
Actually my requirement is to upload 50 PDF files containing javascript in each file into flex page with the help of one html page.
i did the the javascript part by using batch processing.
now i want to call those pdf files one after another without changing the file name in html page
the code written in html page is
<html>
<body>
<object id="PDFObj"
data="http:\\localhost\pdf\20090807 - Batch 630.pdf"
type="application/pdf"
width="100%"
height="100%">
</object>
</body>
</html>
So every time i have to change that file name to acess another file.
Is there is any other way to sort this problem????
Plz anyone help me to sort out this problem with some code or some example.I once had a similar task for creating a webpage that I only use on my computer--a webpage that accesses PDF's and SWF's font previews from a list of fonts as "a href's". What you must do is utilize the power of the command line, whether on a Mac on a PC or on Linux, Linux being the most powerful (although Mac IS Unix). You must utilize variables, variable replacement, and then a command to print out the results of a "for" or "while" loop to a text file which will be your HTML file with each individual link automatically built into the HTML code. You will have a list of 50 links. If you are simply looking for a GOOGLE type functionality where you click on "Next" and "Previous" you will have to dig deeper into variable replacement--this I don't know how to do yet but there are books for command-line shell interpreters. One shell interpreter is called "bash" (born-again shell) and there is a book on the market which gives a detailed example of how to replace variables in a shell script. Again, I don't know how it works. I will try to learn this at a later time when I am more seasoned with the basics of shell scripting.
-
How to install adobe reader to my site [spam link removed] so that pdf file can be read directly in my site instead of getting downloaded ?
Adobe Reader is installed on the client side, not on the web server.
Viewing PDFs online is a browser setting.
Please do not post any irrelevant links! -
How to get the link between mara, ausp, cawn and cawnt tables
hello ABAPERS
i have got a requiremet in that i have to get the relation .
how to get the link between mara, ausp, cawn and cawnt tables and also type how can we get link between char value and char description in cawn and cawnt tables through ausp and mara tables.
I would be very thankful for ur help in advance.
Thanks & Regards.
soniHi,
Sample report using the linkage between tables;
report batch_char no standard page heading
line-size 132
line-count 58(1)
message-id mm.
Report by Batch Characteristic *
Description : Report by Batch Characteristic *
Declaration for Tables
tables: mara, " Material Master
mard, " Storage Location Data for Material
t001w, " Plants/Branches
t001l, " Storage Locations
cabn, " Characteristics
inob. " Link between Internal Number and Object
Declaration for Constants
constants : c_klart like ausp-klart value '023', " Class Type
c_obtab like inob-obtab value 'MCH1', " Database Table
c_flag type c value 'X', " Flag
c_c23 type i value '23', " Ratio
Constants for Ratio Categories
c_13 type p decimals 2 value '13.00', " For Ratio 13
c_1499 type p decimals 2 value '14.99', " For Ratio 14.99
c_15 type p decimals 2 value '15.00', " For Ratio 15
c_1699 type p decimals 2 value '16.99', " For Ratio 16.99
c_17 type p decimals 2 value '17.00', " For Ratio 17
c_1899 type p decimals 2 value '18.99', " For Ratio 18.99
c_19 type p decimals 2 value '19.00', " For Ratio 19
c_2099 type p decimals 2 value '20.99', " For Ratio 20.99
c_21 type p decimals 2 value '21.00', " For Ratio 21
c_2299 type p decimals 2 value '22.99', " For Ratio 22.99
c_23 type p decimals 2 value '23.00', " For Ratio 23
c_g23(4) type c value '>=23', " For Ratio >=23
c_ratio(5) value 'RATIO', " For Ratio
Constants for Storing Selected item field information
c_cursor1(15) value 'I_OUTPUT1-MEINS', " For Selected Base
" Unit of Measure
c_cursor2(15) value 'I_OUTPUT1-MATNR', " For Selected Base
" Material Number
c_cursor3(15) value 'I_OUTPUT1-MAKTX', " For Selected Base
" Material Des.
c_cursor4(15) value 'I_OUTPUT1-CLABS', "For Selected Base
" Stock Value
c_cursor5(15) value 'I_OUTPUT1-ATFLV', " For Selected Base
" Char.Value (Ratio)
c_cursor6(5) value 'C_G23'.
Declaration for Global Variables
data : g_exit type c, " Flag
g_clabs1(16) type c, " Quantity
g_clabs(18) type c, " Quantity
g_cursor(15) type c, " Cursor field name
g_matnr type mara-matnr, " Material Number
g_werks type mchb-werks, " Plant
g_atinn(30) type c. " Character.
Declaration for Internal tables
Internal table to hold Batch Stock data
data : begin of i_mchb occurs 0,
matnr like mchb-matnr, " Material Number
werks like mchb-werks, " Plant
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Unit of measure
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb.
Internal table to hold Secondary List data
data : begin of i_mchb1 occurs 0,
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
lgort like mchb-lgort, " Storage Location
charg like mchb-charg, " Batch Number
atinn like ausp-atinn, " Char.Value
clabs like mchb-clabs, " Stock Value
atflo like ausp-atflv, " Char.Value (Ratio)
atflv like ausp-atflv, " Char.Value (Ratio)
end of i_mchb1.
Internal table to get the Plant Name
data : begin of i_plant occurs 0,
werks like t001w-werks, " Plant
name1 like t001w-name1, " Name
end of i_plant.
Internal table to get the Material Description
data : begin of i_makt occurs 0,
matnr like makt-matnr, " Material
maktx like makt-maktx, " Description
end of i_makt.
Internal table to hold AUSP data
data : begin of i_ausp occurs 0,
objek like ausp-objek, " Object No
atinn like cabn-atinn, " Characteric value
atflv like ausp-atflv, " Characteristic Value
end of i_ausp.
Internal table to hold output data
data : begin of i_output occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv like ausp-atflv, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output.
Internal table to hold final Output data
data : begin of i_output1 occurs 0,
atinn like cabn-atinn, " Characteric value
werks like mchb-werks, " Plant
matnr like mchb-matnr, " Material Number
atnam like cabn-atnam, " Characteristic
atflv(32) type c, " Char.Value (Ratio)
name1 like t001w-name1, " Plant Description
maktx like makt-maktx, " Material Description
clabs like mchb-clabs, " Stock Value
meins like mara-meins, " Base Unit of Measure
end of i_output1.
Selection screen
selection-screen begin of block b1 with frame title text-001.
select-options: s_werks for t001w-werks obligatory, " Plant
s_lgort for t001l-lgort, " Stor.Location
s_matnr for mara-matnr obligatory, " Material No
s_atinn for cabn-atinn. " Character.
selection-screen end of block b1.
At selection screen
at selection-screen.
Validation of Selection Screen Fields
perform validate_screen.
Start of selection
start-of-selection.
Get the Material and Batch Stock data from MARA and MCHB Tables
perform get_mat_stock_data.
Get the Material Group Text and Plant Name from T023T and T001W Tables
perform get_plant_grp_data.
Append the data into final Output Internal Table after getting the
Characteristic Values data from INOB and AUSP Tables
perform append_final_data.
Processing if the Characteristics contain 'RATIO'
perform collect_ratio.
End-of-Page
end-of-page.
write /1(125) sy-uline.
End of selection
end-of-selection.
if g_exit <> c_flag.
Display the Report Output data
perform display_report.
endif.
Top-of-Page
top-of-page.
Write the Report and Column Headings
perform get_headings.
at line-selection
at line-selection.
if sy-lsind = 1.
perform display_batch.
endif.
Top of page during line-selection
top-of-page during line-selection.
perform heading_seclist.
Form validate_screen
Validation of Selection Screen fields
form validate_screen.
Validation of Plant
clear t001w.
if not s_werks[] is initial.
select werks
into t001w-werks
from t001w
up to 1 rows
where werks in s_werks.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Plant'(002).
endif.
endif.
Validation of Material Number
clear mara.
if not s_matnr[] is initial.
select matnr
into mara-matnr
from mara
up to 1 rows
where matnr in s_matnr.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Material'(003).
endif.
endif.
Validation of Storage Location
clear t001l.
if not s_lgort[] is initial.
select lgort
into t001l-lgort
from t001l
up to 1 rows
where lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Storage Location'(004).
endif.
endif.
Validation of Characteristic Value
clear cabn.
if not s_atinn[] is initial.
select atinn
into cabn-atinn
from cabn
up to 1 rows
where atinn in s_atinn.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Characteristic Value'(005).
endif.
endif.
Validation of Plant, Material and Storage Location
clear mard.
select matnr werks lgort
into (mard-matnr, mard-werks, mard-lgort)
from mard
up to 1 rows
where matnr in s_matnr and
werks in s_werks and
lgort in s_lgort.
endselect.
if sy-subrc <> 0.
message e899 with 'No Data found for the Selection Criteria'(006).
endif.
endform. "validate_screen
*& Form get_headings
Write the Report and Column Headings
form get_headings.
data: l_repid type sy-repid.
l_repid = sy-repid.
call function 'Y_STANDARD_HEADING'
exporting
repid = l_repid
heading1 = sy-title.
write:/1(125) sy-uline.
format color col_heading on.
write : /1 sy-vline, 2(18) 'Material Number'(008) centered,
20 sy-vline, 21(40) 'Material Description'(011) centered,
61 sy-vline, 62(22) 'Ratio'(009) centered,
84 sy-vline, 85(18) 'Quantity'(010) centered,
103 sy-vline, 104(20) 'Base Unit of Measure'(015) centered,
125 sy-vline.
write:/1(125) sy-uline.
format color off.
endform. "get_headings
*& Form get_mat_stock_data
Get the Material and Batch Stock data from MARA and MCHB Tables
form get_mat_stock_data.
clear: i_mchb,i_output, i_output1.
refresh: i_mchb,i_output, i_output1.
select a~matnr " Material Number
b~werks " Plant
b~lgort " Storage Location
b~charg " Batch Number
b~clabs " Stock Value
a~meins " Base Unit of Measure
into table i_mchb
from mara as a inner join mchb as b
on amatnr eq bmatnr
where b~matnr in s_matnr and
b~werks in s_werks and
b~lgort in s_lgort.
if sy-subrc <> 0.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
stop.
endif.
sort i_mchb by matnr werks lgort charg.
endform. " get_mat_stock_data
*& Form get_plant_grp_data
Get the Material Group Text and Plant Name from T023T and T001W
form get_plant_grp_data.
if not i_mchb[] is initial.
Get the Plant Description from t001w Table
clear i_plant.
refresh i_plant.
select werks " Plant
name1 " Name
into table i_plant
from t001w
for all entries in i_mchb
where werks = i_mchb-werks.
Get the Material Description from MAKT Table
clear i_makt.
refresh i_makt.
select matnr " Material number
maktx " Material Description
into table i_makt
from makt
for all entries in i_mchb
where matnr = i_mchb-matnr and
spras = sy-langu.
sort i_plant by werks.
delete adjacent duplicates from i_plant comparing werks.
sort i_makt by matnr.
delete adjacent duplicates from i_makt comparing matnr.
endif.
endform. "form get_plant_grp_data.
*& Form append_final_data
Append the data into final Internal Table
form append_final_data.
data : l_matbatch(28),
l_tabix like sy-tabix.
if not i_mchb[] is initial.
loop at i_mchb.
l_tabix = sy-tabix.
clear l_matbatch.
concatenate i_mchb-matnr i_mchb-charg into l_matbatch.
move-corresponding i_mchb to i_output.
Get the Plant Description from i_plant Table
read table i_plant with key werks = i_mchb-werks binary search.
if sy-subrc = 0.
i_output-name1 = i_plant-name1.
endif.
Get the Material Description from i_makt Table
read table i_makt with key matnr = i_mchb-matnr binary search.
if sy-subrc = 0.
i_output-maktx = i_makt-maktx.
endif.
Get the Characteristic Values data from INOB and AUSP Tables
clear inob.
select single cuobj from inob
into inob-cuobj
where klart = c_klart and
obtab = c_obtab and
objek = l_matbatch.
if sy-subrc = 0.
select objek
atinn
atflv
from ausp
into table i_ausp
where objek = inob-cuobj and
atinn in s_atinn and
klart = c_klart.
sort i_ausp by objek atinn.
loop at i_ausp.
clear cabn.
select single atinn atnam from cabn
into (cabn-atinn,cabn-atnam)
where atinn = i_ausp-atinn.
if sy-subrc = 0.
If the ratio value is between 13-14.99, display 13
if cabn-atnam cs c_ratio.
if i_ausp-atflv between c_13 and c_1499.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_ausp-atflv between c_15 and c_1699.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_ausp-atflv between c_17 and c_1899.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_ausp-atflv between c_19 and c_2099.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_ausp-atflv between c_21 and c_2299.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_ausp-atflv >= c_23.
i_mchb-atflo = i_ausp-atflv.
i_mchb-atflv = c_23.
endif. " Condition for RATIO values
else. " If characteristic does contain RATIO
i_mchb-atflv = i_ausp-atflv.
endif.
i_output-atinn = cabn-atinn.
i_output-atnam = cabn-atnam.
i_output-atflv = i_ausp-atflv.
i_mchb1-matnr = i_mchb-matnr.
i_mchb1-werks = i_mchb-werks.
i_mchb1-lgort = i_mchb-lgort.
i_mchb1-charg = i_mchb-charg.
i_mchb1-clabs = i_mchb-clabs.
i_mchb1-atinn = i_ausp-atinn.
i_mchb1-atflo = i_mchb-atflv.
i_mchb1-atflv = i_ausp-atflv.
append : i_output, i_mchb1.
clear i_mchb1.
modify i_mchb index l_tabix transporting atflo atflv .
endif.
endloop.
endif.
endloop.
endif.
Checking whether the table is filled or not
if not i_output[] is initial.
sort i_output by atinn werks matnr atflv.
else.
g_exit = c_flag.
message s899 with 'No Data found for the Selection Criteria'(006).
endif.
Delete the records where RATIO is less than 13.
delete i_output where atnam cs c_ratio and atflv lt c_13.
endform. "append_final_data
*& Form display_report
Display the Report Output data
form display_report.
data: l_tabix like sy-tabix.
loop at i_output1.
l_tabix = sy-tabix.
At new Characteristic
at new atinn.
read table i_output1 index l_tabix.
format color 1 intensified on.
write: /1 sy-vline, 2(20) 'Characteristic Name:'(007),
23(40) i_output1-atnam,
125 sy-vline.
format color off.
format color 4 intensified on.
write: /1 sy-vline, 2(20) 'Plant Name :'(022),
23(4) i_output1-werks, 29(30) i_output1-name1,
125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
clear: g_clabs, g_clabs1.
format color col_normal.
write :/1 sy-vline, 2(18) i_output1-matnr,
20 sy-vline, 21(40) i_output1-maktx,
61 sy-vline.
if i_output1-atflv = c_c23.
write: 62(22) c_g23 centered.
else.
shift i_output1-atflv left deleting leading space.
write: 62(22) i_output1-atflv centered.
endif.
write: 84 sy-vline,
103 sy-vline,
110(5) i_output1-meins.
If the quantity value is negative
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
hide : i_output1.
new-line.
At end of material
at end of matnr.
sum.
move : i_output1-matnr to g_matnr.
format color 3 intensified on.
write /1(125) sy-uline.
write :/1 sy-vline, 2(25) 'Total for Material :'(012),
28(18) g_matnr.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
write: 125 sy-vline.
format color off.
write /1(125) sy-uline.
endat.
At end of plant
at end of werks.
sum.
move : i_output1-werks to g_werks.
format color 3 intensified off.
write :/1 sy-vline, 2(25) 'Total for Plant :'(013),
28(4) g_werks.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
At end of characteristic
at end of atinn.
read table i_output1 index l_tabix.
sum.
format color 3 intensified on.
write :/1 sy-vline, 2(25) 'Total for Characteristic:'(014),
28(25) i_output1-atnam.
if i_output1-clabs ge 0.
write: 85(18) i_output1-clabs unit i_mchb-meins,
125 sy-vline.
else.
i_output1-clabs = - i_output1-clabs.
write i_output1-clabs unit i_mchb-meins to g_clabs1.
condense g_clabs1.
concatenate '(' g_clabs1 ')' into g_clabs separated by space.
write: 85(18) g_clabs right-justified,
125 sy-vline.
endif.
format color off.
write /1(125) sy-uline.
endat.
endloop.
endform. " display_report
*& Form DISPLAY_BATCH
Display the batch details for the seclected material *
form display_batch.
Get the batch details for the selected material
get cursor field g_cursor.
if g_cursor = c_cursor1 or
g_cursor = c_cursor2 or
g_cursor = c_cursor3 or
g_cursor = c_cursor4 or
g_cursor = c_cursor5 or
g_cursor = c_cursor6.
format color 3.
write: /1 sy-vline,
2(17) 'Material Number :'(020),
20(17) i_output1-matnr,
94 sy-vline.
format color off.
write /1(94) sy-uline.
loop at i_mchb1 where matnr = i_output1-matnr and
atinn = i_output1-atinn and
atflo = i_output1-atflv.
format color col_normal.
shift i_mchb1-charg left deleting leading '0'.
write :/1 sy-vline, 2(16) i_mchb1-lgort centered,
18 sy-vline, 19(17) i_mchb1-charg centered,
36 sy-vline.
if i_output1-atnam cs c_ratio.
write: 37(29) i_mchb1-atflv
exponent 0 decimals 2 centered.
else.
write : 37(29) i_mchb1-atflv
exponent 0 decimals 0 centered.
endif.
write : 66 sy-vline, 67(27) i_mchb1-clabs unit i_mchb-meins,
94 sy-vline.
format color off.
endloop.
write /1(94) sy-uline.
else.
message s899 with 'Invalid cursor position'(016).
exit.
endif.
endform. " DISPLAY_BATCH
*& Form HEADING_SECLIST
Write the Column Headings for Interactive Report
form heading_seclist.
write /1(94) sy-uline.
format color col_heading on.
write :/1 sy-vline, 2(16) 'Storage Location'(021),
18 sy-vline, 19(17) 'Batch Number'(017) centered,
36 sy-vline, 37(29) 'Characteristic Value'(018) centered,
66 sy-vline, 67(27) 'Quantity'(019) centered,
94 sy-vline.
write /1(94) sy-uline.
format color off.
endform. " HEADING_SECLIST
*& Form COLLECT_RATIO
Display the Characteristic ratio data
form collect_ratio.
loop at i_output.
clear g_atinn.
i_output1-atinn = i_output-atinn.
i_output1-atnam = i_output-atnam .
i_output1-werks = i_output-werks.
i_output1-name1 = i_output-name1.
i_output1-matnr = i_output-matnr.
i_output1-maktx = i_output-maktx.
i_output1-clabs = i_output-clabs.
i_output1-meins = i_output-meins.
call function 'CONVERSION_EXIT_ATINN_OUTPUT'
exporting
input = i_output-atinn
importing
output = g_atinn.
if g_atinn cs c_ratio.
If the ratio value is between 13-14.99, display 13
if i_output-atflv between c_13 and c_1499.
i_output1-atflv = c_13.
If the ratio value is between 15-16.99, display 15
elseif i_output-atflv between c_15 and c_1699.
i_output1-atflv = c_15.
If the ratio value is between 17-18.99, display 17
elseif i_output-atflv between c_17 and c_1899.
i_output1-atflv = c_17.
If the ratio value is between 19-20.99, display 19
elseif i_output-atflv between c_19 and c_2099.
i_output1-atflv = c_19.
If the ratio value is between 21-22.99, display 21
elseif i_output-atflv between c_21 and c_2299.
i_output1-atflv = c_21.
If the ratio value is greater than or equal to 23, display 23
elseif i_output-atflv >= c_23.
i_output1-atflv = c_23.
endif.
write i_output1-atflv to i_output1-atflv .
else.
write i_output-atflv to i_output1-atflv exponent 0 decimals 0.
endif.
collect i_output1.
clear i_output1.
endloop.
sort i_output1 by atinn werks matnr atflv.
endform. " COLLECT_RATIO
Reward if useful..
Regards,
Anji -
How do I get the Weblogic system name in WLS 6.1 sp2 without creating T3Client
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the following code:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
BillThe class doesn't seem to be documented in the normal documentation, but
you can get an overview of the methods by executing
javap weblogic.management.Admin
with weblogic.jar in your classpath.
Hope that helps,
Nils
Bill Lam wrote:
>
Jim,
Can you tell me where I can find documentation for
weblogic.management.Admin?
Thank you.
Bill
"Bill Lam" <[email protected]> wrote:
Jim,
Thanks. I appreciate your help.
Bill
Jim Brown <[email protected]> wrote:
Bill:
The weblogic.server.name property in WLS 5.1 has been replaced by the
property weblogic.Name in WLS 6.X. Although it is possible to retrieve
this value by calling System.getProperty(), I would encourage you to
use
the new JMX services which have replaced our proprietary management
interfaces (T3ServicesDef, et. al.). For example, you could write aJMX
client to read the various properties of ServerMBean. To get started,
here is the link to our WebLogic JMX documentation:
Programming WebLogic JMX Services
<http://e-docs.bea.com/wls/docs61/jmx/index.html>
Please post any follow-up questions about JMX to the
weblogic.developer.interest.management.general_and_jmx newsgroup.
Besides writing a JMX client, you can also take advantage of the
following short-cut for retrieving the server name. The remaining code
for this example can be found in your WebLogic Server samples directory
under: ./wlserver6.1/samples/examples/cluster/rmi/HelloClusterImpl.java
private String getLocation(){
String toReturn = null;
try{
toReturn = weblogic.management.Admin.getServerName();
}catch(Exception e){
System.out.println("HelloClusterImpl failed getLocation");
e.printStackTrace();
if(toReturn==null){
return "";
}else{
return toReturn;
Regards,
Jim Brown
Bill Lam wrote:
Hi Folks,
In Weblogic Server 5.1, I get the weblogic.system.name using the followingcode:
T3ServicesDef t3services = T3Services.getT3Services();
String systemName t3services.config().getProperty("weblogic.system.name");
What is the counterpart for Weblogic Server 6.1?
Thanks in advance for your help.
Bill--
Jim Brown
Developer Relations Engineer
BEA Support
============================
[email protected] -
How can I get the link not to override my style sheet formatting?
I have an html page with text that has a style sheet applied
to it. When I insert a link into parts of the formatted text, the
style sheet formatting is lost in the linked text (the text for
mylars, shapes and number shapes becomes smaller: see code below).
How can I get the link not to override my style sheet
formatting?
Here is the html code I am referring to:
<span class="bodyheader20pt">Fall into winter's biggest
celebration with our New Year's Day <a href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&sc=184&PageNumbe r=1"
style="text-decoration:none">mylars</a>, <a href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=184&PageNumbe r=1"
style="text-decoration:none">shapes</a>, and 2-0-0-9 <a
href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=166&PageNumbe r=1"
style="text-decoration:none">number
shapes</a>.</span>
I am using Dreaweaver CS3 on a Mac running OSX
10.4.11.Show us this rule --> bodyheader20pt?
Also, having this in your three anchor tags -
style="text-decoration:none" -
will prevent your anchors from displaying any stylesheet
style for
text-decoration.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"ellfwar" <[email protected]> wrote in
message
news:geqiph$foq$[email protected]..
>I have an html page with text that has a style sheet
applied to it. When I
> insert a link into parts of the formatted text, the
style sheet formatting
> is
> lost in the linked text (the text for mylars, shapes and
number shapes
> becomes
> smaller: see code below).
>
> How can I get the link not to override my style sheet
formatting?
>
> Here is the html code I am referring to:
> <span class="bodyheader20pt">Fall into winter's
biggest celebration with
> our
> New Year's Day <a
> href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&
> sc=184&PageNumber=1"
style="text-decoration:none">mylars</a>, <a
> href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
> sc=184&PageNumber=1"
style="text-decoration:none">shapes</a>, and 2-0-0-9
> <a
> href="
http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
> sc=166&PageNumber=1"
style="text-decoration:none">number
> shapes</a>.</span>
>
> I am using Dreaweaver CS3 on a Mac running OSX 10.4.11.
>
Maybe you are looking for
-
I've encountered an attribute mapping problem when using the Java OracleXMLQuery class in XSU (Oracle XML Developer's Kit for PL/SQL on Windows NT - 9i 9.2.0.1.0). As an example, take a look at the following object type containing one field whose nam
-
How to add title/header in 3.0.1, as in previous version?
I "upgraded" to 3.0.1-- The titles/headers of my spreadsheets would not appear in the new versions, and I see no way to add them. When I print them out, it sure is nice to know what it is (title), and how recent a version (date) it is.
-
Fix for Wireless Capability Turned Off
If you have lost your wireless connection (Wi-Fi) and pressing the wireles button on your laptop doesn't fix it, do this: Download and install HP Connection Manager. After 8 hours of screwing with this I am so happy to report my Wi-Fi has been turned
-
Emca Continually Shows "Invalid username/password" for the DBSNMP User
Hi, During configure dbconsole DBSNMP user is giving invalid password whereas i am able to connect dbsnmp using sqlplus as below. SQL> conn dbsnmp/dbsnmp@UAT Connected. while i m tryin to configure dbconsole got below error emca -config dbcontrol db
-
Interesting speed test. iPhone Edge vs Blackberry 3G video
Check this out on youtube. http://www.youtube.com/watch?v=jJTdFTIF2No theres also a second test to view....