File path in CV01N transaction

Hi,
I'm basically a ABAP programmer. I dont know much about the AutoCAD.
Our requirement is, in CV03N transaction, we have the reference file path which is having the file path of the drawing. This is looks like a windows file path. I beleive generally all these drawings will be stored in a shared file server like
Common-server\All-drawings\Draw1.drw. Now the question is  if we have changed the file server, like "Common-Server1" in this case, we have to change all the file paths that are already have the old file path to the new file path.
Is there any way to avoid this? I mean can we have some alias name or something which we'll enter in the file path value while creating the document using CV01N so that we can avoid the rework of changing the file path for all the documents.
And also I would like to know how can we change this file path for the existing documents? I saw a FM BAPI_DOCUMENT_CHANGE, but I couldnt get exactly what I need to pass for this BAPI.
Can you please help me in this?
If the question is not clear, please let me know.
Thanks,
Kishore

you can also assign a driveletter instead of working with the UNC path (you're file server administrator can arrange that). it the servername changes in the future the path remains the same. only the systemadministrator has to change the inlog script so the driveletter assignment points to the new servername.
with BAPI_DOCUMENT_CHANGE you pass the document info record data on the import paramaters and the file path in the tables section on DOCUMENTFILES
so you define a table as type BAPI_DOC_FILES and fill it with the file path and other relevant variables accordingly. you clear it for every document info record.
(the reason for passing filepaths in a table is because you can have more than 1 file in 1 document info record)
and what is it otherwise that you couldn'get what you needed
here some old code from my import programm for passing the filenames to the function (jhe I know I have to use a workarea by now)
t_bestand type BAPI_DOC_FILES occurs 0 with header line,
loop at it_dms_import.
   clear s_docdata.
    move 'Z01' to s_docdata-DOCUMENTTYPE.
    move '00' to s_docdata-DOCUMENTVERSION.
    move '000' to s_docdata-DOCUMENTPART.
    move it_dms_import-zapplic to s_docdata-WSAPPLICATION1.
    move 'Tekeningen VU (calc) ' to s_docdata-DESCRIPTION.
    move it_dms_import-zstatus to s_docdata-STATUSINTERN.
    move it_dms_import-zstatus to s_docdata-STATUSEXTERN.
    move it_dms_import-bestand to s_docdata-DOCFILE1.
    clear t_bestand.
    refresh t_bestand.
    move it_dms_import-zapplic to t_bestand-WSAPPLICATION.
    move it_dms_import-bestand to t_bestand-DOCFILE.
    append t_bestand.
   CALL FUNCTION 'BAPI_DOCUMENT_CREATE'
      EXPORTING
        documentdata               = s_docdata
*       HOSTNAME                   = ' '
    IMPORTING
*       DOCTYPE                    =
        DOCNUMBER                  = docnr
*       DOCPART                    =
*       DOCVERSION                 =
        RETURN                     = foutcodes
      TABLES
        CHARACTERISTICVALUES       = t_kenmerk
        CLASSALLOCATIONS           = t_classalloc
*       DOCUMENTDESCRIPTIONS       =
*       OBJECTLINKS                = t_equipment
*       DOCUMENTSTRUCTURE          =
        DOCUMENTFILES              = t_bestand  "ADS 24102005 uitsluiten ivm import calcs
*       LONGTEXTS                  =
endloop.
kind regards
arthur
Message was edited by:
        A. de Smidt

Similar Messages

  • Logical and physical file paths

    Hi,
    can anyone elobrate me  on what are logical and physical file
    paths ?

    hi,
    Follow this link
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
    File format determination (Required / optional fields and field checks).
    Logical File Path configuration through transaction 'FILE'. A new physical file path should be created on operating system level or an existing one can be used if agreed. The Basis team member should create a new file path at operating system level, if required.
    Hope this helps, Do reward.

  • Which file path should I pass bdcdata table

    Hi ,
    I have the following scenario.
    There is a button in the standard transaction which opens a dialog box. User can choose a file in the dialog box. That file will be uploaded in the transaction.
    I need to write a bdc for this transaction. What file path I need to pass through BDCDATA table? Will it take file from application server or presentation server?
    Thanks is advance.
    Raktim

    Dear Jorge,
    I got the the recording. Now I need to pass the file path whoch called transaction is expecting. Should I pass path in the application server or presentation server?
    Thanks
    Raktim

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • LSMW - Logical File Path not pointing to Physical Path

    Hi All,
    I'm trying to upload some MIGO goods movement transactions through LSMW.  I'm to step 7, specifying files, and am getting the error "No logical file path has been specified.  I saw another thread which helped me, but I am still stuck after reading it. 
    Re: Error in Creation of Purchase Requisition through LSMW
    I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says.  I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory.  I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
    Does anyone know why it is not recognizing the physical path maintained in the logical path?
    Thanks,
    J

    Thanks for both replies,
    I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue.  I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each.  Here is how the config is currently:
    Logical File Path Definition:  MM_GOODS_MOVEMENT
    Syntax Group: WINDOWS NT
    Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
    or,
    Logical File Path Definition:  LOCAL_TEMPORARY_FILES
    Syntax Group: WINDOWS NT
    Physical path: C:\temp\<FILENAME>
    Logical File Name Definition: MM_GOODS_MOVEMENT
    Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
    Data format: ASC
    Applicat.area: MM
    Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
    Do you see any error with this Brajvir?  Thanks!

  • Logical file path problem in lsmw

    Hi folks,
    I created logical file  path in FILE tcode. its created and assigned physical file path to logical file path.
    then i am assigning that logical file path into lsmw step (specify file step).
    under specify file i am assigning into import data and convert data.
    once read data step completed read data must be save under this physical file but data is not saving under this path.
    can any one help me out this..
    1.can any one help how to create physical file in file tcode
    2.how to assigne that physical file to lsmw step specify file

    Hi Srikanth,
    There is no need to create the logical file path using the FILE transaction.
    Under Specify file step, you need to give your local file path in LEGACY DATA Section.
    Please check the below link in using the LSMW step by step.
    http://wiki.sdn.sap.com/wiki/display/ABAP/LSMWStepsin+Detail
    Hope this helps.
    Regards,
    Satish Kanteti

  • Difference between logical file path and physical file path

    Hi,
    Can anyone tell me why logical file path is required and why physical file path is required? What exactly is the difference bet them?
    Thanks in advance.
    Regards,
    PS.

    Hi,
    The function module FILE_GET_NAME convert a logical path into its corresponding physical path.
    The advantage of using logical pathes within your applications is obivous:
    If you need to change the physical path you just adjust it within transaction FILE yet no changes are required to your application.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    The file names that you use in ABAP statements for processing files are physical names. This means that they must be syntactically correct filenames for the operating system under which your R/3 System is running. Once you have created a file from an ABAP program with a particular name and path, you can find the same file using the same name and path at operating system level.
    Since the naming conventions for files and paths differ from operating system to operating system, ABAP programs are only portable from one operating system to another if you use the tools described below.
    To make programs portable, the R/3 System has a concept of logical filenames and paths. These are linked to physical files and paths. The links are created in special tables, which you can maintain according to your own requirements. In an ABAP program, you can then use the function module FILE_GET_NAME to generate a physical filename from a logical one.
    Maintaining platform-independent filenames is part of Customizing. For a full description, choose Tools ® Business Engineer ® Customizing, followed by
    Implement. projects ® SAP Reference IMG. On the next screen, choose Basis Components System Administration ® Platform-independent File Names.
    For a more detailed description of the function module FILE_GET_NAME, enter its name on the initial screen of the Function Builder and choose Goto Documentation. On the next screen, choose Function module doc.
    Another way of maintaining platform-independent filenames is to use the Transaction FILE. The following sections provide an overview of the transaction.
    To create a logical filename, choose Logical filename definition, client-independent from the Navigation group box in Transaction FILE, then choose New entries. You define logical filenames
    You can either define a logical filename and link it to a logical path (as displayed here), or you can enter the full physical filename in the Physical file field. In the latter case, the logical filename is only valid for one operating system. The rules for entering the complete physical filename are the same as for the definition of the physical path for the logical file. To display further information and a list of reserved words, choose Help.
    If you link a logical path to a logical file, the logical file is valid for all syntax groups that have been maintained for that logical path. The filename specified under Physical file replaces the reserved word  in the physical paths that are assigned to the logical path. To make the name independent of the operating system, use names that begin with a letter, contain up to 8 letters, and do not contain special characters.
    Save your changes.
    regards,
    Omkar.

  • Diff between logical and physical file path

    Hi ,
    Could you please explain difference between logical and physical file path's and their importance in ABAP.
    Thanks and regards,
    shyla

    Hi
    The function module FILE_GET_NAME convert a logical path into its corresponding physical path.
    The advantage of using logical pathes within your applications is obivous:
    If you need to change the physical path you just adjust it within transaction FILE yet no changes are required to your application.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    The file names that you use in ABAP statements for processing files are physical names. This means that they must be syntactically correct filenames for the operating system under which your R/3 System is running. Once you have created a file from an ABAP program with a particular name and path, you can find the same file using the same name and path at operating system level.
    Since the naming conventions for files and paths differ from operating system to operating system, ABAP programs are only portable from one operating system to another if you use the tools described below.
    To make programs portable, the R/3 System has a concept of logical filenames and paths. These are linked to physical files and paths. The links are created in special tables, which you can maintain according to your own requirements. In an ABAP program, you can then use the function module FILE_GET_NAME to generate a physical filename from a logical one.
    Maintaining platform-independent filenames is part of Customizing. For a full description, choose Tools ® Business Engineer ® Customizing, followed by
    Implement. projects ® SAP Reference IMG. On the next screen, choose Basis Components System Administration ® Platform-independent File Names.
    For a more detailed description of the function module FILE_GET_NAME, enter its name on the initial screen of the Function Builder and choose Goto Documentation. On the next screen, choose Function module doc.
    Another way of maintaining platform-independent filenames is to use the Transaction FILE. The following sections provide an overview of the transaction.
    To create a logical filename, choose Logical filename definition, client-independent from the Navigation group box in Transaction FILE, then choose New entries. You define logical filenames
    You can either define a logical filename and link it to a logical path (as displayed here), or you can enter the full physical filename in the Physical file field. In the latter case, the logical filename is only valid for one operating system. The rules for entering the complete physical filename are the same as for the definition of the physical path for the logical file. To display further information and a list of reserved words, choose Help.
    If you link a logical path to a logical file, the logical file is valid for all syntax groups that have been maintained for that logical path. The filename specified under Physical file replaces the reserved word  in the physical paths that are assigned to the logical path. To make the name independent of the operating system, use names that begin with a letter, contain up to 8 letters, and do not contain special characters.
    Save your changes.

  • File path for application server file

    Hi All,
                 I have a file 'abc.doc' stored on the application sever.
                I want to crate a document using the BAPI_DOCUMENT_CREATE and store this file
                What is the file path that I need to pass into the bapi.
    Please help
    Warm Regards
    Sunil Kumar.

    Hello Sunil
    You are right. That's the file path you should specify. It looks like your application server is running on UNIX platform. You can use transaction AL11 to locate your file and specify the file path in normal unix format. If this doesnt work, you can try prefixing your file path with "file:// ".
    Cheers
    Anand

  • How to give the application server file path in the module pool programming

    Hi,
         Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.
      For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,
    if container2 is initial.
    CREATE OBJECT CONTAINER2
      EXPORTING
        CONTAINER_NAME              = 'PICTURE_CONTAINER2'.
    CREATE OBJECT PICTURE2
      EXPORTING
        PARENT = CONTAINER2.
    CALL METHOD PICTURE2->SET_DISPLAY_MODE
      EXPORTING
        DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
      EXCEPTIONS
        ERROR        = 1.
    CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL
      EXPORTING
        URL    = " ? "
      EXCEPTIONS
        ERROR  = 1
        Others = 2.
    endif.
    Thanks in advance
    Deepu

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • FM to get a file created in CV01n

    Hi Friends,
    Is there any FM or a method which will get the data of the documents created in Tcode - CV01N.
    Please do send some information on this as this is very urgent.
    Thanks & Regards
    Arun K Singarapu

    I think you did not understand my requirement....
    I need to retrive the file which is created CV01N transaction and send the file as an attachment.
    So,the BAPI's which you gave do not work .... please let me know if you have any idea ..
    Thanks
    Arun

  • File path validation in the background fails - Urgent

    Hi,
    my program is to download files in the presentation server. so iam validating the file path using method CALL METHOD cl_gui_frontend_services=>directory_exist
    but when i execute the program in the back ground its giving dump with a runtime error as OBJECTS_OBJREF_NOT_ASSIGNED.
    could some body help on this
    Neha

    Hi.. neha,
    use this function module..
    EPS_OPEN_INPUT_FILE
    give the file name and directory path as input to this function module..
    if any exception raised like OPEN_FAILED then the file doesnot exist..(sy-subrc value will be set to 6 for this exception )..
    so you can write the code as
    call function '<b>EPS_OPEN_INPUT_FILE</b>'
      exporting
        file_name                    = '<b>ASDA</b>'
       DIR_NAME                     = '<b>D:\usr\sap\R3S\DVEBMGS02\work</b>'
      TEXT_MODE                    = ' '
    IMPORTING
      DIR_NAME                     =
      FILE_PATH                    =
      FILE_SIZE                    =
    EXCEPTIONS
       INVALID_EPS_SUBDIR           = 1
       SAPGPARAM_FAILED             = 2
       BUILD_DIRECTORY_FAILED       = 3
       NO_AUTHORIZATION             = 4
       BUILD_PATH_FAILED            = 5
       OPEN_FAILED                  = 6
       READ_DIRECTORY_FAILED        = 7
       READ_ATTRIBUTES_FAILED       = 8
       OTHERS                       = 9
    <b>if sy-subrc eq 6.
      message 'file does not exist' type 'E'.
    else.
      write : 'file exists.'.
    endif.</b>
    ASDA is an existing file in my application server in the specified directory.. so am getting the message as FILE EXISTS.
    you can see all the directories in Application server in transaction code AL11.
    reward all helpful answers,
    sai ramesh

  • On Logical File Path

    Hi all,
       My program reads an input file given thru Logical File Path and the Physical File name .
    The program works perfectly in Dev system, but in Quality system,it returns a sy-subrc 8 while opening the file ( open dataset ...)
    I have assigned the logical path to physical Path correctly and have transported it .
    I can see the combination entry ( Logical path, physical path ) in table PATH in both the system implying that the logical path is transported correctly .
      I don't understand why then, open dataset stmt returns sy-subrc 8, while it is 0 in Dev system .
    I don't have access to Transaction FILE in Quality .
    Could it be any reason ?
    Thanks,

    i think u have to check the properties of the file.
    if it is read only then u cannot ascess the file so we get sy-subrc as 8.
    so u have to set the properties of the file to write also..
    i think this will help
    Bye

  • Table or function module from for complete physical file path?

    Hi All,
    I know the Logical file and Logical path name, i can see the complete path also from logical path name i.e. the physical file address through transaction FILE, e.g. /USR/TMP/ , but i want to display this path in one of the report output,
    so please help me with the table or the function module which can give me the complete physical file path.
    I checked the the table ADMI_FILES but it contains the file name or the Logical path name but the complete physical file address e.g /USR/TMP?, like this is not available. More over i tried function module file_get_name, still the physical address is not correct one, it is giving same address for all logical paths.
    Kindly Guide me for this
    Regards,
    Nikesh Kumar

    try sth like this:
        CALL FUNCTION 'FILE_GET_NAME_AND_LOGICAL_PATH'
          EXPORTING
            LOGICAL_FILENAME = LDS_NAME
                IMPORTING
            FILE_NAME        = sfile
            LOGICAL_PATH     = pth
          EXCEPTIONS
            FILE_NOT_FOUND   = 01.
        IF SY-SUBRC NE 0.
          MESSAGE E300(BD) WITH LDS_NAME.                         " TODO MG
        ENDIF.
                                                                                    SELECT single PATHEXTERN FROM path INTO expth
               where pathintern = pth.
        replace '<FILENAME>' with space into expth.
        concatenate expth '/' sfile into sfile.
        open dataset sfile for output in text mode encoding default.
    A.

  • Save as local file path is greyed out for certain t.codes

    Hi All,
    After the ECC upgrdation, Save as local file path is greyed out for certain t.codes, while for other excel file export is not automatic.
    ES. for MB51 Transaction, when I try
    Path to save as local file is " System>LIST>Save---> Local file and I choose format Spreadsheet it appears format file txt, while with old release was XLS.
    Thanks

    I would like to known if the Additional Data button in MM02 should be custom. Us not possible to use standard?.
    Suggest to open a new thread for your query related to MM02
    Regards,
    Nick Loy

Maybe you are looking for