WANT TO CALAULATE VALUE IN SMARTFORM

Hi, experts,
i have a smartform which shows the lineitem with batchwise value rate and amount, but now i want to only shows the lineitem and hide their batches into that single lineitem. how i compress these batches into that lineitem in smartform. please tell what can i do .......
thank's....
subodh

Hi
You van use the follwing code.
  Case BoEventTypes.et_COMBO_SELECT
                            If pVal.ItemUID = "Matrix" And pVal.ColUID = "Combo" Then
                                Dim oCombo, oCombo1 As SAPbouiCOM.ComboBox
                                Dim oMatrix As SAPbouiCOM.Matrix
                                oMatrix = Me.m_SBO_Form.Items.Item("Matrix").Specific
                                oCombo = oMatrix.Columns.Item("Combo").Cells.Item(pVal.Row).Specific
                                oCombo1 = oMatrix.Columns.Item("Combo1").Cells.Item(pVal.Row).Specific
                                If oCombo.Selected.Value = "Value" Then
                                    oCombo1.Select("Value1", BoSearchKey.psk_ByValue)
                                End If
                            End If
Regards
Rupinder

Similar Messages

  • Want to retrieve values from TB028 and TB009

    Hi Experts ,
    I wanted to retrieve value of TB028-BEZ30 ( Description for occupation) depending upon field JOBGR in BUT000 , similarly in Table  TB009-TEXTSHORT(Short name for Address type) wanted to get the value depeding upon ADR_KIND in BUT021.
    But I am not able to retriev this value. I tried using some FMs too but they dont return either of these fields in their o/p parameters
    FM used :
    For retriving TB028 fields
                BAPI_BUPA_CENTRAL_GETDETAIL
    For retiving TB009 fields :
              FSBP_READ_ADDRESS_DATA
              BUP_TB009_SELECT_ALL
              BUPA_ADDRESSES_READ_ALL
    None of these returns the fields I want. Am I missing something here??
    Regards,
    Neel

    Hello Anitha,
    Since u have declared it as global variable there is no need to declare inside the routine.
    If useful award the points.
    Regards,
    Vasanth

  • Issue in populating dynamic values in smartform

    Hi Experts,
    I am facing some serious alignment issue while populating dynamic values in smartform.
    Through table, I am populating  dynamic values in smart form. If my internal table contains 20 records , first 10 records are populating in first page and remaining records are populating in next page properly. But here issue is whenever that first 10 records are populated in first page system automatically leaves empty row at the end of page. Ideally it should not happen. please tell me how to solve this issue.
    thanks
    Karthik

    Hi,
    I was wondering how are the bold lines output, if you only have one line type... is the Table node executed multiple times under the loop node, where the bold text is implemented as separate text node..? It should IMO actually not affect the output of the table in any negative way if it's done so - just curious
    With the "protect" I meant this baby:
    You could also try to download and attach only the (upper) node involved in the output of table instead of whole form, if there is something in the form that should not be seen publicly...
    cheers
    Janis

  • I need to create a image using some numeric values and i want to display values in image,

    I need to create a image using some numeric values and i want to display values in image, Numeric values be enterd by text file, excel file or user input by dialog box,
    this is the sample if image.
    http://s17.postimg.org/5xvtzbztn/5_01_03_I.png
    128 x 16 Pixels , Back ground Black, Numbers in Red, Should be same as above picture.
    Because i have hundreds of images to create like this.
    If any one can make a script for this it is very good.
    Sorry about my English.
    Thank you.

    Have you checked out data driven graphics?
    https://helpx.adobe.com/photoshop/using/creating-data-driven-graphics.html

  • Want 2 populate value in 2nd list item based on value selected in 1st list?

    Want 2 populate value in 2nd list item based on value selected in 1st list?

    Gaurav -
    The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
    You will have to declare first_record boolean and first_value to match DESCC.
    first_record := true; -- NEW *****
    Clear_List('BLOCK2.ITEM2');
    FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
    LOOP
    if first_record = true then -- NEW SECTION *****
    first_value := CurRec.DESCC;
    first_record := false;
    end if;
    Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
    END LOOP;
    :block2.item2 := first_value; -- NEW *****
    Clear_List('BLOCK2.ITEM3');
    FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
    LOOP
    Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
    END LOOP;
    My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.

  • Want a primary key in smartforms

    Hello Friends ,
                              I prepared one smartforms in which 50 columns are there , i want to freeze first and second columns , as first and second column will remain as it is all other columns will move horizontally.
    Regards
    Shrikant

    Hi,
    The system i had in mind works as follows.
    When using template
    if you have to fill column 1, 2, 5, 8, 9 ,13and you do not want to print 3,4,6,7,10,11,12.
    Then you fill colum 3 with the values of colum 5
    you fill column 4 with the values of colum 8
    you fill column 5 with the values of colum 9
    you fill column 6  with the values of colum 13
    When using table.
    There you print only the columns you want (by setting output conditions).
    if you have to fill column 1, 2, 5, 8, 9 ,13and you do not want to print 3,4,6,7,10,11,12.
    you have to made some parameters for it (eg Print column1, Print column2,etc)
    TABLE works with new cell to move to next output to next column.
    so you can decide if item is printed by setting mentioned parameters.
    Hope it is enough.
    It won't be easy but it is possible. I have no time to work it out into detalils, because i have also my work to do.
    Gr., Frank

  • Issue with printing the decimal value in smartforms

    Hi experts,
    Here I am printing the net valve in to smartforms.The problem is, valve i want to print is 4505.600.But it is displaying as 45056.00.It is in OMR currency. This problem occurs only for this currency.i am picking the value from PO.
    I have used komv-kwert feild for display. Please give me the solution
    Regards,
    madhu

    Hi Madhu,
    I have faced similar problem in my Smartform with currency JPY with no decimal places at all.
    To resolve this you have to specify Reference Currency with the Currency type  under Global Definitions-->Currency/Quant.Fields. For example take your case :
    Fieldname               Reference Field     Data Type
    WA_FINAL-KWERT              W_WAERS           C CURR
    *Here W_WAERS should contain OMR
    *WA_FINAL-KWERT sould contain 45056.00 then your output will look like 4505.600
    Thanks & Regards,
    Rock.

  • Problem in printing the selected labels value in smartform-SD_PACKING.....

    Dear all,
    Iam trying to print the packing list using smarforms,
    T.Code - VL74 - After providing the input for the selection screen,
    eg. output_type - 0001.
         outbound.deliv - 80000834.
    In the "OUTPUT FROM HANDLING UNITS" screen, im getting the list of labels available for that selection.
    say for eg.
      HU         Ob Object key Out. Med Role Name 1        City            PkMtT PackMatls
    1000004002 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
      1000004003 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004005 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004006 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    with the Selection check box attached to the first field, when i
    select the first and second HUs, it should be passed to the
    driver program, but im getting only one HU value passed into the driver program.
    In the driver program my code goes like below,
    REPORT ZSDPACKDR LINE-COUNT 100 MESSAGE-ID VV.
    TABLES: VBCO3, TVST.
    INCLUDE ZPALIDATA_PL.
    INCLUDE RVADTABL.
    DATA: RETCODE LIKE SY-SUBRC,             "Returncode
           XSCREEN(1) TYPE C.                 "Ausgabe Printer/Screen
    Internal table for lips
    DATA: lips_wa TYPE lips.
    DATA: int_lips LIKE lips_wa OCCURS 0 WITH HEADER LINE.
    *&      Form  ENTRY
          text
         -->RETURN_CODE  text
         -->US_SCREEN    text
    FORM ENTRY USING RETURN_CODE US_SCREEN.
       CLEAR RETCODE.
       XSCREEN = US_SCREEN.
       PERFORM PROCESSING USING XSCREEN.
       IF RETCODE NE 0.
         RETURN_CODE = 1.
       ELSE.
         RETURN_CODE = 0.
       ENDIF.
    ENDFORM.                    "ENTRY
    FORM PROCESSING USING PROC_SCREEN.
       PERFORM GET_DATA.
       CHECK RETCODE = 0.
    ENDFORM.                    "PROCESSING
    FORM GET_DATA.
      REFRESH: LVBPLK, LVBPLA, int_lips.
      CLEAR: LVBPLK, LVBPLA, int_lips.
       DATA: FM_NAME TYPE RS38L_FNAM.
       VBCO3-VENUM = NAST-OBJKY.                                "00000.....
       VBCO3-SPRAS = NAST-SPRAS.      "D
       VBCO3-KUNDE = NAST-PARNR.      "KUNDE
       VBCO3-PARVW = NAST-PARVW.      "WE
       VBCO3-PACKD = 'X'.
       CALL FUNCTION 'SD_PACKING_PRINT_VIEW_SINGLE'
         EXPORTING
           COMWA                    = VBCO3
         IMPORTING
           VBPLK_WA                 = LVBPLK
           VBPLA_WA                 = LVBPLA
           VBADR_TVST               = LVBADR                    "n_916660
         TABLES
           VBPLP_TAB                = LVBPLP
         EXCEPTIONS
           SHIPPING_UNIT_NOT_UNIQUE = 1
           SHIPPING_UNIT_NOT_FOUND  = 2
           OTHERS                   = 3.
       IF SY-SUBRC NE 0.
         RETCODE = 1.
         PERFORM PROTOCOL_UPDATE.
       ENDIF.
    in the above coding, i used SD_PACKING_PRINT_VIEW_SINGLE', but i tried with SD_PACKING_PRINT_VIEW also, but no values getting loaded in the importing structures. if im doing anything wrong, pls correct me.
    *CALL FUNCTION 'SD_PACKING_PRINT_VIEW'
    EXPORTING
       COMWA                         = VBCO3
      AUFTRAG_NICHT_LESEN           = ' '
      EXPORTDATEN_NICHT_LESEN       = ' '
    IMPORTING
      VBPLA_WA                      =
    TABLES
       VBPLK_TAB                     = LVBPLK
       VBPLP_TAB                     = LVBPLP
       VBPLS_TAB                     = LVBPLS
    EXCEPTIONS
      OBJECT_NOT_FOUND              = 1
      OTHERS                        = 2
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    The problem is:
    For any of the above function call,
    The VBCO3 itself im getting only one label number, hence it is processing for only one, i want to know how to pass on the multiple
    label number to this function call ie, in VBC03.
    meaning i would like to know, in which internal table , i can get the list of all the selected HUs, so that i shall loop this function call inorder get the appropriate output.
    kindly help me to sort this issues.
    Points assured.
    regs,
    Raja

    Dear Srihari,
    I wrote above code in first label(now i deleted do-enddo) only.
    first i  am moving seven lebels data into seven wa's.
    after that reading the first record and moving another itab(for printing at main window i.e. 8 label).
    clearly, there is no space problem..because instead puttting all the required field i put only customer name.
    Now it is printing well in first page with 8 labels(main window) also.
    But in the second Page it displays only 7 labels and not printing rest of the labels.
    for example my itab has 20 records it displays 8 labels in first page &
    next 7 labels in second page and not print the rest of the 5 labels i.e. it is not calling third page(?).
    code..
    CLEAR : WA1, WA2, WA3, WA4, WA5, WA6, WA7.
    loop at it_final into wa_final FROM 1 TO 7.
      if sy-tabix = '1'.
        wa1 = wa_final.
      elseif sy-tabix = '2'.
        wa2 = wa_final.
      elseif sy-tabix = '3'.
        wa3 = wa_final.
      elseif sy-tabix = '4'.
        wa4 = wa_final.
      elseif sy-tabix = '5'.
        wa5 = wa_final.
      elseif sy-tabix = '6'.
        wa6 = wa_final.
      elseif sy-tabix = '7'.
        wa7 = wa_final.
      endif.
      endloop.
       delete it_final from 1 to 7. 
    **Push every 8th row if it_final in it_main
        read table it_final into wa_final index 1.  "deleting 8th, 16th,... records
        if sy-subrc = 0.
          append wa_final to it_main.
         else.
          exit.
        endif.
    *Delete the rows from it_main which are present in it_final
      loop at it_main into wa_final.
        delete table it_final from wa_final.  "deleting 8 th row from it_final.
      endloop.
    Edited by: anurag.radha on Jan 6, 2012 1:09 PM

  • Wants to change value in Condition Tab ( ZOTL ) of PO

    Dear Expert,
    I was created subcontracting PO with item category L. In condition tab I put value 10,000 for other charges by mistake I want to change that value 1,000.
    PO quantity is 1000 and I did GR of 600 material quantity for that purchase order.
    Is there any possibility to change condition value without reverse back GR ?
    or any other condition in which I cancel the value in difference ?
    or any other way to settle that PO and invoice payment ?
    Please provide the solution.  
    Thanks,
    Farrukh khan

    Hi,
    only solution is without cancel or revese GR is to do Credit memo for that vendor.
    Thanks & Regards
    Suresh

  • Want last month value of a Quarter instead of to-date value

    Hi All
    I have a report that has 2 columns : Quarter-year , Measure1. Quarter-Year can be drilled down to the month level. Now, what is happening is because I only have the Quarter-Year as the dimension column, I'm getting the cumulative (todate) value for the measure. Say I have Q1-2010 drills down to Jan - 10,000 .. Feb-20,000.. Mar-30,000... I want the report
    to show the value as of March (the last month of the quarter): Q1-2010     30,000.
    Instead I see the value as (10k+20k+30k = 60,000). Is there a way of achieving 30,000 value for Q1-2010 in Answers?
    Thanks
    Ananth
    Edited by: Ananth V on Feb 4, 2010 8:54 AM

    Excuse the re-edit, the instructions below will give you a level based measures. if you used function QUARTER_OF_YEAR(expr) you should be able to use a case statement below to only pull Quarters 3, 6, 9 and 12 (ie last quarters) in your measure definition, then use the level based mechanism if required.
    Create another measure (duplicate your existing) and set the level of this measure to 'Quarter' by editing content tab on that measure or dragging it up to the Quarter level in your date hierarchy.
    This will return the Quarter total , regardless of group by- you may need to set other levels in accordance with other dimensions used on the report.
    Hope this helps,
    Rgrds
    Alastair
    Edited by: Alastair_PeakIndicators on Apr 26, 2010 4:12 PM
    Edited by: Alastair_PeakIndicators on Apr 26, 2010 4:13 PM

  • How to delete repeated values in smartforms

    Hi
    im using smartform.....
    im getting the correct value, but whenever there is a blank value , then it is taking previous value instead of blank data...
    how to come out of this problem?
    Regards
    Smitha

    Hi Smitha,
       It seems you are not clearing the variable or structure of that field.
       Please clear it before the ENDLOOP.(If loop is used).
    Regards,
    Vimal.

  • Frame only for columns having values in smartforms

    hi friends,
    im in the process of developing a smartform in which i have a table and i need to have give frames only to the columns which are having values...is it possible..pls help

    I think if its in table it wont happen like this
    try it once unless try like this
    in your text elements output options check the boxes with shading  & in its adjacent print priview
    the box frame is completly checked when you click the box with frame then remove the horizontal lines by clicking  upper frame & lower frame icons & about vertical line try once with left frame & once with right frame
    It definately works because it wont dispaly this without data.
    Thanks,
    Phani.
    Edited by: phani kumar on May 15, 2008 2:37 PM

  • For Update framework of AIR Application,I want preserve databases value when i update lates download

    for Update framework of AIR Application, I want preserve databases when i update lates download ,Right now when i ta
    ke latest from server it will remove my database  value and i i want ot preserve my database value.
    Please any one can guide me in this?

    Ya it is in Application directory...
    in windows  :: D:\FlexWorkSpaceSVN\YSIPrototype\bin-debug\data\YSIDB.db
    Thanks
    Sunil

  • I want to add automatic ie tab in firefox without adding manual setting,also i want to change value of extensions.ietab.filterlist without going on about:config

    1)I wants to change default extensions.ietab.filterlist value to mywebsite url without going to follow many steps,whenever user will hit my site then for users browser extensions.ietab.filterlist value should be added when he will hit my site.About:config we can add manually but i don't wants to add manually ,any way to automate this process,
    2)Is there any way to install activex (Ietab extension) without clicking on add in firefox,,i am asking because my site is not supported to firefox due to activex.
    3)How we add admin privilages for activex in firefox.
    . please help me

    I got solution for this problem,
    1) I have added User.js file in default profile folder of mozilla i.e
    C:\Users\xpointers\AppData\Roaming\Mozilla\Firefox\Profiles\xb2fxdxi.default, I have added in user.js
    user_pref("extensions.ietab2.filterlist", "/^file:\\/\\/\\/.*\\.(mht|mhtml)$/ http://*update.microsoft.com/* http://www.windowsupdate.com/* http://www.UrWebsiteUrl.com/* ");
    You can add n number of url for running In IETAb or IEtab2.
    User.js file overwrites prefs.js file .
    2) for adding extensions automatically need to add addon, using code and need to change extensions.json file for new version of firefox ,for older version of firefox need to change in sqlite database.

  • How to write Lower case value to the upper case value in SMARTFORMS

    How to change the from lower case to Upper case in SMARTFORMS
    Ex. india to INDIA

    hi,
    chk this.
    DATA: T(10) VALUE 'AbCdEfGhIj',
    STRING LIKE T,
    RULE(20) VALUE 'AxbXCydYEzfZ'.
    STRING = T.
    WRITE STRING.
    TRANSLATE STRING TO UPPER CASE.
    WRITE / STRING.
    STRING = T.
    TRANSLATE STRING TO LOWER CASE.
    WRITE / STRING.
    STRING = T.
    TRANSLATE STRING USING RULE.
    WRITE / STRING.
    Output:
    AbCdEfGhIj
    ABCDEFGHIJ
    abcdefghij
    xXyYzZGhIj
    reward points if useful...
    -Umesh

Maybe you are looking for

  • Slow loading css

    I am using css on this web site ---new to me...obvioulsy. The pages are loading very slowly. when i @import the style sheet in the page it loads quicker than if linked. This isnt efficient either. this is link to site: http://www.loganraye.com/NEW/in

  • Error in datasource

    Friends,     Existing datasource added one object and transport to quality without deleting data in DTP. So i got error in quality datasource is not updating and not able to open DTP data. now i want to delete the data from that DTP. please suggest m

  • Termination occured in ABAP Program in  "/SAPAPO/SAPLOM_DELTA_BASIS"

    Information on where terminated                                                                        Termination occurred in the ABAP program "/SAPAPO/SAPLOM_DELTA_BASIS" - in                          "/SAPAPO/OMB_DELT_REMOVE_TRGUID".              

  • Resurfaced bug in SharePoint collapsed lists?

    SharePoint 2010 had a problem with collapsed lists not expanding, as described in this link https://social.technet.microsoft.com/Forums/office/en-US/cf86ffbc-14e9-4310-8925-76bea6d9e314/sharepoint-list-when-grouped-and-default-view-is-collapsed-will-

  • "Unknown Error - 2147467259"

    Slide Show craps out & error message "Unknown Error 2147467259" appears, related to Microsoft Office Visual Basic for Applications issue.