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

select for all entries statement

Former Member
0 Likes
689

Hi

can some one send me a for allentries staterment for the following :

Tables : cvers, cvers_ref.

common field component.

very urgent.

points will be given....

Hi

can some one send me a for allentries staterment for the following :

Tables : cvers, cvers_ref.

common field component.

very urgent.

points will be given....

4 REPLIES 4
Read only

Former Member
0 Likes
638

Hi Venkat,

SELECT * FROM cvers
                INTO  it_cvers
WHERE <condition>.

IF NOT it_cvers IS INITIAL.
SELECT * FROM cvers_ref
               INTO IT_CVBERS_REF
FOR ALL ENTRIES it_cvers
WHERE COMPONENT = IT_CVERS-COMPONENT.
ENDIF.

Best regards,

raam

Read only

Former Member
0 Likes
638

Hi!

DATA: gt_cvers LIKE STANDARD TABLE OF cvers,

gs_cvers LIKE LINE OF gt_cvers.

DATA: gt_cvers_ref LIKE STANDARD TABLE OF cvers_ref,

gs_cvers_ref LIKE LINE OF gt_cvers_ref.

SELECT-OPTIONS: s_comp FROM cvers-component.

SELECT * FROM cvers INTO TABLE gt_cvers

WHERE compnent IN s_comp.

IF sy-subrc = 0.

SELECT * FROM cvers_ref INTO TABLE gt_cvers_ref

FOR ALL ENTRIES IN gt_cvers

WHERE component = gt_cvers-component AND langu = sy-langu.

ENDIF.

Regards

Tamá

Read only

Former Member
0 Likes
638

Hi,

why dont u use JOIN?

select <fields >
  into table itab
  from cvers as a inner join cvers_ref as b
  on a~component = b~ component
  where < condition>.

regards,

madhu

Read only

Former Member
0 Likes
638

done