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

Meaning of ABAP code?

Former Member
0 Likes
626

Hi

Can you please tell me meaning of these two lines??

What is usage of them??

l_/bi0/app_o0100_itab TYPE HASHED TABLE OF /bi0/app_o0100 WITH UNIQUE KEY prodorder,

l_/bi0/app_ds0300_itab TYPE HASHED TABLE OF /bi0/app_ds0300 WITH UNIQUE KEY coorder calday.

New table l_/bi0/app_o0100_itab is refering to only structure of original table /bi0/app_o0100 or it will refer to data of orginal table also??

Regards

Swati

Hi

Can you please tell me meaning of these two lines??

What is usage of them??

l_/bi0/app_o0100_itab TYPE HASHED TABLE OF /bi0/app_o0100 WITH UNIQUE KEY prodorder,

l_/bi0/app_ds0300_itab TYPE HASHED TABLE OF /bi0/app_ds0300 WITH UNIQUE KEY coorder calday.

New table l_/bi0/app_o0100_itab is refering to only structure of original table /bi0/app_o0100 or it will refer to data of orginal table also??

Regards

Swati

3 REPLIES 3
Read only

Former Member
0 Likes
580

Hi

Internal table will refer to the structure and the fields of the original table.

Later on in the program data is retreived from the original table and is passed to the internal table.

Regards,

Vishwa.

Read only

0 Likes
580

Hi

Thanks for ur reply

Can you please tell me how this will work ?

SELECT * FROM /bi0/app_o0100

APPENDING CORRESPONDING FIELDS

OF TABLE l_/bi0/app_o0100_itab

FOR ALL ENTRIES IN it_prodorder_package

WHERE prodorder = it_prodorder_package-prodorder.

REFRESH it_prodorder_package.

Regards

Swati

Read only

0 Likes
580

hi

SELECT * FROM /bi0/app_o0100
APPENDING CORRESPONDING FIELDS
OF TABLE l_/bi0/app_o0100_itab
FOR ALL ENTRIES IN it_prodorder_package
WHERE prodorder = it_prodorder_package-prodorder.

The above statement is used to retreive data from the original table /bi0/app_o0100 into internal table l_/bi0/app_o0100_itab... for all the entries..of another internal table it_prodorder_package, that means for all the records of it_prodorder_package.... based on the condition that /bi0/app_o0100-prodorder = it_prodorder_package-prodorder., so it will pick all the records which satisfy the where condition...

REFRESH:

This statement is used to clear the contents of internal table body.

Regards,

Vishwa.

Edited by: vishwa sri hari on Oct 13, 2008 10:58 AM