Flat file should have source field name and value

Hi Friends
I have a scenario of Idoc to Flat file , where in the target structure the field name and value should be present, generally only the value is available in a flat file.The target structure is as below:
for e.g RECTYPE is the Field Name and A is the value.
RECTYPE,A
DATEH,20111101
TIMEH,173125
RECTYPE,B
ORDNUM,4500054536
ORDITM,150
SUPDAT,20090218
PLNQTY,000000006
MATNR,14B300
BATCH,5697
PLANT,3026
DELIVTYPE,PO
SUPPLIER,0000023305
SUPNAME,Deutsche BP AG
SUPADRS,Erkelenzer Strasse 20
SUPCITY,Monchengladbach
SUPPOST,41179
SUPCOUN,DE
TRUCK_NBR,7589
BOND_FLG,X
STG_LOC,PLCL
LINE_ACTION,CRE
RECTYPE,B
ORDNUM,4500056721
ORDITM,10
SUPDAT,20090218
PLNQTY,000000013
MATNR,116703
BATCH,6589
PLANT,3026
DELIVTYPE,PO
SUPPLIER,0000023380
SUPNAME,DOW Belgium NV
SUPADRS,Havenlaan 7
SUPCITY,Tessenderlo
SUPPOST,3980
SUPCOUN,BE
TRUCK_NBR,7589
BOND_FLG,X
STG_LOC,PLCL
LINE_ACTION,CHG
RECTYPE,X
DATEH,20111101
TIMEH,173125
RECORDS,3

Hi,
     NameA.addHeaderLine
Specify whether the text file will have a header line with column names. The following values are permitted:
■       0 u2013 No header line
■       1 u2013 Header line with column names from the XML document
■       2 u2013 As for 1, followed by a blank line
■       3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
■       4 u2013 As for 3, followed by a blank line
This specification is only permitted if exactly one structure is defined.
regards,
ganesh.

Similar Messages

  • How do i have subsequent fields label and values move down the page dynamic

    how do i have subsequent fields label and values move down the page dynamicly...
    the field in question "can grow" and can become quite big...overlaping the content of the fileds below...how can i make the fields below this large field move dyanmically so there is no overlap?

    if it is the same field and it is set to can grow you just need to make sure you put space between by inserting a section below

  • Dynamic form... field names and values...

    Boy-Howdy. I wish I had the opportunity to stop by this forum and hang out at a time when I am not having issue, but, alas... I appreciate the brain power of the great minds that populate this forum.
    I have an issue: I think I am close on this but cannot identify where my syntax is going awry. Here is a simplified edition of my situation.
    I have a form with a set of dropdown menus that filter a recordset. The group of drop downs are dynamic from a database and will vary depending on what category of products a visitor is viewing.
    If I browse to FRUIT: I get three options that let me filter for:
    Fruit Type
    - Apples
    - Bananas
    - Pears
    Fruit Grown By:
    - Organic
    - Any
    Fruit From:
    - Domestic
    - South America
    - European
    However, if I browse to LUMBER I get:
    Wood Type:
    - Pine
    - Walnut
    - Oak
    Wood Prep:
    - Pre Cut
    - RAW Timber
    Wood Origin:
    - North America
    - South America
    - Europe
    I have the variable naming and database values worked out. My only issue is when I browse to friuit and select apples I want apples to remain selected as I page through results.
    So, the dropdown field names are dynamic. Currently set to zgen1, zgen2, zgen3. I set a variable named sr and increment it to build the progressive 1,2,3 after the field name zgen.
    <cfparam name="sr" default="1">
    <cfoutput group="ft_id" query="oompa2">
    <strong>#f_ftrname#:</strong><br>
    <select name="zgen#variables.sr#">
    <OPTION value="">select...</OPTION>
    <cfoutput>
    <OPTION value="#ft_id#_#fs_id#">#ft_options#</OPTION>
    </cfoutput>
    </select>
    <br><br>
    <cfset sr=#sr# + 1>
    </cfoutput>
    But when zgen1 has a value (in this case "Apples") I can't figure out how to dynamically test for the presence of a value for each dropdown. I have dynamically created the field names (cfset xvalue="FORM.zgen#variables.sr#") to test against. However this creates a value of FORM.zgen1, FORM.zgen2, FORM.zgen3 as it loops when I want it to be Apples, Organic, Domestic.
    Example:
    The code:
    <OPTION value="#ft_id#_#fs_id#"<cfif xvalue IS "#ft_id#_#fs_id#"> SELECTED</cfif>>#ft_options#</OPTION>
    which is translating to:
    <OPTION value="15_5"<cfif FORM.zgen1 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    When I want it to be:
    <OPTION value="15_5"<cfif 15_5 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    I hope I am making sense. I would greatly appreciate it if someone could help me noodle this. I have a feeling it is not as complicated as my mind is trying to make it. Thoughts?

    Three selects related type code was not the way to go - because I need each filter to be independent. I created a custom tag that argues the state for each separately up to ten filters.

  • Is there a way to import a indd CS4 file with its Data Fields names and properties into CC?

    I have to convert numerous files from CS4 to CC. The CS4 files are using external data from a CSV file. When I open the file in CS4 I can enable the preview and see the data from the CSV file. But when I save the file as indd or idml and try to open it in InDesignCC then I can't see the data as preview. I can see the Data fields (text).I think it's because it doesn't recognize the data fields from the CS4 file. If I delete a data field and remap it I will be able to see the preview for the field I just mapped. the other fields remain the unchanged, like they were just text.
    Any help with this topic will be very appreciated. I have about 70 data fields per document and about 100 documents to go through.
    Update: The symbol for a data field, ex: «fullname_2» change size when I delete and remap it. Explanation: When I open the CS4 file in IndesignCC I can't view a preview of the Data field(s) (almost positive because it's plain text). The data fields show like this «fullname_2». But when I delete that and drag a field from the data field list it shows like this <<fullname_2>>. So definitely, CC is not reading the data fields from InDesign CS4.
    P.S.: The fields above («fullname_2» and <<fullname_2>>  are copy and paste from Indesign CC.

    I'm attaching this image so this forum can notice the difference on the Data fields from CS4 and the ones added on CC

  • Creating new flat file using TextEdit w/specified name and path

    Hi all,
    I am working on an Applescript to create a blank new plain text file (in /tmp with a unique filename derived from today's date and time) and am missing something 'cause I keep getting an error message.
    Here's the code:
    <pre class=command>
    set Today to (do shell script "/bin/date +%Y%m%d%H%M%S") as string
    set DefaultFilename to (Today & "TMP.txt") as text
    set TMPpath to "/tmp/" as text
    set TMPFile to (TMPpath & DefaultFilename)
    tell application "TextEdit"
    set NewDoc to make new document with properties {name:DefaultFilename, path:TMPpath}
    end tell
    </pre>
    When I run the above code snippet I get the Applescript error message:
    TextEdit got an error: NSArgumentsWrongScriptError
    I understand that the properties listed in the make command should be a record, and that the individual properties comprising the record should each be text.
    What am I missing here? Something obvious I suspect.
    Any ideas would be greatly appreciated!
    Ed

    You're trying to use Unix-style paths for a Cocoa app, and that won't work.
    You need to use Mac-style paths, that is, colon-delimited, not unix-style (slash-delimited) paths.
    <pre class=command> set Today to (do shell script "/bin/date +%Y%m%d%H%M%S") as string
    set DefaultFilename to (Today & "TMP.txt") as text
    set TMPpath to ":private:tmp:" as text
    set TMPFile to (TMPpath & DefaultFilename)
    tell application "TextEdit"
    set NewDoc to make new document with properties {name:DefaultFilename, path:TMPpath}
    end tell</pre>
    A slightly better solution is to use the path to command rather than a hard-coded path. path to temporary items will give you the path to the current OS temporary file directory, which is more reliable than hard-coded strings, especially since non-English versions of the OS mght not use the same path names.
    <pre class=command> set TMPpath to path to temporary items as text</pre>

  • How to get custom field name and value in data table using csom

    i am using using this code but iam not getting FieldValues property..
     internal void ReadProjectCustomFields(string strProjectName)
                string url = "https://techwhizepm.sharepoint.com/sites/rnd/";
                using (ProjectContext projContext = new ProjectContext(url))
                    SecureString passWord = new SecureString();
                    foreach (char c in "Pass@word123".ToCharArray()) passWord.AppendChar(c);
                    projContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
                    projContext.Load(projContext.Projects, o => o.Where(i => i.Name == strProjectName));
                    projContext.ExecuteQuery();
                    foreach (PublishedProject _t in projContext.Projects)
                        DraftProject dftproj = _t.Draft;
                        //CustomFieldCollection custs = dftproj.CustomFields;
                        CustomFieldCollection custfs = dftproj.CustomFields;
                        projContext.Load(dftproj);
                        projContext.Load(custfs);
                        projContext.ExecuteQuery();
                        ddlcfields.Items.Clear();
                        if (!custfs.Count().Equals(0))
                            ddlcfields.DataSource = custfs.AsEnumerable().Select(o=>o.Name);
                            ddlcfields.DataBind();
                        DataTable dt = new DataTable();
                        dt.Columns.Add("Name", typeof(string));
                        dt.Columns.Add("InternalName", typeof(string));
                        dt.Columns.Add("FieldType", typeof(string));
                        //dt.Columns.Add("FinishDate", typeof(string));
                        DataRow dr = null;
                        foreach (CustomField _cust in dftproj.CustomFields)
                            dr = dt.NewRow();
                            dr["Name"] = _cust.Name;
                            string intername = _cust.InternalName;
                            dr["FieldValue"] = dftproj[intername].ToString();
                            //dr["FinishDate"] = _task.Finish;
                            dt.Rows.Add(dr);
                        GridView1.DataSource = dt;
                        GridView1.DataBind();

    I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
    Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
    Error:
    Error: Export failed.
    Detail: File not found.
    This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?

  • HR - dynamic selections field name and field value in the program

    HI all,
       I am using dynamic selections for a HR report.
    I have created a view with 20 fields and added it to HR report category ___00003(All fields suppressed).
    I need to check these fields in the program. But i am not able to get the field name and value in the program for dynamic selections fields.
    Please let me know how to get the field names and values in the program for dynamic selections .
    Thanks,
    Kranthi.

    You have to read the itab <i>pnpdynse</i> in your Program to obtain the Dynamic Selection values. This itab has a deep structure.. you can set a break point in one of the events before <b>get pernr</b> & in the debug mode, you will able to display the itab <i>pnpdynse</i>.. you can then identify how to get the values into your code..
    ~Suresh

  • Extraction, Flat File, Generic Data Source, Delta Initialization

    Extraction, Flat File, Generic Data Source, Delta Initialization
    I have couple of questions regarding data extraction.
    1.     If you have Data Source a Flat File e.g. Excel file I know that you have to create Data Source at BW side. How do you upload updates, by selecting Delta Update when executing next Data Load? Do you ever u201Cconvertu201D this Excel file into Application Tables to become SAP Source 
    2.     Can you please give me example of situation where you had to create Generic Data Source? What is difference between Time Stamp, Calend. Day and Numeric Pointer. Which one is most common to select?
    3.     I read somewhere that Generic Data Source does not have Setup Table. I thought that you have to have Setup Table in order to load transaction Data otherwise you will lock the Application Tables. Where am I going wrong im my thinking please?
    4.     What are steps in terms of IP before, under and after Delta Initialization. I belive that you can do two ways:
    Full Update - Initialize Delta Process (without Data Transfer) u2013 Delta Update  or
    Initialize Delta Process (with Data Transfer) u2013 Delta Update
    Am I right? What is most common method and why?
    5.     If you want to add a filed in Data Source after 6 month using it, you want to do it without re-init Delta Queue. You add field in RSA6, then provide info for ABAP to populate new filed (info u2013 name of Data Source, Extract Structure, field added, name of Application Table which contains the field). How does it work now as there is no SetUp table it has been deleted after Initialisation? How does Delta Queue know that it is going to receive data which has been  expanded by one field or it may does not need to know at all?
    THANKSSSSSSSSSs

    Hi,
    1. If you have Data Source a Flat File e.g. Excel file I know that you have to create Data Source at BW side. How do you upload updates, by selecting Delta Update when executing next Data Load? Do you ever u201Cconvertu201D this Excel file into Application Tables to become SAP Source
    Once you create Datasource for A flat file extraction then it is file source system specific hence you cont change to Application table source Data source
    In info package you can change the source as application server instead of desktop no need to change the DS
    2. Can you please give me example of situation where you had to create Generic Data Source? What is difference between Time Stamp, Calend. Day and Numeric Pointer. Which one is most common to select?
    When we don't find any standard extractor then we can go for Generic(if i want information sales along with finance information in a data source then generally we dont get standard one hence we can go for generic DS)
    Check the below link for More about generic DS .
    http://wiki.sdn.sap.com/wiki/display/BI/Generic+Extraction
    for Delta capturing you can use
    Timestamp(if the table has time stamp filed  so it can stamp the last changed record in that table hence it is easy to get delta based on the time stamp)
    Calday- (If the table doesn't have the Timestamp filed then search for Calday where you can stamp the delta based on the date when documents are changed )
    Numericpointer : If the table doesn't above both then we go for this option where you can the numeric value change stamp )
    3. I read somewhere that Generic Data Source does not have Setup Table. I thought that you have to have Setup Table in order to load transaction Data otherwise you will lock the Application Tables. Where am I going wrong im my thinking please?
    Generic datasource nothing but we extracting data directly from the database table without any interface between the application/systems
    4. What are steps in terms of IP before, under and after Delta Initialization. I belive that you can do two ways:
    Full Update - Initialize Delta Process (without Data Transfer) u2013 Delta Update or
    Initialize Delta Process (with Data Transfer) u2013 Delta Update
    Am I right? What is most common method and why?
    Correct
    5. If you want to add a filed in Data Source after 6 month using it, you want to do it without re-init Delta Queue. You add field in RSA6, then provide info for ABAP to populate new filed (info u2013 name of Data Source, Extract Structure, field added, name of Application Table which contains the field). How does it work now as there is no SetUp table it has been deleted after Initialisation? How does Delta Queue know that it is going to receive data which has been expanded by one field or it may does not need to know at all?
    Once you add the new field to structure(DS) you will get the data as on date onwards not historical data hence what is the concept of setup table  ( delta records come from the Delta Que not from the setup table )
    If you want histaric data to new field then you need to setp table deletion ...etc...
    Hope it is clear..
    Regards,
    Satya

  • Flat file as a source - now more confused then before.

    Sorry to open this topic again - i just got confused to what needs to be done (i did read all of the posts on previous topic - honest!) got confused to who did what and how it needs to be done. it's hard to be stupid sometimes :(
    here is what i have:
    OWB server (target + runtime repository) = RHEL 4
    Source (the location of the flat files) = shared drive/folder on Windows
    OWB client (my machine) = Windows (unfortunatelly)
    I followed the steps described in
    http://download-uk.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/def_flatfiles.htm#CHDHBECD
    created samba mount point from OWB server to the Source files:
    /mnt/folderA/folderB/source_file.txt
    mapped shared drive from the source onto my machine
    Z:/folderA/loderB
    created location for the flat files in OWB:
    TEST_LOCATION = \\windows\folderA\folderB\
    imported flat files into OWB (had to go through the sample)
    created the map 'TARGETLOAD' - simple load the data from the flat file into the table
    validation produced the following message:
    VDL-2398: No data file specified. Generated code will use the sampled file name and the file location 'TEST_LOCATION'
    --which is fine isn't it? it should be using this file in that location
    generation went OK.
    deployment produced this error:
    SQL*Loader-500: Unable to open file (/u01/app/oracle/product/10.2.0/owb_1/owb/bin/unix/\windowsfolderAfolderBTARGETLOAD.ctl)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    i checked this directory - there are 2 files there that were created by OWB:
    \\windows\folderA\folderB\TARGETLOAD.ctl
    \windowsfolderAfolderBTARGETLOAD.log
    Could anyone please enlighten me on what is going on? What do i have to change/amend/edit/tweak in order to solve this? all i want is to be able to load the data from flat file on the source windows box into the table in OWB server.
    Any help/thoughts would be greatly appreciated.

    Hi GB
    Thank you very much for your reply.
    I cannot use external tables - my superiors decided agains it, so i am lambered with external files (even jedi mind trick didn't work!).
    What i do is import external files from windows box. The location is specified as \\windows\forlderA\folderB
    --Mount the drive onto unix then register the files location as the unix path.
    i have a samba mount point from unix box to this windows location. But what i can't do is to select is as a location. i even tried to mapping this mount point onto windows box, so that it looks like \\unix\mnt\folderA\folderB - and of cause when i execute - i get the same error.
    I even tried configuring the sql loader (right click on map and select configure -- create), but i cannot do it even that way. coz everytime i try to create - OWB automatically assigns windows path to it.
    IT told me to let them know what i need and they will create it (map the drive etc) the problem is - i can't think of how to do it! and i do not have a priveleges to start 'trying things out'... well they say if i break their security one more time -i am in trouble!
    I know it sounds sad, but could you please let me know what i need to have/to do in order to make it work.
    Hope you do not mind my request and thank you very much for all your kind help and advise
    Kind Regards
    Vix

  • Is it possible to load flat file data residing on a local machine via BODS 4.2 or flat file should reside on BODS server?

    Hi All,
    I have a requirement to load data from flatfiles stored on particular location, on a machine on which BODS client istallation is there.
    I am able to create a flat file format by browsing the file location and giving file name.I can view the file data also.
    But when I execute the job, job failswith the error "Cannot open file <D:/BODS_flatfiles/result.txt>. Check its path and permissions".
    Please let me know whether it is possible to load data from flat file on a local machine, which has BODS4.2 client installated on it or the flat file should reside in a path in BODS job server ?
    Thanks,
    Deepa

    Hi Deepa,
    If you get solution then please mark answer as correct and close the tread!
    Thanks,
    Swapnil

  • Which table stores field names and their description?

    When I go to se11; I can get information about a table; its field names and field description.
    How can I access same information using an ABP Program? I have a third party tool which connects to SAP; it can pull data from any SAP Table or view. I do not know which table or view stores information displayed in SE11.
    Thanks a lot.

    Hi zigzagdna,
    The field names and their description are strored in table DD03L and DD03T.
    SAP DDIC dictionary informations are generally store in DD* tables. You can search this kinds of DD* tables in SE11 using F4 search help.
    With Best Regards
    Julia

  • All listing element must have index,name and value?

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

  • Tax Form: HR_F_MMREF_1_MD 'RV' Record 'Source Field Names'

    Hi,
    Without "Save" of the original (delivered) definition of the subject "Tax Form", the form was updated and customized by mistake or stupidity. (We are ECC 6.0 HR Rel 600 Level 0022 Payroll.)
    If anyone can browse his or her "Tax Form Definition" via SPRO=>U S Payroll=>Tax Reporter=>Tax Form Definition=>Define Original Tax Form=> Select "HR_F_MMREF_1_MD" and RV Record..
    Please let me know the Source Field Names of the following locations:
    RV 088
    RV 149
    RV 185
    RV 209
    RV 233
    RV 269
    RV 297
    RV 312
    RV 320....
    Thanks.
    Ben

    Hi Arthi,
    Thanks for the reply ,  for TAX form Group W2M1, W2M2, W2M3  , while configuring Evaluation of tax form
    the following items required to select
    Evaluation of tax forms (Employee info required)
    Time ranges , in which data will be stored
    Reporting of retro calculation
    Please let me know how to configure these evaluation forms ?? and Does  any wagetypes needed to be assigned to these tax form groups ??
    Note:
    The customers has to use manual entries options in PU19 and use the below TFG to populate the respective fields accordingly.
    W2M1 MW508-Employer Total Tax Exempt Credits
    W2M2 MW508-Overpayment to be credited
    W2M3 MW508-Overpayment to be refunded

  • How to find Field Name and Table Name

    Hi All,
    I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
    Is there any way i can do it.
    Points will be rewarded for all useful answers.
    Regards
    AB

    Hi All,
    I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
    Is there any way i can do it.
    Points will be rewarded for all useful answers.
    Regards
    AB
    Hi Abuser,
            now u have legacy data. now u want to do upload this data from legacy to r/3 by using one sap transaction. yes ok na..
      first of all u want to know the data is relevant to the which transaction...
       without knowing the transaction u cant trasfer the data..
    then open transaction put cursor on i/p field and click on f1
    and find out the field name & table..
    this is one method to find the field name and table name.

  • Field names and Tables

    Can You please help me out with field names and tables where i can find .
    u2022     Buyers Name : From PO. Person ( Customer, Not Joerns) who places the PO.
    u2022     Order Number : Stryker Order number [Leave a place holder]
    u2022     Order Type : Stryker order type [Leave a place holder]
    u2022     REV: Joerns SAP Material revision. Can be found in Material Master.
    u2022     FROM: Based on the shipping point. Should be the shipping point address.
    u2022     Ship-To: Ship-To address in the sales order
    u2022     Shipped Quantity: Handling Unit quantity
    u2022     Shipping date : Item Delivery date
    u2022     Packing Slip : [Leave a place holder]
    u2022     KANBAN ID : [Leave a place holder]
    u2022     Team Number : [Leave a place holder]
    u2022     Part Number : SAP MATNR
    u2022     Part Description : Material Description
    u2022     Boxes: handling Unit count number. Say for example, there are 10 HU Labels are printed in this , then the first label should show 1 / 10, second should show 2 / 10, third should show 3 / 10 and goes on till tenth, which should show 10/10.
    u2022      PO Number : Purchase order Number

    Hi..
       All these field name you can trace from SE15 transaction.
    goto se15-> expand abap dictionary-> expand fields-> double click on table fields-> enter your fields description in the field description tab of beside screen-> click on xcute.
    ex: Part description
      enter MaterialDescription* and click on xcute , you will get MAKTX from MAKT table.
    All the best.
    Thanks,
    Naveen.I

Maybe you are looking for

  • Discount codes for web forms

    Question: I have been using two web forms to allow access to a secure zone. Of them, one is for the trial user access and another is for the paid user access. The problem is: Can I use discount codes for the secure zone access? I can't see the way of

  • Users unable to fill out form

    Created a form and it worked fine. Added some lines of text to the form and now users can not fill out the form. Wondering what I did to have the happen.

  • IBooks Categories Grouping

    Hi all, I am using the categories tab in iTunes to group my books. However, when I select categories in the iBooks app on the iPad it shows all the books in one long scroll list seperated by category headings. How do I get it to show JUST the categor

  • Native method from dll

    Hello, I am trying to call a dll:method. But I got the unsatisfiedLinkError. Can anyoen tell me way? Here is the code and teh dll: [java code] class Main public static void main(String[] args) HelloWorld hw = new HelloWorld(); hw.Java_Show_EM_Result(

  • Hi, all articles i read say that plus-hd-9.5 needs to be removed from the control panel, uninstall program page.... too bad that plus-hd-9.5 does not show up...

    ...on that page, nor anything unusual does. My avg antivirus picked up something two days ago and after that plushd stayed quiet for a bit, only to return later. Help!