on 01-25-2006 4:08 PM
Hi,
I want read the internal table XOBJK_ALL in program SAPLIPW1 from program MM07MSE0.
DATA: va_tab2(30) VALUE '(SAPLIPW1)XOBJK_ALL'.
FIELD-SYMBOLS <lt> TYPE table .
ASSIGN (va_tab2) TO <lt>.
If I execute this code a dump is occuring at line:
ASSIGN (va_tab2) TO <lt>.
Please help me. Thank you.
Hi Fabio,
i think you are assigning the work area instead the table
try this:
'(SAPLIPW1)XOBJK_ALL[]'
and remember also to always check the sy-subrc of assign statement
ASSIGN (va_tab2) TO <lt>.
if sy-subrc = 0.
... use field-sumbol <lt>
endif.
or
ASSIGN (va_tab2) TO <lt>.
if <lt> is assigned.
... use field-sumbol <lt>
endif.
this will avoid short dump.
Regards, Manuel
If you find this answer useful, please remember to reward some points and close the thread if your problem is solved
Thanks
Message was edited by: Manuel Bassani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to use this way.
DATA: va_tab2(30) VALUE '(SAPLIPW1)XOBJK_ALL'.
DATA XOBJK_ALL LIKE RIPW0 OCCURS 10 WITH HEADER LINE.
FIELD-SYMBOLS <LT> STRUCTURE RIPW0 DEFAULT XOBJK_ALL .
ASSIGN (va_tab2) TO <LT>.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi fabio,
for me it is not giving any dump..
DATA: va_tab2(30) VALUE '(SAPLIPW1)XOBJK_ALL'.
FIELD-SYMBOLS <lt> TYPE table .
ASSIGN (va_tab2) TO <lt>.
same code as you did..
can you check the same..
regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.