on 06-12-2008 11:23 AM
Hi,
I tried using the following code to create dynamic page format.
Im working on 4.6c and the following code seems to not work.
This code is written in the initialization tab of Global Definition Section.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
data: lx_sf_header(31) type c.
field-symbols : <fs_header> type SSFFORMHD.
CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.
assign (lx_sf_header) to <fs_header>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The field symbol does not get assigned, can anyone throw some light on whats wrong.
regards,
Hi.
Place a break-point in statement CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.
In that moment, verify if structure "(program)%HEADER" is initial. If it is, that's the reason. Are you sure it's "(program)%HEADER"? Try "(program)HEADER"
Regards.
Valter Oliveira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again.
The assign statement is correct. You are assigning the value of the text variable, and the value is the structure.
If the "(sy-repid)%HEADER" is populated, the only reason I can think of is the type. Is (sy-repid)%HEADER of the type of <fs_header>, i.e SSFFORMHD? If it is, try with:
FIELD-SYMBOLS: <fs_header> TYPE ANY.
Regards.
Valter Oliveira.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.