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
The commands through which an abap/4 module can “branch to “ or “call” the next screen are?
What are the user groups?
What are roles and authorization objects?
Can a filed occur in several field groups? : abap modularization
Select up to 1 row and select single difference ?
can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.
What is the use of lock objects?
Explain the different types of mode (run code) in call transaction method?
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.
What is the maximum number of structures that can be included in a table or structure : abap data dictionary
Can we use write statements in screen fields?if not how is data transferred from field data to screen fields?
Which one is better joins or views and why?
What are the fields in a bdc_tab table? : abap bdc
What is the function of a data element?
What is the difference between collect and append statements?