cancel
Showing results for 
Search instead for 
Did you mean: 

Need to update the status 'blocked' in BP tcode pragmatically

priyank_dev2
Participant
0 Kudos

Hello,

We have a requirement where few vendors needs to be blocked while payment run.I need to develop an application where the users will upload the list of vendors and those corresponding vendors in BP tcode(status tab) the 'central block' checkbox should be checked/updated pragmatically.

I tired to use the below FM:

BAPI_BUPA_STATUS_READ and BAPI_BUPA_STATUS_ADD.But it did not serve any purpose.The problem is the BAPI_BUPA_STATUS_READ is not returning any values(even after check box is checked) so that the same parameters can be pass to the BAPI_BUPA_STATUS_ADD.

Regards,

PD

Accepted Solutions (1)

Accepted Solutions (1)

Domi
Contributor
0 Kudos

Hi

The field 'Central Block' (Tx BP Tab Status) is stored in table BUT000

To read the value use function module BAPI_BUPA_CENTRAL_GETDETAIL - exporting parameter CENTRALDATA.

You can change the field with function module BAPI_BUPA_CENTRAL_CHANGE - importing parameter CENTRALDATA.

kr

Domi

priyank_dev2
Participant
0 Kudos

Hi Domi,

I already tried checking centraldata but there is no parameter to set central blocking/unblocking .

Could you please add some more inputs here.

Regards

PD

priyank_dev2
Participant
0 Kudos

Hi Domi,

sorry there was slight confusion.Let me check it and let you know.

Regards,

Priyank Patil

Answers (2)

Answers (2)

priyank_dev2
Participant
0 Kudos

Hi All,

I used BAPI_BUPA_CENTRAL_CHANGE and it is working fine.

Regards,

PD

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

You can look at FM

VENDOR_UPDATE

However, you must have CVI active in the direction Vendor- BP for this to work in your S/4HANA System

regards

Sanil