Values to be added in Listbox in modulepoolprogram

Hi,
I have one listbox in my module pool program..
for thgis list box i need to add values like quarter...Halfyear and year
how to add to this list box.

hi,
U can use the function module VRM_SET_VALUES to add the values into list box. for that u have to use TYPE-POOOLS VRM in your prg..
here is the sample code for adding values into the listbox using VRM.
pls reward points if its useful for u.
*& Report  ZTEST1                                                      *
REPORT  ZTEST1                                  .
TABLES: ZEMP.
TYPE-POOLS VRM.
DATA SCR LIKE SY-DYNNR VALUE 9002.
DATA: OK_CODE LIKE SY-UCOMM,
      save_ok TYPE sy-ucomm.
DATA: name  TYPE vrm_id VALUE 'ZEMP-EMPNO',
      list  TYPE vrm_values,
      value LIKE LINE OF list.
DATA: wa_EMP TYPE ZEMP.
DATA: name1  TYPE vrm_id VALUE 'ZEMP-EMPNAME',
      list1  TYPE vrm_values,
      value1 LIKE LINE OF list1.
DATA: wa_EMP1 TYPE ZEMP.
CALL SCREEN 9001.
*&      Module  USER_COMMAND_9001  INPUT
      text
MODULE USER_COMMAND_9001 INPUT.
*OK_CODE = SY-UCOMM.
CASE SY-UCOMM.
*MODIFY ZSAMPLE1.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'CLICK'.
SCR = 9000.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_9001  INPUT
*&      Module  USER_COMMAND_9000  INPUT
      text
MODULE USER_COMMAND_9000 INPUT.
SELECT * FROM ZEMP WHERE EMPNO = ZEMP-EMPNO.
ENDSELECT.
CASE SY-UCOMM.
WHEN 'SAVE'.
*ZEMP-EMPNO = ZEMP-EMPNO.
*ZEMP-EMPNAME = ZEMP-EMPNAME.
INSERT ZEMP.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_9000  INPUT
*&      Module  VRM_VALUE  OUTPUT
      text
MODULE VRM_VALUE OUTPUT.
BREAK-POINT.
SELECT EMPNO FROM  ZEMP INTO  CORRESPONDING FIELDS OF wa_EMP.
    value-key  = wa_EMP-EMPNO.
   APPEND value TO list.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id     = name
            values = list.
SELECT EMPNAME FROM  ZEMP INTO  CORRESPONDING FIELDS OF wa_EMP1.
    VALUE1-KEY  = wa_EMP1-EMPNAME.
   APPEND value1 TO list1.
   ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id     = name1
            values = list1.
ENDMODULE.                 " VRM_VALUE  OUTPUT

Similar Messages

  • VALUES NOT GETTING ADDED IN JAVA DICTIONARY

    HIII ,
    AM DOING AN APPLICATION IN WHICH I AM TRYING TO INSERT VALUES IN A TABLE(CREATED THRU JAVA DICTIONARY), USING EJBS(ENTITY BEAN AND SESSION BEAN) AND COMMAND BEAN..AND WEBDYNPRO....
        AFTER DEPLOYMENT EVRYTHNG IS RUNNING FINE BUT VALUES NOT GETTING ADDED IN THE TABLE...
    THE CODE FOR THE "ADD" BUTTON IS :
    wdContext.currentEmp_cmdElement().modelObject().add(wdContext.currentEmp_cmdElement().getEmpno(),wdContext.currentEmp_cmdElement().getEmpname());
    THE CODE FOR ADD function IN COMMANDBEAN IS
    public void add(String empno,String empname){
              try {
                     local.createdata(empno,empname);
                   } catch (Exception e) {
                        e.printStackTrace();}
    PLZZ DO HELP OUT!!!

    The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
    Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
    So, to make this simpler - what is that you are trying to do?
    BTW, try not to create multiple threads for the same issue..

  • How to get column values on item added event receiver

    Hi,
    I have two columns in a document library and one is people or group column and the other one is choice column with check boxes.
    I want to know how to read column values on Item Added event receiver, so that I can create if statements based on those values.
    Thank you,
    AA.

    Hi AOK2013, 
    Have you had a look at this Microsoft tutorial: http://msdn.microsoft.com/en-us/library/office/gg981880(v=office.14).aspx
    Essentially, you want to use the AfterProperties property to access the changed field value. 
    E.g. 
    var personvalue = properties.AfterProperties["YourPersonFieldName"]
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • PO tax value is not added in net price

    Hi
    In PO tax value is not added in Net price .
    In the pricing elements it is showing the total value .
    But in the field of net value , it is not calculating the net value and so it is showing in the PO print out.
    Kindly advise.
    regards,

    Hi Sandeep,
    In case u want to print the net value with the tax u have to make the value as print relevant in the pricing procedure .
    And also u need to store this value in the field from  where the net price is printed and again this can be done in the pricing procedure.
    Hope this will help you .
    Please reward points for useful answer.
    Regards
    Mani

  • How to refresh the grid so that default  values come on adding new row.

    Hi Experts,
    In alv grid while adding new row, i want some 2-3 column values to come by default from already existing row in grid.
    i am getting new row in internal table with 2-3 default values and rest columns blank on adding new row in alv grid
    but the entire row is coming blank, not able to get the default values in new row
    how can i refresh the grid so that default  values come on adding new row.
    thanks

    Hi Surabhi,
    Use this in Interactive section even if you are doing simple ALV.
    DATA:
    lv_ref_grid TYPE REF TO cl_gui_alv_grid.
    CLEAR : gv_tcode.
    *-- to ensure that only new processed data is displayed
    IF lv_ref_grid IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = lv_ref_grid.
    ENDIF.
    IF NOT lv_ref_grid IS INITIAL.
    CALL METHOD lv_ref_grid->check_changed_data.
    ENDIF.
    THis will solve your problem.
    Regards,
    Vijay

  • Conduit toolbar icon - Value Apps icon added

    I have that Value Apps icon added to my toolbar and cannot remove it.
    Tried all the common solutions (add ons etc.) as far as I know and those config changes suggested in https://support.mozilla.org/en-US/questions/713710. That does remove the icon for a while but it then re-appears. I do not want that icon, is it malicious? The pop up window associated with it has not been installed consciously by me and I do not want it. At best it annoys me.
    I have not tried the last suggestion on that link "SUCCESS! I uninstalled FF using the Revo uninstaller in the most thorough mode and then reinstalled FF." yet. Can anyone tell me what the Revo uninstaller is and implications?
    Further I have more info. I use Zone Alarm Extreme security (for years and am happy with it) and it installs a Security toolbar in Firefox. No real issues to date but I recently noticed the Value Apps icon (no idea how long it was there) It appears to the right of the ZA search box sizing separator.
    As above resetting Conduit config parameters does eliminate the toolbar icon for a while but it also eliminates the ZA toolbar as it also uses Conduit.
    ZA help was limited (not my usual experience) and I wonder were to go from here?
    I have a screenshot of the icon that I could post and also the config settings for Conduit, if of any use.

    Thanks for the response js.
    I will not go down the route of Revo!
    Control over that toolbar is limited (afaik) to on or off.
    I have reviewed the benefits and have concluded I will keep it on (see below) and will have to put up with the annoyance.
    From Zone Alarm's help regarding the toolbar added by ZA Extreme Security.
    ''"The ZoneAlarm browser security toolbar adds the following important protections.
    '' Warns you when you go to sites that do not have adequate security credentials.
    ''Detects known and unknown phishing Web sites.''
    '' When virtualization is enabled, it can stop malicious zero day drive-by downloads, meaning malware that is not yet known by anti-virus and anti-spyware engines and has no known solution. (Not included in some versions.)''
    '' Lets you choose a Privacy Browser option when you want to leave no trace on your computer of what you’ve typed or where you’ve been. (Not included in some versions.)''
    ''Checks anything you download from the Web for malware, using a sophisticated multi-layer scanning process. (Not included in some versions.)''
    '' Blocks the processes that keylogger and screen grabber malware use to secretly record your keystrokes or on screen activity. This helps ensure that even keyloggers or screen grabbers that have not yet been discovered are rendered harmless. (Not included in some versions.)"''''
    ...so it seems very beneficial. Still annoying that the Value Apps icon appears. I will try an unistal and reinstall of ZA in case it has become infected itself as I otherwise do not know where the addition has come from.

  • Excise base value to be added

    Hi to all.
       I am using Taxinn condition based excise calculation procedure. In one scenario, I have two condition types for excise calculation. Ex: ZRO1 for material price and ZRO2 for lab charges. I want to add this two conditions to calculate ED. In the pricing at sales order and Invoice it is working fine. But in the Excise item table J_1IEXCDTL the field EXBAS (Excise Duty Base Amount) is taken from any one condition type which has condition category H (basic price). Due to this the base amount is not correct for the Basic Excise Duty value.
      How can I pass value after adding these two conditions to the field J_1IEXCDTL -EXBAS? Give your valuable solutions. Thank you.

    creat another condition type which sums the above two and take best price among 3 using condition exclusion

  • Taxes, freight etc. values to be added to stock values at the GR

    We are procuring the material from vendor. Our requirement is the taxes, freight, duties which we pay at the time of procurement should be added to stock values at the time of GR. Also we wish to pay the freight or duties to separate vendor at the time of invoice verification. How the settings need to be done to meet this requirement?
    Thanks in advance.
    Sanjog

    Hai,
    You can do this by following processes:
    1.Create the material vendor & transport vendor by Xk01
    2.maintain the freight condition types in pricing procedure in M/08.
    3.Maintain the non deductible tax codes - tax values will loaded by FTXP.
    4.Create the PO for material vendor. Enter the values in the condiitons - gross price & freight in the PO -item level - condiitons tab. Here enter the freight vendor against the freight conditons in the detail icon.Use the non deductible tax codes in the Po - item level - invoice -tax codes.
    5.Release the PO if release strategy is applicable.
    5.Do the GR for the PO.Check the accting doc in the dispaly Material doc to see the accting entries.

  • Freight value to be added to the final po value and no taxes on this

    Hi team,
    I have taken FRA1, FRB1 and FRC1 as Freight condition types. whenever I use FRB1 (freight fixed value) or FRC1 (freight/quantity), I want this amount to be added to the total value and no taxes etc. are to be calculated on this.
    how to represent this in calculation schema.
    Satish

    >
    Satish Skumar wrote:
    > Hi team,
    >
    > I have taken FRA1, FRB1 and FRC1 as Freight condition types. whenever I use FRB1 (freight fixed value) or FRC1 (freight/quantity), I want this amount to be added to the total value and no taxes etc. are to be calculated on this.
    > how to represent this in calculation schema.
    >
    > Satish
    You need to maintain the FROM TO field besides total value with STEPS of FRB1 and FRC1, and make sure this from to
    field doesnot have tax step included.

  • How to read and set Pane value for new adding folder

    Hi Experts,
    I tried to add a new folder in to a system form as below
    Itm = form.Items.Add("UserFolder"), SAPbouiCOM.BoFormItemTypes.it_FOLDER)
    form.DataSources.UserDataSources.Add("F_new", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
    Dim oFolder As SAPbouiCOM.Folder
    oFolder.DataBind.SetBound(True, "", "F_new")
    oFolder.GroupWith("138")
    My quester is what is the panelevel for this new folder? And how to set value to panelevel for this folder.
    If we design a folder from Screen Painter, we can set the pane value manually, can we do this from code?
    Thanks a lot
    Tim

    Hello,
    You do not have to set any panelevel for your folder, if you would like to display it all the panelevels. (Let's see an example on Item Master data form).
    Sales, Purchase, Inventory etc tabs (folders) are always visible, there is no panelevel set for them.
    To change between panelevels, you can trigger et item pressed event, and  before_action = false, then you may change the panelevel of the form poperly.
    For initially you may use the Folder.Select() command to show the default panelevel
    >The problem is here, it looks like oFrom.Panelevel property can only accept integer value, so how can I know what's the pane level number for my folder?
    Do not set panelevel for your folders, you should drive your form's panelevel based on a selection tree:
    To see clear, please check the following code in the help sample: CompexForm
    C:Program FilesSAPMásolat - SAP Business One SDKSamplesCOM UIVB.NET07.ComplexForm2003
    to make it clear:
            '// Adding Folder items
            For i = 1 To 2
                oItem = oForm.Items.Add("Folder" & i, SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                oItem.Left = (i - 1) * 100
                oItem.Width = 100
                oItem.Top = 6
                oItem.Height = 19
                oFolder = oItem.Specific
                '// set the caption
                oFolder.Caption = "Folder" & i
                oFolder.DataBind.SetBound(True, "", "FolderDS")
                If i = 1 Then
                    oFolder.Select()
                Else
                    oFolder.GroupWith(("Folder" & i - 1))
                End If
            Next i
    This code add 2 folders to the form: and the first (i = 1) is selected.
    IN itemevent, the panelevel property of the form is depending from the item you have clicked:
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                        '// Check if the event was raised by one of the Folder items
                        '// and change the form's pane level
                        If pVal.ItemUID = "Folder1" Then
                            oForm.PaneLevel = 1
                        End If
                        If pVal.ItemUID = "Folder2" Then
                            oForm.PaneLevel = 2
                        End If
    Regards
    János

  • Get the display values of a multi selection listbox

    Hello, I am creating a visual jsf project and I have a multi selection listbox component. I have bound this component with a table of my database. For the value of the listbox's items I use the "id" field of the table, and for the display value I use the "name" field. I know that with the method getSelectedValues() I get the values "id" of the listbox, but what I want is to get the display values of the selected items of the list box. How do I do that?I have tried this code:
    Object[] selectedareas=getSessionBean1().getAreas();
    String[] mySelections=getSessionBean1().getAreas();
    selareas=areasDataProvider.findAll("id", selectedareas);
    for(int i=0;i<selectedareas.length;i++){          
    some= (String) areasDataProvider.getValue(areasDataProvider.getFieldKey("are_name"), selareas[i]);
    but I get an java.lang.ArrayIndexOutOfBoundsException: 0 error. Any suggestions?Thank you in advance!

    The way I get it in my <f:selectItems> is by binding my multi select listbox, with my database. So what the code is on my jsp page is:
    <f:selectItems binding="#{addcases.multiSelectListbox2SelectItems}" id="multiSelectListbox2SelectItems"value="#{addcases.languageDataProvider.options['language.id,language.lang_name']}"/>and I don't know how to work from here..

  • IE/ExternalInterface do not return any value if movie added with appendChild

    There is a problem with IE/ExternalInterface if movie is added to DOM f.ex appendChild. JavaScript functions are called but they do not return any value.
    MS first response was that this is 3rd party/Adobe problem.
    Fixing this with innerHTML is not the solution. Using here Any suggestions ?
    Simplified test case has
              var flashMovie = '<OBJECT id="testId" codeBase="http://fpdownload..
              // Works in IE and FF
              document.getElementById("testdiv").innerHTML = flashMovie;
              // ExternalInterface.call calls JS but does not return value in IE. Works in FF
              var tempDiv = document.createElement("div");   
              tempDiv.innerHTML = flashMovie;
              document.body.appendChild(tempDiv);
    Here is complete code
    http://pastebin.com/fbc0aa9a
    Here is AS3 code in for ajax.swf
    http://pastebin.com/d4efd47b
    -H

    You are right about that duplicate id of the movie in this example, but that is not case here.
    I appreciate if you try this and confirm that problem exist or any work-around.
    Here is more explanation to original post:
    In HTML is JavaScipt
    function fromJs()
         return "text from js..";
    that is called from AS3
    var s = ExternalInterface.call("fromJs");
    This "s" value and also ExternalInterface.objectID are null in AS3.
    Here example again only with non-working case without that duplicate id with innerHTML
    http://pastebin.com/f4e33af93
    and also movie with AS3 code is attached.
    Using plain innerHTML this case works
    document.getElementById("testdiv").innerHTML = '<OBJECT..
    and with appendChild does not work
    var tempDiv = document.createElement("div");
    tempDiv.innerHTML = "<OBJECT ..
    document.body.appendChild(tempDiv);

  • In After Effects CC, images added to listboxes fail to appear at first

    Given a simple listbox with images, created like so:
    function buildUI(this_obj_) {
    var winDef = (this_obj_ instanceof Panel)
    ? this_obj_
    : new Window('palette', 'testing listbox',[194,174,644,406]);
    winDef.ctl_list1 = winDef.add('listbox', [10,20+10+10,160+10,140+10], ["1                      ", "2                      ", "3                      "]);
    winDef.ctl_list1.items[0].image = File("/valid/image/location/test1.png");
    winDef.ctl_list1.items[1].image = File("/valid/image/location/test2.png");
    winDef.ctl_list1.items[2].image = File("/valid/image/location/test3.png");
    winDef.ctl_button5 = winDef.add('button', [332,189,416,215], 'OK');
    winDef.ctl_button5.onClick = function () {this.parent.close(1);}
    return winDef
    var builtWin = buildUI(this);
    if (builtWin.toString() == "[object Panel]") {
    builtWin;
    } else {
    builtWin.show();
    In After Effects CC, loading this script as a ScriptUI Panel (at least on OSX) initially shows no images, until some interface interaction is made (clicking on listbox, showing about box, sometimes switching apps, etc.).
    Is there a way to get these images to show correctly on launch of the script? Anything I add to the script, including phantom buttons with notify("onClick") tricks, seems to run while the script is still being created (even if added after the panel being built/shown), and the initial "no-image" listbox is shown. I'm also curious to know if this behavior is the same on Windows, and if anyone can test this it would be great.

    Appears to be a bug with CC, I even rewrote a test script using a different coding approach. I've filed bug reports before for listbox. I've gotten times where a multi-column list content will overlap from column to column. It fixes itself once you click on the listbox or attempt to resize a column.
    Here's the setup I used:
      function TEST(thisObj){
      function TEST_buildUI(thisObj){
      var pal = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Test", undefined, {resizeable:true});
      if (pal != null){
      var res ="group {orientation:'column', alignment:['fill','fill'], alignChildren:['fill','top'],\
      folderPathListbox: ListBox{alignment:['fill','fill'], properties:{multiline:true, numberOfColumns:1, showHeaders:true, columnTitles: ['TEST']}},\
      pal.grp = pal.add(res);
      ///CONTROL VARIABLES
      var folderPathListbox = pal.grp.folderPathListbox;
      ///POPULATE
      try{
      var listLen = 5;
      var curItem;
      for(var i=1; i<=listLen; i++){
      curItem = folderPathListbox.add('item', i);
      curItem.image = File("~/Desktop/Alert.png");
      }catch(err){alert(err)}
      pal.layout.layout(true);
      pal.grp.minimumSize = pal.grp.size;
      pal.layout.resize();
      pal.onResizing = pal.onResize = function () {this.layout.resize();}
      return pal;
      var rPal = TEST_buildUI(thisObj);
      if (rPal != null){
      if (rPal instanceof Window){
      rPal.center();
      rPal.show();
      TEST(this);

  • How i can retrieve values of column added manually in a table component

    sorry my english
    i have a table component, it is bound a dataprovider, but i have added manually a column, this column isn't bounded dataprovider, the user insert values in this column, i nedd retrieve this values
    thans you

    Here is a related thread that might be helpful
    http://forum.java.sun.com/thread.jspa?threadID=5131960&tstart=0

  • Stcok type H values are not added into report

    Hello all,
    I am facing problem with inventory management.
    Here we have nearly 15 plants.  10 are already there and 5 are newly added in the last month.
    For the previous 10 plants we are getting the valuated stock perfectly, but i am checking for the remaining 5 new plants data is mismatching.
    while comparing the values from R/3 (MB5B) to the BW query values are different.  So i have checked the contents of Cube.
    There i found a pecular thing that some records having Movement type 641 and Stock Type H. These values are not getting cumulated in the report.  Only these values are coming for the new 5 plants.
    I have already checked the Snotes 589024, 417703.
    Please suggest me how to overcome from this issue.
    Regards
    Sankar

    Hi,
    Thanks for your reply.
    As I already said Stock type is defined as same as the previous plants.  But still we are not able to get the data in the query.
    In the cube level I am able to see the data, but when we are going for the report then we are not getting the values which are present in the cube where Stock Type is H.
    Please suggest on ths.
    Regards
    Sankar

Maybe you are looking for