cancel
Showing results for 
Search instead for 
Did you mean: 

FB70 BAdI for Modifying Data Being Saved

Former Member
0 Kudos

While creating and saving invoices using FB70 transaction I need to modify the value of field BKPF-XREF2_HD in the record which is added to database table BKPF when document is saved. Using Open FI event 00001030 (POST DOCUMENT: Posting of Standard Data) would solve the problem, but unfortunately it is impossible to trasfer internal table content passed to event function module back to the main program. I was unable to find any suitable BAdIs for that purpose.

Would appreciate if someone could help.

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Maxim

Did you try the possibility of substitution for this field?

Thanks

Ashok

Assign points for useful answer

Former Member
0 Kudos

Ashokkumar,

Thanks for your reply. But I do not completely understand what do you mean by field substitution. Actually I need the following:

When saving invoice using FB70 transaction new record is added to table BKPF. In this record I need to modify one field according to some criteria (logic will be coded by myself). So I need some user exit, or BADI which will take the structure with data for BKPF table as importing parameter, then I should modify one field of this structure and further this record with modified field will be added to database table. Or the second variant is the BADI which is called after the data was committed to database. Then I will modify field in existing database record.

Is it possible to have my task implemented in the way described above?

Thank you.

Maxim