‎2008 Jun 05 10:30 AM
Hi,
In the program these are the 4 variables that are defined.
return_tmp type standard table of bapiret2,
return_tmp_conv type table of bapiret2,
wa_return_tmp type bapiret2,
tsk_tab line of cpcdt_tsk_tab.
Can someone please let me know the difference between these 4 variables.
Thanks.
‎2008 Jun 05 10:47 AM
return_tmp_conv type table of bapiret2,
This is internal table(without headrer line) refering to structure baripet2.
wa_return_tmp type bapiret2,
Work area refering to structure of baripet2
‎2008 Jun 05 10:44 AM
Hello.
. return_tmp type standard table of bapiret2 <- internal table with same structure of bapiret2
. return_tmp_conv type table of bapiret2 <- internal table with same structure of bapiret2
. wa_return_tmp type bapiret2, <- work area with same structure of bapiret2
. tsk_tab LIKE line of cpcdt_tsk_tab. <- work area with same structure of cpcdt_tsk_tab
Regards.
Valter Oliveira.
‎2008 Jun 05 10:47 AM
return_tmp_conv type table of bapiret2,
This is internal table(without headrer line) refering to structure baripet2.
wa_return_tmp type bapiret2,
Work area refering to structure of baripet2
‎2008 Jun 05 11:00 AM
Hi Keyur,
BAPIRET2 : Return parameter A display structure.
1. Declaration part will have the table of standard type
ECC 6.0 means it is an latest version of SAP ERP package (ERP Central components). it will support for netweaver and BW. it will support for netweaver and BW. and some function modules also absolute. and some function modules also absolute. then occur statements also there is No longer support in then occur statements also there is No longer support in ECC 6.0, so u can use standard table to declare the internal table. ECC 6.0, so u can use standard table to declare the internal table.
and
STANDARD TABLE
Effect
Defines the table as a standard table. Key access to a standard table uses a linear search. This means that the timne required for a search is in linear relation to the number of table entries.
You should use index operations to access standard tables.
For the sake of compatibility, you can use TABLE as a synonym of STANDARD TABLE.
******************************************************************************************************************
2. Second declaration is the normal declaration which u can compare with the
1 one,
3. is a work area declaration which will work on one row at a time.
*****************************************************************************************************************
4 .In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See LIKE references to ABAP Dictionary types not allowed.
Effect
The data object itab must be an internal table with or without a header line. The system creates a data object with the line type of the specified table.
Example
DATA TAB TYPE STANDARD TABLE OF I WITH NON-UNIQUE
DEFAULT KEY INITIAL SIZE 10.
DATA TAB_WA LIKE LINE OF TAB.
The data object TAB_WA now has the same attributes as a line of the table TAB (in this case, type I).
***********************************************************************************************************************
Cheers
Mohinder Singh Chauhan
‎2008 Jun 05 11:10 AM
return_tmp type standard table of bapiret2,
return_tmp_conv type table of bapiret2,
wa_return_tmp type bapiret2,
tsk_tab line of cpcdt_tsk_tab.
return_tmp is a internal table with header line.
return_tmp_comv is a internal table with header line.
wa_return_tmp is a structure
tsk_tab is also a structure.