Assign a value from dropdownlist to input field value on BSP page

Hi,
I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
Now, coming to my problem: I have a input field with
value = "//BTAdminH/HeaderInfo"
This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
How can I now set the field as readonly (this should be the easier part) and
how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
If I set it directly like this
value = "//BTActivity/Priority"
it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
Please help me.
Enja

Hello Gokul,
test was only for test purposes! I am using as a separator the plus sign!
But this is not the problem!
In debugging, the local variable has the concatenated value! So, this is working!
oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
    BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
  endif.
If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
lv_headerinfo  =ls_ddlb1-value.
So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
Regards
Enja

Similar Messages

  • Bind input field value to a variable fails

    Business need : The user wants to re-evaluate lines by a percentage value which he fills via his BI-IP screen.
    I created an INPUT FIELD in WAD and I am trying to link a variable value (initially created in BI-IP through transaction RSPLAN)
    to this INPUT FIELD.
    Whenever I fill the input field with a value, the value is not being transferred to the variable.
    Please help how to bind an INPUT field value to a variable to be transmitted to a planning function.
    I have made many trials but in vain.
    Please help.

    Hi.
    I will present my scenario (it works in my system). From this scenario you may "cut" implementation for your scenario.
    Lets sat I have an input fileld item and I want to read value (in my case numeric value) and pass this value to any planning sequence.
    1. Create in Bex variable (in my case it is formula variable) lets say Z_INPUT_VAR
    2. In WAD, when you executin planning sequence (lets say by pressing button execute) in command EXEC_PLANNING_SEQUENCE_SIMPLE define data binding.
    When you clicked data binding->variable input MANUALY your variable name (Z_INPUT_VAR) in popup window.
    3. In variable type select (ITEM_INPUT) type
    4. In web item select your input field item.
    This way you will pass inputed value to vaariable and planning sequence.
    Then in planning function you also may use VARV() to read value of Z_INPUT_VAR variable.
    Regards.

  • Unable to capture Input field value on BSP page

    Hi
    I have copied ROS (SRM) standard application ROS_PRESCREEN3 into custom and added one input field .
    Now when user enters some value in it , i am not able to get that value in my back-hand code.
    I have treid the availble code on Fourm , its not working .
    Regards
    Raul

    Hi ,
    I am getting the input field values in my back hand using MVC .
    Regards
    Raul

  • How to clear input field value on back

    Hi All,
    I have developed an application, in which user put sales order on first page and press a button then its detail display on second page using restAPI. Now when I press back button on second page then it takes me to first page with holding previous sales order value in input field. And when I change its value and press that button again then it shows me previous sales order detail.
    Please suggest me, how to refresh cache and input fields value on back button?
    Thanks & Regards
    Shubhanshu

    Hi Viren,
    My code is,
    First view
    sap.ui.jsview("uitest2.first", {
      getControllerName : function() {
      return "uitest2.first";
      createContent : function(oController) {
      var text = new sap.m.Label({
            text: 'Dealer Code',
           layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center })
      var input =  new sap.m.Input("CUSTOMER",{
            type: sap.m.InputType.Text,
          placeholder: 'Enter Dealer code...',
          layoutData: new sap.m.FlexItemData({growFactor: 1, alignSelf: sap.m.FlexAlignSelf.Center}) 
      var Dealer = new sap.m.HBox({ 
                items:[  text,input
    //                   new sap.m.Label({
    //                   text: 'Dealer Code'
    //                   new sap.m.Input("CUSTOMER",{
    //                   type: sap.m.InputType.Text,
    //                   placeholder: 'Enter Dealer code...'
                       height : "6em"
          var button = new sap.m.Button({
               text: "Submit",
               press: function(oEvent) {
                  oController.loadData();
                  app = sap.ui.getCore().byId("myApp");
                  app.to("idsecond1");//, sap.ui.getCore().byId("CUSTOMER").getValue());
               layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center}) 
          return new sap.m.Page({
         title: "Sales Dealer Info",
         content: [ Dealer,button
    First controller
    sap.ui.controller("uitest2.first", {
        loadData: function() {      
            var oParameters = ({
            "CUSTOMER" : sap.ui.getCore().getElementById('CUSTOMER').getValue(),    
             console.log(oParameters);
             var url = "http://###########:8000/sap/bc/zrst_customer?sap-client=800/";
             var oModel = new sap.ui.model.json.JSONModel();
             $.ajax({             
             url : url ,
             dataType : "jsonp",
             type : "POST",
             data: oParameters,
             success: function(data,textStatus,jqXHR) {
             data = JSON.parse(data);
                     console.log(data);   
                     oModel.setData(data);
             sap.ui.getCore().setModel(oModel);
    Second View
    sap.ui.jsview("uitest2.second", {
      getControllerName : function() {
      return "uitest2.second";
      createContent : function(oController) {
      var oTable = new sap.m.Table("table",{
           headerText: "Dealer data",
           columns: [
             new sap.m.Column({
               header: new sap.m.Label({text: "NAME"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "CITY"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "COUNTRY"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
               header: new sap.m.Label({text: "COUNTRYISO"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "STREET"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "PST_CODE"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "TELEPHONE"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
             new sap.m.Column({
              header: new sap.m.Label({text: "EMAIL"}),
      demandPopin  : true,
      minScreenWidth : "Tablet",
           items: {
           path: "/KEY",
           template: new sap.m.ColumnListItem({
           cells: [
                   new sap.m.Text({                              //new sap.m.ObjectIdentifier
                   text: "{NAME}"
                   new sap.m.Text({
                   text: "{CITY}"
                   new sap.m.Text({
                   text: "{COUNTRY}"
                   new sap.m.Text({
                   text: "{COUNTRYISO}"
                   new sap.m.Text({
                   text: "{STREET}"
                   new sap.m.Text({
                   text: "{PST_CODE}"
                   new sap.m.Text({
                   text: "{TELPHONE}"
                   new sap.m.Text({
                   text: "{EMAIL}"
      return new sap.m.Page({
      title: "Dealer Info",
      showNavButton: true, 
      navButtonTap:function(){ 
      app = sap.ui.getCore().byId("myApp"); 
      app.to("idfirst1"); 
      sap.ui.getCore().getElementById('CUSTOMER').setValue("");
      oModel.refresh();
      content: [ oTable
    Index.htm
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <script src="resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m,sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("uitest2");
      var app = new sap.m.App("myApp",{initialPage:"idfirst1"});
      var page = sap.ui.view({id:"idfirst1", viewName:"uitest2.first", type:sap.ui.core.mvc.ViewType.JS});
      var page1 = sap.ui.view({id:"idsecond1", viewName:"uitest2.second", type:sap.ui.core.mvc.ViewType.JS});
      app.addPage(page).addPage(page1);
      app.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    Thanks
    Shubhanshu

  • To Display Input Field Value in Pop Up

    hii guys i want to display a input field value in a pop up dialog box.
    For this i have taken a input field, a pop up component and a button.
    In the dialog box of pop up element i have taken an output text which will display the value of input field.
    Everything seems to be work fine if i am giving the value to input filed at design time.
    But when i want to display the input field value entered at run time, the dialog box of pop up displays nothing..!!!

    Thank you so much Arun for your help.
    I did as you told me to do.
    But somehow i think i am not getting it right.
    I created a private String variable named value in my Bean Class and then i created its accessors..
    setValue and getValue..
    Then i set the value property of both input text and output text as #{package.BeanClass.value},
    but its not working...!!!
    Can you help me out with problem..!!

  • Input field value help

    Hi all,
    i gt problem to gt the value from the input field:STUDENT-OBJECT_ID, STUDENT-FILE_NAME into my sql statement. I using module. When i delcare a static value objectid = stud. My sql statement can regnoize. How can i gt the objectid base on my input field in the module?
    MODULE VALUE_FNAME1 INPUT.
    <b>*objectid = STUDENT-OBJECT_ID.
    *filename = STUDENT-FILE_NAME.</b>
    <b>objectid = 'STUD'.
    filename = 'STUDFILE'.</b>
      SELECT  FIELD_NAME
        FROM STUDENT
        INTO  CORRESPONDING FIELDS OF TABLE values_tab1
    WHERE OBJECT_ID = objectid and FILE_NAME = filename.
    endmodule.

    Hi Gary,
    Check the below code.
    tables: t001k.
    For Identification Number
    DATA: BEGIN OF it_bwkey OCCURS 0,
            bwkey LIKE t001k-bwkey,
          END OF it_bwkey.
    data: v_bukrs(4).
    For Run date
    DATA: BEGIN OF it_bukrs OCCURS 0,
            bukrs LIKE t001k-bukrs,
          END OF it_bukrs.
    DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS:    p_bukrs(4) TYPE c.
    SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK main.
    Validation Section
    INITIALIZATION.
      SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_BUKRS'
          value_org       = 'S'
        TABLES
          value_tab       = it_bukrs
        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.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.
      TABLES: t130r.
      DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des
              INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei >F4<
      DATA: END OF   dynpfields.
      DATA : sy_repid LIKE sy-repid,
             sy_dynnr LIKE sy-dynnr.
      CLEAR dynpfields.
      REFRESH dynpfields.
      dynpfields-fieldname = 'P_BUKRS'.
      APPEND dynpfields.
      Lesen des akt. Wertes von Dynpro
      sy_repid = sy-repid.
      sy_dynnr = sy-dynnr.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = sy_repid
          dynumb     = sy_dynnr
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 01.
      IF sy-subrc = 0.
        READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.
        IF sy-subrc = 0.
          v_bukrs = dynpfields-fieldvalue.
        ENDIF.
      ENDIF.
      SELECT bwkey FROM t001k
      INTO TABLE it_bwkey
      WHERE bukrs = v_bukrs.
      DELETE ADJACENT DUPLICATES FROM it_bwkey.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BWKEY'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_BWKEY'
          value_org       = 'S'
        TABLES
          value_tab       = it_bwkey
        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.

  • Input Field: Value Range in IP Web Layout

    Hi Experts,
    I've created a Web Layout based on IP with a copy function (e.g. from actual 2008 to plan2009) over 12 calendar months. For choosing the months to be copied, I created a Variable (calmonths) and added an Input Field into my layout to enter the the months to be copied. I referred the variable to the input field and it's working...
    When I want to select several months to be copied, I can type in " 1; 2; 3; " into the input field, execute the planning function and only month 1, 2, 3 (i.e. Jan, Feb, Mar) are being copied. But when I want to copy all 12 months, i have to enter 1; 2; 3; 4;...11; 12 which is kind of anoying! Has somebody some experience whether I can use a value range like 1-12 (or something like that) to avoid entering all the months individually? (I tried 1-12; 1- 12; 1 - 12; 1:12 etc but nothing like this is working)
    It would be very helpful if someone has an idea
    All the best,
    Norbert

    Hi Mayank, hi Srinivas.
    Thanks a lot for your valuable input! Unfortunately I was not able until today to test your recommodations.
    I tried your Interval variable but then faced the problem that I cannot enter multiple months anymore (e.g. 5 - 8 worked, 1; 3; 5 not).  Then I inserted both variables, multiple values & interval, into the planning function as well as in the button group in WAD for executing the PF but was not able to execute the following example: 1; 8; 4 - 6. After trying out for some time I figured out that one has to type in the figures in the following order: 4 - 6; 1; 8. Only then I am able to execute the planning function for the months April-June & Jan & August. So, if you're facing the same problem in the future, maybe you have the solution
    Best regards,
    Norbert

  • How to get Input field value?

    Hi All,
    I have some problem in getting of input value from View to customcontroller.
    My problem is I have created a Input field in the view and if Iam giving the value to that field I can capture the value from View to customcontroller and send it as BAPI input.But My input filed is in the view Context.
    How can i capture InputFiled value from View to CustomController.
    Advance thanks
    Nageswara.
    Message was edited by: nageswar mandapati

    Thanks for your response Patrick,
    In my customcontrollerView all my BAPI mathods instances and execute methods are declared.All the attributes directly getting from model class.
    But I have two views , in first view I created a input field(for that i created valueAttribute in that context).
    Here I want give the conditions If  the input field is empty then directly call the execute method of BAPI.
    Otherwise give any input to the inputfiled then capture that value and send it input to BAPI from view to BAPI.
    In my customcontroller
    BAPI b = new BAPI();
    b.Param1();
    b.param2();
    and
    execute BAPI()
    I done like this.
    How can i capture the view input value how to send as a b.parama();
    Please guide me .
    Any snippests appriciate.
    Thanks
    nageswara.

  • To add a method on select of a date from a date input field

    Hi,
    I have a input field which is binded to context element, type date. Hence the output screen has a date popup, from which user can select any dates.
    Is it any way i can have a action executed on select of a date value?
    I mean when the user selects a date from the date field an wction should be called.
    As I have chosen it to be input field so at present I have only the option of OnEnter, which is not fulfilling the requirement.
    Regards,
    Pranay

    Hi Pranay,
    Use the Date Navigator instead. It has got the same functionality as Date Picker (this is what you are using) & moreover, you can achieve what you desired. It has got the functions like onDaySelect, onWeekSelect & onMonthSelect & onSelect.
    That will trigger the action what you want.
    Regards
    Chander Kararia
    # Please close the thread once get the correct answer. Give rewards for answers.

  • Fetch field values in GTS system from ECC and missing field values

    Hi,
    I am developing Adobe Form "Certificate of Origin" in GTS (Global Trade Services) system. I require to get Customer PO and Country of Origin from ECC system for each line of Invoice (VBKD-BSTKD and EIPO-HERKL respectively). Pls let me know, how can I get these values from ECC to my Adobe Form?
    Also for the "Commercial Invoice" form, value of below fields are not coming in GTS. Pls tell me, if there is any another way I can get data for these fields ?
    1. Tax Number
    2. Tracking Number
    3. Estimated Export Date
    4. Payment terms
    5. Carrier
    6. Package count
    7. Net wt and Gross wt.
    Thanks !!!

    Hi Sri,
    you must align SD0C level.
    Go to SPRO --> SAP Global Trade Services --> SAP Customs Management --> Document Structure --> Assignment of Item Categories from Feeder Systems --> Assign Item Category at Feeder System Group Level
    For Example: SD0C      TAN     CLPOS Standart Item
    When you are done, just re-execute LUW in SM58.
    Regards,
    Gabriel.

  • How to assign custom tab field value to corresponding standard tab field value.

    Dear friends,
                         I want  assign a field value ( advice code , advice code description ) in a custom tab  to corresponding field value in standard tab (advcode ,).   in me51n. 
    following screen shot are given below

    Hi SK,
    It looks both the tabs are custom ones. In that case, you can either use Export/Import statement or you can use Set/Get Parameter ID for  setting value.
    If one is standard subscreen, you can export value from custom subscreen and use line item level user-ext/enhancement to assign the value on standard subscreen.
    Hope this helps.
    Regards,
    Naveen

  • COPA - Split of Value from condition type into different value fields

    Dear All,
    Customer is having several free schemes to customer the same is set up by SD and Cost of free goods is attached to One Z condition type, this flows along with Main product as characteristic. So we have Main product cost in VPRS and Scheme cost in Z Condition and there is possibility of more than one scheme cost flowing in one Z condition for single billing document. Whereas customer request is to see the each scheme cost separately in COPA. Since Value from SD will be flowing through only one condition type , it will be difficult to me to Split this in COPA. We have given a thought of having more than one condition type from SD ( one Z condition for one scheme) but this resolve our issue at hand. If we look at long term whenever customer introduces new Scheme new condition type need to be created and related COPA changes etc, Which doesn't seem to be working out.
    Request Experts help in this, thanks in advance for the help.

    Hi Santosh
    Having a Z cond type for each scheme is preferrable.... This would address the issue with Standard SAP itself...
    Reason being, if you dont do that, then you will have to maintain a mapping somewhere in a Z Table where by system would come to know of the ratio between the schemes... This will be more cumbersome to develop and maintain... Still you wanna do that, here is the logic....
    Maintain the schemes in a Z Table... Where each scheme will have a scheme ID - The ratio applicable to various schemes and also the relevant value fields of COPA to be updated for each scheme....
    Now, add a Custom Field to the Sales Order and while creating the SO this field needs to be updated with the scheme ID(Relevant Exit to make it mandatory MV45AFZZ / ZB).... If Scheme ID is populated, your Billing should read the Split from Z Table using Exit RV60AFZZ and Update COPA using Exit COPA0002
    br, Ajay M

  • Event for value change of an input field

    Hello,
    I'm a newbie in WD4A.
    I've got a input field. Is there a event that's fired, if the value of an input field is changed?
    Regards Christian

    No.  There is only an event when the user presses enter.  You can check the online help for all events of all UI elements.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d7/ef8841e3af1609e10000000a155106/frameset.htm
    In 7.02 there is an AJAX based change event on the inputField, but it is not available as a normal WD Event. It instead triggers the attached SearchHelp without the WD Phase Model.  This is the new SuggestValues feature in 7.02.

  • How to read the input field value into ABAP variable?

    Hi All,
    i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
    lstring = request->get_form_field('myFlag').
    here 'myFlag' is the input field name,but this is not returning me any value into lstring.
    I have gone through the SDN and tried to do this.
    could you please help me out to resolve this issue.
    Thanks in Advance,
    Praveena

    Dear Praveena
    In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
    Regards
    Vijay.M

  • Retreive the values from a user Input Popup before planning layout

    Hi all,
    The user run a planning layout and is coming the popup where he can choose :
    Cost Center
    Currency .
    Is there any function module between executing the popup and showing the layout.
    I have to create a function module to check the entries of the users.
    Regards

    Frank,
    There are multiple ways to ensure that the values entered by the users are valid. A few of them are:
    1. Restrict values for users with in SEM planning area.
    2. Write custom code to restrict values in dropdown list.
    3. Another  way of doing it is by using two sets of variables. One for input by users and the other for passing the values in the planning level. The user would enter a value, the code for passing the value to the planning level, would check the data entered and then either pop up an error message or refresh the layout with the data.
    As mentioned, the approach would depend on the specfic need and the design of the planning application.
    Sunil

Maybe you are looking for

  • How can i search for iPhone panoramics in iPhoto 11?

    Hello all, Ive imported a lot of photos from my iphones and other devices. I need to find a way that I can search for panoramics just as the iPhone seperates them. I have tried searching using smart folders, this catches some, however the height and

  • Can't get 3G Mobile Hotspot to work with Cr-48

    I can't get my Google Cr-48 (the free Google computer) to connect to my 3G Mobile Hotspot. It sees the phone, associates with it, but it won't connect--I get an error message every time. I know the hotspot works with other computers, both laptop and

  • SSL Certificate - No public Biztalk

    Hello !! I've been working with Biztalk since 2006 version, always doing some AS2, encryption and so on. It's the first time a customer requires to use a GoDaddy, Symantec, etc. SSL (in the past always self-signed ssl). My question is simple:  This b

  • Confirm delete in command button

    Hi All, My use case is to show a javascript confirm box after hitting the delete button(seems to be very basic use case). But whether I cancel it or press OK , the actionListener fires and corresponding row gets deleted.(Using JDev 11g TP2). I found

  • Question Slides OK in Captivate - Not so good in LMS

    Hi, I've just put together a Captivate course. Everything works quite well in project preview mode, but when I export to Southrock LMS - doom. When the quiz is running it does either of two things. It randomly freezes and marks the user as not compet