Skip to Content

Create vendor (FLVN01) with purchasing view from BP in Z-program in S4 HANA

Hello, colleagues! There is a problem during creation a vendor for a business partner. I can do this with BP transaction, but not by my own program. There is already an existing business partner with basic roles, I need to create for him a vendor in the role of FLVN01. The vendor's number differs from the BP number.

What I do:

1) I add a role using FM BAPI_BUPA_ROLE_ADD_2

2) I create a vendor with the method vmd_ei_api => maintain_bapi

3) I make the commit.

But at the commit there is a dump (CX_FSBP_PARTNER_INCONSISTENT), due to the fact that the vendor's number is not related to the existing BP.

(Error: 'E CVIV_UI 006 Required entry field external vendor number is empty')

The question is how do I configure this assign ??? And anyway, are I on the right way???

P.S. When debugging the standard, I found using CVI_STRATEGY_BP_VENDOR-> IF_MDS_CTRL_STRATEGY_IMPL ~ PROCESS, in which this link is held, but how exactly, it is not clear.

Thank you and best regards.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers