Multiple Key fields to same recordset strucure

HI ,
I am having a requiremet whre I need to pass multiple keyfield values to the same recordset structure.
Sample File
A,123,234,567
B,234,456,645
B,345,123,345
C,234,565,456
Here I need to pass A keyfield to Recordset 1 , B and C  to the recordset2 .
Please guide how to achive this requirement to pass multiple keyfield values to the same recordet strutcure that is B and C key fields to assagin Recordset 2.
Regards
Krishna

Hi Krishna - I don't think you can define an OR condition for a key field.
So read them as separate recordsets and handle it during the mapping. I don't see any issue that way.

Similar Messages

  • Associating multiple key fields.

    Is it common practice to associate multiple key fields with a dimension level or fact? For example, if ITEM dimension has two primary key fields (inventory_item_id, sr_instance_id) to identify one single item, PLAN fact table the same, I can't manually associate ITEM dimension or PLAN cube with their tables from Analytic Workspace Manager. But I can do this with OLAP Analytic Workspace Java API. Problem with Java approach is that my AW can't be viewed corrected in AWM.
    Is it "right way" to associate multiple key fields? Or should I avoid this (say concatinate keys into one item_key field)?

    Hi,
    Refer below code of FM 'F4IF_INT_TABLE_VALUE_REQUEST',it will useful to you.
    DATA: IL_RETURN   TYPE TABLE OF DDSHRETVAL,                              
          WAL_RETURN  TYPE DDSHRETVAL,
          IL_FIELDS   TYPE TABLE OF DFIES ,
          WAL_FIELDS  TYPE DFIES,
          VL_RETFIELD LIKE DFIES-FIELDNAME.
    CLEAR IL_FIELDS.
      REFRESH IL_FIELDS.     
      LOOP AT FIELDS.                    
          WAL_FIELDS-FIELDNAME = FIELDS-FIELDNAME .                    
          WAL_FIELDS-TABNAME   = FIELDS-TABNAME.
          WAL_FIELDS-KEYFLAG   = FIELDS-SELECTFLAG.
          APPEND WAL_FIELDS TO IL_FIELDS.
      ENDLOOP.
       VL_RETFIELD = 'TABNAME'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ''
          RETFIELD               = VL_RETFIELD
        VALUE_ORG              = ''
        TABLES
          VALUE_TAB              = VALUES
          FIELD_TAB              = IL_FIELDS
          RETURN_TAB             = IL_RETURN
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3.
      READ TABLE IL_RETURN INTO WAL_RETURN WITH KEY FIELDNAME = VL_RETFIELD.
      IF SY-SUBRC EQ 0.
          VIEWNAME = WAL_RETURN-FIELDVAL.                    
      ENDIF.
    Best regards,
    Syf

  • Search help with multiple key fields

    Hi,
    I want to dispaly search help on a field from a internal table have multiple key fields i.e combination of fld1 + fld2 +fld3 makes one single row. Therfore can any one tell me how to return that single row , because if I am using function F4IF_INT_TABLE_VALUE_REQUEST I get only one return field that I select by which I can't get the actual line that I have selected as there may be more that one line for that field.
    please suggest any way through programming not by creating any search help through se11.
    thanks

    Hi,
    Use select query to select the fields & display them.
    In the following code i've selected only a single field in select query but u can do it for more than 1 & proceed similarly.i've tried it before using this code.
    SELECT WERKS
             NAME1
             FROM T001W
             INTO TABLE ITEMP
             WHERE IWERK = 'M011'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                  DDIC_STRUCTURE   = ' '
                RETFIELD         = 'WERKS'
                  PVALKEY          = ' '
                  DYNPPROG         = ' '
                  DYNPNR           = ' '
                  DYNPROFIELD      = ' '
                  STEPL            = 0
                  WINDOW_TITLE     =
                  VALUE            = ' '
               VALUE_ORG        = 'S'
                  MULTIPLE_CHOICE  = ' '
                  DISPLAY          = ' '
                  CALLBACK_PROGRAM = ' '
                  CALLBACK_FORM    = ' '
           TABLES
                VALUE_TAB        = ITEMP
                  FIELD_TAB        =
               RETURN_TAB       = T_RETURN
                  DYNPFLD_MAPPING  =
             EXCEPTIONS
                  PARAMETER_ERROR  = 1
                  NO_VALUES_FOUND  = 2
                  OTHERS           = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      S_WERK-LOW = T_RETURN-FIELDVAL.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to read from an internal table with multiple key fields.

    Hi All!!
    I want to read from an internal table having keys as k1,k2,k3.
    How can I use read statement to read an entry having this as the key fields.
    Thanks in adavance..
    Prabhas Jha

    hi there
    use:
    sort itab by K1 K2 K3.
    read table itab into wa with key K1 = value 1
                                                  K2 = value2
                                                  K3 = value 3
                                                   BINARY SEARCH.
    where:
    itab is ur internal table
    wa is the work area with the same line type as the itab
    cheers
    shivika

  • Couldnt work with multiple key fields in keyword search

    Hi,
    I have some issue while working keyword search uder free form search in datamanager. in my repository i have two keyfields name(default field) and nation(lookup flat). but while working with keyword search if i pass any value that is comparing with only the values under keyfield name not comparing with other keyfield nation values. i am working with MDM 5.5 sp6. It would be appreciable if any one solve this issue.
    Regards
    Ravi

    Hi Ravi,
    If you want to perform Keyword search for Nation field as well without changing it's field type; then plz follow these steps:
    1. Set the Keyword property for Nation Field as Normal in Main table.
    2. Now go to the lookup table to which Nation field is looking into (say the Lookup table name is Nations).
    3. Now set the Keyword property for Nation field as Normal in the lookup table (Nations table) as well.
    4. Go back to Main table and now perform Keyword search. This time it will perform the search on both the fields (i.e., Name as well as Nation).
    Please let us know, if problem still persists.
    Regards,
    Varun

  • File Content Conversion - Key Field Value

    Hi Experts,
    I am using File to Idoc scenario for my mapping. In the receiver Communication channel, I am using File Content Conversion. My scenario is as follows :
    I have a recordset with Header and Line items with Key Field Indicator as 'H' and 'L'. In some cases, the value for this Key Field is coming in as something other than 'H' and 'L'. I need to throw an exception when this Key Field is not 'H' or 'L'.
    In the 'Content Conversion' tab, my attributes are as:
    Header_Structure.keyFieldValue = 'H' and Line_Structure.keyFieldValue = 'L'. Is there any more attributes that I need to add ?
    Please advise. Thanks a lot.
    Regards,
    Freddy.

    >>multiple key field values in FCC configuration i.e Line_Structure.keyFieldValue = H or L
    AFAIK it is not possible but lets wait for other experts to comment on this...
    >>Can keyFieldInStructure (add, ignore) parameter help me in this case ?
    No. this parameter is only used when you want to include key filed in ur XML structure(add) or not (ignore)...
    Chk this:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

  • Data fields and key fields

    Hi,
    Data fields and key fields are same as Characteristcs and key figures? Or they are diffrerent?
    Thanks,
    Radha

    HI
    Key Fields =  Acts as Primary Key for The ODS like Primary of Tables in R3.
    Data fields =  Apart from Key fields We consider rest as data fields.
    Ususally we use Characteristic info Objects and Dates in Key Fields and Key figures in Data fields.
    It's decisive factor for overwriting property of ODS or DOS.
    Hope this helps.
    Regards,
    Rangzz
    Edited by: Ranganath Kodiugane on Feb 7, 2009 12:14 PM

  • Multiple Partners for the same customer in Message tracking of SEEBURGER

    Hi,
    This is for third party customers which use EDI messages. We have for one customer multiple partner numbers configured in Partner profile. I would like to know while configuring the trading partners in SEEBURGER Message Tracking, can we have multiple keys for the same customer for multiple partners for an INVOIC02. Like the following keys:
    12345_INVOIC02
    34567_INVOIC02
    45678_INVOIC02

    Hi Satya,
    you can define for a vendor/customer several partner functions with different        
    adresses. You can create certain partner roles several times.               
    If you create a purchase order, than you can choose the wanted              
    address and partnerrole on the header level. In the standard system you     
    can use the patner role 'OA' ordering address and for the finance           
    the 'IP' Invoice presented by.
    I hope I was able to help you.
    Kind regards,
    Zsuzsanna

  • Multiple entries in a Z table with same key fields

    Hi
    I do have a ZTABLE, with 3 key fields defined earlier. It consists of around 1 lakh records. Later onwards, two of the non keyfields have been made to key fields.
    This table is being populated with records at the time of saving a ztransaction.
    But some times, the system is updating the same records, some times twice, sometimes thrice, etc. I got to know that all fields (both key fields and non-key fields) of the record are same. That is, records are being updated in to the database table n number of times may be depending of some false logic in the program.
    If I tried to enter the same using SM30, it is showing me an error message stating that the record is already existing.
    What can be the reson?

    Hi,
    It seems there is some kind of data inconsistency..try to get all the records and then delete the duplicate entries through program....Now once u r done , from now onwards there won't be any duplicate entiers.,also before updating table use filters to avoid the duplication..
    Regards,
    Nagaraj

  • Can I use multiple values for a rollup key on the same Endeca record?

    We have a business need to to aggregate our records using different criteria, based on user navigation. We are thinking of using a rollup key with multiple values to help with the aggregation, but we are running into some issues.
    Here is a made-up xample of what we want to do: assume we have a group of products and these products can be organized into groups using parent-child relationships. We would like to create an aggregate record for each parent, and we want the aggregate record for each parent to include all the children for the parent. To achieve this, we use a field called "parent_rec_spec" that holds the parent record spec and we set the same value on the field for the parent and its children. When we do rollup using the parent_rec_spec as the rollup key, we are able to see one aggregate record for each parent (with its children).
    The previous setup worked perfectly for us so far. But now we are getting a business requirement that allows children nodes to be linked to multiple parents at the same time. We were hoping of using another dimension to limit the records based on user roles/characteristics , so that only applicable parents/children are displayed (for example, we can use "market" as an additional filtering property, and we decide to show all parents/children for "North America", while hiding the parents/children for other markets).
    This caused an odd behavior when children are linked to multiple parents. For example, assume that SKUs A and B were linked to parents in "North America" and "Europe" at the same time, and assume that the user chose the "North America" market. The navigation state would eliminate the parents/children that are no in North America, and will also cause the parents/children that are labeled for North America to show up and be aggregated correctly. This however will lead to the creation of additional aggregate records for the A and B using the parent_rec_spec values that would have linked them to the Europe parents (even though the parents are hidden away).
    Here is an example index file that we used to load the test data:
    Update||1
    Market||North America
    Record Type||Product
    Name||Parent 1
    rec_spec||P1
    parent_rec_spec||P1
    EOR
    Update||1
    Market||Europe
    Record Type||Product
    Name||Parent 2
    rec_spec||P2
    parent_rec_spec||P2
    EOR
    Update||1
    Market||North America
    Record Type||Product
    Name||Child A
    rec_spec||A
    parent_rec_spec||P1
    EOR
    Update||1
    Market||North America
    Market||Europe
    Record Type||Product
    Name||Child B
    rec_spec||B
    parent_rec_spec||P1
    parent_rec_spec||P2
    EOR
    Update||1
    Market||North America
    Market||Europe
    Record Type||Product
    Name||Child C
    rec_spec||C
    parent_rec_spec||P1
    parent_rec_spec||P2
    EOR
    Update||1
    Market||Europe
    Record Type||Product
    Name||Child D
    rec_spec||D
    parent_rec_spec||P2
    EOR
    In this setup, we have parent P1 marked for North America with children A, B and C, and parent P2 marked for Europe with B, C and D as children. When we use North America as a filter in the navigation state, and parent_rec_spec as the rollup key, then we will see an aggregate record for P1, A, B and C. But we will also see an aggregate record for B and C by itself (presumably because of the other parent_rec_spec value on these records).
    The actual data that we are testing with is more complicated, but the end result is similar. We also noticed that the additional aggregate records would not be created always, depending on the ordering of the records.
    The question that I need help with is this: is there a way to fine tune the rollup logic so that it can only include certain records (in the example above, we can change the rec_spec from PA and PB to PA_North_America and PB_Europe and then we would be interested in rolling up using values that end with NorthAmerica).
    By the way, we considered using separate rollup keys for each context (like parent_rec_spec_north_america and parent_rec_spec_europe), but the number of contexts is dynamic, and might grow large. So it is not easy for us to create the additional properties on the fly, and we are concerned about the possible large number of dimensions.

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=2&threadid=1157850

  • Entering multiple entries in ZTABLE after changing a key field to nokey.

    HI Experts,
    This is Hema Iam new To ABAP.
    My senario is I have created a ZTABLE with companycode, GLAccount, costcenter,profitcenter,plant.
    AT first my table has companycode and GLaccount has key fields..
    But to enter the multiple entries for cocode and GLaccount (ZBUKRS and ZHKONT) i have changed GLaccount has non key fields and table maintainence regenarated for the same.
    my issue is as there are repeating entries for cocode and glaccount it is not possible to enter the entries as it is saying the entry is repeated and asking me to skip because cocode is primarykey there...
    how can i overcome thsi issue to enter multipel entries for cocode and GLaccount.
    As it should be done quickly ur help would be usefull
    Thanks In Advance
    L.Hemalatha.

    Hi
    I created zslno field and made it has primary key field aslo but still iam getting eror message while entrying entries as
    "an entry already exists with the same key"
    wht should be done i maintainance recreated after adding this field nad in se14 i adjusted the table too still what steps should be done ?
    eg i need to enter data:
    client cocode  zslno GLacount Cost center profit center plant
    010    1000                 1483100   1001199                       0035
    010     1000                 226100     101199                        0076
    so while entering second record and trying to save iam getting that error.... help me out

  • Diferent key field names within a recordset

    Hi
    Can we have different key field names for records within a recordset.
    When i give different key field names for Header and detail records in a recordset i get the error below: -
    message not processed: com.sap.aii.messaging.adapter.trans.TransformException: Transformer Conversion3.0.5227 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403)
    Thanks

    Hello Pratihchi,
                   One keyfield name is allowed, eventhough we have different records per recordset. Because we can differentiate the rows based on the keyfieldvalue and those value we need to mention in the fieldname. Check below link which contains the example on this.
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5393- [original link is broken] [original link is broken]> [original link is broken] File Adapter->Sender File Adapter for Content Conversion
    Regards.
    Prasanna.

  • Select Statement to fetch Multiple records of a same field

    Hi one and all,
               I have ascenario like this,
    I need to fetch the material starting with 'MA%' and material Starting with 'RT%' and so on.....data from the table resb with reference to AFPO-AUFNR.
    Now how can write select Query.
    Iknow how to fetch for a single type of material 'MA%'(using LIKE)
    But for multiple selection of the same fieldi cant do anything ,
    if anybody knows Please Help me.....
    I wil be very thankful if u r helped.
    Regards,
    rajesh.

    I have been trying in the same way
    like
    DATA : sp TYPE char3,
           b3 TYPE char3,
           b5 TYPE char3,
           rt TYPE char3,
           sh TYPE char3,
           rp TYPE char3.
    sp = 'SP%'.
    b3 = 'B3%'.
    b5 = 'B5%'.
    rt = 'RT%'.
    sh = 'SH%'.
    rp = 'RP%'.
    SELECT * FROM
             resb
      INTO   TABLE gt_resb
    WHERE aufnr = wa_itab-aufnr.
    AND matnr LIKE RT.
    OR matnr  LIKE b3
    OR matnr  LIKE b5
    OR matnr  LIKE sh
    OR matnr  LIKE rp
    OR matnr  LIKE sp.
    its not working.
    Regards,
    rajesh S

  • I want to create a mail merge for address labels into a table, but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address.

    ...but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address. Please help.
    Thanks!

    That is a quirk of Pagesthat  it applies only one record per page.
    There is a way around this:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=245&highlight=labels &mforum=iworktipsntrick
    Peter

  • How do you register multiple key presses at the same time?

    Hi. I'm trying to write a first person game in OpenGL and I'm having some trouble with key listening. Right now I just use the basic AWT KeyListener. The problem that arises is that whenever I hold down a key, such as a movement key, there is a short pause after it moves me in the appropriate direction, and only after the pause does it start continuously moving me. In addition to that, I can't press multiple keys at once to get diagonal movement (I use WASD for movement). Is there something I can do with AWT to fix both of these problems, or is there something other than AWT that I should use that would be better?

    the pause is the typomatic rate of the keyboard, you can avoid that by using the keyPressed and setting a flag then a sleep(myDelayTime).... if they keyRelease--and clearing of the flag--hasn't happened after the sleep, then you're key is still down so keep firing, moving, or what ever.

Maybe you are looking for

  • Invalid Content-Type with SAAJ

    I get the following exception when trying to send a SOAPMessage with an attachment. Sorry for the length of this post. Lots of info. com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:application/x-www-form-urlencoded. Is this an erro

  • PRI + PVDM modems - set IP destination based on DNIS

    I have the following setup: 2811 router PVDM2-12DM modem module on motherboard NM-1CE1T1-PRI PRI card The PRI has a range of numbers assigned to it, but I need to be able to direct dial-in traffic to specific backend IP addresses, based on the number

  • Hide/show a column in a report

    Hi, I'm actually looking for a solution to hide/show a column in a report (matrix form)in function of a parameter.. Using the conditionnal formating propertie to hide a column (return false) works, but the colmuns in the right side don't move.. It's

  • How do I change the colors to whatever I want within a chart?

    I see that i can change the colors to a few predetermined color combinations, however I need them to be a specific color in a specific order.  Is that possible?

  • After updating to Yosemite I cannot open iPhoto!! Help!

    I updated to Yosemite yesterday and now I cannot open iPhoto. From anywhere! Has anyone else found this problem? Solution?