Hi what the use f4_filename  plz send some example code.?

hi iam shabeer iam abap fresher i want to select a file which i have saved in c drive of harddisk through sap report iam confuse what values would give import and export will u plz help me.

hi check this...
TABLES : MARA.
INTERNAL TABLE DECLARATION
TYPES : BEGIN OF ITAB,
MATNR TYPE MARA-MATNR,
MEINS TYPE MARA-MEINS,
ERNAM LIKE MARA-ERNAM,
AENAM LIKE MARA-AENAM,
MTART LIKE MARA-MTART,
END OF ITAB.
DATA : IG_ITAB type ITAB OCCURS 0.
DATA : V_FILE TYPE STRING.
DATA : T_FILE TYPE RLGRAP-FILENAME.
RETRIVE DATA FROM DATABASE
SELECT
MATNR
MEINS ERNAM AENAM MTART FROM MARA
INTO CORRESPONDING FIELDS OF TABLE
IG_ITAB
up to 10 rows.
CALLING FUNCTION MODULES
CALL FUNCTION 'F4_FILENAME' "PASS THE FILE NAME AS U NEED.
EXPORTING
FIELD_NAME = 'T_FILE'
IMPORTING
FILE_NAME = T_FILE.
V_FILE = T_FILE. "STRING CONVERSION
CALLING GUI DOWNLOAD TO EXTRACT
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = V_FILE
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
WRITE_LF = 'X'
tables
data_tab = IG_ITAB .
regards,
venkat appikonda

Similar Messages

  • Whats the use of definig the task assignment ....

    I ve a question that what is the need of assigning the possible agent again after v assigned the agent in the agent type...
    Really  for a task , first i  assigned the USER , then what  i  did is assigned a possible agent by clicking the agent assignment icon  in the task properties tab and then i checked the check box for GENERAL FORWARDING ALLOWED, assigned the agent type  by clicking the create agent assignment icon ..i
    choosing  the user....and i mention an existing user there
    then i test run the workflow passing the instance ...but the workitem is not getting into anyones in box.... can anyone explain the usage of that and what happened on what i did....
    thanku...

    I am not sure if I got it correctly:
    1. You have assigned a particular user as an agent for a workflow step (he should become an agent at runtime).
    2. As possible agent assignment you have chosen 'General forwarding not allowed' checkbox.
    If that's the case, the possible agent assignment is still missing. I.e. whoever receives the workitem can forward it to anybody, but noone can receive it.
    You have two options:
    1. Declare a task as a general task.
    2. Maintain the possible agent assignment: assign at least your user as  a possible agent.
    In this scenario I would opt for 1.
    And to answer the question what is the use I would give some examples:
    1. You assign particular agents to the WF step. You declare a task as general task.
    This is most commonly used. Works as described above.
    2. You don't make an assignment at the WF step level. You declare limited number of possible agents for a task.
    Merely used. All possible agents will receive a task. Can they forward? This depends on the settings of a task (forwarding allowed).
    3. You assign particular agent to the WF step. You declare possible agents (e.g. by assigning a PFCG role). You declare, that general forwarding is not allowed.
    Appropriate agent will receive a task and he will not be able to forward it to somebody who is not authorised.
    Some other combinations are possible, but not always make sense.
    Regards,
    Michal

  • Could anybody plz send some faq's on modulepool?

    Hi experts,
    I'm very new to module pool.
    could anybody plz send some faq's on modulepool?
    regards.
    venkat

    Module Pool Programming
    http://www.allsaplinks.com/dialog_programming.html
    http://sap.mis.cmich.edu/sap-abap/abap09/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://sap.mis.cmich.edu/abap-00/
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    http://sappoint.com/abap.html
    http://www.sap-img.com/abap.htm
    http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/abap/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://www.sappoint.com/faq/faqdiapr.pdf
    http://www.allsaplinks.com/dialog_programming.html
    Check the following Link
    http://www.sappoint.com/faq/faqss.pdf

  • WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    Subhash,
    You create and distribute a model in BD64. The details of that are stored in this tables.
    A model gives you the details of the sender / receiving systems and what are the message types that are getting transferred between these systems.
    Regarding the IDOC segments issue, can you explaing how are you triggering the IDOC and which message / idoc type you are dealing with.
    Regards,
    Ravi
    Note :Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Whats the best way of sending files ?

    whats the best way of sending files (mp3's) to another computer over the internet, been doing it over msn, but takes a while, is there any other way?

    Have you thought of using an intermediary file server, e.g. yousendit.com, rapidshare.de, etc? Alternatively, you could do it the computer-to-computer route by enabling either 'Remote Login' or 'FTP Access' (Sharing preference pane) on one and connecting with the other.
    As an aside, what you're doing isn't illegal, is it? Pardon my bluntness.
    Yang

  • What the "use JSP presentation" check box does?

    Can someone tell me what the "use JSP presentation" check box does? (can't find any documentation)
    When I set "Implementation type" to "BPM Object Interactive Call' if a check "use JSP presentation" instead of "Use BPM Object Presentation" and I enter a JSP name can I cause the process to start a JSP ?

    Hello,
    The option is intended to use a JSP instead of a form for a BPM Object interactive call. This means that you have to prepare your custom JSP, add a special tag library provided by Fuego and "mark" your html tags deciding which of them will become the attributes for the instance of your BPM Object.
    Whitin the page you can also call some methods of your objects.
    Finally you can post back the data and automatically update your object in the process. There is no much documentation and it's even quite old. Take a look here: [http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html]
    The JSP will be shown as a normal interactive activity popup window. You can customize it as you like, even adding some client side script.
    HTH
    G

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Whats the use of 'Maximum Councurrency' in File Receiver adapter?

    Hi All,
            Whats the use of 'Maximum Councurrency' in File Receiver adapter?
    Xier

    Hello,
    Refer the  below thread and check it out my reply . I gave for JDBC adapter, but the concept is same for File/JDBC.
    Re: JDBC Adapter - One Connection prior to SP20
    Best regards,
    raj.

  • Whats is table type ? whats the use of it in abap?

    hi,
    i am ahmed abap fresher,
         i want to know what is table type and whats the use of it. at what point/situation we utilize this table type.

    Hi Ahmed ,
    Table is apart of data dictionary.
    Table is a sort of container where we store data.
    For eg. you want to store customer record in the database.Now you will store that customer record against specific fields of the applicable table.
    You can create or see table by means of transaction code se11.
    There are 3 typesof tables available in SAP ABAP:
    1. Transparent table
    2. Pool table
    3. Cluster table.
    Transparent Table:
    A physical table definition in the database for the table definition which is stored in the ABAP Dictionary for transparent tables when the
    table is activated. The table definition is translated from the ABAP
    Dictionary to a definition of the particular database.
    Pooled table:
    Pooled tables can be used to store control data (e.g. screen sequences,
    program parameters or temporary data). Several pooled tables can be
    combined to form a table pool. The table pool corresponds to a physical
    table on the database in which all the records of the allocated pooled
    tables are stored.
    Cluster table:
    Cluster tables contain continuous text, for example, documentation.
    Several cluster tables can be combined to form a table cluster. Several
    logical lines of different tables are combined to form a physical record
    in this table type. This permits object-by-object storage or
    object-by-object access. In order to combine tables in clusters, at
    least parts of the keys must agree. Several cluster tables are stored in
    one corresponding table on the database.
    See the documetation at:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
    Reward if useful ...
    Regards ,
    Shankar GJ

  • Why interface property be default final whats the use of that

    can anybody explain me
    when i declared a variable inside the interface its always public static final.
    why its static and final what the use of theat. its set of rule or it has any reason.

    Sir,
    You do not have much choice:
    From the JLS (9.3):
    "Every field declaration in the body of an interface is implicitly public, static, and final. It is permitted to redundantly specify any or all of these modifiers for such fields."
    Note from this though that you do not have to explicitly declare a field in an interface as public / static / final if you dont want to - if you leave it out the field is implicitly declared with these attributes.
    So you could wite:
    public interface SirInterface {
      public int HeIsActuallyPublicStaticFinal = 1;
    }

  • Whats the use of sap queries

    whats the use of sap queries

    Hi,
    http://www.sap-img.com/abap/what-is-sap-queries.htm
    http://www.informit.com/articles/article.asp?p=664660&rl=1
    def sap query
    http://help.sap.com/saphelp_bw21c/helpdata/en/f1/0a5625e09411d2acb90000e829fbfe/content.htm
    In HR
    You can use SAP Query in HR to report on HR data.
    how to create sap query
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb4145455611d189710000e8322d00/content.htm
    for maintain SAP query in HR
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb42cb455611d189710000e8322d00/content.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb455f455611d189710000e8322d00/content.htm
    If you want to create InfoSets for HR, you can use logical databases PNP, PAP, and PCH . The database you must use to create your InfoSet depends on the component in which the data you want to report on is stored.
    Creating InfoSets
    The maintenance procedure for HR InfoSets differs from the procedure described so far in this section inasmuch as HR data fields are grouped together in infotypes. To set up an InfoSet for the HR application, proceed as follows:
       1. On the initial screen for maintaining InfoSets, enter a name for the InfoSet and choose Create.
       2. On the next screen, enter a name for the InfoSet and select one of the HR logical databases in accordance with your reporting requirements.
    Customer infotypes can be created on all HR logical databases. In each individual case, therefore, you must decide which database to select so that you can report on customer infotypes.
    This screen enables you to enter an authorization group. All of the queries that are subsequently created using this InfoSet can only be executed by persons who have this authorization group.
       3. Choose .
    This takes you to the Infotype Selection for InfoSet  screen. You now have the option of creating field groups and assigning fields as required for non-HR InfoSets. Field groups that correspond to infotypes and already contain fields, however, are always created for HR InfoSets. The field groups are displayed in an overview tree in the top right section of the screen.
    The infotypes that you included in the InfoSet are displayed in an overview tree on the left of the screen. The infotype fields that are already included in field groups are displayed in a different color, and the field group ID is displayed.
    In the standard system, a field group is created automatically for each infotype that you included in the InfoSet (a field group corresponds to an infotype).
    In the standard system, each field group contains the infotype-specific fields. To ensure that working with the InfoSet is as easy as possible, you are advised to restrict your use of fields in each field group to those you really require. This means you should remove fields that are not required.
    An infotype's fields must only be assigned to the pertinent field group. Make sure this assignment is correct. If the assignment is incorrect, the InfoSet could be rendered unusable.
    When an InfoSet is created, the following fields are transferred automatically to the first field group:
    Logical database PNP Personnel number
    Logical database PAP Applicant number
    Logical database PCH Object ID, plan version, and object type
       6. Determine the fields that must be included in the field groups of your InfoSet. If you require further information, see
          Assigning Fields to a Field Group.
    If you want, you can change the default sequence of field groups and fields as required using drag & drop.
       7. To save the InfoSet, choose .
       8. To generate the InfoSet, choose .
          On the Change InfoSet (InfoSet name) screen, you can choose Edit ® Change infotype selection to add more infotypes to the InfoSet, or to remove infotypes from the InfoSet. Remember to regenerate the InfoSet afterwards.
          This screen also enables you to update InfoSets if, for example, the system contains new additional fields for specific key values. To do so, choose InfoSet ® Additional functions ® Update additional HR fields.
       9. Go back to the initial screen for InfoSet maintenance.
      10. Choose User group assignment.
      11. Select a user group, and save your entry.
    Please reward points.

  • Whats the use of assigning price list to site

    hi ,
    Why we assign price list in site (wb01) merchandise category?is that price list the same which i assign in "assign pricing type/reference site to organisational levels" in sales price calculation.explain me whats the use of assigniing the price list in siter(wb01) merchandise category which we will find on the top screen inside the site master
    regards
    krish

    Hi Krish
    Price list are assigned to article through MC at site master, no where else we define price list with article. When you run WPMA to transfer article price to stores, system will look at assigned price list with MC at site master then transfer the price.
    Price list assign at organisational level will help system to find which pricing procedure to be used and which store Net purchase price to be taken for calculation.
    Best Regards
    Swami

  • Whats the use of TC we16

    Hi all
    whats the use of TC we16 ?
    K S GREWAL

    Grewal,
    This is the inbound testing tool for IDoc files. Enter the path and file name for the IDoc file and the File Port set up to bring it in. Make sure it matches the File Port used in the Partner Profile for your Partner and IDoc Message Type.
    So I would recommend to run only in DEV.
    ---Satish

  • Whats the use of doget and dopost

    hi
    whats the use of doget and dopoast when same work can be done by sevice alone?
    Message was edited by:
    pooja_k_online

    Try looking at the Tomcat implementation of HttpServlet.service() method. I have pasted it below, if you look at the service() method all it does is to check for the method and call the appropriate method. It is not recommended to override the service method. It is a good practice to only override the getXXX() methods.
    protected void service(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException
    String method = req.getMethod();
    if(method.equals("GET"))
    long lastModified = getLastModified(req);
    if(lastModified == -1L)
    doGet(req, resp);
    } else
    long ifModifiedSince = req.getDateHeader("If-Modified-Since");
    if(ifModifiedSince < (lastModified / 1000L) * 1000L)
    maybeSetLastModified(resp, lastModified);
    doGet(req, resp);
    } else
    resp.setStatus(304);
    } else
    if(method.equals("HEAD"))
    long lastModified = getLastModified(req);
    maybeSetLastModified(resp, lastModified);
    doHead(req, resp);
    } else
    if(method.equals("POST"))
    doPost(req, resp);
    else
    if(method.equals("PUT"))
    doPut(req, resp);
    else
    if(method.equals("DELETE"))
    doDelete(req, resp);
    else
    if(method.equals("OPTIONS"))
    doOptions(req, resp);
    else
    if(method.equals("TRACE"))
    doTrace(req, resp);
    } else
    String errMsg = lStrings.getString("http.method_not_implemented");
    Object errArgs[] = new Object[1];
    errArgs[0] = method;
    errMsg = MessageFormat.format(errMsg, errArgs);
    resp.sendError(501, errMsg);
    }

  • What is IMPORT/EXORT statements ?please give some example code?

    What is IMPORT/EXORT statements ?please give some example code?

    EXPORT :-To read data objects from an ABAP program into ABAP memory, use the following statement:
    Syntax
    EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.
    This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM <f i >, the data object <f i > is saved under its own name. If you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    The EXPORT statement always completely overwrites the contents of any existing data cluster with the same name <key>.
    IMPORT :-To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    they are used to save and reterive data in ABAP memory.
    here is an example to clear about them.
    <b>REPORT ZWA_TEST2 .
    data: it_bkpf type table of bkpf with header line.
    SELECT * FROM bkpf into table it_bkpf.
    EXPORT it_bkpf TO MEMORY ID 'MID'.
    refresh it_bkpf.
    IMPORT it_bkpf FROM MEMORY ID 'MID'.
    LOOP AT It_bkpf.
    write:/ it_bkpf-belnr.
    ENDLOOP.</b>
    Reward points if it is useful.......

Maybe you are looking for

  • How do I connect my 27" Imac to my 47" Vizio HDTV?

    Good Morning! I am attempting to connect my 27" Imac to my brand-spankin-new 47" Vizio 1080p HDTV. I know there is a way to use the TV to display videos, internet (Netflix), and such, but I'm not sure what is the simplest and most effective way to ge

  • Windows update KB3000850 fails with error: 0x800700a1

    Windows update KB3000850 fails with the following error: 0x800700a1 In WindowsUpdate.log there is the following: FATAL: CBS called Error with 0x800700a1 In CBS.log there is the following error: 2014-11-25 11:17:54, Error                 CSI    00000e

  • Z10 Issues So Far

    Hi, Leaving this list of faults/bugs which I hope Blackberry/RIM Will pick up on as there does not appear to be an official way to submit faults/requests:- 1) It is possible to adjust master volume when phone is locked.  This should only be adjustabl

  • Reporting display problems to Apple

    If you are having display problems, you should not be waiting for others to complain or just sit there stewing in your juices. Call AppleCare and tell them what's going on. People in IT have told me that one of the most frustrating things that they e

  • Dynamic multiple receiver by source message

    Hi, You have to use enhanced receiver determination. Illustration of Enhanced Receiver Determination - SP16 By Venkataramanan Parameswaran Thanks SaNv...