Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Logical file & is not assigned to physical file &.lsmw.conv

Former Member
0 Kudos

Hi

I've gone through some other posts with similar queries, but none of the suggestions works for us (it might be that the SAP Versions differ).

We're using the following Import Method in LSMW

My Logical File Path Definition looks as follows

My Logical File Name Definition looks as follows

My Converted Data Logical Path and File definition is as follows:

However I get the following error and don't know how to fix it?

Your assistance will be greatly appreciated.

Thank you and best regards,

Adrian

1 ACCEPTED SOLUTION

Former Member

Daniela Butnar's post ( LSMW - Logical Path/File - No logical path has ... | SCN ) put me on the right track, but there was still something different in our system as I still got error message "File & is not in the directory area global". So after stepping ABAP code for quite a while I saw it referenced Logical File /SAPDMC/LSMW_FILE, which referenced Logical File Path /SAPDMC/LSMW_FILE_LP, which was linked to Physical path <P=DIR_GLOBAL>/<FILENAME>. Daniela's LSMW PATH link settings point to <FILENAME>, so I deleted the <P_DIR_GLOBAL>/ part and just made it <FILENAME>. That was the missing link. Now it works. Just another tip, please keep your LSMW Project, Subproject and Object names very short. I suggest 5 characters each maximum. Otherwise if the physical file path is long, the physical file-name gets truncated and you don't get a user-friendly error message. It just says your logical file and path settings are not set up. I'm adding my 6-step config below:

Step 01:

Step 02:

Step 03:

Step 04:

Step 05:

Step 06:

Best regards,

Adrian Bruwer

South Africa

4 REPLIES 4

monami
Explorer
0 Kudos

This message was moderated.

JL23
Active Contributor
0 Kudos

If you have in general authority to create logical files and paths then just let LSMW do this job for you.

Enter a desired name for logical path and logical file, then click the green check mark button.

SAP will give you pop-up asking if you want to create the logical path and file and you just need to confirm .

try it for example by using Z_INFOREC for both fields, logical path  and logical file.

Former Member

Daniela Butnar's post ( LSMW - Logical Path/File - No logical path has ... | SCN ) put me on the right track, but there was still something different in our system as I still got error message "File & is not in the directory area global". So after stepping ABAP code for quite a while I saw it referenced Logical File /SAPDMC/LSMW_FILE, which referenced Logical File Path /SAPDMC/LSMW_FILE_LP, which was linked to Physical path <P=DIR_GLOBAL>/<FILENAME>. Daniela's LSMW PATH link settings point to <FILENAME>, so I deleted the <P_DIR_GLOBAL>/ part and just made it <FILENAME>. That was the missing link. Now it works. Just another tip, please keep your LSMW Project, Subproject and Object names very short. I suggest 5 characters each maximum. Otherwise if the physical file path is long, the physical file-name gets truncated and you don't get a user-friendly error message. It just says your logical file and path settings are not set up. I'm adding my 6-step config below:

Step 01:

Step 02:

Step 03:

Step 04:

Step 05:

Step 06:

Best regards,

Adrian Bruwer

South Africa

former_member429363
Participant
0 Kudos

This message was moderated.