2007 Jan 11 6:53 AM
Hi all,
Can we change the system field value's. i want to change the user name field
(sy-uname).
Rajesh.
2007 Jan 11 6:54 AM
u can do it in debugging mode
2007 Jan 11 6:54 AM
2007 Jan 11 6:55 AM
Hi,
U can change in ur program. But if u call any standard program after changing the value, it may reset it original user name.
Rgds,
Prakash
2007 Jan 11 6:58 AM
you can change by programming for your internal session only if any other internal session opens means sy-uname will take the default value.
regards
shiba dutta
2007 Jan 11 7:03 AM
U can change it in Debugging .. but only for a single step ..
If U press F5 , F6 , F7 or F8 the value changes/refreshed with the original value .
Even if U hardcode the value in the program
say
SY-UNAME = 'RAJ'.
After this step is passed it will be again assigned to the original/initial value .
2007 Jan 11 7:11 AM
Iam changing the value before i pass the value to a standard BAPI, which is not possible.
Thanks to all,
Rajesh.
2007 Jan 11 7:12 AM
Iam changing the value before i pass the value to a standard BAPI, which is not possible.
2007 Jan 11 7:15 AM
u can not adn u shud not change the system field values..
if u will change the sy fields in debug mode like say sy-uname then it wil get chnaged but when the processing will come to very next line ,it will automatically change the sy-uname value to the current value..
wht u can do is u can create a variable like sy-uname and in that variable assign the required unam value and pass this variable to the BApi ..instead of sy-uname.
amit
2007 Jan 11 7:27 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |