Flat file for Sales master

Hi, can anyone tell meformat for flat file  <a href="http://theblogwhichsaysall.blogspot.com">for</a> transaction va01. I'm using BDC

Hi ,
Sales rep infoobject should be compounded by commision code. I think you will get the compound of commision code (product) as well in the compound.
This will make the records unique and you would be able to load same sales rep with two different commision code.
So your key then would be sales rep, commsion code and product together.
Hope it helps,
Regards,
Sunmit.

Similar Messages

  • Hierarchy using a flat file for a master data load.

    Can anyone please tell me the steps involved in creating a hierarchy in BI 7.0.  and loading the data using a flat file into the created hierarchy? I have seen some posts and weblogs but they were not helpful and i have been getting some errors which i dont know how to resolve.
    Can someone please give a clear steps and procedure for this?
    Thanks a lot in advance.
    Naveen

    Hi,
    The flat file is generated in application server by executing an ABAP program in SE38.
    This ABAP program contains the logic to generate hierarchy.
    In our case we used a DSO to store employee & supervisors.
    This program generated a flat file in tmp folder in application server
    In our case, To load this flat file we  created an Infosource on our master data using direct update using RSA1old Tcode
    after Infosource is created right click on the InfoSource and click on Assign DataSource.
    Give the Source System name
    When you open this Info source you can select data source as YHIEROBJ_HIER and then activate the InfoSource.
    create an Info Package to load the Hierarchy. Right click on the PC Files (Source System) and click on u201CCreate InfoPackage".
    Under Extraction tab give the flat file name which is generated by the ABAP program in AL11.
    Select the hierarchy which you want to load. Also, you can rename the Hierarchy after loading it. The update method is selected as u201CFull Updateu201D.
    Logic for Generation of flat file & ABAP Program:
    Flat file structure:
    Node ID     InfoObject     NodeName     Parent ID     Date To      Date From     Language
    u2022     u201CNode IDu201D indicates the unique number which defines the Node.
    u2022     u201CInfoObject u201Cgives the name of the InfoObject which is assigned to this Node ID.
    u2022     u201CNodeNameu201D is the name you specify to that Node.
    u2022     u201CParent IDu201D is the Node ID to which the Current Node ID reports to.
    u2022     u201CDate Tou201D and u201CDate Fromu201D are taken for time references (You can set them constant).
    u2022      u201CLanguageu201C is set to English (E).
    The program Logic can be :
    Declare the hierarchy structure
    Get the data from DSO into internal table
    Read all the EMP values into NodeName Field of the table
    Build lookup table for Parent Node ID
    Fill Parent Node ID field
    Append this data to work area & then to another internal table
    You need to declare the selection parameter as SSFILE1
    & use following code to write back the file
      OPEN DATASET SSFILE1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
         MESSAGE MSG.
      IF SY-SUBRC NE 0.
        MESSAGE E008(ZBW1) WITH MSG.
      ENDIF
    Populate the output from that internal table into final work area.
    Transfer this final work area to the ssfile1 which is the desired output file.
    and   CLOSE DATASET SSFILE1.
    When this program is executed, selection screen asks for the name of file
    Enter the desired file name & execute
    flat file would be generated in the Application server now.
    To view the File, Go to Transaction AL11. Search the directory /tmp. Double click on this directory.
    This opens the list of flat files under this directory. Double click on the file name.
    Hope this helps.
    Thanks,
    Rashmi.

  • How to prepare the Format of Flat file(Excel or Text file) for sales order

    Hi All,
    My requirement is to prepare the Flat File formats(Excel or Text file) for sales order Conversion using BAPI by COB.
    Needed Sample Excel or Text flat file .
    Thanks for all.
    Regards,
    Chowdary
    Moderator message : Search for available information. Thread locked. 
    Your similiar question [Flat files formats|Flat files formats] has been already locked for similiar reason.  Read forum rules before posting.
    Edited by: Vinod Kumar on Jul 8, 2011 9:36 AM

    Hi,
    You can use something like this:
    switch(cell.getCellType()) {
      case Cell.CELL_TYPE_STRING:
        System.out.println(cell.getRichStringCellValue().getString());
        break;
      case Cell.CELL_TYPE_NUMERIC:
        if(DateUtil.isCellDateFormatted(cell)) {
          System.out.println(cell.getDateCellValue());
        else {
          System.out.println(cell.getNumericCellValue());
        break;
        case Cell.CELL_TYPE_BOOLEAN:
          System.out.println(cell.getBooleanCellValue());
          break;
        case Cell.CELL_TYPE_FORMULA:
          System.out.println(cell.getCellFormula());
          break;
        default:
          System.out.println();
    Hope it helps,
    Daniel

  • How to design Flat file for loading attribute dimension in a planning application

    Dear Gurus,
    I have a requirement to extract attribute dimensions from an essbase application and load it to another planning application. I have a dimension called Program and two attribute dimensions Sales Manager, Accounts manager associated with Program dimension in Essbase application. I will Extract these dimensions using Essbase outline extractor. After Extracting the attribute dimensions I have to load these dimensions to planning applications using outline load utility. Kindly guide me how to design the flat file for loading attribute dimensions in planning application.
    Thanks and Regards
    SC

    You could dig through the docs and try to figure out the file format manually, or you could do this the easy way.  Simply use the Outline Load Utility to export your attribute dimension from Planning.  The export file format is the same as the import file format.  You might have to manually add a couple of test members to your attribute dimension so that your export file has some content.  Then simply update the file you exported, and import it.
    (I am assuming you have already manually created the Attribute dimension in Planning, and that you simply need to add members to it.)
    Hope this helps,
    - Jake

  • Need Flat file for Message type DELINS

    Hi Experts,
      It possible to see the flat file for the Message type DELINS ,, If needed means please say how it can  view..
    Advance thanks..

    >My need is to convert the EDI format into SAP.
    As far as I know EDI can be read by SAP as Idoc directly without conversion. At least I would try this.
    I checked in WE20 /partner profiles/ for outbound parameters there is a tab called 'EDI standards' and here you can define the EDI parameters. However there is no such tab for inbound processing.
    What I would do /using transaction code SALE/
    - define logical systems
    - assign the received to the client
    - create RFC port for Idoc processing
    - create distribution model with the correct message type
    - create port as file
    - define or generate partner profiles
    Try to upload sample files via transaction WE19 or WE16.
    You can try to debug the inbound processing and write a program based on that, which could be scheduled as a background job.
    I had a program doing similar, but it was another message type and it was XML based, however the FMs I used are the following:
    'EDI_PORT_READ' - read port definition
    'EPS_GET_DIRECTORY_LISTING' - get the file names in the dir
    'EDI_DATA_INCOMING' - process idocs
    Hope it helps.
    Peter

  • Steps to load the data by using flat file for hierarchies in BI 7.0

    Hi Gurus,
    steps to load the data by using flat file for hierarchies in BI 7.0

    hi ,
    u will get the steps int he following blog by Prakash Bagali
    Hierarchy Upload from Flat files
    regards,
    Rathy

  • Extracting from flat file for testing inplace of ECC(r/3)

    Hi Expert,
    Please help me out and give me your suggestion.
    We are creating a custom table in ECC it is under progress.
    I would like to create infoObject, transformation, DTP and Cube and create queries with loading info by flate file. Later on connection whole provider to table.
    Give me suggestion is ther any problem for this Or any good opinion.
    Thanks in Advance

    Loading from a flat file for testing has worked well for me.  We recently wanted to test an ODS object, but I didn't want to create a custom extracter until we knew if the ODS object would work for us. So under my infoSource I created a quick infopackage that pulled some test data from a flat file.  We've loaded test data into cubes before.  Only problem that I ever had was when I used Excel to create the flat file.  Excel wants to truncate leading zeros.  0calmonth for example needs to be loaded as 072007 not 72007.

  • [svn:osmf:] 10706: Adding readme file for the MAST sample.

    Revision: 10706
    Author:   [email protected]
    Date:     2009-09-29 17:38:56 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Adding readme file for the MAST sample.
    Added Paths:
        osmf/trunk/apps/samples/plugins/MASTSample/readme.txt

    Hi Jason,
    You might want to check this thread: http://forums.adobe.com/message/3254112 (or http://forums.adobe.com/thread/745538)
    As you can see there, it's possible to get the video bitmap data from the Video object directly. You don't need the content to be delivered using HTTP Streaming for this. You should be able to use 3D Papervision together a similar snippet.
    You can get the raw data from a HTTP Stream too, if you need the raw data anyway. Check this thread for details: http://forums.adobe.com/thread/709470?tstart=60
    Hope this helps,
    -Andrian

  • I need a sample flat file for working lsmw

    Hi experts,
                  pls send me the flat file what u have got for doing lsmw or bdc.I am new to ABAP and i need it for training purpose.I have worked with lsmw for converting 3 fields only . i have to wok more on it .

    hi,
    z368     0001     sai     i     in     en
    z345     0001     rao     r     in     en
    this is a flat file separated by 'tab'. for uploading vendor master ddata(XK01).
    got specify files and give name and path and tab as delimitor
    LSMW:use Recording for practise.
    We use Lsmw to upload large amount of data.Almost 60% logic will be provided by system and error handling is also very easy.
    LSMW supports Session method and Direct Input only.It doesn't support all Transaction method.We can use BAPI's and IDoc's also.
    We need to follow some steps.In case of session method
    The steps are:
    1.Maintain Object Attributes : here we can specify which mehod we are using
    .select and execute it.
    It contains 4 options
    *Standard Batch/Direct Input : we can you predified objects provided by sap
    *Batch Input Recording : we can record a particular transaction: give name ->select overview->provide recording name->do the recording->select default all->save->f3
    *BAPI
    *Idoc->save -> back
    2.Maintain Source Structures-we have to maintain a structure nothing but Internal table->save -> back
    3.Maintain Source Fields : we have to maintain fields we can create and we can copy from repository->save -> back
    4.Maintain Structure Relations: here our structure is assigned to Our recording if we use recording->save -> back
    5.Maintain Field Mapping and Conversion Rules : here fields are mapped;just go to EXTRAS->auto field mapping,for checking unassigned fields->EXTRAS->un assigned fields->save -> back
    6.Maintain Fixed Values, Translations, User-Defined Routines: here we can specify fixed values and user defined sub routines->save -> back
    7.Specify Files : we have to give the path of file and name and delimitor details->save -> back
    8.Assign Files : we have to assign our file,it will be automatically assigned -> save -> back
    9.Read Data->execute->records will be read
    10.Display Read Data->displays the no.of records read
    11.Convert Data->execute ->f3(writes records)
    12.Display Converted Data->execute->f3
    13.Create Batch Input Session->creates session->execute->f3
    14.Run Batch Input Session->controls leads to sm35->process->check i log if it contains errors.
    also go through the links:
    steps for LSMW: detail documnets: http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    http://www.sap-img.com/sap-data-migration.htm
    https://websmp207.sap-ag.de/lsmw
    http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
    http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
    http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
    http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
    http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
    REFER.
    Re: ALE

  • Different formats of the flat file for the same target

    In our deployment, we use plugin code to extract the csv files in the required format. The customers are on same version of datamart, but they are on different versions of source database - from 3.x to 4.5 depending on which version of application they are using. In 4.0, we introduced a new column email in the user table in the source database. Accordingly, plugin will add the field in the csv file. But not all the customers will get the upgraded version of plugin at the same time. So ETL code needs to decide which data flow to process depending on the format of the csv file to load data to the same target table. I made the email field in the target table nullable but it still expects the same format of the csv file with delimiter for null value.
    Need help to achieve this. Can I read the structure of the flat file in DS or get the count of delimiters so that I can use a conditional to use different data flow based on the format of the flat files.
    Can I make the email column in the flat file optional?
    Thanks much in advance.

    You can add an email column that maps to null in a query transform for the source that does not contain this column. 
    Or else you can define two different file formats that map to the same file.  One with the column and one without

  • How to Prepare Flat File for Vendor Open Items for RFBIBL00

    Hi Experts,
    I have to prepare a flat file structure for vendor open items to use in RFBIBL00.
    I tried to take structure from the structures BBKPF and BBSEG structures.
    I have 59 fields in my file and I need to map these fields with the structures BBKPF and BBSEG to prepare the structures for
    Header and Items for vendor open items.
    Can any body help me how to prepare the flat file structures.
    Thanks & Regards,
    Sudheer
    Edited by: sudheer kumar on Dec 4, 2009 11:09 AM

    RFBIBL00 has a documentation please check it

  • AR Invoice Flat Files For Customers

    Hi All,
    There's a requirement to provide a data file with outstanding AR invoice to one of our customers.
    In this we are goning to develop a program to extract the relevant outstanding invoices.However we are going to have the following controls as well.
    01) Allow the user to extract the invoices an may times they want till they upload the file to customer's suystem
    02) To allow that facility we are going to define a process called draft extraction and a final extraction.
    03) Once a file has been successfully uplaoded they should confirm that the batch has been uploaded successfully
    04) If a batch has been confirmed as successful users cannot extract the invoices again. If they want to do it they need to clear the values populated in the DFF which are anables for this purpose.
    05) If a batch has been generated in final mode it must be confirmed prior to generating a new file. Otherwise no output will be generated.
    My question is normally what are the other types of controls that you implement in these type of scenarios.
    and what sort of information do we need to capture in our side in the extractions.
    Thanks,

    Hi:
    Few inputs -
    1. I hope you would extract based on invoice 'complete' status but you may need to include the logic to make sure no change happens on the invoice after your final extract. (Ex user can incomplete the invoice, make some change and again complete it)
    2. You may also include some reconciliation mechanism such as # of invoice count and amount extracted = # of invoice count and amount in flat file.You can use staging tables information to do this reconciliation.
    Hope this is useful.
    Tarun

  • InfoPackage to load multiple flat file for different plant

    Hi
    There is a requirements to load the data from multiple flat files by different plant into BI which source data is coming from other system. Each flat file has it own naming convention.
    As data has to load via infopackage into the targeted cube. Then I have to create multiple infopackage in order to load the data according to the number of flat files that provided. However, new plant will be created due to expansion of bussiness. If that is the case, additional infopackage is required to create as and when there is a new plant. 
    Is there a way to create a infopackage to load the data from flat file by plant? Your advice is much appreciated.
    Thanks and regards
    Kang Ring

    Hi,
    The best way I can suggest is....
    1. Create a folder in AL11 for your requirements.
    2. In InfoPackage under Extraxction Tab you can have File Name , just side of this you can fine ABAP Routines ICon there you click on that and asks Name give some and then it will takes to your into ABAP Code there you can access the AL11 and then write code in such way that to take file irrespective of the File name, whatever the file is there in that Folder it ahoud take from that AL11 Folder path.
    3. Load the Data using PC.
    4.At the end of the PC Delete the File in AL11 folder , becasue we don't need it for next load.
    Else
    See the thread
    Re: Automation of load from application server
    Thanks
    Reddy
    Edited by: Surendra Reddy on Jun 4, 2010 11:03 AM

  • Change InfoObject value in flat file for Hierarchy load

    Hi Guys,
    I am loading hierarchy for an infoobject from flat file. I have the field InfoObject (IOBJNM) whose value needs to be changed before loading into the hierarchy. Can somebody tell me how can I do that through formula or routine.
    The InfoObject loads 0HIER_NODE and a leaf infoobject values from flat file.
    The hierarchy transfer rules does not contain IOBJNM field., though the Hier Structure under Transfer Structure tab contains IOBJNM.
    In transfer structure I see only NodeName, Date From, Date To, and eaf infoobject.
    Any help would be appreciated.

    Hi,
          Try using the IDOC method while loading the hierarchy and make sure you have this IOBJNM in the external charactersitics for the Infoobect to which you are loading this hier.
    Thanks,
                Peter

  • Exporting R3 tables into Flat Files for BPC

    Dear BPC experts,
    I understand currently the way for BPC to extract data from R3 is via flat files. I have the following queries:
    1) What exactly are the T codes and steps required to export R3 tables into flat files (without going through the OpenHub in BI7)? Can this process be automated?
    2) Is Data Manager of BPC equivalent to SSIS (Integration Services) of SQL Server?
    Please advise. Thanks!!
    SJ

    Hi Soong Jeng,
    I would take a look at the existing BI Extractors for the answer to Q1, I am working on finishing up a HTG regarding this. Look for it very soon.
    Here is the code to dump out data from a BI Extractor directly from ERP.
    You need dev permissions in your ERP system and access to an app server folder. ...Good Luck
    *& Report  Z_EXTRACTOR_TO_FILE                                         *
    report  z_extractor_to_file                     .
    type-pools:
      rsaot.
    parameters:
      p_osrce type roosource-oltpsource,
      p_filnm type rlgrap-filename,
      p_maxsz type rsiodynp4-maxsize default 100,
      p_maxfc type rsiodynp4-calls default 10,
      p_updmd type rsiodynp4-updmode default 'F'.
    data:
      l_lines_read type sy-tabix,
      ls_select type rsselect,
      lt_select type table of rsselect,
      ls_field type rsfieldsel,
      lt_field type table of rsfieldsel,
      l_quiet type rois-genflag value 'X',
      l_readonly type rsiodynp4-readonly value 'X',
      l_desc_type type char1 value 'M',
      lr_data type ref to data,
      lt_oltpsource type rsaot_s_osource,
      l_req_no type rsiodynp4-requnr,
      l_debugmode type rsiodynp4-debugmode,
      l_genmode type rois-genflag,
      l_columns type i,
      l_temp_char type char40,
      l_filename    like rlgrap-filename,
      wa_x030l      like x030l,
      tb_dfies      type standard table of dfies,
      wa_dfies      type dfies,
      begin of tb_flditab occurs 0,
    *   field description
        fldname(40)  type c,
      end of tb_flditab,
      ls_flditab like line of tb_flditab,
      l_file type string.
    field-symbols:
      <lt_data> type standard table,
      <ls_data> type any,
      <ls_field> type any.
    call function 'RSA1_SINGLE_OLTPSOURCE_GET'
      exporting
        i_oltpsource   = p_osrce
      importing
        e_s_oltpsource = lt_oltpsource
      exceptions
        no_authority   = 1
        not_exist      = 2
        inconsistent   = 3
        others         = 4.
    if sy-subrc <> 0.
    * ERROR
    endif.
    create data lr_data type standard table of (lt_oltpsource-exstruct).
    assign lr_data->* to <lt_data>.
    call function 'RSFH_GET_DATA_SIMPLE'
      exporting
        i_requnr                     = l_req_no
        i_osource                    = p_osrce
        i_maxsize                    = p_maxsz
        i_maxfetch                   = p_maxfc
        i_updmode                    = p_updmd
        i_debugmode                  = l_debugmode
        i_abapmemory                 = l_genmode
        i_quiet                      = l_quiet
        i_read_only                  = l_readonly
      importing
        e_lines_read                 = l_lines_read
      tables
        i_t_select                   = lt_select
        i_t_field                    = lt_field
        e_t_data                     = <lt_data>
      exceptions
        generation_error             = 1
        interface_table_error        = 2
        metadata_error               = 3
        error_passed_to_mess_handler = 4
        no_authority                 = 5
        others                       = 6.
    * get table/structure field info
    call function 'GET_FIELDTAB'
      exporting
        langu               = sy-langu
        only                = space
        tabname             = lt_oltpsource-exstruct
        withtext            = 'X'
      importing
        header              = wa_x030l
      tables
        fieldtab            = tb_dfies
      exceptions
        internal_error      = 01
        no_texts_found      = 02
        table_has_no_fields = 03
        table_not_activ     = 04.
    * check result
    case sy-subrc.
      when 0.
    *      copy fieldnames
        loop at tb_dfies into wa_dfies.
          case l_desc_type.
            when 'F'.
              tb_flditab-fldname = wa_dfies-fieldname.
            when 'S'.
              tb_flditab-fldname = wa_dfies-scrtext_s.
            when 'M'.
              tb_flditab-fldname = wa_dfies-scrtext_m.
            when 'L'.
              tb_flditab-fldname = wa_dfies-scrtext_l.
            when others.
    *         use fieldname
              tb_flditab-fldname = wa_dfies-fieldname.
          endcase.
          append tb_flditab.
    *        clear variables
          clear: wa_dfies.
        endloop.
      when others.
        message id sy-msgid type sy-msgty number sy-msgno
        with  sy-subrc raising error_get_dictionary_info.
    endcase.
    describe table tb_flditab lines l_columns.
    " MOVE DATA TO THE APPLICATION SERVER
    open dataset p_filnm for output in text mode encoding utf-8
      with windows linefeed.
    data i type i.
    loop at <lt_data> assigning <ls_data>.
      loop at tb_flditab into ls_flditab.
        i = sy-tabix.
        assign component i of structure <ls_data> to <ls_field>.
        l_temp_char = <ls_field>.
        if i eq 1.
          l_file = l_temp_char.
        else.
          concatenate l_file ',' l_temp_char  into l_file.
        endif.
      endloop.
      transfer l_file to p_filnm.
      clear l_file.
    endloop.
    close dataset p_filnm.
    Cheers,
    Scott
    Edited by: Jeffrey Holdeman on May 25, 2010 4:44 PM
    Added  markup to improve readability
    Edited by: Jeffrey Holdeman on May 25, 2010 4:47 PM

Maybe you are looking for

  • Can I get two wireless routers to communicate in the same house?

    Hi there, Here's my problem. BT (a UK telecoms company) upgraded the household telephone line to fibre optic broadband on Friday and installed their BT Home Hub router and ADSL2+ modem. However, although this is a great upgrade for the household, thi

  • Add Row Button Submits

    I'm using a tabular form in a region on a larger form as an option to enter lines associated with the main form. Each time I hit the ADD ROW button it submits the page and thereby increments my PK for the main form. I may be shooting myself in the fo

  • Your call cannot be connected pls. check your phone settings help plsss

    your call cannot be connected pls. check your phone settings help plsss

  • [solved] glib-git build fails with gdbus-codegen/python error

    Has anyone succeeded to install glib-git lately? For me, the build fails with the following error: Making all in tests make[4]: Entering directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/tests' GEN gdbus-test-codegen-generated.c Trace

  • MSI GT683R FPS PROBLEMS

    Hello, I am having a problem with my two year old MSI GT683R. (Intel Core i7, Windows 7) My computer has severely bad frameS per second problem. I cannot even play my games (Minecraft, CoD BO2, Chivalry, Defiance...) It starts around 70 fps but as I