Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Sample Code arrow ABAP Reports arrow Creating Extract Dataset
Creating Extract Dataset PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Anon.   
Saturday, 29 December 2007
Requirement:

Write a program that lists the Vendors and their Accounting documents. Create extract dataset from KDF logical database. Loop through the dataset to create the required report. Don't list those vendors which has no documents

Solution:
    report zfwr0001 no standard page heading.
    tables: lfa1, bsik.
    field-groups: header, item1, item2.
    insert lfa1-lifnr bsik-belnr into header.
    insert lfa1-land1 lfa1-name1 into item1.
    insert bsik-belnr bsik-budat into item2.
    start-of-selection.
    get lfa1.
    ....extract item1.
    get bsik.
    ....extract item2.
    end-of-selection.
    loop.
    ....at item1 with item2.
    ........skip.
    ........write:/ 'Vendor number:', 28 'Name:', 56 'City:'.
    ........write: 16 lfa1-lifnr, 33(20) lfa1-name1, 62(20) lfa1-ort01.
    ........write:/ 'Document no.', 15 'Date'.
    ....endat.
    ....at item2.
    ........write:/ bsik-belnr, 13 bsik-budat.
    ....endat.
    endloop.

    Additional task:

    Don't forget to set the Logical database to KDF on the "Program Attributes" screen.

    Result:

    Vendor number: 100124 Name:Coca Cola City: New York
    Document no. Date 
    1800000316 01/08/1997 
    Vendor number: 100126 Name: Universal Studios City: Los Angeles
    Document no. Date 
    1800000109 12/02/1996 
    1800000341 01/10/1997 
    1800000321 01/14/1997 

Related Items:

 
< Prev   Next >

Google Search

Statistics

Contribution Activity
Utilities: 38
Tips and Tricks: 333
Sample Code: 164
Total Contributions: 550

Member Activity
Members: 6198 since 2/1/2007!
New: 6 since yesterday!
Visitors: 1024365
We have 1 guest online

Newest Members

Welcome our newest members:

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor