N to 1 field mapping

Hi Experts,
     Kindly share any udf to send the multilple field value to one field N to 1 mapping.
For Ex:
File                                   RFC
3.Emp_Address        to     Employe_Details
The five fields of employee need to send through Employee_details field of RFC.
Best Regards,

Dear all,
   My requirement is below:
1.  Source data:
2. Created source  and Target structure:
    I need to take the first row of data and pass it to RFC CHAR field in separate context like below
CHAR Field:
Then need to take the Second row of data and pass it to RFC Value field  in separate context like below
Note : The source data always in a two row like above
Finally i need to  update in ECC through RFC like below
CHAR:                                      Value:
Emp_Name                               Moni
Emp_ID                                     45653
Emp_Address                           TN
Emp_contact                             34545465
Emp_grade                               B
Kindly share your ideas how to achieve this.
Is there any UDF to achieve this let me know.
Best Regards,

Similar Messages

  • How to add a new field in the Field Mapping

    Dear Freinds,
                   I have two un used fields in the  Source fields to the Target Fields ,
    i have to add the 3   fields which r there in the my source fields to that
    of the target fields ( as per the change in the requirement) in the 5th Step
    i.e Maintain Field Mapping and Conversion Rules
    the Target strucutre & the Source fields( by clicking the button
    Source field and selcting the fields from the popup menu) in the mapping and conversion step  ,i want to  add  3 fields which are availabe in the list of th source list  which i want to map to the Target strucutre  .
    When i tried it is adding in the othe target field
    presently i have mapping (5th sept ) as below.
       ZPA30_08                       LSMW
               TABNAME                      Table Name
                                   Source:  ZP0008_STRC-PERNR (Personnel Number)
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TABNAME = 'ZPA30_08'.
               TCODE                        Transaction Code
                                   Rule :   Default Settings
                                   Code:    ZPA30_08-TCODE = 'PA30'.
    now i want to add 3 fields Pernr,wage type and Amount  , but when iam trying it is
    getting and saved in the TABNAME .
    How can i map please let me know .

    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • 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;

  • ABAP code which will use function module during field mapping in LSMW

    During field mapping in LSMW, for one of the field called field, I want to use a function module 'QF05_RANDOM_INTEGER', which will generate random numbers and map that random number to that field.
    How do I write ABAP code which uses function module, during filed mapping for a particluar field in LSMW ?
    Please help...

    Hi Tushar,
    You can write in FORM ROUTINE and LSMW.
    I hope you know how to write ABAP code at field level.
    If not ...
    Come to change mode->select the field->Rule->ABAP Code
    write a perform statement in ABAP code at field level.
    <b>PERFORM test</b> using val
                 changing valu.
    Go to Utilities(at menu)->switch layout-> extras ->select Layout->check Form routine-> it will display a FORM Routine... at bottom
    this is the place where you can write some code for
    <b> FORM test</b> using value
              changing value1
      FM call....
    Get the value1 returned and use for the Field population.
    Reward points if this Helps.
    Message was edited by:
            Manish Kumar

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.

  • LDAP Field Mapping in 4.6C - Using WebAS 6.10+ as an LDAP Gateway

    Dear All,
      We have a need to enable CUP Functionality (we use GRC AC 5.3) for one of our oldest R/3 systems - on 4.6C. All other R/3 backends are on 4.7+ releases, so it's a multiple backend configuration for GRC AC.
      However, LDAP Field Mapping functionality is missing in 4.6C. It was enabled through LDAPMAP in the higher releases only.
      At the same time, I discovered in one SAP HR document a diagram, which shows that indeed 4.7+ can map and post data directly to LDAP, but for 4.6C and below you can use WebAS 6.10+ as an LDAP Gateway. Meaning that 4.6C calls through RFC some functions in the higher release R/3 system to use its functions for Field Mapping and further transfer of user data to the target LDAP server.
      But... I can not find anywhere how to configure 4.7 / 6.0 servers to act as an LDAP Gateway for the older 4.6C server to bypass its limitation - absence of built-in LDAP Field Mapping functionality.
      Advice on how to realise this concept will be highly appreciated.

    In order to migrate users, groups and password you have to use the command ldapaddent as you did with this sintax:
    # ldapaddent -D "cn=Directory Manager" -w secret -f /etc/group group
    # ldapaddent -D "cn=Directory Manager" -w secret -f /etc/passwd passwd
    # ldapaddent -D "cn=Directory Manager" -w secret -f /etc/shadow shadowNote that you must use passwd instead of people container.
    I suggest you to check this article from BigAdmin http://www.sun.com/bigadmin/features/articles/nis_ldap_part1.jsp

  • Example of a custom field mapping?

    Ok, I admit it I am struggling here. I have simplified my example from
    what I actually have.
    I have a table that models a flat hierarchy
    one of the objects in my hiearchy (CashFlow) has a field that is in fact
    another object called DatePeriod that contains two fields startDate and
    I understand that what I am trying to do is embed the DatePeriod object
    inside of the larger object when it get's persisted.
    I have the following metadata set-up
    <class name="CashFlow" persistence-capable-superclass="InstrumentFlow">
    <extension vendor-name="kodo" key="table" value="INSTRUMENT_FLOW"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <field name="accrualPeriod" embedded="true"/>
    and for my DatePeriod object
    <class name="DatePeriod">
    <extension vendor-name="kodo" key="table" value="INSTRUMENT_FLOW"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="startDate">
    <extension vendor-name="kodo" key="data-column" value="START_DATE"/>
    <field name="endDate">
    <extension vendor-name="kodo" key="data-column" value="END_DATE"/>
    Every time I try to fetch a CashFlow object I get an error as KODO is
    trying to select the column 'ACCRUALPERIODX.'
    What am I doing wrong? Do I need to use a custom field mapping? If so
    where is the documentation to help me write a custom field mapping?
    A second question would be what happens if the DatePeriod object is used
    in a couple of places, I don't want to tie it's persistence to the
    All help gratefully received

    As you suspect, Kodo 2.x does not support embedded class mappings. Kodo
    3.0 will support embedded mappings.
    In the meantime, you can create a custom mapping, but unfortunately our
    documentation for custom mappings is lacking right now. Given how simple
    your DatePeriod object is, you're probably better off with something
    simpler (and as a bonus, less bound to Kodo):
    Just make your DatePeriod class and the field that holds the DatePeriod
    instance non-persistent. In the class that has the (now non-persistent)
    DatePeriod field, add two new persistent fields for the startDate and
    endDate. Then just use internal logic to construct the DatePeriod from
    the startDate and endDate. You can do this using the
    javax.jdo.InstanceCallbacks methods, or just do the logic in your setter
    and getter methods for the DatePeriod.

  • How to change field mapping in IDOC

    Hi Experts,
    My requirement is to create a purchase requisition automatically through an interface using the IDOC sent by a *source client*.
    For this i have used PREQCR as the message type, PREQCR02 as basic type.
    E1BPEBANC & E1BPEBANTX are the segment type i have to use.
    I have created a Z process code in which the function module that i have used is IDOC_INPUT_PREQCR.
    With the help of this i can map all the field values to PR.
    Now there is a field in this idoc called vendor which comes from the source client.
    Now the value that is maintained in this field(vendor) should go to the Text Id that is maintained at the header level. ( i.e. the header text. i.e. In transaction ME51N, the text IDs which we can see at header level, the vendor value should go in one of this text Id ).
    Now how do i do this, because I am using standard funciton module IDOC_INPUT_PREQCR in which there is already field mapping that this vaue should go in this field and so on...
    Do I have to use an exit for the same ?? If yes then which is the exit ??
    Please suggest.

    I think there is no userexits available during the processing using function module "IDOC_INPUT_PREQCR".  You have to copy this function module to a Z function module.  Change as per your requirement and attach the new function module with the Z Process code created by you.

  • Field Mapping of CREMAS05 IDoc..!!

    Hi Gurs ,
    Iam trying to map the following fields in CREMAS05 Basic IDoc Type but unable to find the correct mapping field segments in the IDoc.
    Fields need to be mapped are:
    1.Building Code
    2. Pan No
    Can anyone suggest me which segment and field i need to use for the above fields mapping..? or if i extended my idoc with some custom table how i will map into Standard field .
    Thanks .
    Hemant Gulati(A1)

    Hi Jurgen  ,
    Thanks for Reply .
    Vendor Master Idoc  CREMAS05
    i have extended my idoc with some zfields . in zfield i have Building code and Pan no
    like zbuild and zpanno i need to map these in ADDR1_DATA-BUILDING and J_1IMOVEND-J_1IPANNO respectively .
    Thanks & Regards
    Hemant Gulati(A1)

  • LSMW field mapping Rule-ABAP code

    Dear Guru!
    I'm new to ABAP, but I have to write a little in ABAP.
    I create a LSMW project using BAPI for changing standart price of material.
    Input data: material, price, posting date.
    The point is: system should found in table MBEW all valuation areas and valuation types fo which the material record is exist and cang price for all these records.
    I wrote a code for these fields in Field Mapping menu. But it puts in only one record whereas I need it to execute BAPI for all records.
    I wrote the folliwing:
    VALUATIONAREA                Valuation Area
                       Code:    tables MBEW.
                                select * from MBEW
                                 where MATNR = ZHEADER-MATNR.
    VALUATIONTYPE                Valuation Type
                       Code:    select * from MBEW
                                 where MATNR = ZHEADER-MATNR.
    May be it's simple, may be not. But I don't know how do do it.
    Will be grateful for any hints.
    Edited by: assoli on Aug 3, 2011 3:51 PM

    select endselect goes like a Loop, so if you don't store the value in some table (internal table), only the last row will be available to you as it will be overwritten everytime in the loop.
    There is no need of using 2 selects, one select itself will give you all the data for that material in MBEW table. I don't understand what you are doing with
    Is E1MATERIALVALUATION_PRICECH a structure ? You need somethng like
    select * from MBEW
    Append E1MATERIALVALUATION_PRICECH to itab.             "(itab is internal table)
    Then use that itab for your purpose.

  • Help needed - Field Mapping

    I have a class called CustomerSpecificField extending another class
    NameValueTimestamp which contains 3 attibutes name, value, timestamp.
    In my package.jdo file when i tried to map my fields, I got the following
    exception. the attibutes in the parent class are not at all recognized for
    JDO Info
    <class name="CustomerSpecificField">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="ADB.UP_CUST_SPEC_FIELD"/>
    <extension vendor-name="kodo" key="pk-column" value="ID"/>
    <field name="name">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="NAME"/>
    <field name="timestamp">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="TIMESTAMP"/>
    Exception in thread "main" kodo.util.FatalException: java.io.IOException:
    file:/C:/kodo-jdo-3.1.3/bin/com/bo/package.jdo [Location: Line: 65, C:
    37]: Field "timestamp
    " is not declared in "CustomerSpecificField".
    java.io.IOException: org.xml.sax.SAXException:
    o [Location: Line: 65, C: 37]: Field "timestamp" is not declared in
    "CustomerSpecificField". [java.l

    I have a class called CustomerSpecificField extending another class
    NameValueTimestamp which contains 3 attibutes name, value, timestamp.In JDO, each class can only persist fields that it declares. So you
    need to make your superclas a persistent class and map it, and reference
    it with the persistence-capable-superclass attribute from your subclass.

  • Problem in lsmw. step: display field mapping and conversion rule

    The IDOC structure to be mapped is missing in step 5[lsmw using IDOC]. Hence target structures are missing in auto gnerated conversion program.
    As a result the the step Convert Data step is failing.[Converted data cant be generated]
    I am using standard BAPI charcteristics as my Basic Type.
    Anyone having idea why the target structure is missing??..

    The problem is solved....The field mapping was missing coz i didnt assign the target structure properly....

  • Auto field mapping not working

    I am working on LSMW for transaction DGP2. for the 5th step (  5 Maintain Field Mapping and Conversion Rules), this functionality is not working niether I am able to assign manually. The source structure might have problem. How should I find out the error in which step and how to sort out that?
    Thanks in advance,

    Hi Chenna,
    I have given same structure for this one. Still its not working.
    please help.

  • Related Content Field Mapping using "Page Field" mapping type

    In PeopleBooks it refers to a Page Field mapping type whene mapping fields from the component to it's related content.
    Is this a misprint in PeopleBooks, did this feature not make it into 8.50.09 or is this option only available under certain circumstances.
    I'm trying to pass a non key field from level 0 to the rel content url.
    Thanks to anyone who can shed some light on this.

    Hi Jim
    Thanks for the reply.
    It appears that you can't select the "Page Field" mapping type unless you have the related content specified by PAGE ratehr than component.
    PBOOKS states Page Field: use when you want to map the service parameter to any level 0 page field.
    In the component buffer fields in level 0 could be any page. I was hoping to pass ANY level 0 field through to the Rel Content URL for any page in this component.
    Kind regards

  • Field mapping and value mapping - Basic

    Assuming I have a repository containing a main table with 3 fields
    3)Manufacturer (lookup field)
    When i map the source file to the destination repository
    1) i map fields product and description of the source file and destination repository.
    2) map the manufacturer field between the source file and destination repository.
    3)Value map the contents of the manufacturer field between the source and destination.
    If i have a  source file like this.
    Product                                         Description                                Manufacturer
    a                                                         a                                              Hindustan lever
    b                                                         b                                              Hindustan lever
    a                                                         a                                              P&G
    b                                                         b                                              P&G
    Since i have made the manufacturer field a lookup field, it can hold the lookup values Hindustan lever and P&G.
    what happens to prduct ? i have made only a field mapping. Will the values a & b be stored in the destination repository this way?
    Is a value mapping required for product as well to hold both the values?
    Please help

    Hi Vignesh,
    You do not have to value map it. Import managerwill automatically assign both the values to product a and b. Basically it is set in the configuration options of the import manager. There is a setting "merge source records based on matching field". If that option is set to yes,  both the values will be assigned to product a and b respectively.
    Best Regards,

  • Direct to field mapping to a foreign column

    I am using toplink workbench to map an attribute to a column in a foriegn table.
    Table Emp {
    AddressID, -- (Foriegn Key to the table Address)
    StreetName }
    Table Address {
    AddressID, (Primary Key)
    StreetName }
    Class Emp{
    Class Address {
    In the workbench I have the descriptors defined and I am trying to map attribute 'Emp->streetName' to the column 'Address->StreetName'.
    I added the the Address table in the advanced properties->Multitable Info of Emp class and also defined the association between the tables.
    I mapped the 'streetName' property to the the 'Address->StreetName' using a direct to field mapping.
    When I do getter on the streetName of the Emp class I get Null and I don't see any query getting executed in the Toplink to retrieve the streetName.
    I don't want to load the complete Address object just to grab the streetName from the Address table.
    Did anybody try to do something similar? if yes I would appreciate your hint.

    TopLink for POJOs does not support lazy loading of primitive type attributes. Lazy loading is only possible with relationships (i.e., one-to-one, one-to-many, many-to-many).
    Mapping the same column data to two different classes does entail a number of complications but regardless, you'll eventually have to perform a join between the EMP and ADDRESS table to obtain the street name associated with an Employee. If you model your Employee-Address relationship as a one-to-one rmapping with Employee having an attribute of type Address:
    class Emp {
        long id;
        Address address;
    class Address {
       long id;
       String streetName;
    }you can configure the relationship to use joining[1] so that when you read an Emp you'll also read the associated Address in a single statement.
    [1] http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/oomapcfg002.htm#sthref3924

Maybe you are looking for