Values for Context assignment

Hello,
I need some help in developing a webdynpro application. My scenario is as follows:-
How to assign values entered in inputfields to table rows at runtime? The total number of rows in the table will only be decided at runtime. Could you advise me of how to do this?
I would greatly appreciate your help.
Regards,
Gopal.

Hi Uday,
Thanks a lot for your reply. We are supposed to develop the application with as many less clicks as possible . So, giving the Add new row button is not an option for us. So, we are making use of the concept of  "Context Log" and it is working fine.
I'll try to explain in more detail:-
I have a custom node in my context, which has 9 different attributes. I have to get these 9 values from the end user. But, 3 of the attributes should be filled in through inputfields and the rest of the 6 attributes should be filled through a table because the end-user should be able to enter multiple line items.
But, at runtime, when the users clicks the Button to execute the BAPI, the 3 attributes that are entered through inputfields should be assigned to every row of the table that the user is using.  But, the values are getting added only to the first row of the table. Do you get what I am saying?
Please let me know if you need more clarification. Your help is very much appreciated.
Regards,
Gopal.

Similar Messages

  • SQLJ-JPublisher - J2T-153, Invalid value for -context:while generating the

    Hi All,
    I am trying to generate the java code for the oracle types defined for one of the module in our project.for that i have defined a new context by extending the 'DefaultContext'
    provided by SQLJ and as mentioned in the below URL.
    http://docs.oracle.com/cd/A91202_01/901_doc/java.901/a90214/jpub.htm
    Topic : JPublisher Generation of SQLJ Classes
    MyContext:-
    import java.sql.Connection;
    import java.sql.SQLException;
    import sqlj.runtime.ref.DefaultContext;
    public class MyContext extends sqlj.runtime.ref.DefaultContext{
    static {
    DefaultContext defaultContext = null;
    try {
    defaultContext = new DefaultContext(<datasource>);
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    DefaultContext.setDefaultContext(defaultContext);
    public MyContext(Connection arg0) throws SQLException {
    super(arg0);
    public Connection getConnection(){
    Connection con = null;
    try {
    con = <datasource>getConnection();
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    return con;
    JPub command:
    jpub -user=usr/pwd -context=com.test.context.MyContext -sql=<My Types Here> -compile=false
    I am getting the below error while running the jpub command in dos prompt.
    Error Log:
    J2T-153, Invalid value for -context: com.test.context.MyContext. This must be set to generated or to DefaultContext.
    Please let me know if anybody has come across this problem before.
    Thanks,
    Vijay
    Edited by: 905698 on 03-Jan-2012 09:53

    Hi Vijay,
    This post DOES NOT correspond to this forum.
    The current forum is for BI Publisher. Your question is for JPublisher and believe it corresponds to PL/SQL forums.
    Please close the thread
    thanks
    Jorge

  • An incorrect default value of account assignment group in sales order

    I created a new sales order; however, the default value for account assignment group is not the same value maintained in customer master.
    Any idea how could this happen?

    have you checked user exit MV45AFZZ? Maybe there is a coding inside, changing the default value when creating a new sales order.
    regards
    Ralf

  • Function to return the Entry Value based on Assignment, Element and Date

    Hi Guys,
    Is there a function that returns the Entry Value for the Assignment Element, based on the Assignment Number, Element Name, Entry Segment and the End of Period date?
    Example:
    ==============
    Input Parameters:
    Employee: Iana
    Assignment Num: 123
    Element: D480
    Element Entry: Fund Name
    Output Parameter:
    Element Entry Value: MLC Super Fund
    Thanks,
    Iana

    For element entry values you can use:
    select petf.element_name, nvl(peevf.screen_entry_value,0) screen_entry_value
    from
    pay_element_entries_f peef, pay_element_types_f petf,
    pay_element_entry_values_f peevf, pay_input_values_f pivf,
    per_all_assignments_f paaf
    where petf.element_type_id = peef.element_type_id
    and :p_date_earned between pivf.effective_start_date and pivf.effective_end_date
    and :p_date_earned between petf.effective_start_date and petf.effective_end_date
    and peevf.input_value_id = pivf.input_value_id
    and paaf.assignment_id = peef.assignment_id
    and petf.business_group_id = :p_business_group_id
    and peevf.element_entry_id = peef.element_entry_id
    and :p_date_earned between peef.effective_start_date and peef.effective_end_date
    and :p_date_earned between peevf.effective_start_date and peevf.effective_end_date
    and :p_date_earned between paaf.effective_start_date and paaf.effective_end_date
    and pivf.name = :p_input_value_name
    and petf.element_name = :p_element_name
    and peef.entry_type = 'E'
    and peevf.effective_start_date = peef.effective_start_date
    and peevf.effective_end_date = peef.effective_end_date
    --and peef.assignment_id = :p_assignment_id
    and paaf.assignment_number = :p_assignment_number;
    For payroll results you can use:
    select sum(prrv.result_value)
    from pay_run_results prr, pay_run_result_values prrv,
    pay_assignment_actions paa, pay_payroll_actions ppa,
    pay_element_types_f petf, pay_input_values_f pivf,
    per_all_assignments_f paaf, per_all_people_f papf
    where
    petf.element_type_id = pivf.element_type_id
    and :p_pay_date between petf.effective_start_date and petf.effective_end_date
    and :p_pay_date between pivf.effective_start_date and pivf.effective_end_date
    and paa.assignment_action_id = prr.assignment_action_id
    and petf.element_type_id = prr.element_type_id
    and ppa.payroll_action_id = paa.payroll_action_id
    and prrv.input_value_id = pivf.input_value_id
    and prr.run_result_id = prrv.run_result_id
    and petf.element_name = :p_element_name
    and pivf.name = :p_input_value_name
    and ppa.date_earned = :p_pay_date
    and papf.person_id = paaf.person_id
    and nvl(prr.start_date,ppa.effective_date) between paaf.effective_start_date and paaf.effective_end_date
    and nvl(prr.start_date,ppa.effective_date) between papf.effective_start_date and papf.effective_end_date
    and paaf.assignment_id = paa.assignment_id
    and papf.employee_number = :p_employee_number;

  • Personalized Value for Table-Filter

    Hello,
    we have a WD-Application with a filterable Table. How can the user store his own Filter-Value so that it is present whenever he loads the table?
    We use Netweaver 7.0 SP18 with the Enterprise Portal.
    Best regards,
    Manuel

    Hi
    By default you want value to be set at filter ??
    So each time when u perfrom table operation ,set the value for context after populating all the data . initially it will be at WDDOINTI(), if required.
    BR
    Satish Kumar

  • InitialContext Values for Tomcat?

    Hi.
    I've successfully accessed a MySQL database via a DataSource from a servlet that makes use of a DAO. I would now like to use the same DAO to access the database from a standalone, command window program.
    In order to achieve the above, it appears that I need to set the initial context by supplying the appropriate values for Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL in my Tomcat 5 container. Though I know the values for the corresponding WebLogic container(viz., "weblogic.jndi.WLInitialContextFactory" and "t3://localhost:7001"), I don't know the Tomcat values. Does anybody know these values??
    As a subsidiary question, does anybody know the 'safe' way of setting these values? (Attempting the call the 'put' method of the Hashtable object that will be used as the argument to the constructor for InitialContext generates 'unsafe' messages in my J2SE 1.5.0/5.0 compiler.)
    Many thanks in anticipation.
    Cheers.
    Jan

    Hi.
    I've successfully accessed a MySQL database via a
    DataSource from a servlet that makes use of a DAO. I
    would now like to use the same DAO to access the
    database from a standalone, command window program.
    In order to achieve the above, it appears that I need
    to set the initial context by supplying the
    appropriate values for
    Context.INITIAL_CONTEXT_FACTORY and
    Context.PROVIDER_URL in my Tomcat 5 container. Though
    I know the values for the corresponding WebLogic
    container(viz.,
    "weblogic.jndi.WLInitialContextFactory" and
    "t3://localhost:7001"), I don't know the Tomcat
    values. Does anybody know these values??
    Please use this values .. i have put this in a seperate jndi.property file ....
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.provider.url=<server-ip>:1099
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    As a subsidiary question, does anybody know the
    'safe' way of setting these values? (Attempting the
    call the 'put' method of the Hashtable object that
    will be used as the argument to the constructor for
    InitialContext generates 'unsafe' messages in my J2SE
    1.5.0/5.0 compiler.)
    I think this a matter of synchronised access on the Hashmap.. try synchronizing.. and this would work.. i dont have J2SE 1.5.0 currently.. so have not tried it before answering..
    Many thanks in anticipation.
    Cheers.
    JanRgds,
    Vaibhav

  • Assigning of characteristics value for a batch

    Hi All,
    Please help regarding the assigning of characteristics value for a batch in transaction code MSC2N or MSC2 in the classification tab.
    If Function modules or BAPI is available pls advise the inputs to be provided for the function modules.
    Here is one function module which i searched, but if i run this function module, i am not able to commit my characteristics value.
    The function module is CIF_BATCHCHAR_MAP.
    For the above function module the inputs which i have given are...
    Material number
    Batch
    Plant
    Class type
    Class Number
    Characteristics name
    Characteristics value
    Expecting your earliest reply.
    Thanks,
    G.C.Arravind Kumar Vikram

    Try the code below
    *.1 create key
      it_objects-key_field = 'MATNR'.
      it_objects-value_int = matnr.
      APPEND it_objects.
      it_objects-key_field = 'CHARG'.
      it_objects-value_int = charge.
      APPEND it_objects.
      CLEAR l_objectkey.
      CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
        EXPORTING
          objecttable    = 'MCH1'
        IMPORTING
          objectkey_conc = l_objectkey
        TABLES
          objectkeytable = it_objects
          return         = it_return2.
    2 fill it_num it_char it_curr with values
    3 change characteristics
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
        EXPORTING
          objectkey          = l_objectkey
          objecttable        = 'MCH1'
          classnum           = it_class-classnum
          classtype          = '023'
        TABLES
          allocvaluesnumnew  = it_num
          allocvaluescharnew = it_char
          allocvaluescurrnew = it_curr
          return             = it_return.

  • How to assign values for more than one field

    Hi,
    I have written following code
    constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
    constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
    constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
    field-symbols: <L_FIELD>  TYPE ANY.
    field-symbols: <L_FIELD1> TYPE ANY.
    field-symbols: <L_FIELD2> TYPE ANY.
          Assign (fieldname) to <l_field>.
          <L_FIELD> = 'ZB'. " value according to your requirement
          Assign (fieldname1) to <l_field1>.
          <L_FIELD1> = 'ZB'.
    while debugging <l_field1> is not assinging (fieldname1).
    Im able to assing for (fieldname).
    how to assign value for (fieldname1).
    plz suggest me to assign values for more than one field.
    Regards,
    Brahmaji

    Hello,
    Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
    It is KNA1-LIFSD

  • How to do Default context value For DFF in OAF

    Dear all,
    I want to do Default context value For DFF in OAF for seeded page, pls let me know how to do.
    Regards,
    Hanimi

    Hi Hanimi,
    In controller use code
    *dffBean.setFlexContext(pageContext,"+YOUR-LIST-VALUE+");*
    *dffBean.setAttributeValue(OAWebBeanConstants.READ_ONLY_ATTR, new Boolean(false));*
    Thanks
    Jegan

  • How to assign values for boolean array in LabVIEW?

    I want assign values for boolean array.Iam not able to do that.For each boolen i want to assign each value.Plz help me......
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Solved!
    Go to Solution.

    Hi agar,
    values in an array are "assigned" by building an array (using BuildArray) or by replacing values in an existing array (ReplaceArraySubset)!
    Good starting point could be this...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Decimal Value for Percentage distribution on Account Assignement in SES

    Dear Experts,
    While creating service entry, the qty should be distributed on percentage basis for Account assignment with decimal value.
    For Example
    Say Service 100% done but value is 10,000..but there is distribution to different cost center say K, L , M, N
    K - 21.25%  - value 2125
    L - 32.70%  - value 3270
    M - 28.93% - value 2893
    N - 17.22%  - value 1722
    So i need to customize decimal values for Percentage distribution for Service entry sheet creation. Please advice me, if you know the solution for this
    Regards
    Saravanan

    Hi
    In Transaction CUNI, as lot is a created Unit of measure wuth no dimensions select No Dimensions & continue
    Now change the decimal places for the Unit from3 to 5.
    In the service entry sheet you will be able to maintain the lot upto 5 decimals....
    But there is again aproblem in that as the standard field Quantity MENGE  has only 3 decimal places allowed, so agian you will encounter a problem.
    So the best method to follow is advise the user to go for a 3 decimal reounding off the work.
    Hope you understand the Problems that arise when decimal places are changed we need to take a lot of things into considertaion before going forward
    Thanks & Regards
    Kishore

  • How do you assign a value for Products in a Pop-up menu?

    I am preparing production cost spread sheet. In one column I2 - I have a pop up menu with lamination types to be selected - ie: None, Standard Film, Vehicle Film, Liquid Coating. I want to be able to associate values of these costs in column J2 - On another table (Laminating Costs) I have set values for each product ie: None = 0, Standard Film = $1, Vehicle Film =$2 and Liquid Coating =$0.5 -
    Therefore if I select Liquid Coating from the from the Pop-up menu in I2 on the main spread sheet - I want to see the associated cost of $0.5 appear in J2 by referencing the Laminating Costs table - I have tried various SUMIF formulas with no luck - Could someone point me in the right direction please.
    Thanks

    You can assign values to the items using a lookup table.
    http://discussions.apple.com/thread.jspa?threadID=2539456&tstart=0

  • How to assign a value for Unit of measure (like PC, KG...) in ABAP program?

    Hi,
        How to assign a value for Unit of measure (like PC, KG...) in ABAP program?
        I want to assign PC in a field to execute the program, like wa-ENTRY_UOM = 'pc'.
        But the system returen a message that "Unit of measure  is not convertible to stockkeeping unit PC"
        Could anyone tell me how to assign the value??
        Thanks!

    hi,
    first convert the quantity in the same unit  ( like in you case ST to PC )  by using FM :    MD_CONVERT_MATERIAL_UNIT
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
        EXPORTING
          i_matnr                    = matnr
          i_in_me                    = entry_uom
          i_out_me                   = out_uom
          i_menge                    = quantity
       IMPORTING
         E_MENGE                     = fp_l_v_quant
       EXCEPTIONS
         ERROR_IN_APPLICATION       = 1
         ERROR                      = 2
         OTHERS                     = 3.
      IF sy-subrc <> 0.
              give error message here
       ENDIF.
    bcoz in ur program somewhere the quantities etc are compared and there units may be different... so that is why it is showing such error.  so just convert convert the quantity in the same unit  .
    regards
    rahul
    Edited by: RAHUL SHARMA on Jun 17, 2009 9:31 AM

  • Value Blank/space is invalid for account assignment element fund

    Hello!
    I created an invoice with several items linked to funds reservation.
    when the invoice has 2 line items, the payment run is executed without problem.
    when the invoice has more than 3 line items, the payment run is executed with error.
    The message error (message number F6804) is "value blank/space is invalid for account assignment element fund".
    I dont know where i should enter a valid value for fund.
    Thanks for your kind help!
    Chiachen

    Hi Chiachen,
    The problem occurred because the functional area is not inherited from the Purchase order during MIRO posting. As a result, error message F6841 is issued.
    There are 2 main programs for the FM derivation:
    1. Function Module FM_DERIVE_ACCOUNT_FROM_COBL
    2. Program LFMCOBLF06
    The latest notes which affects these 2 programs are 1244381 and 1247982.
    Kindly implement these notes using SNOTE.
    During this process, it should also bring in all the other pre-requisite notes. Do not worry if the
    symptoms described in the notes do not match yours. What's more important is to bring the coding in your system up to date. Please retest MIRO after the notes are applied. Let me know the results.
    Check also the notes 17941 and 982511.
    I hope it helps
    Best Regards,
    Vanessa Barth.

  • FM/BAPI for assigning a class and value for the class instead of manually d

    Hi guys,
    Instead of manually adding equipment class and assigning value for the class added can i get a FM or BAPI.
    this is for transaction IE02.
    rewards will be given.

    Hi
    I hope this thread can help you
    Characteristic Value
    Re: Equipment Characteristic Value
    Change Equipment Using Transaction IE02
    Regards
    pavan

Maybe you are looking for

  • External Hard drive No Longer Readable

    I have a Macbook Pro running Lion 10.7.5. I've been using a PQI Portable HD 551 external drive to back up my files for some time now. I haven't backed up since 9/21/12 and I tried a few days ago and got the error message "The disk you inserted was no

  • My daughter's iPhone 3GS is still showing my contacts in the messages

    When my daughter goes to use my old iPhone 3GS to send a text message, my contacts show up. I have synced and re=synced the phone to her iTunes account and wiped the phone twice. Any ideas?

  • Create heck box in excel cell using sap

    Dear Sap Master's, Please give me some idea on how to create a check box in excel cell using abap program.. (OLE concept). Thanks, Naveen. Moderator message: please do some research before posting, show what you have done yourself when posting. Edite

  • HT4906 sign out photo stream

    how to sign out from my photo stream.? i added photo stream in my mac with my account and now i want to use other acount? how can i do this?

  • How to identify which subview is pickerview?

    Hi, I have added buttons, labels, pickerview to a view. They can be referenced from [[view subviews] objectAtIndex:i] But the problem is, which index is pickerview ? Any advise is appreciated.