Struts logical path problem
HI,
I am using struts in my web application deployed on OC4J server.
I am hitting a problem that the "sub page" gets incorrect url.The details are as follows:
in my struts config the mapping is defined as :
1) "parent.do" is mapped to /WEB-INF/mypages/parent.jsp
2)"child.do" is mapped to /WEB-INF/mypages/child.jsp
My page "parent.jsp" contains two frames one having some a page with static images and the other frame having the src as "child.do"
Now if I invoke the http://myserver/myapp/parent.do
the first frame loads correctly while for second it throws an error 404 that "http://myserver/myapp/WEB-INF/mypages/child.do" not found.
It seems to me that that the subpage does not get the correct information about the context.
Any suggestions will be greatly appreciated.
Regards.
When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.
Similar Messages
-
hi,
Good day guys
Ive created the Logical path for mmi interface. its working fine. but in the logical path ive given the drive is H:
Bcoz in the dev system drive is H: one which is maintain the file.
But for the Quality and Production , Drive is different.. its in D:
How to solve it? can any one plz tell me
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
* CLIENT = SY-MANDT
logical_filename = lv_log_file
* OPERATING_SYSTEM = SY-OPSYS
parameter_1 = lv_log_file
* parameter_2 = sy-uzeit
* parameter_3 = '.txt'
use_presentation_server = 'X'
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
* ELEMINATE_BLANKS = 'X'
IMPORTING
* EMERGENCY_FLAG =
* FILE_FORMAT =
file_name = outfile
* EXCEPTIONS
* FILE_NOT_FOUND = 1
* OTHERS = 2
ELSE.
CONCATENATE outfile sy-datum sy-timlo '.txt' INTO outfile.
ENDIF.When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.
-
Struts logic:equal problem
Hi,
I'm having trouble with the following:
<logic:equal name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
even when the page_no value of searchSizeTracker and the currentPage property of searchActionForm both = 1, the logic doesn't display the contents of the logic:equal tags???
I've included a JSP fragment below.
Thanks.
==============================
JSP Fragment
==============================
<logic:present name="searchActionForm" scope="session">
<bean:define id="searchActionForm" name="searchActionForm" scope="request"/>
</logic:present>
<tr>
<td align="center" colspan="4">
currentPage = <bean:write name='searchActionForm' property='currentPage'/>
<br>
currentActionID = <bean:write name='searchActionForm' property='currentActionId'/>
<br>
<logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request">
<logic:equal name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
<strong>
<jsp:getProperty name="searchSizeTracker" property="page_no"/>
</strong>
</logic:equal>
<logic:notEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
<a href="<%=request.getContextPath()%>/performSearch.do?pageRequired=<bean:write name='searchSizeTracker' property='page_no'/>&action_id=<bean:write name='searchActionForm' property='currentActionId'/>&searchType=2¤tScreen=search_reorder"><jsp:getProperty name="searchSizeTracker" property="page_no"/>
</a>
</logic:notEqual>
</logic:iterate>
</td>
</tr>
==============================Hi
You have made a small mistake in the coding of your JSP. You please replace
<logic:equal name='searchSizeTracker' property='page_no' value='
<%searchActionForm.getCurrentPage()%>'>
with
logic:equal name='searchSizeTracker' property='page_no' value='
<%=searchActionForm.getCurrentPage()%>'> -
Metadata for namespace '/WEB-INF/tld/struts-logic.tld' is not loaded
hi all,
I keep getting these kind of errors in JDeveloper for JSPs which have this included:
Metadata for namespace '/WEB-INF/tld/struts-logic.tld' is not loaded.
What should I do to resolve this error?I did exactly that, but since client I work for is using /tld subdirectory, everything is the same as below, only /tld is added after /WEB-INF:
1.Copy the TLD file struts-logic.tld to the WEB-INF directory.
2. In the web.xml add <taglib/> element
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
3. In the JSP add
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
struts libs have been added to the WEB-INF/lib directory too, but the problem persists.
Maybe the reason is invalid ant build.xml file which is invoked from JDev when building project? In build.xml I found this part:
<!--Set the classpath-->
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
<exclude name="xercesImpl.jar"/>
</fileset>
</path>
Maybe I need to add this to the <path>:
<fileset dir="${tld.dir}">
<include name="**/*.tld" />
</fileset>
after defining the directory
<property name="tld.dir" value="${web.dir}/WEB-INF/tld"/>
But the thing is other developers are using the same build.xml file from their IDEs (Eclipse and IntelliJ) and nobody seem to have this problem? -
LSMW: Error concerning the logical path in Specify Files step
Hi,
I am trying on an ECC 6.0 EHP6 system to upload (open) POs from an existing SAP ERP system. Since I faced some complications in batch input recording method, I decided to go with the standard batch/direct input method.
I selected object 0085 (Purchase Order) and method 0001 (Purchase Order). The program that is used is RM06EEI0. I followed all the usual steps, but in the "Specify Files" step I get the message:
'****.lsmw.conv' does not exist; edit the logical path using transaction FILE
Being aware of both the FILE and SF01 transactions, I created the logical path and file (through the FILE transaction). However, after the modification, I get the message:
Logical file '****' is not assigned to physical file '****.lsmw.conv'
There is also the related SAP Note 753511 (Logical and physical path and file name in transaction LSMW) that refers to this case.Hi,
Click on specify file radio button>Legacy data-on the PC Front end
where input file location like C:\mydocument\desktop\test.txt
and give input in Name field: mydocument
in delimiter section > select Tabular
File structure section> tick on Field order matches source structure definition
File type: Record end marker(Text file)
then press enter key and other steps as same.
Second thing you said that you have used Batch input recording
after creation and recording finish , scroll the page below on recording and put a cursor unwanted field and remove unwanted input field.
I hope your problem will resolve. you can find the steps pdf on Google search try now.
Thanks
Sanjeet Kumar -
Hi Everybody,
How could I check the actual value of 2 variables which I defined with transaction \nFILE for the Logical Path and the logical file name?
Background to this question is that I am experiencing problems in using them and want to check if the variables have correct values.....
Thanks in advance
FedeX.Hi FedeX,
Did not get exactly what you wanted.
May be you can try this: You can check the varibale values in the table V_PARAMVAL.
Bye
Dinesh -
LSMW No logical path has been specified
Dear All,
I am trying to create characteristic through LSMW. in the Specify file step i am geeing this error"No logical path has been specified".
Any body can have idea about the error?
Regards
DhirenHi Dhiren,
I have the same problem. I am trying to change a batch characteristics and I am getting the same error.
Could you please share how you resolved your issue?
Regards,
R.S
This is a old and answered thread - please open a thread for your specific query.
-Paul
Moderator
Edited by: Paul Meehan on Aug 25, 2011 11:39 AM -
LSMW-logical path not specified
Hi experts,
I am doing an LSMW object for purchasing info records conversion.
In the step "specify files" i am not able to save wat i have done cos i am getting an error 'No logical path has been specified' .I have choosed the file from PC-Frontend. Due to this problem am not able to go ahead with further steps.
please help.
Thanks,
NeelaHi
Have u followed all the steps perfectly while creating a lsmw ???
There are 14 steps that are normally used and these are :
1) Maintain Object Attributes.
2) Maintain Source Structures.
3) Maintain Source Fields.
4) Maintain Structure Relations
5) Maintain Field Mapping and conversion rules .
6) Maintain Fixed Values,translations ,user defined routines.
7) Specify Files .
8) Assign Files .
9) Read DATA.
10) Display Read Data.
11) Convert Data.
12) Display Converted Data.
13) Create Batch Input Session.
14) Run Batch Input Sesion.
Check this link
http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc -
Regards
Pavan -
LSMW - Logical Path/File - No logical path has been specified
Hello,
I am trying to create a LSMW with the RM06EEI0 direct input program for ME21N transaction.
At the SpecifyFiles step I get the error message "No logical path has been specified".
My dilemmas are:
1. How can I solve this error? Is the FILE transaction only solution? If yes, where and how I must define the logical path/file?
2. Why in the case of the Batch Input Recording LSMW Method this files are created automatically? (I can see them in the AL11 transaction and I didn't define them by myself).
3. Why on other system this error is just an warning message? If you look at this tutorial http://****************/Tutorials/LSMW/PO/Page4.htm at Step7.g. you can see that there is no need of defining the file/path in FILE transaction.
More info about the system I am working in:
SAP ECC 6.0.
LSMW 4.0.0. Version.
Thank you.
DanielaHi
Refer the oss note 753511 released for this kind of error you face in LSMW, I am pasting the content of the note below,
******************Note Content,
Symptom
The system issues an error message for the logical path or file when you perform the "Specify files" step in the Legacy System Migration Workbench (transaction LSMW) although you have made the correct assignment in transaction FILE.
The error messages are as follows:
The logical path <PATH> does not point to the physical directory.
The logical file <FILE> is not assigned to the physical file.
or
A logical path was not specified.
Other terms
Logical path, logical file, transaction FILE, LSM Workbench
Reason and Prerequisites
Some import interfaces that you can also use with transaction LSMW work with logical path and file names.
Transaction LSMW itself, however, works with physical file names. To be able to transfer the LSMW file with the converted data to the import program, you must specify a logical file name for the file with the converted data in addition to the physical file name. In this case, the system displays additional fields in the 'Specify files' step in which you must enter the logical path and file name.
Solution
The error messages may be due to several causes. Check the following:
Have you maintained the logical path and logical file name and have you assigned them to the physical file specified in the "File" input field of transaction LSMW?
These settings are maintained in transaction FILE.
When you use logical file and path names, you must specify the name of the physical file with its path. If you have not specified any directory, you cannot assign any directory to the logical path in transaction FILE. In this case, the system uses the SAP Home directory on the application server by default. Bear in mind that the file name must not exceed the maximum length of 45 characters, including the path.
Up to LSMW version 1.7.2 (*):
If the logical file name specified does not point to the physical file (although it should do), the system adjusts the logical file name, that is, the information in transaction FILE is changed to the entries made in transaction LSMW. This may lead to unwanted side effects if the logical file is also used somewhere else. Therefore, SAP recommend that you always use separate logical paths and file names for transaction LSMW (the problem is corrected as of LSMW version 1.8.0, see below). If the logical file does not exist yet, it will be created upon request.
As of LSMW version 1.8.0 (*):
The settings of the logical file are checked but no longer adjusted automatically as in version 1.7.2 (see above). If there are inconsistencies, the system issues an error message. If the user is authorized to maintain logical paths and file names (as for transaction FILE: "Maintenance authorization for cross-client tables"), transaction LSMW can create the logical path, the file name and the file. Due to this automatic generation, the user no longer needs to make adjustments in transaction FILE. Therefore, we especially recommend this procedure.
To display the version of transaction LSMW, select "Extras" --> "Display LSMW version" in the main menu of the initial screen.
You should also bear in mind that as of Basis Release 6.20, that is, as of LSMW version 4.0, transaction LSMW is no longer an add-on but is delivered with the standard system.
Hope this helps,
Sunil -
LSMW : Unable to Specify Files . Logical path incorrect ?
Hi Guys,
I am trying to upload Goods movement Using the Standard LSMW 0110 program RM07MMBL.
When I try to execute the step Specify Files ,system displays an error message "No Logical Path specified."
The Source File is in my Local PC .
When I click the Converted Data File in the Specify files list
I get a popup which asks me for a Logical path and a Logical File and both these parameters a mandatory.
I tried to maintain the parameters and entries in transaction FILE also.
But it says 'logical path not assigned to the physical directory.'
What is the correct method for this.
What steps should I follow ..
Pls advice
Message was edited by: hao fuHi,
Refer the oss note 753511 released for this kind of error you face in LSMW, I am pasting the content of the note below,
******************Note Content,
Symptom
The system issues an error message for the logical path or file when you perform the "Specify files" step in the Legacy System Migration Workbench (transaction LSMW) although you have made the correct assignment in transaction FILE.
The error messages are as follows:
The logical path <PATH> does not point to the physical directory.
The logical file <FILE> is not assigned to the physical file.
or
A logical path was not specified.
Other terms
Logical path, logical file, transaction FILE, LSM Workbench
Reason and Prerequisites
Some import interfaces that you can also use with transaction LSMW work with logical path and file names.
Transaction LSMW itself, however, works with physical file names. To be able to transfer the LSMW file with the converted data to the import program, you must specify a logical file name for the file with the converted data in addition to the physical file name. In this case, the system displays additional fields in the 'Specify files' step in which you must enter the logical path and file name.
Solution
The error messages may be due to several causes. Check the following:
Have you maintained the logical path and logical file name and have you assigned them to the physical file specified in the "File" input field of transaction LSMW?
These settings are maintained in transaction FILE.
When you use logical file and path names, you must specify the name of the physical file with its path. If you have not specified any directory, you cannot assign any directory to the logical path in transaction FILE. In this case, the system uses the SAP Home directory on the application server by default. Bear in mind that the file name must not exceed the maximum length of 45 characters, including the path.
Up to LSMW version 1.7.2 (*):
If the logical file name specified does not point to the physical file (although it should do), the system adjusts the logical file name, that is, the information in transaction FILE is changed to the entries made in transaction LSMW. This may lead to unwanted side effects if the logical file is also used somewhere else. Therefore, SAP recommend that you always use separate logical paths and file names for transaction LSMW (the problem is corrected as of LSMW version 1.8.0, see below). If the logical file does not exist yet, it will be created upon request.
As of LSMW version 1.8.0 (*):
The settings of the logical file are checked but no longer adjusted automatically as in version 1.7.2 (see above). If there are inconsistencies, the system issues an error message. If the user is authorized to maintain logical paths and file names (as for transaction FILE: "Maintenance authorization for cross-client tables"), transaction LSMW can create the logical path, the file name and the file. Due to this automatic generation, the user no longer needs to make adjustments in transaction FILE. Therefore, we especially recommend this procedure.
To display the version of transaction LSMW, select "Extras" --> "Display LSMW version" in the main menu of the initial screen.
You should also bear in mind that as of Basis Release 6.20, that is, as of LSMW version 4.0, transaction LSMW is no longer an add-on but is delivered with the standard system.
Hope this helps,
Rgds, -
Regarding the Logical Path and file name
Hi all ,
I am using LSMW for creating the BOM of a material .
I am getting problem at step 7 , saying the logical path is pointing to physical directory .
Then i did some R & D . I created the logical path and logical file name using transaction FILE . Then i got the physical path using FM file_get_name.
But when i give those logical path and logical file names , still i am getting prob.... at step 7 of lsmw.
Pls let me know . I did my best unti l now ....
RegardsHi Raj,
Can you send the Error which you got at Step 7??
It would be of great help if you can send the File Path and the file names you have used.
Regards,
-Syed. -
Error4 wen accesing thefilefrom Appln server with the Logical Path
Hi Experts
I'm facing the Problem when accesing the file from the Application server (Unix System) in the Format of ASII File and with the help of the Logical Path which is Specified in the Tcode FILE and getting the ERROR_4 when i try to see the Preview itself
Thanks
RachaHi,
This is Thilak. Actually we will ger ERROR 4 Bcz of arithmetic problems i.e., Flat file format sequence may be differ with the tran.structure(BW). So, Chk that sequence and load the data. -
Dear guys,
Support Pls..I am working In 640Basis system.
I have created Logical path ZDIRLOGGING and ZLOGICFILE
using FILE transaction.
I have set my logical path as below in WINDOWS NT environment.
ZDIRLOGGING :C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>
and
ZLOGICFILE : ZDIRLOGGING.
I used FILE_GET_NAME FM to Access the physical path using Logic file ZLOGICFILE.
My input to FM is
Logical file name :ZLOGICFILE
OS : WINDOWS NT or NT
Parameter_1 : ZTEST
ELEMINATE_BLANKS :X
Export parameter always gives different path
FILE_NAME <i>C:\usr\sap\RX1\SYS\GLobal\ZTEST.</i>
instead of below original path
<b>C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>.</b>
why it is..where i am wrong here..
could somebody help me..
Message was edited by: ambi chanHey guys,
To my confirmation i think i have done correctly.
I have followed all steps what you people told.
prblem i found often is, while creating Logical file
when i try to select Logical path(using f4) i get shortdump like this below.
So what i am doing still now is just entering the logical path name straight way in Input textbox and save.
DO you think below shortdump relates with this problem.
Also FYI, i tried giving SAP logical path in FM and tried..but still the DEFAULT DIR_GLOBAL path is taking by fm.
Any other solutions would be more great.
Runtime Errors LOAD_PROGRAM_NOT_FOUND
Exceptn CX_SY_PROGRAM_NOT_FOUND
Date and Time 29.06.2005 15:48:46
ShrtText
Program "/1BCF41/FILEPATH " not found.
What happened?
There are several possible reasons for the error:
Error in ABAP application program.
The current ABAP program "SAPLSDSD" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
or
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPLSDSD" had to be terminated because the ABAP
processor discovered an invalid system state.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_PROGRAM_NOT_FOUND', was
neither
caught nor passed along using a RAISING clause, in the procedure
"GENERATED_PROG_SELECT" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely "/1BCF41/FILEPATH ".
However, program "/1BCF41/FILEPATH " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
b) Transport error
Missing RAISING Clause in Interface
Program SAPLSDSD
Include LSDSDF15
Row 11
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Trigger Location of Exception
Program SAPLSDSD
Include LSDSDF15
Row 78
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Source Code Extract
Line
SourceCde
48
MSG DH805: Anzeige nicht möglich (Inkonsistenz der Eingabehilfe)
49
MESSAGE i805(dh).
50
EXIT.
51
ENDIF.
52
ENDIF.
53
Die Ausgabe auf die in der Record_tab verwalteten Felder
54
beschränken.
55
select_fields[] = shlp-fielddescr[].
56
delete select_Fields where mask+4(1) = 'X'.
57
In den Selektionsoptionen könnten die Suchhilfe statt des
58
Tabellennamens angegeben sein. Deshalb muß nochmals umgemappt
59
werden.
60
sort shlp-fielddescr by fieldname.
61
selopt_tab[] = shlp-selopt[].
62
LOOP AT selopt_tab ASSIGNING <so>.
63
READ TABLE shlp-fielddescr INTO dfies_wa WITH KEY
64
fieldname = <so>-shlpfield BINARY SEARCH
65
TRANSPORTING tabname.
66
IF sy-subrc <> 0 OR dfies_wa-tabname IS INITIAL.
67
DELETE selopt_tab.
68
ELSE.
69
<so>-shlpname = dfies_wa-tabname.
70
ENDIF.
71
ENDLOOP.
72
PERFORM select_table IN PROGRAM (repid)
73
TABLES value_tab
74
select_Fields
75
selopt_tab
76
USING maxrows sort cursor-with_cursor
77
changing cursor-c.
>>>>>
ENDFORM.
79
80
81
FORM generated_program_validity_check *
82
83
84
85
--> repid *
86
--> valid *
87
88
FORM generated_prog_validity_check
89
USING repid TYPE sy-repid
90
checktable type tabname
91
texttable type tabname
92
CHANGING valid TYPE c.
93
DATA: timestamp TYPE timestamp.
94
data: trdir_wa type trdir.
95
data: rhead_tab type table of rhead.
96
data: rhead_wa type rhead.
97 -
Logical Path not defined..?
Hi,
I recently got CRM 5.0 installed on my system. Very first step of 'Maintain Business Partner' it says, 'Logical Path not defined'.
Tried to open activities, says' Logical system not defined'
Please suggest what is the problem & how to rectify this.
A prompt reply wil be highly appreciated.
Thanks
AnilHi ,
You need to Define Logical System for your System to Allow you to Execute Actions
Path:SAP Web Application Server>Business Intelligence>Links to Other Source Systems>General Connection Settings::
In this step, you can define the logical systems in your distributed system.
Caution:Logical systems are defined cross-client.
Activities
1. To create a logical system, choose Edit -> New Entries.
2. Enter a name for the logical system that you want to create.
3. Enter a description of the logical system.
Enter the Logical System that you are using,
These Links may Further Help up for Details:
http://help.sap.com/saphelp_crm50/helpdata/en/b4/b0b13bb3acef3ce10000000a11402f/frameset.htm
http://help.sap.com/saphelp_crm50/helpdata/en/55/38e74110cf0b7fe10000000a155106/frameset.htm
Hope it Answered your Queries..
Thanks and Regards,
RK.
Added Links for Further Help: RK on Mar 5, 2009 12:07 PM -
Logical filename and logical path in lsmw
Hi all,
I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
can anybody provide a solution for that .
Thanks & regards
Magesh anandanhi ,
goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
hope it will helps u..
regards,
venkat.
Maybe you are looking for
-
Problem With httpd.conf and mod_rewrite rules Apache 2.2
I have some RewriteRules that are working on my Leopard Client Apache 2.2 machine - but when I try to implement them on Leopard Server Apache 2.2, they don't work. I don't get any errors, they just won't execute. Could somebody with Leopard Server he
-
Xserve won´t mount LaCie Firewire drives
I booted our Xserve with two Lacie´s 1 TB Firewire drives attached and after the boot xserve wouldn´t mount the drives. I tried FW800 and FW400 connections, re-attach drives one-by-one, 4 different cables and also with another Xserve but still no ava
-
Greyfield Deployment of UC320w with RV120w
I have a number of customers using the RV120w Small Business Firewall/Router in their business, and am having problems deploying the UC320w into these networks in a greyfield scenario. I am following the published Cisco document for configuring the u
-
Image location problem.
Hi friends, I've put image and link object on my dashboard and link it to the image. I can see the image on my local system but cannot see the image there when I access the dashboard on some other computer. Currently I'm accessing the image from: C:\
-
Where is the CCV number stored for offline processing? I cannot see it the secure PDF document
Please note that we will not collect CVV, CVV2, CVC2 & CID as per PCI standards. A Card Verification Value code, CVV, (CVV2 for Visa, CVC2 for MasterCard and CID for AMEX) is the three or four digit number located either on the front or back of a cre