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

How to implement BP additional checks ?

Former Member
0 Likes
3,513

It's necessary for me to implement checks for several BP fields BEFORE SAVE data, and show error message for user.

Where can I find common samples or description of such extensions?

Solved problem:

I've solved one problem for TAX codes check by using BDT - BUS7 transaction - add custom FM for DCHCK event.

SAP function BUP_BUPA_TAX_GET works well and returns

values for TAX codes , so I can check them and send ERROR

by Using BUS_MESSAGE_STORE function.

Question:

I need to check several other Filed Values from other Screens of BP transaction - for Example compare "BP Type" field from Control subscreen and "Grouping Field" from main Screen etc.

What SAP FM (or etc) I must use to obtain Field values in Custom FM ? Because of other modules like BUP_BUPA_BUT000_GET or BUP_BUPA_BUT100_GET

or BUP_BUPA_MEMORY_GET_ALL return Empty TABLES for new BP.

3 REPLIES 3
Read only

Former Member
0 Likes
1,821

Hi Penzar,

I think you want to read the values that are entered while creating the BP. If that is the case, then the values will be stored in memory and you can read these values from memory

using FM 'BUP_BUPA_MEMORY_GET' for a BP.

Check this FM, If it doesn't works, let us know...

if you are looking for something else..let us know....

all the best....

Read only

0 Likes
1,821

Hi,

BUP_BUPA_MEMORY_GET - doesn't work.

For example, for using function you must know PARTNER_ID.

Example of function call:

CALL FUNCTION 'BUP_BUPA_MEMORY_GET'

EXPORTING

I_PARTNER = l_but000-partner

But, What will you do if Partner is New One?

Ok, I've create partner before and call function .

I've received NO_DATA_FOUND exception ...

Read only

0 Likes
1,821

Hi,

I think function module 'BUPA_GENERAL_CALLBACK' should do...

Regards,

Thimo