Problem in Adding field to alv

Hi,
     I have created my zreports in that i want to add order probability for sales order,inquiry ,quotation . But valus coming in report only 100. But according to customer requirement i want 30% for inquiry and 70% for quoatation . how toa dd these values?
     And 1 more when i wil press f4 it should dispaly values like 00 ,10,20......100.
Its a std field in vabk n vbap.How to get these requirement?
     Thanx in advance.
I wil never forget to reward if solution works.

Hi,
    use this funtion moudule
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'BUKRS'
            dynprofield = 'BUKRS'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = it001.
and handle the f4 in subroutine user-command of AlV report and when u select a value then append  that value in main internal  table for that particular record.

Similar Messages

  • Problem in adding fields in ADRC

    We are finding problem in adding and deleing fields n ADRC. We have added few fields to ADRC however when we are adding same through Append structure and adjust its giving problem.
    We are suspecting field created in data dictionary but not added in database (Oracle).
    Please let us know your views and suggest proceeding further.

    We are suspecting field created in data dictionary but not added in database (Oracle).
    So let's make sure:
    Check ABAP dictionary in SE11.
    Check Oracle dictionary in sqlplus:
    sqlplus <schema>/<password>
    describe ADRC

  • Problem of currency field in ALV grid

    Hi,
       Actually I am working on ALV gird editables. I have passed the CURR 17,2 type to the i_fcat table. But when I am trying to edit a new value to this field with a new value. i.e. '12345' it takes its value as '123.45'. and whenever I am entering a value '123.45' it gives error message that decimals 0 place. I am not able to make out this problem.
         Even while I am doing get_cell_value, I am getting its returning 0.00 as e_value.
          Any help in this regard will be helpful to me...
    regards,
    Brijesh Patel

    Hi Brijesh,
    Are you using the FM "REUSE_ALV_GRID_DISPLAY" to populate field catalogue? if so, define this in your field catalogue for that particular field.
    g_t_fieldcat-CFIELDNAME = 'X'
    where <b>g_t_fieldcat</b> is your custom defined field catalogue. CFIELDNAME here refers to that column in the field catalogue as currency field and SAP automatically adjusts the decimal places.
    Hope this helps and let me know if you need more details.
    Regards,
    Vicky
    PS: Award points if helpful

  • Problems with Adding Fields/Columns to Crosstab in XI

    Post Author: ph03nix
    CA Forum: General
    I am having problems with formatting a crosstab report in CRXI and am hoping that someone has a solution. 
    The crosstab report is a subreport, and requires the following columns, grouped by Firm (also not working optimally, but at least working):
    Evaluator,   Factor1Rate,&#91;Factor2Rate, .., FactorNRate&#93;, Summary, UpdateDate, UpdatedBy
    Where:
    Evaluator is the person that did the evaluation that resulted in each rating (formula field)
    Factor1Rate, etc, may have one, many, or all of these be applicable - there can be up to 15 of these.  Each FactorRate column is to  display the "rating" given by the Evaluator in the corresponding row/column (this much works).  The table heading is a formula, but the corresponding rate is not.
    Summary should display "Complete"  if and only if there is a Comment field (not displayed) filled out for each FactorNRate that has a value of 0, 1 or 5 - otherwise it is blank
    DateEntered is one of 2 fields ("last_updated" , or "creation_date" if  last_updated is null - a formula field)
    UpdatedBy is the last name of the person who last touched the ratings (formula field)
    I have gotten the FactorRates to display in the headers, and gotten the corresponding rates to display underneath them, but I cannot seem to add any other columns to the report - they are either added as headers with the factor_rating columns repeated as subgroups (with incorrect data), or are added under existing headers with duplicates of the ratings.  I just want to add one column for each field as if it were a normal (non-crosstab) table. 
    TIA!

    the 3 last files
    Attachments:
    Z1&Z2.vi ‏19 KB
    tau_inn (SubVI).vi ‏16 KB
    tau_ut (SubVI).vi ‏10 KB

  • Adding fields to ALV output list in Tcode S_ALR_87012357

    Hi,
    I need your help to insert new fields in output at standard t-code S_ALR_87012357 for GST Report.
    Report name is RFUMSV00.
    The add/insert columns are
    1)Vendor Description,
    2)SGD Gross Amt(100% tax Reporting  curr)
    3)SGD Tax Base Amt(100% Tax Reporting curr),
    4)SGD Input Tax(7% Tax Reporting curr) and
    5) Value(100%Vendor Curr)
    Could anyone help me how to do this.
    Thanks,
    Shabareesh

    Changing the field catalog should not add the new fields required in internal table (e.g. structure RFUMS_TAX_ITEM for items)
    You could try to append a structure to those, and fill its value with FI_TAX_BADI_011 ?
    Regards,
    Raymond
    PS: List of BAdI for this report
    FI_TAX_BADI_010
    RFUMSV00: Events for List Output Using ALV
    FI_TAX_BADI_011
    RFUMSV00: Event 'APPEND' for Line Item Lists
    FI_TAX_BADI_012
    RFUMSV00: Event 'GET bkpf LATE' during Selection
    FI_TAX_BADI_013
    RFUMSV00: Set Parameters for DME Tool (Tree Type UMS1)
    FI_TAX_BADI_014
    RFUMSV00: Field Catalog of Output Lists for ALV
    FI_TAX_BADI_015
    RFUMSV00: Event "END-OF-SELECTION" before Data File Creation
    FI_TAX_BADI_016
    RFUMSV00: Transfer of All Tax Data

  • Problem with currency fields in alv while editing

    hi guys,
    while creating the editable fields and saving the data in database i have problem with currency(price fields),
    when iam entering 10000 it is storing as 100.00 in database but
    i want to store it as 10,000.00
    can any one help me ....
    it is urgent
    thanks..

    When populating the fieldcatalog for ur currency amount field then
    populate these additional fields with currency key and table name where this key field belongs.
             cfieldname     type slis_fieldname, " field with currency unit
             ctabname       type slis_tabname,   " and table
    May be then it will solve ur prob.
    Regards,
    Joy.

  • Problem in Adding Field in the View

    Hi Friends,
            I want to add one field in the view of Interaction Center Webclient.
    I copied the view to the Custom BSP and when i try to Add the attribute in context node the Required Attribute is not available in BOL Entity.Please Help me How to Proceed this.
    Thanks & Regards,
    Ashok.

    Hi,
    Create ITAB as follows:
    Fetch all the data from all the columns SME001 to SME016 in the respective columns in internal table itab.
    Make use of field-symbol to add the value of the corresponding columns as follows:-
    <FS1> as line type of ITAB
    <fs2> type any.
    Assume period selected is 007
    LOOP AT ITAB ASSIGNING <FS1>
    DO.
    IF PERIOD = 000.
    exit.
    ENDIF.
    Concatenate 'SME' period into LV_VARIABLE.
    Assign component LV_VARIABLE of structure <FS1>
    to <FS2>.
    if <FS2> is assigned.
    sum = sum + <FS2>
    endif.
    period = period - 1.
    ENDDO.
    ENDLOOP.
    So now sum will contain the sum of the values of SME001 to SME007.
    I hope it is clear.
    Regards,
    Ankur Parab

  • Problem in adding field values?

    Hi all,
    I am using table COSP in my program. The requirement is i need to add the field values(SMEXXX) of this table structure  until the period entered in seletion-screen.
    i.e if the period is 005.
    i need to add
    SME001 UNTIL SME005 TO a variable.
    if the period is 007 then
    SME001 UNTIL SME007.
    I need the logic to choose the no of  field values dynamically? please help me.
    Thanks,
    aravind.

    Hi,
    Create ITAB as follows:
    Fetch all the data from all the columns SME001 to SME016 in the respective columns in internal table itab.
    Make use of field-symbol to add the value of the corresponding columns as follows:-
    <FS1> as line type of ITAB
    <fs2> type any.
    Assume period selected is 007
    LOOP AT ITAB ASSIGNING <FS1>
    DO.
    IF PERIOD = 000.
    exit.
    ENDIF.
    Concatenate 'SME' period into LV_VARIABLE.
    Assign component LV_VARIABLE of structure <FS1>
    to <FS2>.
    if <FS2> is assigned.
    sum = sum + <FS2>
    endif.
    period = period - 1.
    ENDDO.
    ENDLOOP.
    So now sum will contain the sum of the values of SME001 to SME007.
    I hope it is clear.
    Regards,
    Ankur Parab

  • Dropdown field in alv

    Hi,everyone.
    I have a problem with dropdown field in alv .
    When i set some fields dropdown in alv created by oo.
    i can't input words in this field . can anyone give me some advice?
    ths!

    Hi,
    steps..
    1. X_FIELDCAT-DRDN_HNDL = '1'. "pass this to the field you want to show as drop down
    2.
    DATA: X_OCRC LIKE LINE OF IT_OCRC.
      DATA:LT_DRAL TYPE LVC_T_DRAL,
            LS_DRAL TYPE LVC_S_DRAL.
      LOOP AT IT_OCRC INTO X_OCRC.
    * First listbox (handle '1').
        IF SY-INDEX = 1.
          LS_DRAL-HANDLE = '1'.
          LS_DRAL-VALUE =  ' '.
          LS_DRAL-INT_VALUE =  ' '.
        ELSE.
          LS_DRAL-HANDLE = '1'.
          LS_DRAL-VALUE =  X_OCRC-COMBI.
          LS_DRAL-INT_VALUE =  X_OCRC-COMBI.
        ENDIF.
        APPEND LS_DRAL TO LT_DRAL.
      ENDLOOP.
    **Setting the Drop down table for field1
      CALL METHOD G_GRID->SET_DROP_DOWN_TABLE
        EXPORTING
          IT_DROP_DOWN_ALIAS = LT_DRAL.
    for sample code check here i gave one.
    Event for the List Box in ALV Grid Control
    Regards
    vijay

  • Problem in adding custom table's field in MM46

    Hi,
    I have a complex requirement of adding fields of custom table in MM46 for mass maintance.
    I did most of the part but dont know what is missed.
    Steps that i followed
    1. used tcode MASSOBJ- I Added Ztable name to application table for Object type - BUS1001001.Here i dont know what to provide in other attributes of entry example Number, DB table etc. [SCREENSHOT OF MASSOBJ|https://plus.google.com/photos/114088763388693559922/albums/5704943614516268609]
    2. Used tcode OMSR- I added entry of Ztable'field  here i gave selection group as 211, maint status as KDEVALBQPSZXCFG
    alv group- blank. [screen shot of OMSR |https://plus.google.com/photos/114088763388693559922/albums/5704943614516268609]
    After doing these steps Table name and field of table is visible in mm46. But problem is  Field is not editable that is in display mode only. 
    Pleae see this snapshot - [error image|https://plus.google.com/photos/114088763388693559922/albums/5704938582830478801]
    Please help me by telling what i missed and am i adding right attributes for entries in MASSOBJ AND OMSR?
    Thanks.
    Waiting for expert's comments.
    Reagards
    Rahul
    Please do not use words like 'urgent'
    Edited by: Rob Burbank on Feb 3, 2012 11:31 AM

    Hi Rahul,
    Wellcome to SDN. Perhaps you know it, and although it's for older releases, perhaps it could help you. Please, see SAP Note 381942 - Mass changes for logistics data in the article master.
    I hope this helps you
    Regards
    Eduardo

  • Newly added field not getting displayed in ALV output

    Hi All,
       I'm adding one more field/column to be displayed in an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA: BEGIN OF it_salary OCCURS 0,
            pernr LIKE pa0000-pernr,
            ename LIKE pa0001-ename,
            rtext like lv_rtext, -
    added field
            waers LIKE pa0008-waers
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = driver
          i_internal_tabname     = 'IT_SALARY'
          i_client_never_display = 'X'
          i_inclname             = driver
        CHANGING
          ct_fieldcat            = lv_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = driver
          it_fieldcat             = lv_fieldcat[]
          i_default               = 'X'
          i_save                  = 'A'
          is_variant              = lv_tmplt
          is_layout               = lv_ls_layout
         i_callback_user_command = 'USER_COMMAND'
        TABLES
          t_outtab                = it_salary
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    The newly added field is not getting populated in the lv_fieldcat table. Tried running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off and logging in but of no help.
    Please provide suggestion for this issue.
    Regards,
    Sridevi S

    Hi,
    Fieldcat is buffered - so use
    I_BYPASSING_BUFFER = 'X'
    Since a while CL_GUI_ALV_GRID is available which does NOT need any fieldcat (is determined internally using RTTI). It is worth playing around whith this class if you have some time. This class is recommended for ALV Output by SAP (but no edit is possible - was never supported officially).
    A simple use would be:
    data: gt_output type standard table of (adjust!).
    *simple ALV output
    data go_alv type ref to cl_salv_table.
    data go_functions type ref to cl_salv_functions_list.
    data go_columns type ref to cl_salv_columns_table.
    data go_column type ref to cl_salv_column_table.
    *Exceprion handlig
    data: go_exception  type ref to cx_root,
          gv_errortext   type string.
    ** fill table gt_output ...
    ** ALV output
    if not gt_output is initial.
        try.
            call method cl_salv_table=>factory
              importing
                r_salv_table = go_alv
              changing
                t_table      = gt_output.
          catch cx_salv_msg into go_exception.
            gv_errortext = go_exception->get_text( ).
            message gv_errortext type 'A'.
        endtry.
    * enable all standard ALV functions
        go_functions =  go_alv->get_functions( ).
        go_functions->set_all( ).
    * hide MANDT
        go_columns = go_alv->get_columns( ).
        go_column ?=  go_columns->get_column( columnname = 'MANDT' ).
        go_column->set_technical( ).
        go_alv->display( ).
    Kind regards,
    Holger

  • Added new field to ALV but not  displaying the ouput

    Hi guys,
    I'm adding one more column to be displayed on an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA : BEGIN OF itab OCCURS 0,
      matnr LIKE eina-matnr,
      extwg LIKE mara-extw,
      matkl LIKE mara-matkl,
      mtart LIKE mara-mtart,
      maktx LIKE makt-maktx,
      lifnr LIKE eina-lifnr,
      wglif LIKE eina-wglif,
    <span style="color:red">idnlf like eina-idnlf,          " <----
    new field</span>
      name1 LIKE lfa1-name1,
      profl LIKE mara-profl,
    END OF itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-cprog
          i_internal_tabname     = 'ITAB'
          i_client_never_display = ''
          i_inclname             = sy-cprog
         i_bypassing_buffer     = 'X'
        CHANGING
          ct_fieldcat            = t_cat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    I've added in a new field inside the ITAB internal table, but it wouldn't appear in the t_cat, only all the old fields will appear. What have i done wrong?

    Hi
      Facing similar kind of issue.. added one field to the existing internal table. This is not getting populted by the field catalog merge FM. Tried with the suggested solution also of running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off  and logging in..
    But the newly added field is not getting populated. Any suggestions would be of great help.
    Regards,
    sridevi S

  • Problem with manually added field.

    Hi,
    I added a field to a table with sql studio.
    There are problems about that field.
    My application does not recognise that field. (wd java app.)
    What must i do make field with no problem?
    Thanks.

    > I added a field to a table with sql studio.
    > There are problems about that field.
    > My application does not recognise that field. (wd java app.)
    > What must i do make field with no problem?
    No offense but to stay with your language: You have to tell "your application" that there is a new field.
    Since we have no idea how you access the system, where you added that field and what you expect to happen nobody can help you.
    Markus

  • Problem with adding new field to the mass change screen in FBL5N

    Hi,
    We have a problem with adding the field XREF3 to the mass change screen. We followed steps described in the SAP Note 640908, but the result is that when we try to mass change some documents in FBL5N and enter some values in the mass change screen, a message appears: "Please enter at least one new value" and nothing is changed.
    If you have faced with such a problem, we would be grateful if you give us some tips.
    Regards,
    Miłosz Włodarczyk

    The problem has been resolved: we didn't activate a code in SE80.

  • 2LIS_02_ITM - Adding field problem

    While adding field KTWRT from LBWE to 2LIS_02_ITM ,I get the error as below.
    Entries for application 02 still exist in the extraction queue ->
    Message no. MCEX151
    Diagnosis
    Changing extraction structure MC02M_0ITM for application 02 is forbidden, because there are entries that have not yet been processed into an extraction queue for application 02 for at least one client.
    If an extraction structure is changed to the entries that are still open in an extraction queue, then these are no longer able to be read and can cause terminations with the collective update.
    Procedure
    Start the collective update using the function "Job Control" in the Logistics Extraction Structures Customizing Cockpit.
    To get an overview of the logistics extraction queues, see the Logistics Queue Overview.
    Sounds stupid ,however activities i carried out as listed below to ensure all the steps i covered.
    PS -
    <b>All the contents from LBWQ,SM13,RSA7,Setup table in all the clients available in  R/3 system has been deleted.
    Deactivated the update.
    </b>
    Any help appreciated
    Thanks
    Chetan
    @CP..

    Hi,
    I am getting the same error.
    There are no entries in LBWQ for the MCEX11 and
    also no entries in SMQ1 for application 11.
    I also ran the collective update using job control with immediate option. There were zero LUW's  that were processed.
    But, still the error is returned,
    Entries for application 11 still exist in the extraction queue ->
    Message no. MCEX151
    Diagnosis
    Changing extraction structure MC11VA0SCL for application 11 is forbidden, because there are entries that have not yet been processed into an extraction queue for application 11 for at least one client.
    If an extraction structure is changed to the entries that are still open in an extraction queue, then these are no longer able to be read and can cause terminations with the collective update.
    Procedure
    Start the collective update using the function "Job Control" in the Logistics Extraction Structures Customizing Cockpit.
    To get an overview of the logistics extraction queues, see the Logistics Queue Overview.
    Chetan, Can you please let me know,
    how you were able to resolve?
    Thanks,
    Raj

Maybe you are looking for

  • How do I create multiple databases on the same ORACLE_HOME

    Hi, I would like to know how can I create 2 databases on the same ORACLE_HOME? Also is it possible to start both databases at the same time? When I installed oracle,a directory named database has been created under ORACLE_HOME, which contains all ini

  • How to exit time machine?

    How do I exit time machine?

  • Ipad freezes when upgrading to 6.1.3. Can anyone help?

    ipad 3rd Gen freezes when upgrading to 6.1.3. I tried to reset it by holding down the Sleep button and the Home button together, but all I am getting is the Apple icon. I tried it several times. Can anyone help?

  • Error in WEBi

    Hello, Has anyone got this below error message while trying to refresh WEBi report . I am directly accessing BEx queries in WEBi. It was running fine earlier and today i am getting this error message . After i tried refreshing for two times, the thir

  • Profit Center updation for RV Accounting document

    Hi, We activated the New GL in ECC 6.0 and when we are doing the billing VF01 the accoutning document is created and porfit center is updated with credit  line items and it is not updated with debit line items even in General Ledger view.And even whe