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?

Answer Posted / balabharathichandran

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The commands through which an abap/4 module can “branch to “ or “call” the next screen are?

636


What are the user groups?

572


What are roles and authorization objects?

1197


Can a filed occur in several field groups? : abap modularization

664


Select up to 1 row and select single difference ?

650






can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.

3049


What is the use of lock objects?

577


Explain the different types of mode (run code) in call transaction method?

569


In se11 -->Tech. settings --> Data class. If I save table as Mater data OR Transaction data, what effect will it has for 'Storage' in Database after activation. or In Database how it will store in both the cases.

2116


What is the maximum number of structures that can be included in a table or structure : abap data dictionary

816


Can we use write statements in screen fields?if not how is data transferred from field data to screen fields?

558


Which one is better joins or views and why?

639


What are the fields in a bdc_tab table? : abap bdc

622


What is the function of a data element?

627


What is the difference between collect and append statements?

569