Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to filter Billing Document Date

Former Member
0 Likes
1,357

Hello SAP Consultant

I'm using vbrk and vbrp to fetch the data according to selection screen. Also i'm using Billing Document no as vbrp-vbeln and Billing date vbrp-fkdate. But i'm not able to filter the data according to billing document date.

I'm using condition on vbeln fields exits in both the table vbrk and vbrp.

Plz help me <removed by moderator>.

Lot of thanks in advance.

Edited by: Thomas Zloch on Nov 27, 2010 2:21 PM - priority normalised

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
929

Hi

You need to filter the header (VBRK) only and then get item in according to header:

SELECT * FROM VBRK 
     WHERE VBELN IN S_VBELN
            AND FKDATE IN S_DATE.
        SELECT * FROM VBAP WHERE VBELN = VBRK-VBELN
             ..........................

Max

Hi

You need to filter the header (VBRK) only and then get item in according to header:

SELECT * FROM VBRK 
     WHERE VBELN IN S_VBELN
            AND FKDATE IN S_DATE.
        SELECT * FROM VBAP WHERE VBELN = VBRK-VBELN
             ..........................

Max

1 REPLY 1
Read only

Former Member
0 Likes
930

Hi

You need to filter the header (VBRK) only and then get item in according to header:

SELECT * FROM VBRK 
     WHERE VBELN IN S_VBELN
            AND FKDATE IN S_DATE.
        SELECT * FROM VBAP WHERE VBELN = VBRK-VBELN
             ..........................

Max