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: 

Update BKPF doc posted through workflow: BADI_FDCB_SUBBAS04

prince_isaac
Active Participant
0 Kudos
697

Hi

In my environment workflow is present and i was able to implement BADI BADI_FDCB_SUBBAS04 adding my custom fields on FI transactions specifically for use on FV60. When i create doc through FV60 i am able to see values in my custom fields when i view document through FB03. However when i go around the workflow by releasing and posting the document through SWIA document gets posted yes but i am not able to see my values in the custom fields when i do an SE16N on table BKPF.

I have also follwed Miguels suggestion [] and done the same but still i am unable to viewmy custom fields with data in BKPF.

regards

Isaac Prince

5 REPLIES 5

former_member182371
Active Contributor
0 Kudos
363

Hi,

this is what said in the thread :

Finally.

I made it work. Using a trace, i checked where the doc number was getting stored and then a saw a miracle.

as i thought, there was a table that it needs to be appened as well.

Just append the new fields on VBKPF, the same as BKPF and it works fine.

The documentation of the badi says:

BADI_FDCB_SCREEN_BAS

Use

Subscreen enhancement in function group FDCB, basic data screen 010 for vendors, 510 for customers.

These screens are accessed in the Enjoy transactions for FI document entry or MM invoice receipt. In FI, for example, these are the transactions FB60, FB65, FB70, FB75 or for parking, FV60, FV65, FV70, FV75.

In MM, screen 010 is accessed for example in transaction MIRO.

Screen fields: The fields must be in structure INVFO.

If the values in the FI document are to be saved, the fields must also be in table BKPF or BSEG. If the values in the MM document are to be saved, the fields must be in the structure ACMM_VENDOR_COMP, the view RBKP, and table RBKP.

Best regards.

Edited by: Pablo Casamayor on Feb 21, 2011 2:56 PM

0 Kudos
363

Hi Pablo

Many thanks for your response. I had followed your post on BADI BADI_FDCB_SUBBAS04 addiing fields and have done the following


1.Implemented BADI_FDCB_SUBBAS04
2.Added my custom fields to append structures INVFO, VBKPF and BKPF

This i have done and when i create my invoice through FV60 (i have suppressed my fields to only show on FV60) i am able to view that document with my custom fields filled. However when i try and complete it the values are blanked out.

regards

Isaac Prince

0 Kudos
363

Hi,

maybe structure ACMM_VENDOR_COMP needs your z fields as well?.

Best regards.

Edited by: Pablo Casamayor on Feb 22, 2011 8:29 AM

0 Kudos
363

Hi Pablo

i have to tried that structure and also had a look at Note: 649628 but nothing has yet yielded correct results. I have one more trick up mu sleeve, deactivate the workflow and process and see what happens.

regards

Isaac Prince

prince_isaac
Active Participant
0 Kudos
363

Hi

I have enabled my fields to be active through transaction FB60 which does not have a workflow attached to it. Processing a vendor invoice through here will result in a correct posting with acustom fields having values. I can now safely conclude that the issue should lie within the methods of the FIPP object that is assigned here through workflow for FV60 specifically


PrelPostingDocument.Post   Post parked document or
PrelPostingDocument.FlagReleaseReset    Reset release flag 

Any pointers on this issue will be much appreciated.

regards

Isaac Prince