Hi i am surya, i have faced this questions plz give me the
answer.
I have requirement like this, i have two internal tbale like
itab and itab1 in itab i have 50 records, in itab1 100
records are there. When execute this question what will be
the output a]50 b]100 c]150? And how to join two internal
tables what is the syntax for that?
Answers were Sorted based on User's Feedback
Answer / suresh
when you are executing first internal table you will get 50
records and when u are executing second itab you will get
100 records. so finally when you perform joins on both
tables you will get 150records
Is This Answer Correct ? | 0 Yes | 0 No |
report ZBALA_TEST.
tables: mara,makt.
types: BEGIN OF st_mara,
matnr type mara-matnr,
END OF st_mara.
types: BEGIN OF st_makt,
matnr type makt-matnr,
maktx type makt-maktx,
END OF st_makt.
types:BEGIN OF st_out,
matnr type mara-matnr,
maktx type makt-maktx,
END OF st_out.
data it_mara type TABLE OF st_mara WITH HEADER LINE.
data it_makt type TABLE OF st_makt WITH HEADER LINE.
data it_out type TABLE OF st_out WITH HEADER LINE.
select matnr FROM mara into TABLE it_mara UP TO 50 ROWS.
select matnr maktx from makt into TABLE it_makt UP TO 50 ROWS.
loop at it_mara.
MOVE-CORRESPONDING it_MARA to it_MAKT.
append it_MAKT.
ENDLOOP.
Is This Answer Correct ? | 0 Yes | 0 No |
Abstract class and interface, multiple inheritance, live example
What is the collect statement? How is it different from append?
What are spa/gpa parameters (sap memory)?
What are the difference between pool tables and transparent tables?
Tell the step by step procedure to print a smart form?
What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary
What happens Update command is used without where clause ?
When would you use a BAPI rather than an IDOC
Define database layer?
What are the Various Types of internal tables?
how to create f1 help and where f1 help is stored
Have you set up a back ground job? How to create a background job without a variant ? : abap bdc