Skip to Content
0
Former Member
Nov 22, 2012 at 02:36 PM

Syntax check field routine and "naming"

105 Views

Hi ABAP expert

I have developed a field routine.

I try to "cross-check" and compare the value of a text field which is in table /BI0/TORGUNIT, needed field is TXTSH.

The "comparison" takes place with a key field of another characteristic, ZORG_ABC.

When doing the syntax check following message is given: Das Datenobjekt "SOURCE_FIELDS-/BI0/TORGUNIT-TXTSH" besitzt keine Komponente mit Namen "".

English: The data object "SOURCE_FIELDS-/BI0/TORGUNIT-TXTSH" doesn't have a component with naming "".

Where ist the problem in the coding below?

METHOD compute_ZORG_ABC.

* IMPORTING
* request type rsrequest
* datapackid type rsdatapid
* SOURCE_FIELDS-ORGUNIT TYPE /BI0/OIORGUNIT
* EXPORTING
* RESULT type _ty_s_TG_1-/BIC/ZORG_ABC

DATA:
MONITOR_REC TYPE rsmonitor.

*$*$ begin of routine - insert your code only below this line *-*
... "insert your code here
*-- fill table "MONITOR" with values of structure "MONITOR_REC"
*- to make monitor entries
... "to cancel the update process
* raise exception type CX_RSROUT_ABORT.
... "to skip a record
* raise exception type CX_RSROUT_SKIP_RECORD.
... "to clear target fields
* raise exception type CX_RSROUT_SKIP_VAL.

SELECT SINGLE /BIC/ZORG_ABC "enthält die Buchstaben-Kolonne
FROM /BIC/TZORG_ABC
INTO RESULT
WHERE /BIC/ZORG_ABC EQ SOURCE_FIELDS-/BI0/TORGUNIT-TXTSH.

.