Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BTE in FB60

Former Member
0 Likes
5,414

Hi

Could you please let me know which BTE i can use in FB60 transaction?

I need to do put some logic in the line items (Modifying the line item's data) .....

Please let me know

MS

Hi

Could you please let me know which BTE i can use in FB60 transaction?

I need to do put some logic in the line items (Modifying the line item's data) .....

Please let me know

MS

11 REPLIES 11
Read only

Former Member
0 Likes
3,285

hi

i suppose you can use 1030 and 1050 .

Refer this link for step by step regarding BTE.

Regards

Sajid

Read only

Former Member
0 Likes
3,285

Hi Madhu,

Please go through this link. This will help you https://www.sdn.sap.com/irj/scn/advancedsearch?query=%2509+BTEinFB60+++

regards,

pravin

Read only

Former Member
0 Likes
3,285

Hi

It's better to use the FI Substitution (trx OBBH) to change item data, anyway if you really need to use a BTE: it's process 00001130.

Max

Read only

0 Likes
3,285

Hi

I tried both BTE (1030,1120) ...Both are Useful...I manipulated T_BSEG item table with the custom entries...but for some reason SAP

is putting those values back from L_BSEG which is standard...

My manipulated T_BSEG has 3 Entries but its been overwritten by L_BSEG which has 2 entries...after exiting from FM.

It means even if manipulate the data there.. is no use....There are 2 SAP NOTES .

0000530655 Performance improvements in Business Transaction Events

0000996552 Open_FI: Incorrect interfaces for BTE 1120

Please let me know what can be done? Do i need to apply these notes in order to manipulate the data in T_BSEG?

MS

Read only

0 Likes
3,285

Hi

The BTE 1030 and 1050 are to store additional data in own custom table, they aren't to change the data of BKPF or BSEG.

Just as I wrote, u need to use the BTE 00001130, sorry 00001120.

Max

Read only

0 Likes
3,285

Max

Thanks a lot for your Reply...

I dont know for some reason 1130 BTE is not stopping in the copied fucntion module..Z_SAMPLE_PROCESS_00001130

I put the break point and i did the following... (Break-point hard coded one)

FIBF / Settings / Process Modules / Of a customer /

00001130 Z_SAMPLE_PROCESS_00001130 ZPR

Saved the entry

and Executed the txn FB60...

Is there something i missed..Please let me know

Thanks

MS

Read only

0 Likes
3,285

Max

I figured out the settings ...Now its stopping at the Z function module of BTE 1130.

But the problem is again SAP is replacing the standard entries.

Below is the code.

FUNCTION OPEN_FI_PERFORM_00001130_P

call function fmtab-funct

tables

t_bkpf = t_bkpf

t_bseg = t_bseg

t_bsec = t_bsec

t_bkpfsub = bkpfsubtab

t_bsegsub = bsegsubtab.

T_BKPF[] = L_BKPF[].

T_BSEG[] = L_BSEG[].

T_BSEC[] = L_BSEC[].

Here i modified T_BSEG with 2 new entries to match the original invoice amount but its been replaced by L_BSEG after the Exit.

Do you have any idea like alternate solution or SAP Note?

Thanks

MS

Read only

0 Likes
3,285

Hi

U don't change the data directly in T_BSEG, but u have to use the parameter t_bkpfsub and t_bsegsub.

T_BSEGSUB is like structure BSEG_SUBST, here u can find the field can be changed, if your field is not there, u need to add it by an append structure.

So the code should be like the following:

DATA: BSEG_INDEX TYPE I.
LOOP AT T_BSEG.
  BSEG_INDEX = SY-TABIX.
  IF T_BSEG-GSBER = 'A'.
    READ TABLE T_BSEGSUB WITH KEY TABIX = BSEG_INDEX.
    T_BSEGSUB-GSBER = 'B'.
    MODIFY T_BSEGSUB INDEX SY-TABIX.
  ENDIF.  
ENDLOOP.

I use the BTE 1120 (not 1130) and it works fine.

Max

Read only

0 Likes
3,285

Thanks Max...

So ..You mean to say we can only modify the entries..NOT to insert any new rows to either T_BSEG or T_BSEGSUB.

Coz i have a requirement to modify / insert the entries in the line items in FB60.

Lets say wer are paying the vendor : the total invoice amount is 1000

I want to split that into two GL accounts by automated process thru Ztable.

GL1 Amount 800 Debit

GL2 Amount 200 Debit

For this I enter only *GL1 and and amount as * (asterik)* in the first line item and hit Save...in FB60

Its stopping at BTE and iam manipulating / Inserting rows like above example in T_BSEBSUB as well as T_BSEG.

But SAP is saving the document like below

GL1 Amount 1000

its ignoring the

GL1 Amount 200

entry in T_BSEBSUB as well as T_BSEG.

I added fields to T_BSEGSUB and populated GL1 Amount 200 row in T_BSEBSUB as well as T_BSEG thru append sturcture.

If you think adding rows to line items NOT possible..please let me know...So that i will close this thread.

Thanks

MS

Read only

0 Likes
3,285

Hi

No! U can change the data only, u can insert a new item there, I don't know if it's possible to insert a new line.

U can try to create a your own fm and insert it in the accounting logic flow: the table TRWPR has all processes to be done while saving an account document.

U can try to create a new fm in CHECK event (see data of TRWPR where PROCESS = DOCUMENT and EVENT = CHECK by SE16): this new fm has to have the same interface of fm u can see by SE16.

Here perhaps u can change the data of ACCIT structure in order to insert a new one, but I don't know if it works, I've never added a new line in FI document: it's very strange issue.

Max

Read only

0 Likes
3,285

Max

Its very helpful answer...I will try to do that...and will ask questions if i find any issues...

assigned 6 points...will close it when its done..

Thanks

MS