Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field Symbol not assigned error

Former Member
0 Kudos

Hello all...

I am a functional BI guy but having some problems with some BPS exit code (in charisteristic relationships) ...

any idea why I would get a 'field symbol not assigned' error with the below?

The code is straight out of How to: Lines Items in BPS

Short dump says: GETWA_NOT_ASSIGNED

Thanks all

*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(I_AREA) TYPE  UPC_Y_AREA
*"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
*"  CHANGING
*"     REFERENCE(XS_CHAS) TYPE  ANY
*"  EXCEPTIONS
*"      FAILED
*"----------------------------------------------------------------------


FIELD-SYMBOLS: <l_chavl> TYPE ANY.

* fill ID
ASSIGN COMPONENT 'zbpsguid' OF STRUCTURE xs_chas
TO <l_chavl>.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = <l_chavl>.

* fill user
ASSIGN COMPONENT '0UNAME' OF STRUCTURE xs_chas
TO <l_chavl>.
<l_chavl> = sy-uname.

* fill date
ASSIGN COMPONENT '0DATE' OF STRUCTURE xs_chas
TO <l_chavl>.
<l_chavl> = sy-datlo.

* fill time
ASSIGN COMPONENT '0TIME' OF STRUCTURE xs_chas
TO <l_chavl>.
get time field <l_chavl>.
ENDFUNCTION.

2 REPLIES 2

Former Member
0 Kudos

try this in capital letter 'zbpsguid' instead use 'ZBPSGUID'

0 Kudos

i just figured it out when you sent me your reply...

it works!

genius!