Skip to Content
0
Jul 31, 2008 at 11:01 AM

field symbol values not update in fieldsymbol table ?

34 Views

I have this code which loops though <ta_output> into <l_line>

one of the fields of <l_line> is updated with a value for BOEKSTATUS

I see the value in <l_line> but it isn't passed to <ta_output>

what am I missing here ??

I thought (and also visible in <l_line> ) that you don't need to do a separate modify anymore with fieldsymbols ??

kind regards'

arthur de smidt



  LOOP AT <ta_output> INTO <l_line>.

    PERFORM boeking_kop USING p_budat p_perio.
*   Documentregels opbouwen
    PERFORM boeking_regels USING space.
*   Document boeken
*    PERFORM document_posten .

  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader    = doc_header
    IMPORTING
      obj_type          = h_objtype
      obj_key           = h_objkey
    TABLES
      accountgl         = acc_gl
*      ACCOUNTRECEIVABLE =
*      ACCOUNTPAYABLE    = vervaldat
*      ACCOUNTTAX        = tax
      currencyamount    = curr_amount
      return            = tret.


  ASSIGN COMPONENT 'BOEKSTATUS' OF STRUCTURE <l_line> TO <l_field>.

  IF h_objkey NE '$' .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    <l_field> = c_green.
  ELSE.
    <l_field> = c_red.
  ENDIF.

  ENDLOOP.