ASSIATANCE OR ADVICE REQ IN DEVELOPING  A REPORT

HI all,
I need assistance in writing a report.
My requirement is as follows.
1) I NEED TO RETRIEVE DATA FROM A ZTABLE SAY BASED ON DATE AND ID.
2 I HAVE TO DISPLAY THE DATA BASED ON THE SELECTION OR INPUT IN SCLECTION.
3)I NEED TO SELECT SAY FEW RECORDS OUT OF THE DISPLAYED ONES AND NEED TO DELETE IT FROM THE ZTABLE.
CAN I USE AN ALV'S .
If its possible pls do send some sample reports to my email
[email protected]
THANKS
PREETI

Hi,
Check this report...
**Change required before executing the report..
1)
Create a GUI status for the program in SE41 by copying
from the program SAPLKKBL and Status 'STANDARD'..
and store the resulting in status 'TEST2'.
2)
I have used table name as ZTABLE..Change accordingly
to your ztable name..
**Endchange
declarations.
TABLES: ztable.
TYPE-POOLS: slis.
DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
DATA: s_layout       TYPE slis_layout_alv.
DATA: BEGIN OF t_ztable OCCURS 0.
        INCLUDE STRUCTURE ztable.
DATA: BOX TYPE c,
      END OF t_ztable.
DATA: v_repid        TYPE syrepid.
selection screen
SELECT-OPTIONS so_id   for ztable-id.
SELECT-OPTIONS so_date for ztable-date.
start-of-selection.
Get the data.
SELECT * FROM ztable
       INTO TABLE t_ztable.
       where id   in so_id
       and   date in so_date.
IF sy-subrc <> 0.
  MESSAGE s208(00) WITH 'No data found'.
  LEAVE LIST-PROCESSING.
ENDIF.
v_repid = sy-repid.
Get the field catalog.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
     EXPORTING
          i_program_name   = v_repid
          i_structure_name = 'ZTABLE'
     CHANGING
          ct_fieldcat      = t_fieldcatalog.
Set the layout.
s_layout-box_fieldname = 'BOX'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
     EXPORTING
          i_callback_program       = v_repid
          is_layout                = s_layout
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          it_fieldcat              = t_fieldcatalog[]
     TABLES
          t_outtab                 = t_ztable.
      FORM SET_PF_STATUS                                            *
-->  EXTAB                                                         *
FORM set_pf_status USING  extab TYPE slis_t_extab.
  SET PF-STATUS 'TEST2'.
ENDFORM.
      FORM user_command                                             *
-->  UCOMM                                                         *
-->  SELFIELD                                                      *
FORM user_command USING ucomm LIKE sy-ucomm
                        selfield TYPE slis_selfield.
Check the ucomm.
  IF ucomm = 'DELETE'.
    LOOP AT t_ztable WHERE box = 'X'.
      DELETE FROM ztable WHERE matnr = t_ztable-matnr.
      COMMIT WORK.
      DELETE t_ztable.
    ENDLOOP.
  ENDIF.
  selfield-refresh = 'X'.
ENDFORM.
Hope this helps..
Thanks,
Naren

Similar Messages

  • Develop new Report for Summarized JIT (Just In Time) calls

    Hi to all,
    Can anybody kindly tell me how to develop new report for   summarized JIT (Just In Time) calls.
    Thanks in advance,
    Regards
    Simi

    I think it is a good feature, but I'd like to make some suggestions.
    1) When the dialog pops up (like your attachment), it would be nice if I could tell it right then that I don't care about that advice. Right now you have to click on the link and then say you don't want the advice in the future. I think it is that extra step that is really annoying. I think, like most people, my instinct is to just close the dialog. Then next time I run LabVIEW I have to deal with it again. After the 5th time dismissing the damn thing I turn it off.
    2) It would be nice to have an easy way to turn JIT advice off for a particular session. For example, I'm called on to help get new employees up to speed in LabVIEW. When I sit down at their computer to help design/debug things, I would really like to turn off JIT advice but just for my session. I don't want to change the other persons settings.
    3) It would also be nice to be able to turn off JIT advice without going to the options.
    So, I guess what I would like is this. When the JIT advice dialog comes up, instead of only having the link to the advice I'd like to see some a button that will turn off this topic in the future, a button that will turn it off for this session of LabVIEW and a button that will turn JIT off for good (with a verification dialog).
    So, experience programmers with a new install will just turn it off for good the first time it pops up. Experience programmers on someone else's machine can turn it off without messing up the other persons ini file and I can leave it on when LV8 comes out and just dismiss the old advice quickly as it comes up.
    Pat

  • Need to develop this report plezzzz help

    the requirement says
    When a user submits an ID they have to choose who sold the product from the sold by field.This has to be chosen correctly otherwise there will be issues in sales and commission process.I need to develop a report to detect immediately when an Id is created which seems to be suspect.A suspect ID is one in which a salesperson was chosen on a customer who is not assigned to that sales person territory
    for example: if danny is in Kathy territory is assigned to a customer in Texas which is Larry territory.
    any suggestions will be helpful for me...
    Edited by: user13001889 on Jun 6, 2011 4:43 PM
    Edited by: user13001889 on Jun 6, 2011 4:44 PM

    You ask for help, yet all you give is conceptual data. How do you expect help on writing the report?
    Q) What defines "territory"? Is it a flag? Zip code? City?
    Here is an answer based on a lot of assumptions:
    I would have to assume that territory is defined by something like city, state, or zip code. If so, you could start with this:
    When a customer submits an ID, along with who he/she selects as a salesperson -- I assume this is a drop down box to eliminate multiple entries of the same person due to variations in spelling -- thep person's address, city, state and zip are included as well. Let's assume that territory is defined by zip code. With the salesperson's name and the zip of the customer captured, you have the basis for comparison.
    Based on the table of all your salespeople and their territory (zip code in my assumption), you can create a report that contains a concatenated field of salesperson||zip code. This will produce a report with all possible combinations of salesperson and territory. This report will be your sub-query.
    Now you have your main query based on the customer activity table and you create a concatenated field of salesperson (chosen-by-customer)||zip code (of the customer). You will put a filter on this concatenated column and have it based on the results of another request (your sub-query) with the operand "not equal to/not in."
    If any record in the main query does not match an entry from the sub-query, that record will display. It will be a report that contains customers who chose a sales person who doesn't have that territory.
    That's how you build your report.

  • Develop a report to track discount for various product

    hi
      i need to develop a report to track discount for various product depending upon the client

    Hello Noor,
    I'm not sure but if you are talking about the marketing attributes, you can definitely use FM - CRM_MKTBP_ASSIGN_ATTRIBUT_TAB
    You need to pass the profile id, partner id and marketing attributes data. Thats it.
    I think the FM you ar eusing for terrritory is fine. It should work.
    I hope this helps.
    Thanks
    Vishal

  • Developed a report which gives PO(Purchase Order) Pricing details.

    hi experts,
    please give me tables and fields for following report, and also exlain me briefly,
    Developed a report which gives PO(Purchase Order) Pricing details.
    thanks in advance,
    radhakrishna

    Hello Radhakrishna,
    you can use the function module
          CALL FUNCTION 'RV_PRICE_PRINT_HEAD'
            EXPORTING
              comm_head_i       = wa_komk
         LANGUAGE          = ' '
       IMPORTING
         COMM_HEAD_E       =
         COMM_MWSKZ        =
            TABLES
              tkomv             = gi_komv
              tkomvd            = gi_komvd.
    in wa_komk pass the condition record number.
    this you will get from your vbak table
    reward  points if helpful

  • ABAP: Developed new Report for Summarized JIT (Just In Time) calls

    Hi to all,
    Can anybody please tell me about the following:
    ·     Developed new Report for Summarized JIT (Just In Time) calls: This report is for Delco Singapore needs all Summarized JIT calls created between selected dates to be closed. If JIT call quantity is 0 and GR quantity is also 0, then GR flag for JIT call to be checked and JIT call will not be shown open. If the JIT call quantity is greater than zero and GR for JIT call quantity is zero then JIT call quantity made as zero and GR flag for JIT Call to be checked. Once it is checked the JIT call will not be shown in Open.
    Thanks in advance.
    Regards
    Monalisa

    Ok, I was able to figure out the functions that were confusing me. For my own record and for those that do not know, I will list how to create the objects necessary to add a new report to a menu.
    1-Write JSP (should be written just how Oracle writes theirs)
    2-Creat function for the new JSP page as System Administrator responsibility
    3-Use Sys Admin to add the function to a menu somewhere
    4-Using AK Developer responsibility, create an attribute with the label of the attribute being the name of your function you created. Oracle's convention is the name of the attribute has FS in it.
    5-Using AK Developer, lookup the ASF_FUNC_SEC_REG region
    6-Drill down into that regions attributes
    7-Add a your newly created attribute to this region
    You would do all these steps for your advanced search page as well, so that in your main jsp, you can call asfPage.setAdvancedSearchPage() with the attribute name of your advanced page.
    What I Still do not know is:
    (1) My main page keeps coming up saying that there is no default query defined for it. How do you create a default query for a report?
    (2) How to get the personalization to work.
    Can anyone help?
    Thanks!

  • How to develop this report/Query that selects records with MAX Value

    Hi,
    My requirment is to develop a report to show all emp whose policy is going to expire ith in the user selected date intreval...
    Emp_ID--App_Date-Policy_Strt_Date--Policy_End_Date--App_Status
    101.01.2007---BlankBlank--
    NEW   (New application for a Medical Insurance policy raised for employee)
    101.01.2007---01.02.200730.05.2007--
    COMPLETE (policy issued for emp with strt & end dates)
    115.05.2007---01.02.200730.05.2007--
    RENEWAL  (a application is raised to renew emp policy)
    115.05.2007---01.06.200731.12.2007--
    COMPLETE  (policy issued for emp with strt & end dates)
    115.12.2007---01.06.200731.12.2007--
    RENEWAL  (a application is raised to renew emp policy)
    115.12.2007---01.01.200831.05.2008--
    COMPLETE  (policy issued for emp with strt & end dates)
    115.05.2008---01.01.200831.05.2008--
    RENEWAL  (a application is raised to renew emp policy)
    115.05.2008---01.06.200831.05.2009--
    COMPLETE  (a application is raised to renew emp policy)
    So EMP 1 got valid policy untill 31.05.2009.
    When a user executes a query to show all employees whose policy expiry date intreval (01.05.2008 to 31.05.2008)
    it shouldn't show Emp 1 as he got  valid policy untill 31.05.2009  but currently it is showing Emp 1....
    How can i achieve this
    Thanks

    Hi
    Thanks for the update
    I created variable on Plc End end
    If user enter show all emps whose policy is expiring in MAY (01.05.2008---31.05.2008) it is displaying EMp 1 as well but emp 1 has a policy which expires in 2009
    Thanks

  • Problem on developing SSRS report in a production environment

    Any problem could  be caused if have to develop SSRS report in a production environment ?
    If so, how it can be prevented?
    Thanks!

    Hi ,
    As per my understanding, Normally our environment setup contains Development,testing,preproduction,production and its varies from company to company.
    We develop SSRS report in development environment and after testing we deploy it to production report server.
    Development environment use development database for creating report like your database IP and credential will use development environment
    setup. and production environment use production database for creating report like your database IP and credential will use production environment setup.
    Thanks
    Neha Prajapati Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • How to develop a report based on multiple data bases in BIP

    Hi,
    I have to develop a report based on multiple database(Sources). My queries is having multiple data base tables. How to achieve this in BIP
    Regards,
    Malli

    Hi ,
    After creating the dataset under datamodel save your data sets.
    Click on Datamodel , on the right side window you will have the Main data set option , click on the drop down option and select Concatenated sql option.
    Check the below links you will get a good idea.
    http://www.rittmanmead.com/2008/04/bi-publisher-reports-with-multiple-data-sources/
    http://docs.oracle.com/cd/E12096_01/books/PubUser/T421739T423025.htm
    If the Post is useful to you award the points :)
    Thanks,
    Ananth v

  • How to develop a report in Crystal with flexible database name?

    Hello
    I am a Project Manager of a project of developing reports in Crystal 11.
    The idea is to develop reports on top of the content in MS SQL tables.
    The initial testing and demonstration to the customer is done within the Crystal development environment.
    In a later stage, we need to integrate the reports with C# WPF application, using Crystal control.
    We currently use ODBC connections.
    We want the flexibility to set the actual database dynamically, by using the "default database" of the ODBC connection (or any other way). In other words, we want not just the flexibility to change the database server, but work with different database names, like "ProductDB_TEST", "ProductDB_PROD" etc. - without changing the report.
    Unfortunately, we got the answer from the developer that the database name should be pre-defined for a given report. Although the connection can be set to another server, the DB name cannot be set dynamically.
    Looking into the "Database" -> "Show SQL Query" menu, we see the following piece inside the query:
    INNER JOIN "DATABASE_NAME"."dbo"."IncidentTypeSnapshotData"
    So it looks like the query itself contains the DB name.
    Is it really a limitation of Crystal, or rather the developer working on the project doesn't know the trick?
    Thanks for any hint
    Max

    CR CR 2011 / "Crystal reports For Visual Studio 2010", you are correct.
    Re. the database thinggy. You can connect to a database via ODBC, OLE DB or in some instances natively. Once a report is created you an change the datasource. A good sample app on how to do this is  csharp_win_dbengine / vb_win_dbengine. A link to the samples is here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    More info on connecting to dbs and changing them is in the developer help files:
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    More info on CR APIs for .NET (applies to all versions of CR and VS):
    Crystal Reports for Visual Studio 2005 Walkthro... | SCN
    You can also use ADO .NET Datasets and in this way you handle the database connections in your app. A good sample is csharp_win_adodotnet (also available in VB) - same link as above.
    More info on datasets:
    Crystal Reports Guide To ADO.NET
    Crystal Reports for Visual Studio .NET - Walkthrough - Reporting Off ADO.NET Datasets
    For more complicated operations (e.g.; changing a report from ODBC to OLE DB, changing one table, etc., you will want to use the InProc RAS SDK that is also available in CRVS. Developer help files are here:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Sample apps are here:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    and here:
    Crystal Reports .NET In Process RAS (Unmanaged) SDK Sample Applications
    More info on RAS SDK:
    How to Use The RAS SDK .NET With In-Process RAS Server
    Lastly, do use the search box in the top right corner. I find simple search strings such as 'crystal net parameter' return best results (KBAs, Blogs, docs, wikis, discussions and more).
    - Ludek

  • How to develop a report with current price &  the last price in the pre.yrs

    hi ,
    guys,
    my client want a report to list of material with respective vendor and to make a price comparison betn the current price & the last price in the privious year.
    can any one help how to develop the report, shall go for generic extrc.
    thanks in advace.
    ramnath

    CR CR 2011 / "Crystal reports For Visual Studio 2010", you are correct.
    Re. the database thinggy. You can connect to a database via ODBC, OLE DB or in some instances natively. Once a report is created you an change the datasource. A good sample app on how to do this is  csharp_win_dbengine / vb_win_dbengine. A link to the samples is here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    More info on connecting to dbs and changing them is in the developer help files:
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    More info on CR APIs for .NET (applies to all versions of CR and VS):
    Crystal Reports for Visual Studio 2005 Walkthro... | SCN
    You can also use ADO .NET Datasets and in this way you handle the database connections in your app. A good sample is csharp_win_adodotnet (also available in VB) - same link as above.
    More info on datasets:
    Crystal Reports Guide To ADO.NET
    Crystal Reports for Visual Studio .NET - Walkthrough - Reporting Off ADO.NET Datasets
    For more complicated operations (e.g.; changing a report from ODBC to OLE DB, changing one table, etc., you will want to use the InProc RAS SDK that is also available in CRVS. Developer help files are here:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Sample apps are here:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    and here:
    Crystal Reports .NET In Process RAS (Unmanaged) SDK Sample Applications
    More info on RAS SDK:
    How to Use The RAS SDK .NET With In-Process RAS Server
    Lastly, do use the search box in the top right corner. I find simple search strings such as 'crystal net parameter' return best results (KBAs, Blogs, docs, wikis, discussions and more).
    - Ludek

  • How to develop a report

    Hi,
              How to Develope a report that displays a purchase requisition with details like MRP controller, release date and unit of measure.

    HI,
    Just create an internal table with fields PR number, MRP controller, Release date and UNit of measure.
    Now write a select statement as below.
    Select BANFN DISPO FRGDT MEINS from EBAN into table ITAB
               where.......
    Regards,
    Ram

  • How to Develope a report.

    Hi,
         How to develop a report on inventory and goods movements.

    HI,
    Use the table
    1. MA07 for inventory details ; and
    2. MAM_25_GOODSMOVEMENT_LIST for goods movement list
    select the data as per your functional specs put into an internal table and display it in the output list.
    How you display it and the selections you make in selection-screen is designed as per the tech specs.
    please provide the tech specs,i will design the program for you.
    regards,
    pankaj

  • Development of report based on AR and AP cubes

    Hi All,
    I have 2 cubes i.e., 0FIAR_C03 and 0FI_APC03. AR cubes has got 0Debitor and 0Creditor, where 0Debitor is referencing 0Customer in AR cube and 0Creditor is referencing 0Vendor for AP cubes. Business has asked to develop a report so that it should show with Customer the balance of Customer and also for same customer it should show balance of Vendor. I have created a multiprovider and tried to develop a report on it but its not showing according to my requirement. Could any one please tell me how develop a report for this?
    Thanks

    Hi,
      Does the AR cube contain customer also or it is not present in the cube at all. You can have relation like this....
    AR cube
    Customer amount
    AP
    Customer vendor amount.
    Then you can define relation in the report via multiprovider. I hope you got my point....

  • How can we develop a report like Attendance Register?

    Hi All,
                     I have to develop a report like Attendance register..i.e the first column of the table consisting of standard headings and has to display while intializing it self......and respective columns are dates for a month....once i gave any search criteria the data has fetch from backend and it will give the values with respective each heading in the first column via date wise.
    Please help to resolve this....
    Regards,
    Ravi

    Hi Lekha,
                Thanks for ur reply....My requirement is not like a general report. It was like a attendance report..
              Names           DAY1                                   DAY2                                     DAY3
            Thomus                       
            Robert                           
            Martin                                                                               
    John                               
           Steeve                                                                               
    u2026u2026..               
          u2026u2026..               
    My Table/ALV default display is like above....After any inputs and search ....it has to display correponding values of each day w.r.t each person....
    Plz let me know if u any queries regarding my requirment....
    Regards,
    Ravi

Maybe you are looking for

  • CreateValuesFromQuerystring doest not exist in the current context

    Hi All, I am trying to integrate jqGrid in Sharepoint so i am following the below link http://www.mindsharp.com/blog/page/8/ But getting an error like The name CreateValuesFromQuerystring does not exist in the current context.. please do the needful.

  • The hand tool is not working in certain sections of my screen where there are selection buttons that would normal show the hand tool

    E.g. on this submission page there is cliveeb Inbox Other Apps where logically you'd expect the handtool to materialise when hovering over these areas. Nothing happens which means I cannot select those "buttons/drop downs".

  • XSLT-ABAP using Call Transformation

    Hello Friends, I am new to this XSLT-ABAP transformation. I went through the blogs and forums and got a fair bit of idea on this. Now, i am trying to create a simple program/ xslt transformation to test the scenario. Once this is successfull i need t

  • Better Fan Control in Command center?

    I am looking for a way to set my system fans to 20% (like you can for the CPU fans) or set them to 0%(Off) for a certain temp setting. Is there a way to do this with command center (Thinking INI config or something) if there is no way currently to do

  • Copying attribute values in OIM

    Hi Experts,    Please suggest me the solution for below requirement. 1. I am having the original attributes "Cost center name " and Cost center Number".But i have to copy these values and stored into attributes "old cost center name" and "Old cost ce