cancel
Showing results for 
Search instead for 
Did you mean: 

Update REGUH from BTE 1120

Former Member
0 Kudos

Hi gurus,

I have a requirement I don´t know how to solve.

My requirement is to update a field in REGUH table (KURSF - Exchange rate) based on the data of the document that is being posted.

Let's say, I run F110, this creates a new accounting documents that runs the BTE 1120. Based on a field from the purchase order (EKKO-WKURS) in the reference field (BKPF-XBLNR), I need to update REGUH-KURSF, because this field is not filled correctly automatically.

But I've seen that I have no access no REGUH during the BTE 1120 execution, and I want to avoid an UPDATE statement to the standard table.

Any idea? Is there another BTE I can use to update the REGUH table?

Any kind of help will be great.

Rregards!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Solved using FS

nazir_tarrer
Explorer
0 Kudos

What is FS ?

Former Member
0 Kudos

Field Symbols !!

nazir_tarrer
Explorer
0 Kudos

Can you please elaborate in detail how this was achieved for reference

tks

Former Member
0 Kudos

Sure,

After debugging the standard program SAPF110S, I've found the data that I need to modify in the BTE by using Field Symbols. They are the following:


(SAPF110S)XZAHLG[] -> Internal table with REGUH records

(SAPF110S)XZAHLG   -> Current REGUH record

(SAPF110S)XZAHLB[] -> Internal table with REGUP records


Regards.

nazir_tarrer
Explorer
0 Kudos

So it is the same technique which I had send you earlier , but used a different table/fs !

Answers (1)

Answers (1)

nazir_tarrer
Explorer
0 Kudos

Did u try BTE 1640

Regards

Shehzad

Former Member
0 Kudos

It looks that this BTE is not being executed in my F110 process 😞

nazir_tarrer
Explorer
0 Kudos

Hi

Through the call stack the program SAPF110S can be assigned in bte 1120 , Sample code is attached , Check with your developer on this , We have used the same technique in the same BTE. Alternatively try BTE 1830 as well

Regards

Former Member
0 Kudos

I'll try this.

But as I can see, this code is using REGUP estructure just to read the data, and I need to change both REGUH and REGUP.

Regards.

Former Member
0 Kudos

Tried this, but no luck, REGUP was not updated in the DB 😞

nazir_tarrer
Explorer
0 Kudos

Put a Breakpoint and u can debug it through jdbg command in sm37

set up a delayed payment run and then through sm37 enter jdbg it will stop at the BTE

It works for us !!