Skip to Content
0
Former Member
Sep 13, 2007 at 09:10 PM

Exit function - Add New Record

20 Views

hi

I am using an exit function to add new record into a cube but the BI-IP says 'your new record ZSEGMENT : BASIC1 is not in the selection'.

Example: I am trying to add zsegment = 'BASIC1' with key fig 0AMOUNT =1000

all other characteristics should stay.

Any idea? code is below:

  • 'fields to be changed' characteristics:

  • ZSEGMENT

field-symbols: <s_chas> type any,

<value> type any.

ASSIGN COMPONENT 'ZSEGMENT' of structure <ls_data> to <value>.

<value> = 'BASIC1'.

  • key fig 0amount

ASSIGN COMPONENT '0AMOUNT' OF STRUCTURE <ls_data> TO <value>.

<value> = 1000.

ASSIGN COMPONENT '0CURRENCY' OF STRUCTURE <ls_data> TO <value>.

<value> = 'CAD'.

  • Collect the line into xth_data.

collect <ls_data> into c_th_data.

Message was edited by:

BWer

Message was edited by:

BWer

Message was edited by:

BWer