Add extra field in alv

Hi experts,
i want to add extra field in alv that is totalprice
the total price = qunatity * price
already quantity and price from data base tables
but the field total price is not from any table..
thanks advans

Hi,
Quantity and Price both are ddic fields.
Define the TOTAL PRICE of the type Price in the final internal table(table to b displayed).
before passing the data / in looping define the logic...
LOOP AT T_SOURCE.
T_FINAL-PRICE = T_SOURCE-PRICE.
T_FINAL-TOL_PRICE = T_FINAL-QTY x T_FINAL-PRICE
ENDLOOP.
Now all the required values are in the final table.
Reward if helpful.
Thanks.

Similar Messages

  • Insert extra field in ALV report

    Hi All,
    I’ve requirement like … need to add Vendor’s ‘Country Code’ very next to ‘Tax code’ field in standard SAP standard ALV report S_ALR_87012357 .
    I’ve copied program (RFUMSV00) into z-program.
    But I’m not getting any idea how can I add extra field in field catalogue and corresponding value in internal table.
    Any ideas please…..
    Full points will be rewarded for useful answers…

    I didn´t understand the question very well, but if i am in certain, you will have to modify the internal table to add the field. If the table which shows the alv is like a data base type, you will have to modify this in this way:
    data: begin of gt_table occurs 0,
         include structure ,
         new_field type XXXX.
    data: end of gt_table.
    Then, you will have to add this new field to the field catalogue, in this form:
    ls_catalogue-fialdname = 'NEW_FIELD'.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your requeriment.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your travel.

  • Make BC Forms ignore spam? Add extra field!

    Hey Guys, I have recently found this article:
    http://nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captch as/
    Why not implement something like this in the current BC forms?
    Basically:
    - add extra field to any  form created
    - make that field hidden
    - turn off autofill(so it doesnt get automatically filled in by client)
    - randomize the name/class of the field
    if the field gets submitted -> ignore the entry, if not submit the field.
    Spam is a HUGE problem with current websites that I work on. I get spam every day through forms that dont have CAPTCHA's.
    Problem with CAPTCHA is that they are UGLY I cant always fit it in with the design of the website.
    Thoughts?

    You need both and you can change the colour of captcha etc. Also BC has honeypot on any new form. Make a new form and view the HTML. You will see a security module in there. Copy that module and Place it in any forms you have issues with spam.
    BC also used Akismet for comments and another set of improvements for them are coming in Mondays release too.

  • Need to add extra field in BEX report

    Hi  Experts ,
    I have a problem in bex report.
    scenario is like this--
    APD will generate the BPS Daily report on Branch, Group, Area, Region and total company levels and then exports  into a flat files stored in appserver
    and i got the requirement to change the layout of the report. The client wants to need the one field extra ie. 'REPORTS RUN DATE '
    and i am stuck here how to add this field in my report ..
    Please help me  ASAP.
    Thanks a lot in advance
    Saurabh

    hi,
    Enhance your APD and in the target add field REPORTS RUN DATE .
    Fill this using ABAP routine which populates the sy-datum in this field.
    regards,
    Arvind.

  • Add hidden fields in ALV

    Hi all,
       I wanna add a new field in ALV field catalog, so that when user choose function Change Layout to decide which fields are showed, they can choose the new field.
    In orginal source, the ALV uses field catalog from structure<b> LIPOV.</b> And the field I wanna add is just a normal text field (char15, for example) and its data will be extracted from a select statement.
    So, Here is the logic of report:
    data: ls_fieldcat type slis_fieldcat_alv.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
            exporting
              i_internal_tabname     = 'itab_data1'
              i_structure_name       = 'LIPOV'
              i_client_never_display = 'X'
            changing
              ct_fieldcat            = ct_fieldcat[]
            exceptions
              inconsistent_interface = 1
              program_error          = 2
              others                 = 3.
    After this call, i add new field
        ls_fieldcat-col_pos = 110. " above function will retrieve a field catalog with 109 records
        ls_fieldcat-fieldname = 'new_text_field'.
        ls_fieldcat-tabname = 'itab_data1'.
        ls_fieldcat-seltext_l = 'NEW'.
        ls_fieldcat-no_out = 'X'.
        APPEND ls_fieldcat to ct_fieldcat .
        clear ls_fieldcat.
    Here, I copy all data from<b> itab_data</b> to <b>itab_data1</b>
    Display:
       call function 'REUSE_ALV_LIST_DISPLAY'
          exporting
            i_buffer_active          = 'X'
            i_callback_pf_status_set = gf_status
            i_callback_user_command  = gf_user_command
            i_structure_name         = 'LIPOV'
            is_layout                = gs_layout
            it_fieldcat              = ct_fieldcat
            it_events                = lt_events             
            it_sort                  = gt_sort
            is_variant               = gs_variant
          tables
            t_outtab                 = <b>itab_data1</b>
          exceptions
            program_error            = 1
            others                   = 2.
    Please note that there are something special here:
    Originally, ALV displayed with internal table itab_data.
    The new filed is a part of internal table itab_data1.
    <b>And the problem is:</b>
      When I choose Change Layour (Ctrl F8) to select the new field to display, It does not appear in HIDDEN FIELD.
    Any suggestion, plz.
    Thank you very much.

    Clemens Li,
    Thanks for your advice.
    I have a new problem. Now, the new field appears in Selection. However, displaying the new  field is impossible. My problem is:
    - In default, 8 fields will display. Then, I use CHANGE LAYOUT to choose the new field which will be at 9th position. -> <b>I got a dump</b>... It informs that a Field Symbol is not assigned.
    - Now, with the 8 fields above, I replace 8th position by the new field => It does not give me a dump but New field shows value of 8th field. I mean, if at first, 8th field is Quantity with value 10. Then I replace 8th field by my new field. When displaying again, it also gets 10 as its value.
    - It is so strange. Because in function 'REUSE_ALV_LIST_DISPLAY', I used itab_data1, which consists of all field of itab_data and an addition field (NEW). I dont know why it does not show value of the new field while all old fields have right values. (before using that function, I copied all contents of itab_data to itab_data1)
    So, everybody can help me this? Thanks

  • Add extra field to RFUMSV00

    Hi,
    I'm struggling with programming RFUMSV00.I have to extend this program with one extra field (BSEG-EGBLD).So I made a Z-copy of the original.But this program is working with a logical database.Program is using two field-groups : header and daten.Futher one it's using
    INSERT ep INTO daten.
    So I have extended this structure (ep) in the program with the field EGBLD.Then before the extract statement I have added the following code :
    GET bseg.
    select single egbld from BSEG into ep-user_field_a
                              where bukrs = ep-bukrs
                                and belnr = ep-belnr
                                and gjahr = ep-gjahr
                                and bschl = '01'
                                and mwskz = 'A4'.
    EXTRACT daten.
    Program is working with ALV.But seems to be that subroutine PERFORM print_table
                TABLES
                   <gt_alv>-t_auste_ep     "lt_outtab
                USING ...
    is not modifable for parameter <gt_alv>-t_auste_ep  .
    So I am lost.
    Is this the way ? Or do I have to use Badi's ?Anybody who can give me some advice ?
    regards,
    Stefan

    Stefan,
    I am not sure which version of WAS you are working on. But if you are working on WAS 6.40 by any chance, there might be some help.
    Take a look at my weblog.
    /people/ravikumar.allampallam/blog/2005/12/05/need-a-way-to-change-appearance-of-a-standard-existing-alv-report
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Can we add extra field in  drag and drop reports

    Can we add some extra field in sales A/R drag and drop report

    Hi
    My understanding about the drag and
    related function is:
    Since Drag and Relate is a query based system, you can
    recreate the Drag and Relate query/result in the Query generator. From
    here you can save the query and access it through the Tools -> User
    Queries. You can also create your own reports through Tools -> User
    Reports.
    If you get a 'no matching records found' error whene using D&R,
    it means the user has created a wrong relation.
    i.e. use the BP code instead of the BP description etc.
    Note! Users with a full authorization to the Drag & Relate function
    can view any data in the system, similarly to a case where a full
    authorization is given to regular queries. Therefore, it is recommended
    not to assign regular users with a full authorization to the Drag &
    Relate function.
    Please have a careful read of the documentation to apply the
    functionality to your needs.
    Furthermore, we could do the following testing:
    e.g. create a UDF on sales order
    and create two sales orders with the
    same UDF value, e.g. ABC
    then we drag the UDF ABC to the sales order , we could get the list of
    these two sales orders.
    Could you also let me know your detailed requirement for this functionality?
    Best Regards
    Helen Sun

  • How to add extra field in cube

    hi guys,
    iam learner of bw.
      iam extracting the data from r/3 to bw.
    for example sales cube(0sd_c05).
    i want to add one more field in r/3 side according to client req for ex.in 2lis_11_vahdr.
    how to add that extra field in 0sd_c05.
    kindly give me steps one by one for my understanding.
    i will appreciate and giving points .
    thanku

    Kumar
    To do that first you have to enhance the Datasource 2lis_11_vahdr in R/3 side with new fields and populate these fields with data using user exit. As a next step as this field in to your Cube
    Please see these links for enhancements
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    Re: enhancements
    Hope this helps
    Thnaks
    Sat

  • Need to add extra fields in Custom tab  using EEWB.

    hi ,
    I extended business partner with 10 custom fields using EEWB by creating an custom tab. I would like to add 2 more fields in the same custom tab . I am unable to find the provision to add new field to the existing project. so i am deleting the existing project and creating new project and adding all the =and new fields.
    Now when I am creating new project  i am loosing the old field names. It creating the new fields with new field names.
    My requirement is I should create a new fields without changing the old field names.
    So Please can any one help me as how to approach these without deletion or changing the existing field names.
    Finally my custom tab should contain 12 fields.
    Thanks
    viswa

    Hi viswa,
    I have a requirement to add 2 new fields to the Standard Transaction (called <b>BP</b> ).
    I have gone through various concepts like <b>EEWB and BDT</b> tools. But, still I am not able to get the things well.
    So please provide me with the procedure to explore things and work on the requirement.
    Thanks in advance.
    Regards,
    Vishnu.

  • Add extra field in ME21N at Additional  Data Tab

    Hi All,
              I want to add Two fields from our custom table (Tax and Tax type) in ME21N T code at Additional data tab,
              and save the value in our custom table.
    Please suggest me for this .
    I searched for this there mentioned  BADI-   ME_GUI_PO_CUST
    So Please advise me how to proceed for this one.
    Thanks & Regard
    Vivek

    Use MM06E005 enhancement to add fields in screen of ME21N
    SAPMM06E 0101 CUSTSCR1 SAPLXM06 0101 Subscreen: PO header
    SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen:  PO item
    SAPMM06E 0201 CUSTSCR1 SAPLXM06 0201 Subscreen: agreement header
    SAPMM06E 0211 CUSTSCR1 SAPLXM06 0211 Subscreen: agreement item
    SAPMM06E 0301 CUSTSCR1 SAPLXM06 0301 Subscreen: RFQ header
    SAPMM06E 0311 CUSTSCR1 SAPLXM06 0311 Subscreen: RFQ item
    Use the appropriate screen exit depending on where u require to add field

  • Editing a reminder in iCal adds extra fields when it appears in Reminders iPhone app

    When I edit a reminder in iCal, it adds a whole bunch of fields to the Remidner when I open it in Reminders on my iPhone such as due date. How can I prevent that from happening?

    I too have noticed a similar problem.
    When I create a reminder on my iPhone 4S (and begrudgingly set a time, even though I want it to be all-day), it shows up in my iCal (Lion 10.7.4) as created the same day.
    However, if I want to edit this reminder in iCal (i.e. delete the timed 'On a Date' message that comes with it…), the date you put–in the best way that I can desribe–has a "-1 day" attached to it.
    Scenario:
    You create a reminder on the iPhone 4S for Today, 5/29/2012.
    In iCal, you:
    1. change the date to 5/30/2012.  Nothing happens (because 5/30/2012 -1 day = 5/29/2012).
    2. change the date to 5/31/2012.  The reminder changes to Tomorrow (5/30/2012).
    3. change the date to 5/29/2012, which should do nothing, but changes it to Yesterday (5/28/2012).
    Any reminders created in iCal do not have this problem.
    I'm hoping that this will all get fixed when Mountain Lion comes out, and reminders becomes it's own separate app on the MacBook.  I really do hope they put a field for all-day, otherwise I will seriously reconsider the use of reminders.

  • How to add extra fields in xml for BI report

    Hi ,
    I am trying to create a po print report .
    I took oracle standard po print program , Cloned it with output as xml and based on that i am creating the layout for my po print report using xml publisher word doc tool . Now In the oracle po print rdf there is no field like requestor email,phone numbers. I want these two fields on my po print .How can i get those fields .If i see requestor portion in xml its as below
    <LIST_G_ONE_REQUESTOR>
    <G_ONE_REQUESTOR>
    <ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
              </G_ONE_REQUESTOR>
    </LIST_G_ONE_REQUESTOR>
    but I want some thing like
    <LIST_G_ONE_REQUESTOR>
    <G_ONE_REQUESTOR>
    <ONE_REQUESTOR_NAME>FRANK, SCOTT</ONE_REQUESTOR_NAME>
                   <ONE_REQUESTOR_PHONE>select 123456</ONE_REQUESTOR_PHONE>
                   <ONE_REQUESTOR_FAX>111111111</ONE_REQUESTOR_FAX>
                   <ONE_REQUESTOR_EMAIL>[email protected]</ONE_REQUESTOR_EMAIL>
    </G_ONE_REQUESTOR>
    </LIST_G_ONE_REQUESTOR>
    How can I achieve this ...should I make a change in standard RDF for this or is there a way we can pull these details in xml itself ??
    Please help .
    Regards,
    Chandra

    I was just think on the same line if we can manage to fetch additional fields like phone number, email address of the requestor by writing a pl/sql in xml itself .But i see that atleast the requestor name should be passed into that query in case there is a way to do it .
    Hopefully the change to rdf is the option .
    Thanks Srini for prompt response.
    --Chandra                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Adding Extra field in KSB1

    Hi all,
            I need to add one extra field in output of  the Report, Please tell me the procedure to add extra
    field in the ALV output.
    Regards
    Suprith

    Hi,
    Create the structure CI_RKPOS and include the field you want to display in this structure .....
    use the userexit COOMEP01 CO-OM: Information system -> line item reports
    EXIT_SAPLKAEP_001 in this function module ......write the logic to fill that field value....
    and pass the value to  CS_RECORD structure ....
    your added field will be visible in the structure  CS_RECORD....
    Thanks,
    Shailaja Ainala.

  • Need to add more field in the selection screen in tcode crm_dno_monitor

    Hi,
    In the transaction code crm_dno_monitor, i need to add extra fields in selection screen. Do we have any way to add fields in the standard tcode crm_dno_monitor.
    Thanks
    Prasad

    If you need to add 5 fields on ticket screen then use EEWB enhancement.
    The ticket screen transaction is crmd_order which even opens up after you double click the ticket no from crm_dno_monitor report list.
    for crm_dno_monitor you can have the BADI CRM_DNO_MONITOR which will add later the column for the fields which you can add using EEWB
    Check the following blog which guide you for custom field creation using EEWB
    /people/bruyneel.guillaume/blog/2008/06/13/service-desk-implementation-guide-part-ii

  • Adding extra Field to a Infoset Query

    Hi Experts,
      I need to add an extra field to a SAP Query(infoset). SInce the code uses a dynamic program call, how do I add my code . Can I have some example code used to add extra field to a SAP Query

    Hi Mithun and gurus,
    My code is working now for these 3 new additional fields. The thing is it works if these fields were selected solo. but if all of these 3 or 2 of it simultaneously, an error occurs.
    Error when generating the report (see long text)
    Message no. AQ_AD_HOC221
    Diagnosis
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    >>>I checked and the code seems fine at least. I think there must be something I need to configure. I tried the SEQUENCE for Codes but nothing happens..
    I hope you could helop me with these..Thanks a lot!!!

Maybe you are looking for