Doubt in mapping of fields in BDC

Hi
Iam presently doing on conversions realed to Finacial postings.my work in this task is "iam uploading an excel file from work station and save it in unix file,before sending into unix iam doing mapping of some financial realeted fields ".how can i map that fields.iam doing on the T9AFF Strcture it is belonfg to the finacial batch interface.
plz give sample example and code..?
Map the T9AFF fields as GL-GL, GL-AP, GL-AR, AP-AP, AR-AR, etc posting Use the format as in SAP (date, number, leading 0-s)
thanks

Use FM ALSM_EXCEL_TO_INTERNAL_TABLE
TYPES:
BEGIN OF ty_upload,
field1 TYPE c length 12,
field2 TYPE c length 12,
field3 TYPE c length 12,
END OF ty_upload.
DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH DEFAULT KEY.
DATA wa_upload TYPE ty_upload.
DATA itab TYPE STANDARD TABLE OF alsmex_tabline WITH DEFAULT KEY.
FIELD-SYMBOLS: <wa> type alsmex_tabline.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = filename
i_begin_col = 1
i_begin_row = 1
i_end_col = 3
i_end_row = 65535
TABLES
intern = itab.
LOOP AT itab ASSIGNING <wa>.
CASE <wa>-col.
WHEN '0001'.
wa_upload-field1 = <wa>-value.
WHEN '0002'.
wa_upload-field2 = <wa>-value.
WHEN '0003'.
wa_upload-field3 = <wa>-value.
ENDCASE.
APPEND wa_upload TO it_upload.
CLEAR wa_upload.
ENDLOOP.
Best Regards,
Vibha
*Please mark all the helpful answers

Similar Messages

  • I have mapped the fields on the selection-screen  to the BDC on transaction

    I have mapped the fields on the selection-screen  to the BDC on transaction F110.
    When I am selecting a particular any value in select-option on the selection screen, it is giving some default value and the value given by me,for example:
    Payment methods:C
    but in BDC recording for F110 Payment methods:IEQC when the programs is running in foreground mode.
    how can I rectify it?

    This is because payment methods may be a table and what you see IEQC is actually, I for include, EQ for equal and C as your payment method. This is standard structure for ranges or select-options. You can use variable-low which will give you only C.

  • Product upload to R/3. (field z mapping to field standar)

    Hi experts,
    I have a problem and i dont know how to solve it.
    I am uploading products from CRM to R/3. First I do a job calling a report based in a standar function: COM_PRODUCT_API_UPLOAD. This works perfectly, all the products i am uploading I can see in the table: COMM_PR_MATERIAL all the product have been uploaded.
    As the product in CRM system has some z fields, when the material is already in R/3 I do another job based in a batch-input to update some standar fields reading the data from CRM with a RFC function and everything is ok.
    The problem occurs when i am going to modify a product is in both systems.  A delta process upload the data, but only the data standar to R/3. This delta runs once a product is upload by the function standar: COM_PRODUCT_API_UPLOAD, but when i am updating a z field the delta is not launched.
    I know that there is a BADI: PRODUCT_CUSTOMER and this has an method: CRM_TO_R3_PRODUCT. I am trying using this badi for mapping this fields z to structures from R/3: MARA, MARC...but if i modify a field z i dont know how to read it from the screen to update the product when i save.
    Any sugerence or idea how to do it?
    Sorry because my english, is not so good. Regards and thanks in advance,
    Mon

    Hi Mon,
    What you need to do is you need to use PRODUCT_CUSTOMER2 and use the method MAP_CRM_TO_R3_MATERIAL .
    Now coming to your question of reading Z fields. I beleive they are the fields of the Set types that you need to read. now there are two options :
    1. org dependend field
    2. org independent
    for Org-Independent fields  and Org-Dependent which are for Z set types ZOM_<settype name>_GET FM should be automatically generated when u saved the set type. so you can read their values from that FM.
    Please let me know if you still have doubts.
    Regards
    Sidd

  • How to map new field in DSO

    I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.

    Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
    Edited by: Daniel on Nov 28, 2011 9:59 AM

  • How do i map one field to another in control file via SQL Loader

    Can someone please reply back to this question
    Hi,
    I have a flat file (student.dat delimiter %~| ) using control file (student.ctl) through sql loader. Here are the details.
    student.dat
    student_id, student_firstname, gender, student_lastName, student_newId
    101%~|abc%~|F %~|xyz%~|110%~|
    Corresponding table
    Student (
    Student_ID,
    Student_FN,
    Gender,
    Student_LN
    Question:
    How do i map student_newId field to student_id field in STUDENT DB table so that new id should be inserted in student_id column. How do i specify the mapping in control file. I dont want to create a new column in student table. Please let me know the best way to do this.
    Can someone please reply back to this question.
    My approach:
    In control file i will sepecify the below, Is this a best approach?. Do we have any othe way?
    STUDENT_ID *(:STUDENT_NEWID)*,
    STUDENT_FN,
    GENDER,
    STUDENT_LNAME,
    STUDENT_NEWID BOUNDFILLER
    Thanks
    Sunil
    Edited by: 993112 on Mar 13, 2013 12:28 AM
    Edited by: 993112 on Mar 13, 2013 12:30 AM
    Edited by: 993112 on Mar 13, 2013 12:31 AM
    Edited by: 993112 on Mar 18, 2013 2:52 AM

    OK, ok...
    Here is the sample data:
    101%~|abc%~|F %~|xyz%~|110%~|
    102%~|def%~|M %~|pqr%~|120%~|
    103%~|ghi%~|M %~|stu%~|130%~|
    104%~|jkl%~|F %~|vwx%~|140%~|
    105%~|mno%~|F %~|yza%~|150%~|Here is the control file:
    LOAD DATA
    INFILE student.dat
    TRUNCATE INTO TABLE STUDENT
    FIELDS TERMINATED BY '%~|' TRAILING NULLCOLS
      student_old  FILLER
    , student_fn
    , gender
    , student_ln
    , student_id
    )And here is the execution:
    SQL> CREATE TABLE student
      2  (
      3    student_id   NUMBER
      4  , student_fn   VARCHAR2 (10)
      5  , gender       VARCHAR2 (2)
      6  , student_ln   VARCHAR2 (10)
      7  );
    Table created.
    SQL>
    SQL> !sqlldr / control=student.ctl
    SQL*Loader: Release 11.2.0.3.0 - Production on Tue Mar 19 14:37:31 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    Commit point reached - logical record count 5
    SQL> select * from student;
    STUDENT_ID STUDENT_FN                     GENDER STUDENT_LN
           110 abc                            F      xyz
           120 def                            M      pqr
           130 ghi                            M      stu
           140 jkl                            F      vwx
           150 mno                            F      yza
    SQL>:p

  • What are the fields in BDC table

    hi
    what are the fields in BDC table. what is the last entry

    hi,
    BDC table structure
    FIELD                     TYPE                            DESCRIPTION
    Program                CHAR (8)                      Program name of transaction.
    DynPro                   CHAR (4)                      Screen number of transaction.
    DynBegin               CHAR (1)                      Indicator for new screen.
    Fnam                     CHAR (35)                     Name of database field from screen.
    Fval                       CHAR (80)                     Value to submit to field.
    Hope this is helpful, Do reward.

  • In XI Mapping multiple fields mapping to single target field.

    Hi Friends,
    In XI Mapping multiple fields mapping to single target field.
    For example my requirement is :
    Source Fields:(This RFC BAPI Structure)
    Empno                0-1
    EmpName           0-1
    Address             0-1
    Taget Field is:
    Details               0-1
    The above three fields passed to the Details Field. Here i am using Concat function
    But i have one query on that on,Every field having "line Break" required.
    Can you please help me out above this requirement.
    Thanks in Advance,
    Sateesh N.

    If you want a line break between the three fields, then try
    passing a,b,c to the udf and in the udf you would have
    return a+"\n"+b+"\n"+c;

  • Mapping of field with MinOccurs 0 in SAP XI 2.0 SP5

    Hi,
    Our Scenario is
    File -> Adapter -> XI -> Idoc Adapter -> SAP
    We are trying to push IDoc and the mapping tool is giving an error. I am providing the error that I am getting.
    The snippet of the XSD for the IDoc is given below:
       <xsd:element name="E1FIKPF" minOccurs="1" maxOccurs="1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                            <xsd:annotation>
                               <xsd:documentation>FI Document Header (BKPF)</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                               <xsd:sequence>
                                  <xsd:element name="BUKRS" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Name of global company code</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="6" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BELNR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Accounting Document Number</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="10" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="GJAHR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Year</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="4" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLART" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document type</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document Date in Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="BUDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Posting Date in the Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="MONAT" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Period</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
    In this snippet as can be seen the minOccurs for the BUKRS field is 0. But if I do not map the field its giving me following error.
    /usr/java131/bin/javac -encoding UTF8   -classpath .:./system-lib/boot.jar:./system-lib/jaas.jar -extdirs ./additional-lib:./services/deploy/work/applications/ExchangeRepository -d /tmp/9_53_35_27_7_2004 /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: ';' expected
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
                     ^
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: cannot resolve symbol
    symbol  : class No 
    location: class com.sap.xi.tf._MsgMapGcentre2Fidcc2_
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
    ^
    2 errors
    Compilation error
    Any one having any guesses on why this error is coming. I know this error would vanish if we map the field by an Empty Constant. But then it would start giving error for the next field until all the non mandatory fields are mapped.
    If however I go ahead and map all the fields then the output structure generates all the segments the maxOccurs times. i.e. if a segment is occuring 999 times then that segment is repeated that many time in the output whereas I never needed that segment in the output.
    Can any one suggest as to why this is happening. Am I doing some thing wrong or this is a problem with Mapping Editor in XI 2.0 SP5.
    Ashish

    Hello Ashish,
    this is a bug in the mapping tool. You have to apply the note  730081. It says:
    Symptom                                                                           
    After you import XI20 Support Package 04 or Support Package 05, you can           
    no longer change and regenerate the message mapping (graphic mapping              
    tools).                                                                           
    The following error is displayed during activation or generation: No              
    Mapping for value.......                                                          
    Other terms                                                                       
    Graphic mapping tools, SAPINTSER05, no mapping vor value                          
    Reason and Prerequisites                                                          
    This problem is caused by a translation error.                                    
    Solution                                                                          
    The translation error has been corrected.                                                                               
    As of patch level 1, the correction is provided in the SAPINTSER05_1.sca          
    archive of the INTEGRATION Services 2.0 software component and, as of             
    patch level 2 for Support Package 5, it is provided in the                        
    SAPINTBUI05_2.sca archive of the INTEGRATION BUILDER 2.0 software                 
    component. The archives are available on the SAP Service Marketplace at:                                                                               
    http://service.sap.com/patches                                                                               
    SAP EXCHANGEINFRASTRUCTURE/SAP EXCHANGEINFRASTRUCTURE 2.0                         
    Binary Patches/INTEGRATION SERVICES 2.0/OSINDEP and                               
    ..... /INTEGRATION BUILDER 2.0/OSINDEP                                            
    Import the archives using SDM.                                                                               
    The mapping must be recompiled after deployment.                                                                               
    Regards Franz

  • Problem with  the quantity field in bdc?

    Hi,
    i have to populate a quantity field in bdc .
    for ex 123.00. but the bdc accepting only in the form of 123,00.
    How can I do this .
    I tried by changing the user profile, but went in vain.
    Suggest me how to convert ?
    Thanks.

    Hi,
    Create a variable of TYPE CHAR.Write your quantity field value into this variable and pass this variable to the BDC. This is the way of passing quantity fields to BDC.
    DATA: V_AMOUNT(22) TYPE C.
    WRITE ITAB-DMBTR INTO V_AMOUNT.
    Pass this V_AMOUNT to BDC flow.
    Hope this helps.
    ashish

  • I am trying to map the fields in R3 system  with the infoobjects in BW.

    I am mapping the fields with in R3 with the infoobjects in BW.
    Can any please let me know the relavent mapping infoobjects and the procedure to find for the following fields.
    Description                          Type          Length
    Purchase Order     VARCHAR2     10
    PO Line Number     NUMBER     10
    Line Item Description     VARCHAR2     60
    Order Quantity          
    Unit of Measure     VARCHAR2     3
    Performance Start Date     DATE     7
    Performance End Date     DATE     7
    Order Date                           DATE      7
    PO Line Extended Amount     NUMBER     14
    PO Line Total Amount     NUMBER     14
    Project                         VARCHAR2     30
    Account ID                         VARCHAR2     15
    Cost Amount                             NUMBER      14
    Prime Contract ID     VARCHAR2     20
    Requisition ID     VARCHAR2     10
    Vendor ID                            VARCHAR2     12
    Vendor Name     VARCHAR2     25
    Entry Date/Time      DATE     7
    Address Descriptive Code     VARCHAR2     10
    Address Line 1     VARCHAR2     40
    City Name                         VARCHAR2     25
    Mail State                          VARCHAR2     15
    Postal Code                         VARCHAR2     10
    Country Code     VARCHAR2     8
    Phone Number     VARCHAR2     25
    Fax Number ID     VARCHAR2     25
    Other Phone Number ID     VARCHAR2     25

    Hi,
    You can find the fields and related infoobject for the datasource as follows
    Step1
    log on to the BW system
    Step2
    Go to SE11 ---> give the table name as RSOSFIELDMAP and execute
    Step3
    give the data source name for OLTPSOURCE field and execute
    Step4
    you will find the mapping between fields and relevent infoobjects
    Hope this helps
    Santosh

  • XI Message Monitoring - Mapping custom fields for search in monitor?

    Is it possible to map a reference field so that searching for a specific message is more user friendly?
    For example, we produce hundreds of outbound SHPMNT04 messages each day.  Would it be possible to map a field such as E1EDT20.TKNUM (Shipment Number) to a field in the monitor (SXMB_MONI) such as "Outbound Reference" so we can easily search on this field?
    Currently we use a combination of WE09 and IDX5 to find a specific message.  Obviously, this is cumbersome and time-consuming.
    Thanks in advance.

    Hi,
    of course it is possible in many ways
    there are at least two ways
    the first one is to use Trex search for xi + standard
    the second one is described in this weblog + but remember that
    without indexing this will take long to search like this
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards,
    michal

  • ABAP Mapping Black Field Missing

    Hi,
       I did an ABAP Mapping, one field of a sender message could be full of spaces or with some data. When a message with data for that field is sent, the mapped field in the receiver message had the data, but when I send a full spaces data field the receiver message have no data, it's empty. Somebody could help me?
    Regards,
    Luis Diego

    Hi,
    Btw, where are you looking about this field ? In the sxmb_moni ? If so are u able to see the XML tags generated for that field ? If not
    Check the existsence of the field in the mapping. If there is no field i.e empty, then pass the spaces explicitly..
    It is like , Built-in function in the message mapping i.e "EXISTS" with If-Else logic.
    If you are able to see the xml tags generated for that field, view the SXMB_MONI message in the notepad, so that you can view the space.
    Hope this helps,
    Regards,
    Moorthy

  • Problem in mapping the fields for 0FI_GL_4

    Hi,
      can I get any document regarding the mapping the fields at BW side. I need to give Profit and loss Account report.
    Regards
    kamineni

    Hi,
    Better go through the Business COntent in help.sap.com.
    It will give you the complete details.
    try this link
    http://help.sap.com/saphelp_nw04/helpdata/en/57/dd153c4eb5d82ce10000000a114084/frameset.htm
    hope this helps.
    Assign points if useful.
    Venkat

  • How to map journal fields and whats is the better  process type

    /Journal/JournalSuspenseCostCentre     NULL
    /Journal/JournalBalancingCentre     Lookup from Organisation ID
    /Journal/JournalMultiCompany     u2018Nu2019
    /Journal/JournalBatchNumber     NULL
    /Journal/JournalNumTransactions     Total number of /Journal/JournalLine transactions
    /Journal/JournalBaseDRTotal     Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Debit Values only
    /Journal/JournalBaseCRTotal     Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Credit Values only
    How to map journal fields and whats is the better  process type idoc/proxies?please let me know
    Journal Line
    Multiple journal lines per header:
    Schema Element     Data
    /Journal/JournalLine/JournalLineCostCentre     Bank account control Cost Centre
    /Journal/JournalLine/JournalLineAccount     Bank account control Account Code
    /Journal/JournalLine/JournalLineMoneyTotal     Transaction Line Amount
    /Journal/JournalLine/JournalLineVolume     NULL
    /Journal/JournalLine/JournalLineDescription     Payee Name
    /Journal/JournalLine/JournalLineChequeBookReference     NULL
    /Journal/JournalLine/JournalLineMatchField     Cheque Number
    NB Contra accounting entries should be posted to:
    Schema Element     Data
    /Journal/JournalLine/JournalLineCostCentre     Bank account control Cost Centre
    /Journal/JournalLine/JournalLineAccount     Bank account control Account Code
    /Journal/JournalLine/JournalLineMoneyTotal     Transaction Line Amount * -1
    /Journal/JournalLine/JournalLineDescription     Payee Name
    /Journal/JournalLine/JournalLineMatchField     Cheque Number
    /Journal/JournalPeriod     Current General Ledger Period
    /Journal/JournalYear     Current General Ledger Year

    It looks you are new to PI,
    you have to develop scenario end to end, by creating source data type and target data type(if you have XSD's not required),then use Graphical mapping (message mapping) to map source and target structures.
    Search in sdn for one end to end scenario you will understand easily
    Regards,
    Raj

  • I'm trying to import contacts to outlook 2011 from a cvs file.  I've followed all the steps, mapped the fields, clicked import -- it shows that it imported my 900 contacts --- but the contact field remains blank and I can't see any information.  Help?

    I'm trying to import contacts to outlook 2011 from a cvs file.  I've followed all the steps, mapped the fields, etc.  It appears to import all 900 contacts, but after finishing nothing appears in my contact list.  Any ideas on why this is not working?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

Maybe you are looking for