2007 Sep 15 1:23 AM
Hi,
I need to create a BTE for update field BSEG-SGTXT in a FI document generated by transaction F110.
For test, I have created function module Z_SAMPLE_PROCESS_00001430, and insert this code:
FUNCTION z_sample_process_00001430.
*"----
""Interfase local
*" IMPORTING
*" VALUE(I_BKDF) TYPE BKDF OPTIONAL
*" TABLES
*" T_BKPF STRUCTURE BKPF
*" T_BSEG STRUCTURE BSEG
*" T_BSEC STRUCTURE BSEC OPTIONAL
*" T_BKPFSUB STRUCTURE BKPF_SUBST
*" T_BSEGSUB STRUCTURE BSEG_SUBST
*" CHANGING
*" REFERENCE(I_BKDFSUB) TYPE BKDF_SUBST OPTIONAL
*"----
LOOP AT t_bseg.
LOOP AT t_bsegsub.
t_bsegsub-sgtxt = 'TEST BTE'.
MODIFY t_bsegsub INDEX sy-tabix.
ENDLOOP.
ENDLOOP.
ENDFUNCTION.
Changing field BSEG-SGTXT in tx. FB02 in on-line mode it works good, ... but, when I run transaction F110 that runs in background process the BTE it seems that it can't be reached.
Is possible to use BTE in backgroung process???... what am I doing wrong???
Thanks in advance, I really need help with this issue...
Best regards,
Mayra.
2007 Sep 15 9:21 AM
There are certainly other BTEs that run in background - try putting in "message s398(00) with 'This is the start of the BTE'." and some other "S" debug messages in the loops and see if they come out in the job log for the background job.
Jonathan