‎2007 May 31 4:34 PM
there is an internal table xvbap, in my user exit i need to create a work area out of it and an internal table? Do i need to declare xvbap as a table before declaring its wa and itab
also i want to append all rows of xvbap to itab
‎2007 May 31 4:48 PM
Santosh
I cannot use occurs 0 with header line, its obsolete
Your code does work, but is there a non obsolete statement to declare itab
‎2007 May 31 4:38 PM
Hi Megan,
data: itab like table of xvbap,
wa type xvbap.
append lines of xvbap to itab.
Regards,
Vidya.
‎2007 May 31 4:39 PM
If Xvbapis passed as a parameter to your FM, you do not need to declare it again. You will have to declare your internal itab and work area, though. Look at the type of xvbap and declare accordingly.
use itab[] = xvbap[] to copy the entire internal table.
Please use separate threads for multiple questions.
Sudha
‎2007 May 31 4:39 PM
hi Megan,
declare this way.
data : itab like xvbap occurs 0 with header line,
wa_xvbap like xvbap.
itab[] = xvbap[].
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
‎2007 May 31 4:40 PM
if xvbap an internal table, you don't need to create a workarea....Because the user-exit is working inside the calling program...
If you need to append all rows of xvabp to another internal table, you can do this...
FIELD-SYMBOLS: <XVBAP> LIKE LINE OF VBAP.
LOOP AT XVBAP ASSIGNING <XVBAP>.
MOVE <XVBAP> TO ITAB.
APPEND ITAB.
ENDLOOP.
Greetings,
Blag.
‎2007 May 31 4:41 PM
‎2007 May 31 4:42 PM
‎2007 May 31 4:44 PM
‎2007 May 31 4:43 PM
Flores,
declare the itab and workarea as below.
data: wa_xvbap type vbap.
data: itab_xvbap type standard table of vbap.
*move the data as below
itab_xvbap[] = xvbap[].
Regards,
Bhasha
‎2007 May 31 4:48 PM
Santosh
I cannot use occurs 0 with header line, its obsolete
Your code does work, but is there a non obsolete statement to declare itab
‎2007 May 31 4:57 PM
Hi Megan,
In that case ... declare it in this way ..
data : begin of itab1 occurs 0,
vbeln like vbap-vbeln,
end of itab1.
data : itab like standard table of itab1 with header line.
‎2007 May 31 5:01 PM
Hi,
Please try this.
DATA: ITAB TYPE TABLE OF VBAPVB.
ITAB[] = XVBAP[].
Regards,
Ferry Lianto