How to add data in fields

Dear friends
i have created one report in that report jan_QUANTITY FEB_QUANTITY .........DEC_QUANTITY are there and below that fields i have to add material quantity...through vbak and vbap
kwmeng is the field for the material quantity...and that is total quantity which is devided in jan qty feb qty april qty......dec qty
what is the logic for that...following is my coding
REPORT  ZMONTH_REPORT1.
TABLES: kna1,vbak,vbap.
SELECT-OPTIONS : date FOR vbak-erdat.
data: BEGIN OF it_itab OCCURS 0,
month(20) TYPE c ,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
vbeln LIKE vbak-vbeln,
erdat LIKE vbak-erdat,
meins LIKE vbap-meins,
kwmeng LIKE vbap-kwmeng,
END OF it_itab.
DATA : BEGIN OF ST_MONTH OCCURS 0,
       JAN_QTY TYPE C,
       FEB_QTY TYPE C,
       MARCH_QTY TYPE C,
       APRIL_QTY TYPE C,
       MAY_QTY TYPE C,
       JUN_QTY TYPE C,
       JULLY_QTY TYPE C,
       AUG_QTY TYPE C,
       SEPT_QTY TYPE C,
       OCT_QTY TYPE C,
       NOV_QTY TYPE C,
       DEC_QTY TYPE C,
       END OF ST_MONTH.
*SELECT  JAN_QTY FEB_QTY MARCH_QTY APRIL_QTY MAY_QTY JUN_QTY JULLY_QTY
      AUG_QTY SEPT_QTY OCT_QTY NOV_QTY DEC_QTY INTO CORRESPONDING
       FIELDS OF ST_MONTH UP TO 20 ROWS.
*PARAMETERS :  pa RADIOBUTTON GROUP rad USER-COMMAND com MODIF ID mod,
             pb RADIOBUTTON GROUP rad MODIF ID rad,
             pc RADIOBUTTON GROUP rad MODIF ID cad.
*DATA : lv_dat TYPE TABLE OF it_itab,
*ls_vbak TYPE TABLE OF it_itab.
SELECT kna1kunnr kna1name1 vbakvbeln vbakerdat vbap~meins
vbap~kwmeng
INTO CORRESPONDING FIELDS OF TABLE it_itab UP TO 100 ROWS
  FROM ( ( kna1 INNER JOIN
vbak ON kna1~kunnr =
vbak~kunnr )
INNER JOIN vbap ON vbakvbeln = vbapvbeln ) WHERE
vbak~erdat IN date.
wRITE :/1 'NUMBER' color 7 INTENSIFIED on,  SY-VLINE,
        7 'CUSTOMER NAME' COLOR 6 INTENSIFIED on,6 SY-VLINE,
        39 'JAN_QTY' color 5 INTENSIFIED on ,27 sy-Vline,
        47 'FEB_QTY' color 4 INTENSIFIED on , 46 SY-VLINE,
        56 'MARCH_QTY' color 3 INTENSIFIED on, 55 SY-VLINE,
        66 'APRIL_QTY' color 2 INTENSIFIED on, 65 SY-VLINE,
        76 'MAY_QTY' color 1 INTENSIFIED on,   75 SY-VLINE,
        83 'JUNE_QTY' color 5 INTENSIFIED on, 82 SY-VLINE,
        91'JULLY_QTY' color 4 INTENSIFIED OFF, 90 SY-VLINE,
        101 'AUG_QTY' color 6 INTENSIFIED OFF, 100 SY-VLINE,
        109 'SEPT_QTY' color 7 INTENSIFIED OFF,108 SY-VLINE,
        117 'OCT_QTY' color 2 INTENSIFIED OFF,116 SY-VLINE,
        125 'NOV_QTY' color 6 INTENSIFIED OFF,124 SY-VLINE,
        132 'DEC_QTY' color 7 INTENSIFIED OFF,131 SY-VLINE,
        140 SY-VLINE.
LOOP AT it_itab.
  WRITE :/1 it_itab-kunnr color 3 on, SY-VLINE,
7 it_itab-name1 color 2 on ,6 SY-VLINE,
28 IT_ITAB-KWMENG color 4 on,27 sy-vline.
LOOP AT ST_MONTH.
  WRITE :/39 ST_MONTH-JAN_QTY color 1 on, 38 sy-vline,
        47 ST_MONTH-FEB_QTY,46 SY-VLINE,
        56 ST_MONTH-MARCH_QTY,55 SY-VLINE,
        66 ST_MONTH-APRIL_QTY,65 SY-VLINE,
        76 ST_MONTH-MAY_QTY,75 SY-VLINE,
        83 ST_MONTH-JUN_QTY,82 SY-VLINE,
        91 ST_MONTH-JULLY_QTY,90 SY-VLINE,
        101 ST_MONTH-AUG_QTY,100 SY-VLINE,
        109 ST_MONTH-SEPT_QTY,108 SY-VLINE,
        117 ST_MONTH-OCT_QTY,116 SY-VLINE,
        125 ST_MONTH-NOV_QTY,124 SY-VLINE,
        132 ST_MONTH-DEC_QTY,131 SY-VLINE,
        140 SY-VLINE.
  ENDLOOP.
ENDLOOP.
LOOP AT ST_MONTH.
  WRITE :/45 ST_MONTH-JAN_QTY,27 SY-VLINE,
        55 ST_MONTH-FEB_QTY,54 SY-VLINE,
        65 ST_MONTH-MARCH_QTY,64 SY-VLINE,
        77 ST_MONTH-APRIL_QTY,76 SY-VLINE,
        87 ST_MONTH-MAY_QTY,86 SY-VLINE,
        98 ST_MONTH-JUN_QTY,97 SY-VLINE,
        110 ST_MONTH-JULLY_QTY,109 SY-VLINE,
        120 ST_MONTH-AUG_QTY,119 SY-VLINE,
        131 ST_MONTH-SEPT_QTY,130 SY-VLINE,
        117 ST_MONTH-OCT_QTY,140 SY-VLINE,
        125 ST_MONTH-NOV_QTY,150 SY-VLINE,
        132 ST_MONTH-DEC_QTY,160 SY-VLINE,
        140 SY-VLINE.
  ENDLOOP.
please help me out of this issue.

hi,
based upon month in erdat field u need to collect the quantity and u need to display.

Similar Messages

  • How to add an input field in the web UI of CRM 2007

    Hi everybody.
    I want add an Input field in the Web UI Screen. How it is possible.
    I want get the information with detailed descriptions if possible with screen shorts.
    What type of methods it will be generated and what are the code we entered in those methods.
    Take according to any example. But with detailed description.
    I am new for the CRM 2007. So, please give the screen shorts with proper data.
    Not only adding the field. If any data i entered in the adding field then that will be stored in the tables otherwise no use by adding the field.
    So, Can anybody please send a proper information according to this.
    Here another one How to Add our own table (Ztable) field in the Web UI Screen.
    How to add the same field in the BOL.
    Please expalin about those concepts with full of screen shorts messages.
    Thank You.
    Regards,
    Krishna.

    If you want to add extra standard fields (like one you mentioned), you can use Component Workbench and Copy the configuration and create your own configuration and make the "Available Fields" appear there.
    If the standrd field is not available, you can Add Context Node using wizard and make it visible.
    If its a custom field (a new one); you will have to use EEWB and add the fields and then make it visible in the UI using Component Workbench.
    Regards,
    Alin

  • How to add a customer field or extn coll in the tab1&2&3..of a UDO doc?

    Hi Experts,
    Does anybody know how to add a customer field or extn collection in the unused  tabs like tab1&2...in a UDO document?
    Thanks for your reply in advance.
    Thanks & Regards,
    David

    Hi Subhasini - <br><br>
    It seems you have discovered that adding an extension field to the Project Suppliers collection is not possible; many of the collections in E-Sourcing do not support extensions and, even when they do, typically, the table view of the data cannot be changed to show the extension value (it would only show on a "details" page, for example.<br><br>
    The solution that you have proposed may work, although I think there is a slight mistake in your logic. I believe you are saying that the script would take data from the newly created extension collection and populate data in the out-of-the-box vendor collection. <br><br>
    In thinking about your solution, I believe the benefit is that any logic and reporting based on the standard collection continues to function correctly (e.g., creating an RFx from the Project will use the out-of-the-box vendor collection).<br><br>
    That being said, I generally am reluctant to do a "replace" of a standard collection with an extension collection as you propose. My recommendation is that you challenge the customer on the importance of this requirement. For example, could the code be maintained on the vendor record? Why is it maintained in Projects? If it is maintained in the vendor record, could you just populate a read only collection the Projects that shows the vendor and code? Could a report be written that can be launched from within the Project to show the values? How does the customer intend to use this field? Could the display name of the vendor object be the right place for it?<br><br>
    I hope these ideas are helpful.<br><br>
    Regards,<br><br>
    Rob<br><br>

  • How to add a Custom field in the Standard SAP Sales Order main screen

    Dear Experts,
    We have a requirement of adding a Custom field in the Sales Order screen. I know how to add the Customer field in the Additional data B tab of the Sales Order Header Screen as that is the screen user exit provided by SAP. Can someone tell me how to add the Custom field in the Sales Order main screen. Program Name - SAPMV45A and Screen Number - 4001. What is all I need to take care.
    Thanks,
    SNK.

    I have not added the Custom filed in the main screen and added in the Additional data B screen. So closing the message.

  • How to add columns in field-symbol

    Dear All,
                  Have made a report for HR - ZHR_CTC by using logical database and field-symbol. Report is working fine, but now have to add columns e.g business area text, positions text etc.
    Have added columns in field-symbol.But not able to fetch data into that.
    Data has to be fetched from different trasparent table comparing <field-symbol>-field.
    Plz suggest the proper way to do it.
    <<text removed>>
    Regards,
    Gulrez Alam
    Edited by: Gulrez Alam on Dec 16, 2008 11:02 AM
    Edited by: Matt on Dec 16, 2008 11:36 AM

    Hi Rimpa,
                   Thanks a lot for you reply, have tried ur suggestion but it's not working. I am not able to understand how to insert data into field-symbol. Plz give some more clarifications about the same.
    Regards,
    Gulrez Alam

  • How to add one more field to an exist internal table

    hi abapers
    i am a very new abap programmer and just started learning it.
    i want to know How to add one more field to an exist internal table.
    lemme me put my question in a very simple way.
    i have a internal table having fields f1,f2,f3 and which also that internal also contains some data.
    now i want to add two more fields (mm & nn) to that internal table now.
    how can i do that.
    and i wanna know the websites names where i can find some brain teasing questions in abap programming.
    eagerly waiting for ur reply
    regards,
    Maqsood A Khan

    Hi, MAQSOOD.
    You can insert more fields in your internal table like this.
    refer this code snippet.
    DATA : BEGIN OF tbl_itab OCCURS 0.
            INCLUDE STRUCTURE zsdtc009.
    DATA :  vkorg   LIKE vbak-vkorg,  "inserted one
            vtweg   LIKE vbak-vtweg,  "inserted one
            vkbur   LIKE vbak-vkbur,  "inserted one
            vkgrp   LIKE vbak-vkgrp,  "inserted one
           END OF tbl_itab.
    you can also read the book "Teach yourself abap in 21 days"
    at http://cma.zdnet.com/book/abap/
    but that book is just about basic concept of abap and report program.
    it doesn't give a lecture for on-line program.
    you can get pdf version books(about abap, sap...things) from sap.
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    I wish I could help you.
    Regards
    Kyung Woo.

  • Hi All ,How to add a new  field for MEDRUCK if we havea ZMEDRUCK

    Hi All ,
            How to add a new  field for MEDRUCK if we have a ZMEDRUCK
    Req: If I want to add a new field for the following text editor line :
    IN MAIN WINDOW > TEXT EDITOR> SERCH FOR TOTAL_AMOUNT-->
    In that we will have
    &ekko-waers&    &komkfkwrt&
    (currency)       (numerics)
    Pls send the Code to make these changes .Pls its urgent
    Thanks&Regards.
    Bharat.

    Hi
    If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
    If that field is not there in the any of the structures then you can define a variable using define command
    /: DEFINE  &VAR&
    / &VAR&  = <some value>
    or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to add a new field in MM01, with say contaminent  as a field?

    How to add a new field in MM01, with say contaminent  as a field? I process that i know is i has to go the user exit and check out the three user exits that are available for MM01 after that what i have to do please can any one help me out with the procedure to proceed?

    Hai      venkateshwar reddy ,
    try with these user exits
    MGA00001 Material Master (Industry): Checks and Enhancements
    MGA00002 Material Master (Industry): Number Assignment
    MGA00003 Material Master (Industry and Retail): Number Display
    Refer these steps also
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/screen-exit-on-mm01-mm02-mm03-322717#

  • How to add new text field in standard report

    how to add new text field in standard report?

    Hi,
    I presume you are talking about a report display in ALV and u wish to add a column to it .
    If it is a global requirement ,as in table being used there in ALV can be modified, then you can append the table and the system should pick up the same automatically from there.
    Otherwise , you can make a Z program . Modify the catalog being used in ALV.
    Regards,
    Shweta

  • How to add new customise field in standard SAP ME28 Report?

    Hi Anybody,
             How to add new customise field inside Standard SAP Screen report ME28?.
    Anybody, Please tell me how to do?.
    Thanks,
    Regards,
    S.Muthu.

    Hi Subramaniyam,
    You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
    cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field.

  • How to add a standard field to the Product search criteria ?

    Hello all,
    despite my searches on google and sdn, i'm still  confused on how to add a standard field in the search criteria of the Product seach screens (component/view PRD01QR/Search for example) , I mean a standard Product field that is not included in the available fields list in the UI configuration tool.
    I found some explanations for adding a specific Z-Field, this is ok , but I'd like to add a standard field as a search criterion, namely the item category group.
    Could someone give me the needed detailed steps for this?
    thanks
    Ludovic

    Hi
    Chk ths link out :
    http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component
    Rgds,
    Swati

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How to add date with month after convert number to month?

    How to add date with month after convert number to month?
    Month Date Result
    24 21/11/09 24*(21/11/09)
    I want to add both the column and result should be 21/11/11
    Thanks
    Nihar

    Hmm,
    Because, you are using YYYY for '09'.
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/RRRR'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/2009
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/YYYY'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/0009Or with Add_months
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/YYYY'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/0012
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/RRRR'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/2012-Arun

  • How to add a new field in the cube and load data

    Hi,
    The requirement is
    We have  ZLOGISTICS cube , the data souce of this filed has REFDCONR-reference dcument number filed . We have to create a new field in cube load data and get this new filed into the report also.
    Please any one can help me with the step by step process of how to do?
    How to get the data into BW and into the report.

    Hi,
    So you need that this new field have data in old records?
    1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
    2.- If condition "1" is not yours.
    First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
    Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
    To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
    Hope it helps. Regards, Federico

  • How to add a custom field to the "Projects" page "Group by" data menu list

    Hi,
    I'm deploying Project Online and I want to group projects by a custom field on the "Projects" page. Currently I can see options for group by Project Name, Start, Finish, % complete etc. I would like to group by a custom field of programme name
    which is filled in on the Project Details form.
    I can create the enterprise field etc, however I can't work out how to make the new enterprise field appear in this list. Or am I barking up the wrong tree and should be creating separate Project Types for each programme?
    Any help an advise greatly appreciated.
    Regards,
    Conrad

    Hello, add the programme field to the Project Center view then it will be available to group by. Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

Maybe you are looking for