How to Configure logical path and how to retrieve physical path for an IDOC

Hi ,
I want to configure logical path for an IDOC,
and then I need to retrieve Physical path from this logical path
using a FM (eg. FILE_GET_NAME).
How to configure the logical path for an idoc ?
Regards ,
Harshit Rungta

Using Logical Files in ABAP Programs
To create a physical file name from a logical file name in your ABAP programs, use the function module FILE_GET_NAME. To insert the function module call in your program, choose Edit ® Insert statement from the ABAP Editor screen. A dialog box appears. Select Call Function and enter FILE_GET_NAME. The parameters of this function module are listed below.
Import parameters
Parameters
Function
CLIENT
The maintenance tables for the logical files and paths are client-dependent. Therefore, the desired client can be imported. The current client is stored in the system field SY-MANDT.
LOGICAL_FILENAME
Enter the logical file name in upper case letters that you want to convert.
OPERATING_SYSTEM
You can import any operating system that is contained in the list in Transaction SF04 (see Assigning Operating Systems to Syntax Groups). The physical file name will be created according to the syntax group to which the operating system is linked. The default parameter is the value of the system field
SY-OPSYS.
PARAMETER_1
PARAMETER_2
If you specify these import parameters, the reserved words  in the physical path names will be replaced by the imported values.
USE_PRESENTATION
_SERVER
With this flag you can decide whether to import the operating system of the presentation server instead of the operating system imported by the parameter OPERATING_SYSTEM.
WITH_FILE_EXTENSION
If you set this flag unequal to SPACE, the file format defined for the logical file name is appended to the physical file name.
Export Parameters
Parameters
Function
EMERGENCY_FLAG
If this parameter is unequal to SPACE, no physical name is defined in the logical path. An emergency physical name was created from table FILENAME and profile parameter DIR_GLOBAL.
FILE_FORMAT
This parameter is the file format defined for the logical file name. You can use this parameter, for example, to decide in which mode the file should be opened.
FILE_NAME
This parameter is the physical file name that you can use with the ABAP statements for working with files.
Exception Parameters
Parameters
Function
FILE_NOT_FOUND
This exception is raised if the logical file is not defined.
OTHERS
This exception is raised if other errors occur.
Suppose the logical file MYTEMP and the logical path TMP_SUB are defined as in the preceding topics and we have the following program:
DATA: FLAG,
      FORMAT(3),
      FNAME(60).
WRITE SY-OPSYS.
CALL FUNCTION 'FILE_GET_NAME'
     EXPORTING
          LOGICAL_FILENAME        = 'MYTEMP'
          OPERATING_SYSTEM        = SY-OPSYS
          PARAMETER_1             = '01'
     IMPORTING
          EMERGENCY_FLAG          = FLAG
          FILE_FORMAT             = FORMAT
          FILE_NAME               = FNAME
     EXCEPTIONS
          FILE_NOT_FOUND          = 1
          OTHERS                  = 2.
IF SY-SUBRC = 0.
  WRITE: /  'Flag      :', FLAG,
         / 'Format    :', FORMAT,
         / 'Phys. Name:', FNAME.
ENDIF.
The output appears as follows:
HP-UX
FLAG :
FORMAT : BIN
Phys. Name: /tmp/TEST01
In this example, the R/3 System is running under the operating system HP-UX, which is member of the syntax group UNIX. The logical file name MYTEMP with the logical path TMP_SUB is converted into a physical file name /tmp/TEST01 as defined for the syntax group UNIX. The field FNAME can be used in the further flow of the program to work with file TEST01 in directory /tmp.
Suppose we have a logical file name EMPTY with the physical file name TEST, connected to a logical path that has no specification of a physical path. If you replace the EXPORTING parameter 'MYTEMP' with 'EMPTY' in the above example, the output appears as follows:
HP-UX
FLAG : X
FORMAT :
Phys. Name: /usr/sap/S11/SYS/global/TEST
The system created an emergency file name, whose path depends on the installation of the current R/3 System.

Similar Messages

  • How to configure the runtime and consolidation for a track in CMS.

    How to configure the runtime and consolidation for a track in CMS.
    I can see the track exists in CMS but the same doesnt pull up in the NWDS in the development configuration perspective.
    I compared the given track with the one which gets pulled up in NWDS. Theres something called runtime system and consolidation which isnt defined for the track which is invisible.
    Please advise , what are these required for. And how can we configure the same.

    The runtime systems are defined for a track to setup the Transport path for any code changes....the Consolidation system is usually defined as a Virtual system for the track and used for comparison and fixing any broken or Dirty DC's ....that means it's not used as a Runtime System for Deployment as compared to DEV,QAT and PROD used for Deployment...
    Hope it helps..
    Regards,
    Shikhil

  • How to configure sales forcast and assign marketing budget

    how to configure sales forcast and assign marketing budget

    Hi,
    As per my knowledge i am telling forecasting is done by Historical Data { MM & PP Module }
    when you collect the data based that we have to plan every month how much you want to procure the raw material etc..,
    that should be entered in the material master under "Forecasting" tab there we have to maintain monthly wise forecasting values
    i think it should get some idea if i wrong please clarify
    Regards,
    Prasanna

  • Is it possible to chenage logical system and how after a system is beeing u

    Hello
    I wander is it possible to chenage logical system and how after a system is beeing used for a while and how?

    Hello Tina,
    If the system is NOT a production system transaction BDLS can be used to change the logical system.  This would be necessary after refreshing a dev system from a production system, for example.
    If the system is a production system, I would agree that this is NOT advisable.
    Regards
    Greg Kern

  • How to Configure E-mail and Chat functionalities

    Dear all,
    How to configure E-mail and Chat functionalities for IC Webclient.
    through IC Webclient ICI interface how can we configure E-mail functionality, As per my understanding, E-mails can be handled in a similar way of receiving phones.
    Where these E-mails can be stored?, Where we define agent E-mail id?
    being ICI is a multi channel support does it need SMPT server support? If No, would there be any difference in the functionality?
    How does CHAT functionality works?
    Please educate in above scenarios to get a better understanding.
    Your help will be highly appreciated.
    Best wishes
    Raghu ram

    Do you make any effort to search for your answers before you post your questions?  ERMS is the email response system
    The 2nd post on this board - Documentation for Interaction Center (IC) WebClient
    There is tons of stuff here to answer your questions as well as show you the configuration.  You need a 3rd party CTI solution to do chat that you will read about in the blog.
    SAP Notes
    759923 Frequently Asked Questions about IC WebClient
    940882 Frequently Asked Questions about ERMS
    882653 Frequently Asked Questions about Agent Inbox
    1114557 SAP CRM 2007 Internet Browser Releases
    1118231 Supported user interfaces for SAP CRM
    981710 Support for Microsoft Internet Explorer 7.0
    1144511 Blank screen when starting CRM WebClient or IC WebClient
    1115493 CRM Web UI: Mandatory SICF services for CRM framework
    992848 Mandatory ICF nodes for CRM WebClient UI Framework
    IC WebClient Consultant Cookbook for CRM 2005
    Online Documentation
    Online Knowledge Products
    Blog: How to Configure Contact Center Simulator User Interface (CCSUI)
    Blog: What is Computer Telephony Integration (CTI)

  • How to configure MQ-FTE and IBM Datapower along with PI7.1

    Hi Friends,
    Can somebody guide me with the steps to configure MQ-FTE and IBM Datapower with PI7.1 for B2B communication?
    Thanks,
    --Sonal

    1. What is the difference between JMS MQ and Native MQ? How to determine which one to use?Native MQ refers to a proprietary api provided by IBM in multiple languages including java so that applications running on these can communicate mq. IBM also provides JMS wrappers around this native api, so that a jms client can talk to mq using JMS API. This is called MQ JMS.
    2. If native MQ can be used here, what are the steps to configure Native MQ on WLS in my situation?SOA suite provides a MQ Resource Adaptor which can be used to connect to MQ. The developers of this resource adapter would have used the native api to enable the adaptor to talk to MQ, so that you dont have to worry about it. However you will need to configure the properties of your local MQ ( qmgr , q name etc). This is done in the outbound connection pool properties of the resource adaptor.
    please check this blog for how to do this : http://soa-bpel-esb.blogspot.com/2009/09/configuring-mq-in-11g-soa-suite.html.
    Since your MQ installation is in a remote machine you will have to configure the following properties specific to your environment - hostname, port, server connection channel, along with the queue manager name and queue name
    3. Do I need any foreign servers or message bridges to be configured?Not required for your case if you are using MQ Adaptor. Since MQ also provides a JMS transport , you would have required foreign servers if you have to use JMS Adaptor instead of MQ Adaptor. Native MQ is expected to be faster than MQ JMS as it doesn't have the extra JMS layer.

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • I need to know how to configure wi-fi and VPN on m...

    I need to know how to configure wi-fi and VPN on my E61i.
    everytime I search for any available WLAN,I find one(in my company)and when start browsing,it gives me(WLAN not found).
    What should I do?

    iOS: Connecting to the Internet

  • Cursor arrow gone from solid black to having white lines go through it and trackpad is not working properly in mail and adobe acrobat - anyone know how this could have happened and how to solve it?

    Can anyone help me?  Concerned that I may have some kind of malware.  My cursor arrow and trackpad are behaving strangely,  The cursor used to be a solid black arrow but now seems to have horizontal white lines running through it.  The trackpad does not function normally either.  For example, when I use my trackpad to scroll up and down in mail  it sometimes works and sometimes does not.  In adobe acrobat it sometimes does not work.  In facebook, the cursor does not line up behind the menu keys as it should.
    Any one know how this might have happened and how I can stop it?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My Itouch 4 back camera doesn't work, it freezes when i try to open it, how can i fix this and how much will this cost?

    Can someone please tell me whats wrong, how I can fix this and how much it will cost me??

    If in settings, music, volume limit is off then restart your phone first. Hold the home and off button down until the apple symbol comes up.

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • The bottom of my macbook is falling off how do i fix this and how much does it cost?

    the bottom of my macbook is falling off how do i fix this and how much does it cost?

    Check this article http://www.apple.com/support/macbook-bottomcase/

  • How to apply OSS note and how to use it?--thanks

    Hi, morning all,
    I want to know how to apply OSS notes and how to use it, pls help me.
    Thanks.

    Applying OSS note is a critical activity in the system. Usually this task is carried out by the basis, as they maintain the system and the notes, support packs, etc.
    A OSS note has potential to impact the system in several ways. So it is better to work with the basis if  you need to apply a OSS note to be applied.
    Transaction code is Snotes. But pl dont attempt to apply by yourself.
    Reg your other question as how to use the OSS note, there is nothing like using aOSS note. Just apply and depending on what the notes do, it may change the config, or download a program or something.
    Ravi Thothadri

  • How to implement session varibles and how to use it

    how to implement session varibles and how to use it.ple help me

    Please see the below blog, Hope it helps!!!
    http://obieetraining11.blogspot.com/2012/06/create-initialization-block-for-session.html

  • I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    Look at the USB stick in Disk Utility and check whether it may be partitioned or have other software on it taking up space.

Maybe you are looking for

  • How can I compress an Imported Movie even further?

    I have a 20 second movie 230 x 129 size. The file size is 1.2 mb. I then imported it into Flash. After it's all said and done the finall SWF is 1.7 mb. I plan to put this on my homepage, but I want the file to be smaller. I reduced the flash .jpg and

  • TS3212 Why can I not download the new Itunes because im on 10.5.8?

    I have just purchased the new iphone 5 when i have gone to plug into my itunes to transfer previous details on my macbook pro its says download the new itunes when i go to do that it says My mac needs to be OS 10.6 my mac is 10.5.8? How do i do this?

  • Lsmw.conv is not a session record (type 0)

    Hi i am using lsmw to import gl master records. all my steps are correct but on the last step when i have to run batch input session the message below appears: lsmw.conv is not a session record (type 0) i have used the method both ticking and un-tick

  • N8 and WLAN newbee question(s)

    Hi, I'm new to the WLAN field. I don't know how to start a WLAN session. The reason I'm asking because I travel a lot and like to have my music with me. So I installed Spotify on my N8. But Spotify wants to use a WLAN connection. I tried to start one

  • Java.lang.UnsatisfiedLinkError: GetPixelFormat

    Hi - I am new to Java and Studio Creator 2. I have run across several demos that I tried to compile and got this error: java.lang.UnsatisfiedLinkError: GetPixelFormat could someone please help me solve this problem. thank you. -Jay