BAPI - Key field & Attributes

Hi Experts,
I had created a method in the BAPI by choosing the ADD METHOD option from the menu item.
I am able to see the method name in SWO1 transaction but nothing is there in ket field and attributes section.
Whether the key field and attribute will populate from the created RFC as like the method is populating out of RFC?
How to create a key field and attributes in SWO1...? Many thanks in advance!

> Whether the key field and attribute will populate from the created RFC as like the method is populating out of RFC?
Not sure to understand your question. You mean that a method may be converted into a BAPI automatically (right), and you ask whether keys and attributes are also converted? No, they are not used by BAPIs, but they may be used in workflow.
> How to create a key field and attributes in SWO1...? Many thanks in advance!
To create keys and attributes, use SWO1, position the cursor on the node and click create.

Similar Messages

  • ABAP OO - 2 Attributes are Key Fields - Constructor & m_por-instid

    Hi,
    we are running 6.40
    In my class there are 2 attributes that are key.
    In my CONSTRUCTOR, how do I set m_por-instid when I have two attributes as key? Do I concatenate the 2 attributes into a variable and then do m_por-instid = variable?
    Any other ideas?
    Much thanks and regards,
    Cristiana

    Hi,
    Kjetil is spot on about the structure. It's easy enough:
    On the types tab create a type t_key, then click on the code-arrow-icon-thingy between the type and description fields
      types:
        begin of t_key,
          po_number   type ebeln,
          item_number type ebelp,
        end of t_key .
    then in your methods:
    data: lv_key type t_key.
    lv_key-po_number = im ebeln.
    lv_key-item_number = im_ebelp.
    m_por-instid = lv_key.
    Regarding reducing the key to 32 characters, it's not a Microsofty idea for a change. It is a standard 32 byte GUID which is compatible with anything that talks BPEL, WF-XML, SOAP or similar. If you need longer keys then you need to work with persistent class GUIDs - i.e. get your key fields and use the GUID from a persistent class.
    It's even documented <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/e52f6af36db84999a937146382f0e6/frameset.htm">in the SAP help</a>
    Hope that helps,
    Mike

  • Key field not available in report

    Hi,
    I have a DSO and in that I have 1 key field and 20 data fields.
    I was able to load the data successfully in the DSO. And I am creating a report based on this DSO.
    But when I create a report, I was unable to view the key field in the report.
    I went to the query designer and checked, I could not see that particular key field also in my query designer, I could only see the data fields.
    Could someone please guide me in this regard???
    Would definitely assign points for the solution...
    Thanks & Regards.

    Hi,
    Please uncheck the Attribute only check box in the General tab of that Keyfield info Object.
    If any info Object checked as Attribute only then those objects wont display in the Query Designer.
    dont forget to give me the points..
    thanks,
    CK

  • Data Fields & Key Fields IN DSO

    Hi Guys,
    Can any one tel me what exactly key field holds & Data field hold in DSO.
    Thanks,
    Venkatesh

    Hi,
    A DSO serves as a storage location for consolidated and cleansed transaction data or master data on a document (atomic) level. This data can be evaluated using a BEx query.
    A DSO contains
    Key fields (such as document number, document item) and data fields that, in addition to key figures, can also contain character fields (such as order status, customer). The data from a DataStore object can be updated with a delta update into InfoCubes (standard) and/or other DataStore objects or master data tables (attributes or texts) in the same system or across different systems.
    Key fields : It will contains both Chars and KeyFigures.
    Data Fields : Based on this i.e. the charecterisctics which you will keep in this Data Fields, the DSO will over write the Data in DSO.
    Overwriting functionality will works based on Data Fileds.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f9/45503c242b4a67e10000000a114084/content.htm
    Thanks
    Reddy

  • Add a new key field in an InfoObject

    Hi all,
    I have to add a new key field in a standard InfoObject (0vendor) in order to extract data correctly from a table in R3 which has both the vendor and the plant as keys.
    Doubts:
    1. the 0vendor InfoObject is already used in several InfoCubes
    2. it contains data
    3. we have another object built with reference to 0vendor
    Any problem with the existent InfoCubes and queries if I change the structure of this InfoObject?
    Have I got to delete data on it first?
    any problem on the object built with reference to 0vendor?
    I have just thought of updating the object 0vendor (this would avoid lots of substitutions and lot of work) instead of developing a brand new object..
    Do you agree with this kind of solution or would you do something different?
    Thanks
    Elisa

    Hi Elisa,
    "In R/3 the vendor sub-range is blank and we use only one Purch Org, so no matter."
    This is OK but remind that it shall remain like this ALWAYS; because if you design your model with these assumptions and later you start getting sub ranges and/or a second P.O then you can forget your model...
    Replacing 0VENDOR by ZVENDOR completely will depend on your requirement; I don't know which content you are using but you should try to keep 0VENDOR as such because ZVENDOR will be compounded with 0PLANT and that's not the same... (e.g. the key will be displayed like "PLANT/VENDOR" in reports unless you drilldown the PLANT in front of ZVENDOR... your users may perhaps not appreciate...)
    In this matter, how are you going to proceed?
    - fill the vendor ID in ZVENDOR and have 0PLANT as compounding key? In this case you'll have to add 0VENDOR attributes in ZVENDOR as well. With this scenario you will end with redundant data since attributes for 0VENDOR will be the same for each combination 0PLANT/ZVENDOR.
    - wiser: have 0VENDOR and 0PLANT both in the compounding key. This way you could have ZVENDOR key CHAR1 and leave it empty (it would be a "dummy" key you wouldn't use in reports)
    The good thing here is that you don't have to replicate your 0VENDOR design in the ZVENDOR. the bad thing for you is that you NEED to keep both IObjs; thus manage your DIM issue.
    Your approach to fill the cubes is absolutely right! What are the sizes of your cubes?
    You should take this opportunity to check you cubes datamodel:
    - are the dimension well deisgned? (run report SAP_INFOCUBE_DESIGNS in order to see the cardinality of your DIMs). I am sure this can be improved.
    - are the cubes partitioned? Every cube should be partitioned for performance reasons.
    - if the cubes are huge, wouldn't it be good to do a logical partitioning? E.g have one cube per year and a multicube on top...
    Finally use dimension number range buffering when loading data into an empty cube and other techniques like dropping all indexes in order to speed up your load process and minimize reporting downtime. If your reports are based on multicubes and your model is not too complex you could even keep the copy cube instead of moving your data back to the original; you would then just have your multicube transport to make the switch of the new model available for reporting...
    hoping this help you to go with the right path...
    regards,
    Olviier.

  • Table Key field Question

    Hi All,
              According to the requirement I have to make the CURR type field as the key field in one of the table. But dureing activation it's throwing the below warning :
    Key field <Field name> has num. type CURR: Buffering not possible, Transport restricted
    Message no. DT607
    Diagnosis
    A numeric type was used for a key field. A table of this sort cannot be buffered.
    When buffering, the table records for numeric values cannot be stored in plain text. Therefore, no entries are found when buffered numerical values are compared in the WHERE condition, although the table can contain entries satisfying the compare criterion.
    The contents of the table cannot be transported if you specify the full key. You can only tranport table contents specified with a character field, up to the first occurrence of a numeric key field.
    Procedure
    You can enter "no buffering" as an attribute of the technical settings and then repeat the activation process. The table is not buffered.
    If you want to buffer the table, you must replace the type in the key field by a character type, i.e. that you must modify the table.
    If you want to transport the contents of a table, you can only do so for records specified by a character key, up to the first occurrence of a numeric field.
    Is this will be a problem when we transport the entries of the table from DEV to QA ???
    If yes how we can solve this problem??
    Thanks for your help in advance.
    Thanks,
    Greetson

    you cannot transport entries with a transport request (TABU)
    but it should be no problem to fill table in another system with your own export-/import program per file-download/upload or per RFC.
    hope that helps
    Andreas

  • Change color of key field in salv_table

    Hello,
    this is my first post in scn. This community helped me a lot so far.
    Now i have a problem with the SALV. I can change the color of normal fields but not of key fields. I changed the attribute like this:
    INCLUDE <color>.
         lv_col-col = col_negative.
         TRY.
             lo_column ?= lo_columns->get_column( 'AUFNR' ).
             lo_column->set_key( ' ' ).
             lo_column->set_visible( 'X' ).
             lo_column->set_edit_mask( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    TRY.
             lo_column ?= lo_columns->get_column( 'RSDAT' ).
             lo_column->set_key( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    He get the correct column and changes set_key from 'X' to ' ' but the color is still blue. Maybe anyone has an idea what to change on the column object.
    Thanks in advance

    Hi Marco,
    Try to change the key field to normal like this :
    lo_column->set_key( if_salv_c_bool_sap=>false ).
    Regards,
    Tanmay

  • Set Key Field in Import Manager

    Hi All,
    I have 2 fields in my source file(name,category) .category(look up Field) is the key field and name(display Field) is the matching field.
    I got file like this......
    Name                  category
    1                           A
    1                           B
    1                           C
    While importing i got an error stating that Import failed. The destination record was referred to by multiple source records. Duplicate source records should be merged before importing them.
    Import action: Update (All Mapped Fields)Source record no: 1
    But in this case my key field is Category based on category  then these 3 records will be 3 different records.
    Please let me know the  use of Set Key field in the Import Manager and how it works?

    Hi,
    It's not about set of key field in MDM Import Manager but the reason is that you can not select more than 1 category(Lookup Taxonomy) in maintable for one record. thats why error is coming because for this Property Multi-valued always No.
    Even, you can try this in Data Manager manually create three Category A, B and C in taxonomy mode on selecting Sub table Categories, then on selecting main table, when you select category field(which is lookup to categories table)for a particular record you could able to select only one category A, B or C.
    i would suggest make a Attribute of type text having three values A, B and C and mark this as Multi-Valued in Attribute Detail and link this Attribute with your category. in this way you can attach three values A, B and C with your Record.
    Other thing you can do,make this category field as (Lookup Hierarchy not lookup taxonomy) in main table to Subtable(Hierarchy) then for this field in main table you can set Property Multi-valued = Yes in MDM console and then after Import using MDM Import Manager finally only one record will get created in Data Manager as:
    Name Category
    1         A;B;C
    Hope it will Help you,
    Rewards if Useful.....
    Mandeep Saini
    Edited by: Mandeep Saini on Jun 20, 2008 8:46 AM

  • 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

  • Value key field in XML for JDBC scenario

    Hi All,
    I am working on RFC to JDBC scenario.
    I have one table in Oracle DB (like mara in sap).
    I wants to read whole data through JDBC adapter.
    I am doing following mapping:
    '1'         -  SELECT
    'SELECT'    -  @action
    access
    <tablename> -  table
    ''          -  <fields1...n>
    key
    ????        -  <key field1>
    Q1) Pls suggest what value i give in key field to
        select all records from DB????
    Q2) Pls suggest what value i give in key field to
        select records with db_field1<> ''????
    Regards

    Thanks for reply.
    But I am not clear How/Where to add optional attributes with key element?
    Or
    I give key_field name as <field_name compareOperation=”NEQ”>
    Pls help in that.
    "The XML elements in the <key>elements can have the following optional attributes:
    compareOperation= <compareType>"
    Regards

  • EEWB: Insert New Table with more than one key field  for BP object

    Hi Gurus,
    I want to enhance Business Partner object with a new table with two key fields, one the address number and another a sequence number, because I need to save several entries for each address belonging to a determined business partner. Something as what happens in communication data (i.e fax number)for an address.
    I have run the wizard from EEWB but the only possibility that offers you is to create only one key field for the new custom table. There is something in EEWB to achieve this, two key fields for the new table?
    Another question is the following: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    I mean my custom data are filled through a table control that I have allocated within the screen sequence BUA130 (Detail Address). Thus, when a new address is added to a BP and my particular table control is populated within this address I should fill the key fields from my table (address number and sequence number) when the BP were saved. So, I must know beforehand which address number the system will assign to this new address.
    I repeat the question: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    Thanks in Advance.
    Regards,
    Rosa Ferrando

    Hi Rosa,
    Please go through the following links. It will help you.
    <a href="http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm">http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm</a>
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • F4 help values for currency key field in table

    Hi all,
    I have added currency and currency key fields in my Z table. For the curreny key field, i have assigned the standard data element WAERS. I have implemented Table Maintenance Generator for my table. But the F4 help values for the currency key field is not appearing when i tried to maintain table entry.
    Should i need to check the Foreign key check box for the field attribute? But this check box is in disable field in screen layout.
    Could someone tell me how to solve this issue?

    Hi,
    Make the check table of the currency field of your Ztable as TCURC,which is the master table of Currency.Inside the domain of the field you write the TCURC as a value table.and make foriegn key relationship with the TCURC table.
    Regards,
    Suvajit.

  • DSO - What key fields and data fields in dso

    Hi experts,
    I need to create a dso in between the cube and 2 data sources(2lis_11_vaitm, 2lis_12_vcscl) to stage the data. My question is: what key fields and data fields to choose for the dso? is there a standard dso to copy? please explain in detail the model to set up, whether to connect both the ds's to dso and then to cube or one ds to dso and the other to the cube. more details will help.

    Check this for standard DSO:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/fcdc387f34384f94c3227baf3837a8/content.htm
    Thanks...
    Shambhu

  • Key Fields & Data Fields in DSO.

    In Standard DSO, Maximum how many number of key fields and data fields we can enter in one DSO?
    For e.g : In Cube Char - 248      KF - 233
                  In DSO Key Fields - ?   Data Fields - ?
    Regrards,
    Nithi.

    Hi Nithi,
    Since Key fields are decide by us we can add according to our requirement.
    Key fields can only be 16 you cannot exceed this. but if you have more key fields, you can combine fields using a routine for a key field
    Max Data Fields - 749 data fields can be added in a DSO.
    Warm regards
    Gokul

Maybe you are looking for

  • Apps won't update! iPod touch 2nd gen!

    I have a almost brand new ipod touch and normally when i have wifi little red numbers will pop up about undates for pre-existing apps, & ill just click "update all" and it works. but now, I press "update all" and it starts to work and then a little m

  • Option for quick readers

    Hi all, I'm searching fora good solution. Basically, our learning programmes have a voiceover feature and some of the content on each slide appears in sync with the voiceover. This causes problems for those who don't have access to speakers and are r

  • Tell a Friend emails are blank

    Windows Outlook users receive what looks like a blank email when sending them an invitation to view one of my MobileMe Gallery folders. The link is actually there but barely visible (white letters on light gray background). Mac users receiving the sa

  • Create new user for a LifeDrive

    My wife recently gave me her LifeDrive as she upgraded to a Centrino.I am looking for a way to take her user name off of the life Drive and put mine on so that I can sync it with the desktop from my old hanspring visor so that I can get all of the in

  • Resize a HTML view

    Hi peoples.. I am working in VC with a HTML view. I need to resize the HTML view, but there are no way to do this. I try to put it im a View Switch or panel, and resize them. The view switch and panel are resize, but the iframe that HTML view is, con