2007 Dec 12 11:52 AM
Hi,
I have written the following code in BADI.
types: tp_t_drseg type standard table of drseg initial size 0.
FIELD-SYMBOLS : <y_it_drsego> TYPE tp_t_drseg.
<y_it_drseg> type ANY.
DATA: y_it_drseg(40) type c,
y_lv_it_drseg type standard table of drseg,
wa_y_lv_it_drseg type drseg.
..
..
y_it_drseg = '(SAPLMRMP)T_DRSEG[]'.
ASSIGN (y_it_drseg) to <y_it_drsego>.
If sy-subrc eq 0.
--- Statements.
Endif.
But here the value of sy-subrc = 4.
I tried with
y_it_drseg = '(SAPLMRMP)T_DRSEG'.
ASSIGN (y_it_drseg) to <y_it_drsego>.
For structure it is working fine. But for internal table it is returning 4. Your help will be appreciated.
Thanks and regards
Santosh
Hi Prashan,
Thanks for reply. As the program SAPLMRMP is standard program I am avoiding to modify it as it requires access key. Because of this I am writing this code in BADI to change the value of T_DRSEG table. Please let me know whether it is possible by using field-symbol or not or is there any other method.
2007 Dec 12 12:35 PM
Hi Santosh,
You need to EXPORT the internal table from another program & IMPORT the same in your program.
In ANother program.
EXPORT ITAB TO MEMORY ID 'ZID'.In Your program
IMPORT ITAB FROM MEMORY ID 'ZID'.Best regards,
Prashant
2007 Dec 12 2:19 PM
Hi Prashan,
Thanks for reply. As the program SAPLMRMP is standard program I am avoiding to modify it as it requires access key. Because of this I am writing this code in BADI to change the value of T_DRSEG table. Please let me know whether it is possible by using field-symbol or not or is there any other method.
2011 Jan 18 10:37 AM
replace your below statement:
FIELD-SYMBOLS : <y_it_drsego> TYPE tp_t_drseg.
with
FIELD-SYMBOLS : <y_it_drsego> TYPE TABLE.
Cheers
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |