Skip to Content
0
Former Member
Aug 26, 2008 at 03:23 AM

Data is not coming in internal table

18 Views

Hello Abapers,

Data is not coming in my internal table.

Plz tell me where I m wrong

SELECTION-SCREEN BEGIN OF BLOCK blk.

PARAMETERS: compcode LIKE vbrk-bukrs OBLIGATORY.

PARAMETERS: billtype LIKE vbrk-fkart OBLIGATORY.

SELECT-OPTIONS: billdate FOR vbrk-fkdat OBLIGATORY.

PARAMETERS : acgrpc LIKE vbrk-ktgrd OBLIGATORY.

PARAMETERS: acgrpm LIKE vbrp-ktgrm OBLIGATORY.

PARAMETERS: taxcode LIKE konv-mwsk1 OBLIGATORY.

SELECT-OPTIONS: plant FOR vbrp-werks .

SELECT-OPTIONS: bussarea FOR vbrp-gsber .

SELECTION-SCREEN END OF BLOCK blk.

START-OF-SELECTION.

SELECT avbeln afkart aknumv afkdat abelnr aktgrd abukrs axblnr

amwsbk bgsber bwerks bktgrm

FROM ( vbrk AS a INNER JOIN vbrp AS b ON

avbeln EQ bvbeln )

INTO CORRESPONDING FIELDS OF TABLE vbrk_vbrp

WHERE ( a~fkart EQ billtype ) AND

( a~fkdat IN billdate ) AND

( a~ktgrd EQ acgrpc ) AND

( a~bukrs EQ compcode ) AND

( b~gsber EQ bussarea ) and

( b~werks EQ plant ) AND

( b~ktgrm EQ acgrpm ) .

Ravi