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

BADI update

Former Member
0 Likes
1,307

I need to update the field XBLNR_ALT of table BKPF via method After_store of BADI BADI_RERA_INVOICE. Can anyone please help?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,151

Hi Didier,

I dont see the table BKPF being passed to the BADI through any of the interface methods. So the option in this case would be to use two database statements one to select the appropriate entry of table bkpf and the second to modify the database record transporting field XBLNR_ALT.

Hope this helps. Revert for clarification if required.

Regards,

Vikas

<b>Reward all useful answers.</b>

I need to update the field XBLNR_ALT of table BKPF via method After_store of BADI BADI_RERA_INVOICE. Can anyone please help?

7 REPLIES 7
Read only

Former Member
0 Likes
1,152

Hi Didier,

I dont see the table BKPF being passed to the BADI through any of the interface methods. So the option in this case would be to use two database statements one to select the appropriate entry of table bkpf and the second to modify the database record transporting field XBLNR_ALT.

Hope this helps. Revert for clarification if required.

Regards,

Vikas

<b>Reward all useful answers.</b>

Read only

0 Likes
1,151

Thanks for your answer Vikas. I had this option in mind but it was my last resort. Now i will go for it.

Read only

0 Likes
1,151

Hello ,

I do not know how BADI works, all I know its a component in SaP (Business Add-In). I want to update XBLNR_ALT field for every invoice. How do I populate this field while entering the invoice?

Thanks,

Tejas

Read only

0 Likes
1,151

Hello Tejas,

I need the following information in order to propose a solution.

Which transaction are you using to create the invoice?

FI Module---F-43 or MIRO

Sales Invoice-VF01(billing)

Read only

0 Likes
1,151

Hi Didier,

I need to have XBLNR_ALT updated via MIRO and the FB60 transaction.

Thanks,

Tejas

Read only

0 Likes
1,151

Hello Tejas

I think the best option for you is to go for FI_substitution.

Have a look at the link below

http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231a843c611d182b30000e829fbfe/frameset.htm

Have a look at T.code OBBH

And have some search on SAP forum with the keyword ''ZGGBS000"

Hope the above with help you understand the concept of FI substitution with user-exit

Read only

0 Likes
1,151

Hey Didier,

Tried figuring FI_SUBSTITUTIONS out.. and it really helped! However, there's an issue. I have kept TRACE on so when I post docs in FB60, MIRO, I can see the fields being populated. However, it doesnt update the BKPF table!

Perhaps this is because I have to activate the substitution. However when I try to do so, I get the error "Substitution belongs to class 8, not 6) Any idea what this means?

Thanks a lot again. Awaiting your reply

Tejas