Additional field in join table for CMP EJB

Hello,
I'm trying to perform this task using CMP entity beans:
The entity A has a CMR relation of cardinality m-n with entity B (bidirectional) (This is working fine).
I want to add a parameter to the relation.
Ex : When I find that A1 is linked to B1, I need to perform "x" times an action. x would be my parameter, and I would have kept this parameter as an additional column in the join table A_TO_B.
Could anyone provide an example of how to perform this with CMP EJB?
NOTE: I'm using OC4J 10g 9.0.4 standalone (and cannot change my version).
Thanks
Tanguy

Manohar,
You need to create an append structure for table VBAP (for example ZAVBAP) using SE11. In this structure you create your ZZ fields. If you need a non-SAP domain/data element for your field then you need to create it first using the same transaction and activate it. Attach ZAVBAP to VBAP so the SE11 shows:
.APPEND in the Fields column and
ZAVBAP in the Field type column.
Your ZZ fields will be shown automatically.
When you have finished then activate your ZAVBAP structure. You will notice when you go VA01 (for example) that a lot of programs are being recompiled. Don't worry. It will be ok.
The user-exit screen number for items is 8459 (in program SAPMV45A).
Thanks,
Wojtek

Similar Messages

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • CMP additional field in join table

    I'm sorry if this question was already post on the forum, but I could not find any answer....
    I have an existing application which is using CMP entity beans.
    A and B have a many to many relation, then the relation is mapped to a join table with 2 columns (key of A, key of B)
    I need to modify this relation in order to specify the number of B linked to A for a given relation, then adding a column to the join table :
    (key of A, key of B, MyParameter)
    Is there a way to specify the parameter in the beans ?
    Do I have to change my CMP entity bean to BMP beans?
    If I do have to use BMP, many other CMP entity beans have relations with one of the beans that I will have to modify to BMP. Will I have to transform all the CMP beans with relation to BMP beans (then almost all the application) to BMP?
    Thanks a lot for your answers.

    Manohar,
    You need to create an append structure for table VBAP (for example ZAVBAP) using SE11. In this structure you create your ZZ fields. If you need a non-SAP domain/data element for your field then you need to create it first using the same transaction and activate it. Attach ZAVBAP to VBAP so the SE11 shows:
    .APPEND in the Fields column and
    ZAVBAP in the Field type column.
    Your ZZ fields will be shown automatically.
    When you have finished then activate your ZAVBAP structure. You will notice when you go VA01 (for example) that a lot of programs are being recompiled. Don't worry. It will be ok.
    The user-exit screen number for items is 8459 (in program SAPMV45A).
    Thanks,
    Wojtek

  • Problem with joining tables in cmp bean

    This is for an informix database. when i specify to join tables in CMP beans i get a sql error.. this is what the SQL join statement looks like when the server spits it out:
    SELECT t0.id, t0.name, t0.available, t0.available_date FROM drs_product t0, outer drs_category t1 ON t0.style=t1.style WHERE t0.available = 'T'
    it puts the "ON" string into the join?? this gives me a SQL error, it's supposed to be like this:
    SELECT t0.id, t0.name, t0.available, t0.available_date FROM drs_product t0, outer join drs_category t1 WHERE t0.style=t1.style AND t0.available = 'T'
    how can i fix this

    nevermind..i figured it out again.. in the INFORMIX DYNAMIC SERVER.properties file replace the left join attribute with this:
    LEFT_JOIN= left join
    make sure there is a space before the "l" in left and a space after the "n" in join, otherwise it will be a sql error:
    the previously LEFT_JOIN=, outer statement is clearly wrong for this database.

  • Invalid value in OPTION field of value table for IN itab operator. operato

    Hi,
    I am working on SELECT-OPTIONS to accept single and multiple values for company code. I am using CREATE_RANGE_TABLE and ADD_SELECTION_FIELD and all is good but I was prompted with error "Invalid value in OPTION field of value table for IN itab operator. operator"  when I enter 2 single value.
    SIGN OPTION LOW  HIGH
        |      |CN01|    |
        |      |SG02|    |
    However, below combinations working good for me and I don't get the above error.
    SIGN OPTION LOW  HIGH
    I   |BT   |CN01|CN02|
         |     |SG02|    |
    SIGN OPTION LOW  HIGH
         |     |SG02|    |
    I am using below coding.
      DATA:
        ls_cmp_restrictions TYPE if_wd_select_options=>t_complex_restrictions,
        ls_rsoptions        TYPE rsoptions.
      CLEAR ls_rsoptions.
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_exclude = ls_rsoptions.
      CLEAR ls_rsoptions .
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_include = ls_rsoptions.
    * Create a reference to range table
      lr_field = wd_this->m_helper->create_range_table( `BUKRS` ).
    * Add the select-option to the group
      wd_this->m_helper->add_selection_field(
        i_id                         = `BUKRS`
        i_value_help_structure       = 'P0001'
        i_value_help_structure_field = 'BUKRS'
        it_result                    = lr_field
        i_no_intervals               = abap_true
        i_no_extension               = abap_false
        i_complex_restrictions       = ls_cmp_restrictions
        i_use_complex_restriction    = abap_true ).
      FREE lr_field.
    Edited by: Girish Nabar on Jul 22, 2011 12:35 PM

    Hi Girish,
    People are answering not for points, just to share the knowledge.
    And I think the way of structure is wrong.  i think we cannot pass two single values in your way. am not sure about .
    low means it will accept single value. for one record in sign structure.
    wait for other replys.
    Regards
    Srinivas

  • VT01N User exit for adding additional field to VTTP table and populate the

    Hi,
    Can any one sujjest what is the use exit/bapi when we add(append) a custom field to vttp table to populate the incremental number  based on ship to address when we create a shipment..
    need user exit in ...............to populate data to vttp table custom field when we append......

    hi,
    check these exits for vt01n.
    Transaction Code - VT01N                    Create Shipment
    Enhancement/ Business Add-in            Description
    Enhancement
    V56USVDP                                Preparation for updating new objects for transport?
    V56USVDO                                Update new objects for transport
    V56USTAT                                User-individual definition of transportation planning status
    V56UNUMB                                Shipment number allocation
    V56UDLUP                                Obsolete as of 4.6C: Delivery Update on Delivery Routines
    V56UCHCO                                Check shipments are complete
    V56UCHCH                                Shipment processing: Check whether changes were made
    V56TDLIF                                Filter Delivery Items for Shipment
    V56SLDET                                Shipment processing: Leg determination
    V56MVT04                                Extensions for Collective Processing of Shipments
    V56LOCID                                Shipment Processing: Determine Location Identification
    MV56AINI                                Initialization of transaction control for transportation
    V56AFCCH                                Shipment processing: Check function code allowed
    V56AGTAR                                User Exit for Filtering Shipping Unit Calculation
    V56ARCHV                                Customer-spec. checks for archiving shipments
    V56ATKTX                                Change the number of lines for text input in shipment
    V56BMOD                                 Transportation processing: Field modification
    V56DISTZ                                Shipment Processing: Determine Distance
    V56FCOPY                                Shipment processing: Copy delivery data
    V56FSTAT                                Shipment processing: Activities when setting a status
    V56L0001                                Status of Shipments for a Delivery
    V56LDELI                                Read Delivery Data for Shipment Processing
      Business Add-in
    BADI_LE_SHIPMENT                        BadI: Shipment Processing
    BADI_V56N                               User Exit for Message Determination: Shipment

  • How to map primary table for CMP?

    I am using the SunONE studio EE and trying to deploy a CMP Entity bean and get the following error:
    Validation failed for board.ejb.user.UserBean. Verify that all fields are mapped.
    CMP Mapping Error in bean User:: Warning: The bean pcImpl0.moduleComp0.board.ejb.user.User is not mapped.
    Set the primary table for the bean.
    I have the CMP resou4rce set to the JNDI name of my database connection but I can't figure out hpw to set the primary table for the bean. Any help would be apprecieated.

    You will need to do the mapping via the UI available on the bean (in the context of the module).
    If you expand the ejb-module, you can select a bean that is in that module.
    There are two SunONE App Server specific tabs added to the property sheet for a vselected CMP bean.
    Entering data for these properties will do the mapping and resolve the error you are encountering.
    Note: The current implementation does not conjure up tables for the entity beans (unlike the RI).

  • Weblogic Deployment Descriptor for CMP EJB

    Hi all,
    Am new to EJB, CMP. Pls help me how to write deployment descriptors for the CMP EJB for Weblogic.
    Give me the list of the Deployment descriptors needed and also pls give me some samples
    thanks in advance
    rgds
    Ravi Bharathi

    The easiest way is to go through some tutorial or refer the code samples. If you have installed weblogic, there are examples provided in the weblogic installation folder itself for each type of bean. Basically for cmp you have to provide the table names and mapping between the class variables to db fields in weblogic_cmp_rdbms.xml deployment descriptor.

  • Joining tables for Mobile apps

    can i access multiple table(like normal join) from one CallResponder's token for my mobile apps(flex 4.6)..if we can ,then how can we do this..i think, there is some solution,but i'm not aware of it.. please give me a short demo or link..how can you join table,by data binding.. thanks..

    +1 for this. it's taking a while to lad on my 2 year old ipad mini, so this would probably help. though in my case, it's going to be an iOS install that needs to ho on a diet.i haven't worked out if it's the player part of the spp that's swelling or additional social aspects of the app that sre growing in size unecessarily.all things said, a music player shouldn't really need to be 75mb+.the android install on my htc m8s is about 13mb, by comparision, less than 2 thirds of the install size.

  • What is the better way to join table for ASE 12.5?

    To join table with T-SQL, there are 2 options:
    select * from tab1 a join tab2 b on a.id = b.id where x=y
    select * from tab1a, tab2 b where a.id = b.id and x=y
    this is only a syntax difference or there is a performance difference? which one is better for performance?

    The first query (using the join clause) is the ANSI standard way of writing joins and is usually supported by all mainstream RDBMSs.
    The second query is the T-SQL method of writing joins and may have limited re-usability with other RDBMSs.
    In most cases which one you use is usually one of preference, ie, which ever one you're comfortable with.
    From a technical perspective there are some join constructs that you cannot build with T-SQL joins, but can build with ANSI joins (eg, you may have problems in T-SQL with a table that you want to be both a) an inner table of an outer join and b) part of a equi/inner join).
    Soooo, ANSI joins provide you a lot more flexibility in coding as well as portability (between other RDBMSs).  But if you're going to work with ASE you'll still need to understand how T-SQL joins work as you'll see quite a lot of T-SQL join-based queries.

  • How to populate the logical_group field in V_LTDX (table for layouts)?

    Hi,
    Scenario:
    I have implemented the ALV using CL_SALV_TABLE. In the grid we have a 'Choose Layout' button where we have the options of choose, change, manage etc. the layouts. If we create a layout, the layout is saved in the table LTDX(view: V_LTDX).
    Issue:
    How do we populate the 'Logical_group' field in the table while creating/changing the layouts?
    Please suggest..
    Regards
    s@k

    Solved..:)
    Solution:
    While creating the ALV grid, use the method 'get_layout' of the class CL_SALV_TABLE and get the reference of the layout in a reference variable.
    Data:
          gw_key       TYPE            salv_s_layout_key.
      gr_layout = gr_grid->get_layout( ).
      gw_key-report = sy-cprog.
      gw_key-logical_group = gc_log_grp." Pass the logical group here say logical group: 0001, 0002, etc. for each ALV
    So, whenever you create/ change a layout on the ALV grid, the system automatically passes this logical group and saves it in the table LTDX.
    Regards
    s@k

  • Field in portal table for the text contained in an uploaded file

    I have uploaded a file of base item type file into release 2 of the portal.
    Does anyone know which table the clob field for the text contained in
    the uploaded file is stored?
    Thanks,
    Suzanne

    Hi,
    When you run the Search hep is it giving the description or not
    You have to create the serarch help with both the fieldname and its description field then we cna the values. Or
    Try to mantain the text table for this field and get the data.
    Get the valeusinto drop drown with this table Or create the SearchHelp for this text table
    Regards
    Lekha

  • Adding new field in the table for Output

    Hi ,
    I need to add a field catalogue as Payment method in the condition table for Output, but the payment method field does not exist in the table. Can this be done?
    regards,
    Ragu

    Hi Refer below link on sdn for adding new Field
    Adding New Field to Catalog
    Adding New fields to field catalog

  • SAP GRC 10.1 AMF No data selected when adding duplicate fields from separate tables for configurable data sources

    Hi There,
    In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
    We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
    The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
    Below is an example:
    Basic data source with just one currency reference field EBAN-WAERS.
    When you run the Ad-Hoc Query you receive data.
    Basic data source with second currency reference field EKKO-WAERS.
    When you run the Ad-Hoc Query no data is found.
    Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
    Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
    Thanking you in advance.
    Regards
    Gary Khan

    Hi
    following are the  error messages from dump
    hrtText
       There is already a line with the same key.
    hat happened?
       Error in ABAP application program.
       The current ABAP program "SAPLCKMS" had to be terminated because one of the
       statements could not be executed.
       This is probably due to an error in the ABAP program.
    rror analysis
       You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
        which you declared
       with a UNIQUE KEY. However, there was already an entry with the
       same key.
       This may have been in an INSERT or MOVE statement, or within a
       SELECT ... INTO statement.
       In particular, you cannot insert more than one initial line into a
       table with a unique key using the INSERT INITIAL LINE... statement.
    rigger Location of Runtime Error
       Program                                 SAPLCKMS
       Include                                 LCKMSF01
       Row                                     226
       Module type                             (FORM)
       Module Name                             DYNAMIC_PERIOD_CLOSING
    Source code where dump ocured
    222
    223           APPEND ht_ckmlpp TO t_add_ckmlpp.
    224           APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
    225           INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
    >>>>           INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
    227         ENDWHILE.
    Also I guess there is problem with material ledger in R/3 side
    I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
    Thanks
    Navneet

  • Auto-numbering of item field in custom table for EEW enhancements for BUPA

    Hi Experts,
    We have a requirement to generat 3 custom tables in EEWB,for BUPA and assigned it to BP_HEAD. I have done all the generations and it works fine, the problem  is that the tables that are generated is not allowing us to have a data(material) of 0...n cardinality. 
    The table that we are aiming is to allow multiple records, so my solution is to have an extra item number field so that it will allow multiple records for a material. But users are requesting to have the item number field of the tables to be auto-numbering.
    I would like to know if this autonumbering is possible or not? what methods in BP_EEW should i use to implement this logic. I 'm very new to CRM2007, so I'm still not very familiar on how to use the objects generated by the component workbench.
    p.s.
    I've already search the forum but can find any relevant topic related to my request. If you have any known related topic, It would be highly appreciated.
    Thanks and regards,
    JP
    Edited by: John Paul Auditor on Sep 1, 2009 3:36 AM

    Dear Syed,
       You can do many things in table maintenance screen like validation of some field, making some field required or displayed etc.
       For auto increment you have to use Number-Ranges. FM NUMBER_GET_NEXT is helpful in this case.
       Where to write the code??? The Function-Group you have made. There will be includes. You can easily locate the place to write these codes.
       Caution point is that if you re-generate the table maintenance then all code will be gone.
    Regards,
    Deva.

Maybe you are looking for

  • Retail - article follow up / material determination

    Hello, I would to know the possiblity of material determination / article follow up in Retail scenario. The material should be substituted with material already maintained for replacement/follow up for the 'sales orders'. Help on this is really appre

  • Acrobat 9.0 and Windows 7

    I just installed Windows 7 but my Acrobat 9.0 is not working right. Do I need to install all of the updates listed or just the newest one?

  • Video clips in iDVD instead of a movie

    In iDVD, my movies show up as many different video clips (ie every time I stop & started the video camera, it is a different video clip).  They play as all 1 movie in iMovie, but not iDVD.  Each clip must be played separately. I am new to this & need

  • Add (+) search criteria grayed out

    When searching in a finder window, the normal ( +) button to add search criteria is disabled. I thought maybe I had a corrupt preference file, so I trashed all the .plist files that seemed to relate to the finder. Whe I restarted, the button was back

  • Ibooks author widget icon

    Hi, I've got a widget added to my ibook and when prevewing on ipad retina, as loading, the icon appears high resolution, once the preview has fully loaded the icon reverts to being a very low quality version. I am then able to move the blurry icon by