Defining a FlatFile Structure

Hi All,
I have confusion in How to define a flat file structure? My scenario is SAP-XI-Flat File, Where I am creating a PO in SAP this PO has to send as flat file. I know the structure of flat file. But my doubt is that how to define Line items and Schedule Line items ….I tried in creating DT as single structure in which I have defined Line times(polineitem) and schedule(poschedule) line items as (1..unbounded).
Structure looks like….
<DT_PurchaseOrderCreate>
    <recordset>
                <poheader>…….</poheader>
                <polineitem>…..</polineitem>
                <poschedule>…..</poschedule>
      </recordset>
</DT_PurchaseOrderCreate>
and file content conversion should be single line with .txt file with tab as delimiter.  Will be there any problem in file content conversion? Kindly let me know whether my approach is correct in creation a Flat File structure.
Thanks in Advance
Gowri K

Hi,
do you need to get all the segments of PO document into one line ?
if so , your flat structure should contain one segment with all the fields.
If so, your structure is right one.
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
More-
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
moorthy

Similar Messages

  • Define sd organisational structure?

    define sd organisational structure?

    SD Configuration:
    Enterprise Structure:
    1. Maintaining Sales Organization
    Sales Organization is an organizational unit responsible for the sale of certain products or services.
    IMG -> Enterprise Structure -> Definition -> Sales and Distribution -> Define, copy, delete, check Sales organization
    2. Assigning Sales Organization to Company Code
    This assignment ensures all the sales made through this Sales Organization are accounted for in the assigned Company Code (Company Code is created by FI Consultant).
    IMG -> Enterprise Structure -> Assignment -> Sales and Distribution -> Assign Sales Organziation to Company Code
    3. Maintaining Distribution Channel
    Distribution Channel is the way, in which Products or Services reach Customers.
    IMG -> Enterprise Structure -> Definition -> Sales and Distribution -> Define, copy, delete, check distribution channel
    4. Assigning Distribution Channel to Sales Organization
    This assignment ensures, a Sales Organization can supply Materials to Customers through this Distribution Channel.
    IMG -> Enterprise Structure -> Assignment -> Sales and Distribution > Assign distribution channel to sales organization
    5. Maintaining Division
    Division is a way of grouping materials, products, or services.
    IMG -> Enterprise Structure -> Definition -> Logistics - General -> Define, copy, delete, check division
    6. Assigning Division to Sales Organization
    IMG -> Enterprise Structure -> Assignment -> Sales and Distribution -> Assign division to sales organization
    7. Setting up Sales Area
    All the sales are made from a particular sales Area. For creating a Sales Order Sales Area is compulsory.
    IMG ->Enterprise Structure -> Assignment -> Sales and Distribution -> Set up sales area
    8. Assigning Sales Organization- Distribution Channel- Plant
    Plant is created ny MM Consultant.
    IMG -> Enterprise Structure -> Assignment -> Sales and Distribution -> Assign sales organization - distribution channel - plant
    9. Define Shipping Points
    Shipping Point is the Organizational element, which is responsible for shipping the Materials to the Customers.
    IMG -> Enterprise Structure -> Definition -> Logistics Execution -> Define, copy, delete, check shipping point
    10 Assigning Shipping Point to Plant
    This assignment ensures that goods from different Plant can be dispatched from different Shipping Points.
    IMG -> Enterprise Structure -> Assignment -> Logistics Execution -> Assign shipping point to plant
    Note: Ensure to do the undermentioned configuration also though it is not in Customizing node of Enterprise Structure.
    11. Defining Common Distribution Channels for Master Data
    Use
    The purpose of this activity is to define distribution channels which have common master data..
    Procedure
    Access the activity using one of the following navigation options:
    IMG Menu -> Sales and Distribution -> Master Data -> Define Common Distribution Channels
    Transaction Code: VOR1
    12. Defining Common Divisions for Master DataUse
    The purpose of this activity is to define distribution channels which have common master data..
    Procedure
    Access the activity using one of the following navigation options:
    IMG Menu -> Sales and Distribution -> Master Data -> Define Common Division
    Transaction Code: VOR2
    Pricing Procedure
    In SD, Pricing Procedure is determined based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured). Once the pricing procedure is determined, Condition records are fetched. If appropriate condition records are found, the price is determined. If Mandatory pricing condition is missing, system will through an error message.
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table: If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence: If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type: If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the neccessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure: It is recommended to copy a similar pricing procedure & make the neccesary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure: After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    5. Condition record: Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc.
    Normal Sales Order Cycle:-
    Step 1: Sales Document Type
    IMG > Sales and Distribution > Sales > Sales Documents >
    Sales Document Header:
    1. Sales Document Type:The sales document types represent the different business transactions, such as Inquiry, Quotation, Sales Order, etc. To create new sales order type, always copy as with reference to similar sales order. If possible use standard sales order.
    2. Define Number Ranges For Sales Documents: Maintain number range with discussion with core team.
    3. Assign Sales Area To Sales Document Types:
    A. Combine sales organizations / Combine distribution channels / Combine divisions: Ensure to maintain these, else Sales Order creation will give error.
    B. Assign sales order types permitted for sales areas: Assign only required Sales Order Types to required Sales Area. This will minimize selection of Sales Order Type as per sales area.
    Sales Document Item:
    1. Define Item Categories: If possible use Standard Item Category. Incase if required to create new, copy as from standard & maintain New.
    2. Assign Item Categories: If possible, use standard. Formula for deriving item category: Sales Document Type + Item Category Group + Usage + Higher Level Item Category = Item Category
    Schedule Line:
    1. Define Schedule Line Categories: If possible use Standard Schedule Lines. Incase if required to create new, copy as from standard & maintain New.
    2. Assign Schedule Line Categories: If possible, use standard. Formula for deriving Schedule Line: Item Category + MRP Type / No MRP Type.
    Step 2:
    IMG > Logistic Execution > Shipping > Deliveries >
    1. Define Delivery Types: If possible use Standard Delivery Type. Incase if required to create new, copy as from standard & maintain New.
    2. Define Item Categories for Deliveries: If possible use Standard Item Categories for Delivery Type. Incase if required to create new, copy as from standard & maintain New.
    3. Define Number Ranges for Deliveries: Ensure to maintain number range.
    Step 3:
    IMG > Sales and Distribution > Billing >
    1. Define Billing Types: If possible use Standard Billing Type. Incase if required to create new, copy as from standard & maintain New.
    2. Define Number Range For Billing Documents: Ensure to maintain number range.
    3. Maintain Copying Control For Billing Documents: Maintain relevant copy controls such as Sales Order to Billing, Deliver to Billing, etc.
    The configuration differs from scenario to scenario & requirement of the client.
    Regards,
    Rajesh Banka
    Reward point if useful.

  • How to define a generic structured type (deep structure) w/o LIKE

    Hi,
    I have been trying to define a generic structured type that would include a component (field) of type "table type".
    Look at my type [ty_compatibilite].  It is the structured type that needs to have a component called "mobile" which needs to be an internal table.  I have tried to create a genereic table type called tt_mobile (based on ty_mobile) but that did not work. I have not been able to avoid using the LIKE command to make it work.
    Any suggestions on how I could define my component "mobile" without using a "LIKE"... ?
    Here is my code:
    TYPES: BEGIN OF ty_mobile,
              ref_mob_sfr    TYPE zmobil,
              ref_mrq_sfr    TYPE zmarq,
              type_compat    TYPE zsea_comp_type,
           END OF ty_mobile.
    TYPES: tt_mobile TYPE STANDARD TABLE OF ty_mobile.
    DATA: lit_mobiles TYPE STANDARD TABLE OF ty_mobile.
    TYPES : BEGIN OF ty_compatibilite,
              cod_ean        TYPE ean11,
              lib_art        TYPE maktx,
              compat_all_mrq TYPE zsea_comp_gen,
    *          mobile        TYPE tt_mobile,
              mobile         LIKE lit_mobiles,
            END OF ty_compatibilite.
    TYPES : tt_compatibilite   TYPE STANDARD TABLE OF ty_compatibilite.

    define key or use default one:
    TYPES: tt_mobile TYPE STANDARD TABLE OF ty_mobile with DEFAULT KEY.
    If you don't specify key the type is treated as generic

  • Define company ownership  structure

    Hello,
    How to define company ownership structure in HFM?
    Example:
    A owns 40% of B
    B owns 50% of A
    Thank's

    Hi,
    Company ownership is defined in HFM between a parent entity A and its child B using system account [POWN].
    A data file will give something like this :
    Scenario; Year; Period; YTD; Entity A; [None]; [POWN]; Entity B; [None]; [None]; [None]; [None]; 40
    But, until version 9.3 it don't think it is possible to declare crossed ownership structures. I think this is one of the improvement of version 11 of HFM, you should look at the associated documentation.
    Regards,
    Lionel.

  • Error while defining afield in Structure

    Hi All..
    I want to define a field MENGE ( Quantity and the lenght should be 8 and should hold 3 Decimals).
    Hence i opted for a Data element CATSXT_DEFLT which is having QUAN, Length-8 and Decimal-3.
    But while activating the structure, the system is prompting Error message as follow...
    Diagnosis
    You must specify reference tables and reference fields for fields containing currency amounts or quantity data. You have specified either only the reference field or the reference table and have not maintained either entry.
    Procedure
    Add the missing entry. You can do this with the single field maintenance function of the table.
    Please Help me, as it is very urgent....

    hi,
    try to find out a field in table
    having this 'CATSXT_DEFLT' type.
    then in the structure.
    declare like this.
    <b>tables : table_name
    MENGE like table_name-field_name.</b>
    do this.
    <b>tables : TCATX_COMPONENTS.
    data : begin of ..
    MENGE like TCATX_COMPONENTS-DEFLT,
    endof ..</b>
    rgds
    anver
    pls mark hlpful answers
    Message was edited by: Anversha s

  • Self defined LIS info structure

    Hi Experts,
       I would like to create an info structure S501 including the following characteristics and key figures.
    Characteristics:
    Region
    Country
    Sold-to Party
    Material
    Key Figures:
    Prod. Alloc. Qty
    Incoming Order Qty.
       I got problems when specifiying update rules. Any hints for it? I don't know what to do with it. Thanks.

    Hi Macy,
    You can go to transastion code <b>MC9C</b> and enter your self-defined info structure and version. The system will generate automatically a  standard analysis program report for above info structure.
    From here you can check the program name etc.
    Also check this link for more detail about LIS.
    http://help.sap.com//saphelp_erp2004/helpdata/EN/a5/6319e743a211d189410000e829fbbd/frameset.htm
    Hope this will help.
    Regards,
    Ferry Lianto

  • ABAP program to make a Hierarchy flatfile structure?

    Hi,
    Is there any ABAP program by which we can make a flat file structure in the conventional format ? ( Nodeid,Infoobject,Nodename etc---)
    Because here i just cannot make the flat file manually as the document i have is huge one, having somany nodes and levels that it is almost impossible to write down on a paper too!
    Any suggestions?
    Thanks,
    Ravi

    Hi,
    I have used the following function modules to breakdown the hierarchy. You can write a simple abap program and download the heirarchy breakdown.
    CLAF_CLASSIFICATION_OF_OBJECTS - this function module will return the class information for the hierarchy.
    Use the internal table i_class (filled by the above function module) and pass the relevant fields to the FM CC_LS_GET_CLASS_HIER_STRUCTURE.
    The entire hierarchy then becomes available in the table 'class_structure'. Use appropriate methods to download to the presentation ( FM WS_DOWNLOAD GUI_DOWNLOAD) / application servers (OPEN Dataset/Transfer Dataset/CLose dataset).

  • How to define the category structure?

    Hello
    it is possible to import Picture and have the directory structure like 2011_07_15 i mean to have underlain?
    And it is possible to have the RAW files, Movie file  in a subcategorie?
    Thanks for feedback
    vincent

    When you Import, and you select "Copy" or "Move" for the Import, then over on the right is the Destination Tab, you can specify the folder you want the photos to wind up in, and also the format of the folder name.
    Yes, you could certainly put movies and RAW in different folders, but with Lightroom, there really is no need for this.

  • Drilldown on row defined as a structure

    Would it be possible to put the char Cost centers at the Free characteristic section and drilldown to the row to see the list of Cost centers for a structure?

    I am looking at the report here and the first row seems to be OK but the second row repeats the same cost centers.
    The second row has different cost center definition. It went the same for the other subsequent rows?
    Some rows have formulas and calculations.
    What would be the effective approach in drilling down at each row to see the cost centers and whether they are formulas or calculations.

  • Use of custom structure defined in the program in Function Module

    Hi,
    We have defined a structure in a program.
    We want to define a Tables parameter in a Function module having the same structure as in the program.
    Is there a way to do this without defining a standard structure?
    Thanks,
    Arun

    Copy the definition in a Type Group (SE11 - Uilities - Other Dictionary objects) in an Abap syntax, include the type group in function group and program top includes via a [TYPE-POOLS|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOLS.htm] statement (before Release 7.0, EhP2).
    Regards,
    Raymond

  • Defining Organizational Structure

    Hi
    When we are implementing SAP HR in an organization, we have to define Org Structure and Enterprise Structure. I am kind of clear about the Enterprise Structure but I am little confused about the Organizational Structure. What are the things or parameters to be kept in mind while talking to the customer for defining the Organizational Structure? I am very much comfortable with the concept of Org Units, Jobs, Positions, Cost Centers and the different relationships. What I am looking for is the functional viewpoint. How do we decide what will be the Org Unit and how do we build the whole tree?
    Thanks in advance for the answers.

    Hi FS
    Usually in SAP HR an Organisational Unit is a department,
    Position is very specific to a person's profile (fr e.g.: Personnel Manager)
    A Job is a generic term like Manager.
    So in simple terms as per the SAP standards also while discussing with client we need to conside all the reporting relationships between department  to department (O-O) position to position. Job is a supporting element in the Org Structure,
    It may be possible that in the clients schenerio some dotted line reporting structures will be there
    so we need to consider this also while designing the structure.
    But If you consider departments as Orgainsational units then this will be very easy for client to understand also
    Thanks
    Sheetal

  • Difference between defining segment and maintaining segment for GL items

    Hello All,
    Can someone tell me the difference between 'Defining a Segment' (in enterprise structure) and  'Maintaining Segment for general ledger Items' (tcode FQ0300) and when is the later used?

    Hi,
    Segment reporting is part of functional reporting in sap. Segment reporting is required as per International Accounting Standard 14 for listed companies thats why it is defined in Enterprise structure .
    Segment is maintained in profit
    center master data from where it is derived, When you post to a GL account containing segment it gets posted to profit center. This is the basis purpose of maintaining segment at Gl account level. Segment reporting is gradually being replaced by business area. This is for you information.
    Regards

  • Assigning data from one Table type to another structure

    Hi every one,
    I have a table type X sent from one function module to another Proxy generated method which has the parameter defined as a structure.
    I have declared a variable Y as a LINE TYPE OF X.
    Then I have this statement which fills up the data.
    READ TABLE X INTO Y INDEX 1.
    The data is transferred from X to Y.
    Now i need to send this to the proxy generated Function module which has a structure Z.
    Now when i say MOVE-CORRESPONDING Y to a variable of type Z, it says it cannot be converted.
    The structure in proxy generated FM has different data type but the same domain as that of standard one.
    Everywhere it is prefixed with YY.
    And also has one additional Controller tab inserted,
    Can you guys tell me how to move the data from this table type to the structure.
    - Venkat

    Hi,
    Declare a variable of line type Z.
    Move corresponding values from variable X to this variable.
    Append this variable to the table Z.
    Try this.
    Regards,
    R.Nagarajan.

  • Error while creating WBS element.. regarding source structure

    I am creating a project and then a WBS element. Its a investment project. While creating WBS element XXX, it gives me error that "WBS element XXX: SOurce assignments for source structure A1 missing in Investment Profile ZZZZZ."
    What shall I check? what could be the reason?
    Thanks,
    A

    hi,
    In this IMG activity, you define the source structures used when settling and costing joint products.
    A source structure contains several source assignments, each of which contains the individual cost elements or cost element intervals to be settled using the same distribution rules
    Just consult with your CO Consultant...
    Venkatesh

  • Error in Block Structure

    Hi all,
    I have defined new Block Structure But system giving Error while creating TO by LT06.
    Error
    "Storage unit type T01 not compatible with current block definition
    Edited by: dev .. on Aug 6, 2008 12:08 PM

    only  Sol is to empty all the bins & chenge the structure

Maybe you are looking for

  • User not available means schema not existed in the Database?

    Hi Team, I am trying to add primary to existing table. Requester mentioned schrma_name and table_name. I used below query......to find schema existed or not. select USERNAME,ACCOUNT_STATUS from dba_users where username='ABCD_USA_NUM'; no rows selecte

  • How to turn a tablespace offline when...

    Dear All, I need assistance; Which SQL statement can I use to open an oracle 8i database when the 'users' tablespace is in offline mode.

  • How does one do a downgrade.

    Wife has 5C, has had nothing but glitches from the beginning. Is fed up with it, wishes she had not sold her old used 4 that had years of trouble free service. She is only months into her contract. How is most affordable way of downgrading at this ti

  • Re-installing Mac OS X 10.5.4

    I'd like to reinstall Mac OS X using the original discs I got when I bought my MacBook Pro. I've found one cd, called "Mac OS X Install Disc 1". Would like to know two things: 1) Is there more than one installation disc? 2) Anyone come across an offi

  • I have my Hotmail open , but it freezes and won't let me open e-mail or delete junk mail. It won't do anything

    My hotmail account is open, but I can't read e-mail or delete junk mail. My hotmail works fine when I use Internet Explorer. I have used Firefox for a year and never had this problem. What is the solution