2005 Jun 29 4:46 AM
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 chan
2005 Jun 29 6:33 AM
2005 Jun 29 6:33 AM
2005 Jun 29 6:40 AM
Parameter_1 is not required, what are you using it for?
If you leave the parameter_1 field blank, you will get the filepath correctly.
cheers,
Ajay
2005 Jun 29 6:44 AM
hey Ajay,
Thanks for your reply.
I am using Parameter1 for passing File name dynamically to create full path with
C:\.....\Filename. like this.
However, even if i kept parameter_1 blank also same situation..no changes.
any alternates place to check....
I dont know where the Global path is taking from..as default..
ambichan
2005 Jun 29 6:50 AM
Hi,
if you want to specify parameter, you need to use placeholder <PARAM_1> in the logical file definition which you have not done.
It should work if you do not use the parameter (or if you use it, change your def to include the above).
If the definition is not found correctly, default global path DIR_GLOBAL is used.
For a complete documentation, refer to the function module documentation of FILE_GET_NAME.
From the documentation :-
"If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name."
cheers,
2005 Jun 29 7:53 AM
Hey 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 |
|
49 | MESSAGE i805(dh). |
50 | EXIT. |
51 | ENDIF. |
52 | ENDIF. |
53 |
|
54 |
|
55 | select_fields[] = shlp-fielddescr[]. |
56 | delete select_Fields where mask+4(1) = 'X'. |
57 |
|
58 |
|
59 |
|
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 |
|
82 | *---- * |
83 |
|
84 | *---- * |
85 |
|
86 |
|
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 |
-
-
2005 Jun 29 8:18 AM
hey guys,
Thanks for your help.
I solve this problem.
Problem is..if you declare multiple Syntax group for windows NT or OS, then By default the FM takes the First assignment of the WINDOWS NT directory.
Thanks for all oof your help.
I will reward points for all and close the thread.
ambichan.
2005 Jun 29 6:45 AM
Hi Ambi,
I thinks you have not specified the physical file properly in logical path OR the changes mite have not saved.
1.Create a Logical Path.
2.Assign Physical path to logical file.
there is a problem in your step 2.
Regards,
Prabhu Rajesh.
2005 Jun 29 6:47 AM
Sorry it is
2.Assign Physical paths to logical PATH.
there is a problem in your step 2.