2008 Mar 03 4:54 PM
Hi Gurus,
I would like to know how to assign a global field using program name (where field is present) to a field symbol?
2008 Mar 03 5:09 PM
You mean to say you want to change the value of Global variable of another program using first program.
That cannot be done I suppose, if you want to do anything like that then use EXPORT & IMPORT memory statements in both the programs.. so as to export the value
2008 Mar 03 5:09 PM
You mean to say you want to change the value of Global variable of another program using first program.
That cannot be done I suppose, if you want to do anything like that then use EXPORT & IMPORT memory statements in both the programs.. so as to export the value
2008 Mar 03 5:17 PM
Hi Rahul,
Actually i want to use a variable which is actually defined in a different program (include). I cant export that value since its a sap standard code. I have a user exit where i need those values. There is some method where i can assign the value using assign statement (eg assign "program name--" to<fs>). Could u let me know the exact syntax?
2008 Mar 03 5:43 PM
After some search I found this for you...
CONSTANTS: BSL(20) VALUE '(SAPMF05A)BSEG-BSCHL'.
FIELD-SYMBOLS: <BSL>.
ASSIGN (BSL) TO <BSL>.
IF SY-SUBRC = 0.
* do what you want to do
ENDIF.This is similar kind of code..
field-symbols:
<menge> type ekpo-menge.
ASSIGN '(MEPO1211)EKPO-MENGE' to <menge>.
IF SY-SUBRC = 0.
* do what you want to do
ENDIF.
2008 Mar 03 5:51 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |