Abap Report programming

Hi,
I am sap abap/4 consultant working ina small firm in new delhi India. I am working on the fnancial report generation program ion abap/4.I am using the tables 'ska1','skat','bseg' tables. I am finding problem in fetching data from bseg table because the field 'saknr' i.e, G/L A/c number which primary key in both tables ska1 and skat but not in bseg. My question is how to fetch records from the two tables when no common primary key is exists? This is my first problem.
My second problem is I find the field hkont in bseg table which is reference from the table skb1 with key saknr.but the values in hkont in bseg table didnot match with values in saknr of ska1 table.
Please give me the solution of these two tables mentioned above.
I am very greatful to you.
<<removed by moderator>>

Hi,
As i understand u want the common data between the 3 tables
use like this....
Select * from databse table into table internal table 1 (ska1)
Select * from databse table into table internal table 2 (s--)
Now two internal tables get populated with key field ,
in order to keep only common data b/w them use
Loop at table 1
Read table 2 with key table2-key field = table1-keyfield.
if sy-subrc <> 0.
Delete from internal table 2.
endif.
endloop.
With this peace of code u get common key fields in internal table 2. now
select from database table 3 into table internal table 3
                                     for all entries in internal table 2
where (fields to be matched)
For the second problem u can directly refer database tables
table 1-field = table2-field.
Thanks & regards
Ruchi Tiwari
Edited by: Ruchi Tiwari on Oct 30, 2008 4:31 AM

Similar Messages

  • Use abap report program to print bar code instead of smartforms

    Do anyone know how to use abap report program to print bar code?

    Hi Celina,
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci839063,00.html
    I hope this will help, also it depends on the barcode type like ARTNR-code 128...
    Regards,
    Sudhi

  • Problem while fetching more records in SAP ABAP report program

    Hello Frinds,
    I have SAP ABAP report program which fetches data from usr02 table
    Now, program is working fine with less number of records, bot in production there are more than 200000 records and either report gets timed out or there is run time error like buffer area not available.
    Below is the fetch statement
    SELECT bname FROM usr02 INTO TABLE lt_user
    So, do I need to take records in small chunks, I do not think it is needed as I have worked on number of othere databases where there are number of records in single fetch statement and database itself take care of this.
    Please provide me some approach to resolve this problem.

    This will be very difficult for you.....
    Since you are getting a time out error....it looks like, you are runnning this report in foreground....................
    Try running it in background it will work...
    ELSE....you have to fetch in small chunks....but the question is how will you do it. Since the USR02 only has BNAME as primary key...
    Either put the BNAME as part of selection screen and fetch the data.....it will solve your problem....
    Only fetch for those BNAME which is entered in the selection screen...
    Hope it helps!

  • How to schedule an abap report program to run every day, weekend etc..

    Hi,
    I want to schedule an abap report program to run every day, week, fortnight or month and the output to be redirected to the printer. How to achieve this ?
    thanks

    Hi,
    go to t.code sm36 there give the name of the program which u want to eecute in background if u want u can give periodic that depends upon ur requirement from there in sm37 u can check the stauts and directly print from there
    hope i am clear to u
    plzz reward if it is useful...

  • How to get list of custom objects used in abap report program?

    Hi friends,
    I have a requirement in which I have to scan the entire abap report and retrieve list of custom objects used in it for example custom tables, data elements, structures, table types etc,. Is there any provision in SAP like fuction modules to do this functionality?  As of now I am coding everything manually where so many possibilities are there for all kinds of objects. Provide your answers and suggestions...
    Thanks,
    Nastera

    Hi,
    The best way to do this is environment analysis. Follow the steps:
    1. Open se38, type in the program name (don't click on on display/change or create button, stay on first screen only)
    2. Click on environment analysis button (hot key SHIFT+F4)
    3. It will throw a pop-up, which will ask for type of object you want to see, which are linked /used by this program. select all (or may be if you are only interested in Tables, then select table only)
    4. Hit 'Enter'
    You will get the full list of all objects used in this report program. Just note down the one which starts with Z or Y and that's it.
    Cheers,
    Anid

  • How to open a Promotion from an ABAP report/program?

    Hello SDN,
    I have a normal ABAP report and would like to open a specific promotion (markteing project) after a PAI event.
    I know it is the OBJTYPE=BUS2010030 (the businesspartner is objtype BUS1006), but how can I open it?
    Regards from Germany,
    Friederike

    The solution:
    DATA: lt_time   TYPE crmt_mktpl_cldr_time_ranges,
          lo_tpm    TYPE REF TO cl_crm_mktpl_cldr_data,
         prom_guid TYPE cgpl_guid16.
      CREATE OBJECT lo_tpm
      EXPORTING
        im_add_periods = lt_time.
    Jump to the Marketing Planner
      CALL METHOD lo_tpm->navigate_to_object
        EXPORTING
          im_data_object = promotion_guid.

  • How to place a ABAP report program into a Change Request?

    I used to create an ABAP4 report program, but maybe when I created it, I created it as local or $TMP that there is no any Change Request related to this program.  Now I want to transport this program from Development to Test, how would create a Change Request that includes this program?
    Thanks in advance!

    Kevin,
    Generally objects saved in a local package are not transported. You should always assign those objects to a change request and a developemnt class or package.
    Copy your program in to a new program and assign that new program to a CTS and a package. Then you always can rename the new program name to the old programs name once after deleting the old program.
    Thanks

  • ABAP Report Program Logical Database PNP

    I have a ABAP program using the logical database PNP. The report is config to run on MSS using EP. I have added code to capture the Org Unit when it is pass to the program from MSS.  My issue is how do i capture the org unit value that is passed to the program.   I have added code to capture field pnporgeh  in the START OF SELECTION event.   This works great if you are running the program from R3, but none of my edit checking against field pnporgeh works.

    Hi John,
    I am also having same trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
    I tested in debugging but selection screen parameter PNPORGEH contains nothing.
    Many Thanks in advance for the help.
    Edited by: Ankit Kashyap on Nov 17, 2010 12:40 PM

  • Wireless using SAP ABAP Report programming

    Hi All Boss,
    I am doing my project Wireless program using SAP ABAP
    I need that project.
    so please send me wireless program for sap abap and screen shot.
    reply me urgent....
    Please donot forgot to all..

    This is not a program writing service.

  • Generating List within the same ABAP Report Program

    Hello,
    I have this program that requires me to generate a list of a report.
    Normally I would use the "Submit ... Exporting list to Memory" command but the list has to be created at the same program that generates the report.
    Is there a way to do this? If so how?
    Thanks guys and take care.

    Use Export command first
    now use submit command ,this will go next program and it creates list there.
    here you need to use Import command .
    Example :
    data : itab like mara occurs 0 with header line.
    start-of-selection.
    get the data from mara.
    use export command
    submit report2.
    report2.
    use import
    display.
    Reward Points if it is helpful
    Thanks
    Seshu

  • How to open a Trade Promotion from an ABAP report/program?

    Hello SDN Community,
    i try to open a spezific Trade Promotion to read an addional customized time_period field in a a badi. I have the promotion guid and i played around with mkt_element_read but the additional time fields are not included/transfered.
    How can i do that?
    Thanks in advance, tom

    Hi Tom.
    Did you get something on this?
    Can anybody help to solve this issue?
    Thanks in advance!!
    Guillermo

  • ABAP reports to ABAP Objects

    Hi all,
    What are the steps to be taken while converting a normal ABAP report program to ABAP objects? Also, How do we write a module(of a module pool program) in ABAP objects?
    Thanks in Advance,
    Aswin

    Use methods of a class instead of subrouties wherever possible.
    Declare the global variables in the attributes section of a class.
    Make sure that your design itself is more data centric than process centric.
    Regards,
    Ravi

  • Calling and manipulating data on an Interactive Adobe form from ABAP report

    Dear All,
    Can you please tell me how to call an interactive adobe from from a custom adobe form?
    If so how can we pass and receive data between the interactive adobe form and the abap report program?
    Thank you.
    Regards,
    Prosenjit.

    Hi,
    It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
    Regards,
    Sanoosh

  • Any Best Practices for developing custom ABAP reports for Portal?

    Hello,
    The developers on our project are debating the best way to develop custom reports and make them available on the portal.  Of these options that we can think of, can you give any pros & cons, or experiences, or other options?
    - Web-enabled Abap report programs
    - WebDynpro for Abap
    - WebDynpro for Abap using ALV
    - Adobe forms
    Does a "Best Practices" document or blog exist on this topic?
    Thanks,
    Colleen

    Re: Using p_trace=YES

  • RRI (Report Report Interface) with ABAP Sender program

    I need to call a Report Writer report from a bespoke ABAP program. I can call transaction START_REPORT to do this, but I wondered if the Report-Report Interface can be used here.
    Has anyone ever programmed a direct call to the RRI interface in ABAP?

    Hi Robin
    I know the answer comes late but you might find my wiki posting helpful:
    https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP+Report-Report-Interface
    Regards,
    Marc
    SAP NetWeaver RIG

Maybe you are looking for

  • Advice on recovery from hard disk error 301

    Hi all, I have a HP desktop PC, Pavilion HPE h8-1170d which is about 2.5 years+ old. The specifications are: Intel Core i5 2500 with 8G RAM, 1TB SATA hard disk. I have recently installed a Radeon HD6670 graphics card as the original card gave problem

  • Error handling using BPM

    hi all        I would like to do an error handling scenario using BPM in XI. As i haven't done it before, can somebody give me links to good blogs and materials in this regards. Thanks Sumayya

  • 24P to 60i for slo-mo???

    They didn't listen to me, I told them to shoot it in 60i and I'd convert it to 24p later. So my H-wood (we've been doing videos for 15 years) friends are now whining and of course blaming the medium for their choppy, strobing slo-mo. Anyway to conver

  • Regarding download to text file

    Dear ABAP Gurus, I have requirement to download internal table to text file and put it on a strorade via ftp. The problem is, when i try to write long text into the file, i cannot write euro currency character 'u20AC', the 'u20AC' replaced by other c

  • File Server Migration Source and Target Data Validation

    Does anyone know of a power shell script/CLI command  or some other way to verify source and target data after a file server migration?  I want to make sure that the shares that are migrated from the source and target are an exact match. Thank you.