Logical path using in abap program

hay,
I want to create file in application server directory.
so i want the user to select the Logical path and file name from screen.so that he can create the file and seved in selected logical path.{path used must be from Instance profile DIR_LOGGING,GLOBALPATH directory etc).
could you pls tell me how to do this using parameter for user input selecting FILE PATH.
Do we have Functional module for Retrieving physical path
from logical path?
could you pls help me..
ambichan.

hey,
Thanks for your reply.
Instead of using logical file name as input, can we allow the user to select logical path using parameter?
I want user to select Logical path or logical file name from parameter. is it possible?
(I want to avoid user to input insteal want to allow user to select the path)
ambichan
Message was edited by: ambi chan

Similar Messages

  • Is Logical Database used in ABAP?????

    Hi All,
    I m very confused whether LDB's are used in ABAP or not.
    i have undergone a small training in ABAP-HR (HCM).
    In that training i was told that there is an advantage in HCM that LDB's are used here
    which were not used in ABAP.
    And i have read somewhere that LDB's are used in ABAP.
    can plz sumone give a light on this.
    Thanks,
    Sonali

    hi,
    The use of a logical database provides you with an alternative to having to program database accesses individually. Logical databases retrieve data records and make them available to ABAP programs.
    The same logical database can be the data source for several Quick Views, queries, and programs. In the Quick View, the LDB can be specified directly as a data source. A query works with the logical database when the functional area that generated the query is defined with a logical database. In the case of type 1 programs, the LDB is entered in the attributes or called using function module LDB_PROCESS. See appendix for information on how to use the function module.
    Logical databases offer several advantages:
    The system generates a selection screen. The use of selection screen versions or variants provides the required flexibility.
    The user does not have to know the exact structure of the tables involved (especially the foreign key dependencies); the data is made available in the correct order at GET events.
    Performance improvements within logical databases directly affect all programs linked to the logical database, without having to change the programs themselves.
    Maintenance can be performed at a central location.
    Authorization checks can also be performed centrally.
    A logical database is an ABAP program that reads predefined data from the database and makes it available to other programs.
    A hierarchical structure determines the order in which the data is supplied to the programs. A logical database also provides a selection screen that checks user entries and conducts error dialogs. These can be extended in programs.
    SAP provides some 200 logical databases in Release 4.6. The names of logical databases have been extended to 20 places in Release 4.0 (namespace prefix max. 10 characters).
    In the case of executable programs, you can enter a logical database in the attributes.
    Use the NODES statement to specify the nodes of the logical database that You want to use in the program. NODES allocates the appropriate storage space for the node - that is, a work area or a table area depending on the node type.
    The logical database makes the data records available for the corresponding GET events.
    The sequence in which these events are processed is determined by the structure of the logical database.
    Logical databases are made up of several sub-objects. The structure determines the hierarchy, and thus the read sequence of the data records.
    Hope this helps, Do reward

  • How to access Infocube content using an ABAP program

    Hi,
       I am trying to access infocube contents using a ABAP program in BW.
       It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
       tables. Is there any way we can access Infocube content.
       I tried using the FACT table but it has only Keyfigure data.
    thanks
    arshad.

    Hi,
    I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
    Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
    This is easy and fast.
    Regards,

  • Attach files to a Shopping Cart in SRM portal using a ABAP program.

    Hello.
    We need to attach files to a Shopping Cart using a ABAP program and see them in SRM portal.
    Currently we know how to attach files in the backend using the function Xxxxxxxxxx but with this function we can not see the attachment in the SRM portal.
    Do you know someway to attach files direclty in the front-end using a program?
    Maybe i have to attach first in the back-end and after that transfer to front-end?
    I have seen some thread but the solution provided is in the other way arround (transfer from front-end to backend) and then is not useful for my proble.
    Thanks in advance.
    Kr,
    Angel.

    Hello Angel,
    You can attach a file to SC ,and it is a standard functionality provided in SRM.
    While creating a Shopping cart,under Documents and attachements tab,there is an option to select a local file and attach it to a SC
    If you are looking at attaching the document in SRM and sending it to BE system.(R/3 system), then have a look at SAP note Note 1057932 - FAQ: Atachment transfer to backend, Required Configurations.
    The Following BADI’s will have to be implemented to allow the above functionality
    For transfer of attachments in PO , activate the BADI BBP_CREATE_PO_BACK. Set the values of the following parameters in the
    method BBP_CREATE_PO_BACK~Fill_PO_INTERFACE
    CV_ATTACH_TRANSFER_ACTIVE = 'X'
    CV_ATTACH_BE_STORAGE_CAT = 'DMS_C1_ST'
    CV_ATTACH_BE_DOC_TYPE = 'SRM'.
    For transfer of attachments in PR, activate the BADI
    BBP_CREATE_REQ_BACK. Set the values of the following parameters in the method BBP_CREATE_REQ_BACK~FILL_REQ_INTERFACE
    CV_ATTACH_TRANSFER_ACTIVE = 'X'
    CV_ATTACH_BE_STORAGE_CAT = 'DMS_C1_ST'
    CV_ATTACH_BE_DOC_TYPE = 'SRM'.
    Award points if useful.
    Thanks
    Arshad

  • Can we update BW infocube from SAP using Custom ABAP program ?

    Hi,
    My requiremnet is to update the infocube using data from R/3 .
    I have a custom report program and users want this data in BW.
    Let me if there are any FM? from which we can call via RFC or any other alternatives?
    Rgds
    Praveen

    report must be an ABAP program in ECC I guess...Why dont you look forward for generic extraction...
    Check this one:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • Re-use of ABAP Program ID from SAP Application in BODS 4.0

    Objective:
    1. We have used ABAP Program ID in DataStage 7.5. For example, ZDSYE001
    2. The above ABAP Program ID is residing in SAP Application Server.
    3. Now we need to use the same ABAP Program ID [ZDSYE001] in SAP BODS 4.0
    =====================================================================
    ISSUE/ERROR:
    1. In SAP BODS 4.0, we create a Datastore for SAP Application with all the configuration details.
    2. We are able to view external metadata for tables but not for ABAP Program ID.
    3. For ABAP Program ID, we are getting below error while using Extractor Object in Datastore to get the ABAP program ID:
    Cannot import the extractor<name=ZDSYE001>
    Error creating RFC Fuction<Z_AW_EXTRACTOR_IMPORT>:<RFC_ABAP_EXTRACTION-Exception Key:FU_NOT_FOUND,SYS-MSGTY:E,SY-MSGID:FL,SY-MSGNO: 046)>.Notify Customer Support (BODI-1116153)
    =======================================================================
    Please provide your inputs ASAP

    Hi,
    Please check this wiki pages for more information on how to solve your issue:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/ReleasingExtractorsforusebytheODP+API
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=217449812
    Hope it helps,
    Pedro

  • How to find which data elements are used in ABAP program ?

    I wish to find out which data elements are used in some programs .
    Is there any DD table which stores this information ?
    I know we can go to program and look in fields, but do SAP stores this information somewhere ?

    Dear Kaushal,
    Please check the table <b>TRDIR</b>.
    Regards,
    Abir
    Don't forget to award points *

  • Find dictionary object used in ABAP program

    Dear All,
    Pl help me find out all the dictionary objects used in report program and dialog program.
    Input will be program name(report or module pool). output will give name of the database tables used in that program.
    thanks.

    Hi,
    Use the FM RS_PROGRAM_TABLES
    pass the object type as PROG for report and the program name for object name
    Vikranth

  • Initiate BA00 (Order Confirmation) output manually using an ABAP program

    Hi experts,
    Does anyone have the experience of initiating BA00 print from an ABAP program? Similar to what happens when choosing "Issue Output To" from the "Sales Document" menu in VA01-VA03.
    Best regards,
    Magnus

    Hi,
    Check SAP Standard program RSNAST00.
    Regards
    Vinod

  • How to use simple abap program O/P using bsp.

    Hi All,
    I want to know simple BSP program which will call normal abap program. It has to display simple output not in table format.
    Thanks,

    Check the tutorials mentioned in the Wiki. Read the documentation. It is all simple.
    Cheers
    Graham Robbo

  • I am extraction through an legacy system using some abap programs

    hi all,
    I am just curious to find out is there any debugingg procedure that can be carried out to check the data loading from external systems.
    I am aware of simulate updation option at the infopackage level. Can anyone let me know how to debug the data that is been flowed in the bw system using an abap progm.
    regds
    hari

    Other than the simulate updating there is nothing in BW that let's you know the flow of the data, this debugging method actually does everything you need to debug, I really don't know why it is necessary to have a tool more than this. Line by line you will see what is happening to specific records and where it is throwing error.
    thanks.
    Wond

  • Checking for running programs using a abap program

    Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?

    Use the locking concept.   You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0. 
    The logic is:
    Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
    If lock got -> run program
    If lock not got -> quit.
    You have to put this logic at the start of your program.
    matt

  • Using OO Abap programming optimally

    Dear experts,
    I developed a report purely on Object Oriented concepts.It works really fine.
    Now my requirement is that in one of my module pool program i want to retrieve some data from that report itself
    and show in my Input help. I deliberately made this report OO as i had anticipated that it will be required to me in future.
    Now time has come.I want to call some method of the defined class.It is at this point that i am ignorant how to do.
    Methodi want to call from different program is that
    fetch_lc_info ()
    Let me explain you the structure of program which i am willing to call.
    [code]
    report zsammrp01.
    include zdata_definitions.             //I definitions
    include zselect_lc_params.         // selection screen
    start-of-selection.
    include zmainlc.                           //main logic
    Class Declarations
    data : ob_get_all_lcinfo type ref to get_lc_details.
    data: ob_alv_print type ref to alvprint.
    Perform functionalities
    end-of-selection.
    create object ob_get_all_lcinfo.
    ob_get_all_lcinfo->fetch_lc_info( ).
    create object ob_alv_print.
    ob_alv_print->print_details( ).
    end-of-selection.
    [/code]
    Let me show the zmainlc where i defined classes.
    [code]
    class get_lc_details definition.
    public section.
    methods: fetch_lc_info.
    endclass.
    class get_lc_details implementation.
    method fetch_lc_info.
    select aebeln aebelp bekgrp awerks amenge ameins
              bbedat amatnr atxz01 anetwr bwaers bwkurs anetpr azztest azzlcbt blifnr
           from ekko as b inner join ekpo as a on
    ( aebeln = bebeln ) into table t_all_lcs where b~bsart like 'IM%'.
    some other manipulation on this table done..............
    endmehod.
    [/code]

    Hi Aditya,
    from your explanation, i get that you defined and implemented your classes locally.
    To use local classes from outside their context is not supported, (though not impossible).
    Instead, you can convert your local classes to global ones by accessing them by  SE24 , using the import feature from the menu. Once they are globally defined, you can use them with every Program you like.
    regards
    Jörg
    (Besides, there is an OO Forum)

  • Generating DSOs by using a ABAP program

    Hi Experts,
    We have a requirement like mass generation of infoobjects through excel file as input. Similarly we need to create 20 to 30 dso's by giving excel file as input.In that file we mention DSO technical name,properties,key fields and data fields. By using this information we have to generate dso automatically in BI system.
    Any one have had implemented this in their project. I searched in Google for this, but no information found.
    Please share me the code/Program/Function Module to achieve it.
    Your help is much appreciated.
    Thanks in advance.
    Regards,
    Vijay.

    Hi Vijay,
    Yo have to use the BAPIs BAPI_ODSO_CREATE and BAPI_ODSO_ACTIVATE.
    I have used these BAPIs in my approach for generating Reporting InfoObjects based on Business Content. Here you have the option to generate a "template" DSO. Please have a look at my document Implementing Reporting InfoObjects based on Business Content. Here you can find sample coding in Class YCL_BW_REP_IOBJ Method GENERATE_TEMPLATE_DSO.
    Best regards,
    Sander

  • Logic Required in HR ABAP Program

    Hi,
    First i have to check the Change Date on Infotype 0000 Actions infotype (P0000-AEDTM).  If the change date falls within the Period Selection date specified then i have to include the employee in the report.
    the included fields are:
    P0000-AEDTM,P0001-BUKRS,PERNR,ENAME,P0000-MASSN,P0000-MASSG,P0000-BEGDA,P0001-ORGEH,P0001-PLANS,P0001-STELLP0001-ABKRS,P0001-WERKS,P0001-BTRTL,Q0001-MSTBR,Q0001-ENAME(supervisor name)
    If the change date (P0000-AEDTM) does not fall within the Period Selection Date, i have to check the Change Date in Infotype 0001 Organization Assignment infotype (P0001-AEDTM). If the change date falls within the Period Selection date specified then i have to include the employee in the report. Include in report only that information which has been changed from the previous Infotype 0001 record, except for Change Date, Company Code, Personnel Number and Name, which must always be included in the report.
    For this requirement i have written the below code:
    LOOP AT p0000 WHERE aedtm >= pn-begda AND
                          aedtm <= pn-endda.
       wa_final-massn = p0000-massn.
        wa_final-pernr = p0000-pernr.
        wa_final-aedtm = p0000-aedtm.
        wa_final-massg = p0000-massg.
        wa_final-begda = p0000-begda.
        wa_final-begda = p0000-begda.
        rp-provide-from-last p0001 space  p0000-begda p0000-endda.
        wa_final-bukrs = p0001-bukrs.
        wa_final-kostl = p0001-kostl.
        wa_final-mstbr = p0001-mstbr.
        wa_final-ename = p0001-ename.
        APPEND wa_final TO it_final.
        CLEAR wa_final.
    ENDLOOP.
    if sy-subrc ne 0.
    LOOP AT p0001 WHERE aedtm >= pn-begda AND
                            aedtm <= pn-endda.
          lv_endda = p0001-begda - 1.
          READ TABLE p0001 WITH KEY pernr = p0001-pernr endda = lv_endda INTO w0001.
          IF sy-subrc = 0.
          if p0001-kostl ne w0001-kostl.
            wa_final-kostl = p0001-kostl.
          endif.
         if p0001-mstbr ne w0001-mstbr.
            wa_final-mstbr = p0001-mstbr.
         endif.
          wa_final-pernr = p0001-pernr.
          wa_final-aedtm = p0001-aedtm.
          wa_final-bukrs = p0001-bukrs.
          wa_final-ename = p0001-ename.
           APPEND wa_final TO it_final.
           CLEAR wa_final.
          Endif.
    Endif..
    is this code correct? or do i have to do any modifications?

    This is like retro payroll run see the payroll program.
    RPCUCALC00 and you will find the logic over there how it will run retroactive payroll
    Best Regards

Maybe you are looking for

  • How to call a .jar file from a java bean?

    any body knows how to call a .jar file from a java bean?

  • Error spss 21 on OSX Mountain Lion

    Whenever starting spss 21 I on my MacBook (OSX Mountain Lion) I get the error message "general network error inet:Local Computer: 0". How do I fix this problem? Any suggestions are greatly appreciated, Anne

  • Import From Elements - where did it go

    I noticed that the Michael Tapes 'Import' video showed an 'Import From Elements' menu item on the file menu. I have the 4.1 beta installed and this item does not appear in the file menu. Where did it go or is there another way to import a PSE catalog

  • [solved]Network fails to start sometimes

    Hello! I'm having a problem with my network. Sometimes it fails to start. Usually, a reboot solves this. Here is the error log: [root@claudia log]# cat errors.log Aug 6 03:16:28 claudia dhcpcd[3194]: dhcpStart: interface eth0 is not Ethernet or 802.2

  • Store signature image in Active Directory and deploy it to each users desktop

    What I am trying to achieve is to have each user a hand written signature scanned in and stored in the .jpgPhoto attribute in Active Directory and then have some sort of script, like our login script, pull that information and copy the file to the us