Skip to Content
0
Former Member
Nov 27, 2008 at 10:31 AM

BTE

282 Views

Hi experts, I'm trying to update bseg-sgtxt fields with number of document (bkpf-belnr) by saving in FB60 transaction. I'm implenting a BTE by fibf transaction and my custom function is:

FUNCTION ZSAMPLE_INTERFACE_00001030.
*"--------------------------------------------------------------------
*"*"Interfaccia locale:
*"  IMPORTING
*"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF
*"     VALUE(I_UF05A) LIKE  UF05A STRUCTURE  UF05A
*"     VALUE(I_XVBUP) LIKE  OFIWA-XVBUP DEFAULT 'X'
*"  TABLES
*"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
*"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
*"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
*"      T_BKP1 STRUCTURE  BKP1
*"      T_BKPF STRUCTURE  BKPF
*"      T_BSEC STRUCTURE  BSEC
*"      T_BSED STRUCTURE  BSED
*"      T_BSEG STRUCTURE  BSEG
*"      T_BSET STRUCTURE  BSET
*"      T_BSEU STRUCTURE  BSEU
*"--------------------------------------------------------------------



loop at t_bseg.
    concatenate 'protocollo n.:' T_BKPF-BELNR into t_bseg-sgtxt.
    Modify t_bseg.
endloop.


ENDFUNCTION.

I can see in debug mode value of T_BKPF-BELNR with next number of document and I see the text "protocollo n.:0000030010" in every t_bseg-sgtxt fileld of position document, where '0000030010' is next number of document assigned by system to T_BKPF-BELNR field.

Document is registered correctly but texts in positions are not update.

If I display new document with fb03 transaction, sgtxt fields are blanks.

Where is the problem ?

Thanks.