Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Field Symbol not assigned error

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question