cancel
Showing results for 
Search instead for 
Did you mean: 

UC_OBJECTS_NOT_CONVERTIBLE

Former Member
0 Kudos

Hello , guys im facing some troubles with the following code : APPEND ps_doc-d TO pt_items (you can see the whole code below ) , once i execute this I receive a short dump titled : UC_OBJECTS_NOT_CONVERTIBLE .

ZTG_RECON, ZTG_PRVCON are Data dictionary structures .


*------------------------------------------------
  TYPES: BEGIN OF tp_header,
          d LIKE ZTG_PRVCON  ,
          awkey TYPE BKPF-awkey,
         END OF tp_header.

*-----------------------------------------------
DATA:   gt_doc  LIKE ZTG_RECON OCCURS 0 WITH HEADER LINE,
            gt_hd      TYPE TABLE OF tp_header,
           gs_hd      TYPE tp_header,

LOOP AT gt_hd
     INTO gs_hd.
    PERFORM get_document_items CHANGING gs_hd
                                        gt_doc[].

    APPEND LINES OF gt_doc TO out_tab.
  ENDLOOP.

  SORT out_tab BY empresa num_docsap exercicio num_item ASCENDING.
************************************************************************
* Fim de Proposta
************************************************************************
ENDFUNCTION.


*&--------------------------------------------------------------------*
*&      Form  get_document_items
*&--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
FORM get_document_items CHANGING ps_doc     TYPE tp_header
                                 pt_items   TYPE table.
  DATA: lv_wrbtr   TYPE wrbtr,
        lv_dmbtr   TYPE dmbtr.

  CLEAR: pt_items.

  SELECT  SINGLE chect
    FROM  payr
    INTO  ps_doc-d-num_chq
   WHERE  zbukr = ps_doc-awkey+10(4)
     AND  vblnr = ps_doc-awkey+0(10)
     AND  gjahr = ps_doc-awkey+14(4).

  SELECT  augbl     buzei    hkont
          bschl     valut    koart
          wrbtr     dmbtr    zuonr
          sgtxt     kunnr    lifnr
    INTO (ps_doc-d-num_doccmp, ps_doc-d-num_item,   ps_doc-d-cnt_razao,
          ps_doc-d-chv_lac,    ps_doc-d-dt_efect,   ps_doc-d-tip_conta,
          lv_wrbtr,          lv_dmbtr,              ps_doc-d-num_atrib,
          ps_doc-d-txt_item,   ps_doc-d-conta_rec,  ps_doc-d-cli_forn)
    FROM  bseg
   WHERE  bukrs = ps_doc-d-empresa
     AND  belnr = ps_doc-d-num_docsap
     AND  gjahr = ps_doc-d-exercicio.
    MOVE lv_wrbtr TO ps_doc-d-valor_doc.
    MOVE lv_dmbtr TO ps_doc-d-valor_emp.

     APPEND ps_doc-d TO pt_items.
  ENDSELECT.
ENDFORM.                    "get_document_items

Could you give me some clues to solve this problem , instead of structures I should transparent tables .

Thank you.

Edited by: José M. Sánchez on Mar 9, 2009 12:44 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry I dont why , it was in Sap netweaver administrator forum .