‎2008 Aug 05 8:15 AM
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.
‎2008 Aug 05 12:58 PM
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....
‎2008 Aug 15 9:44 AM
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 ...
‎2008 Dec 08 10:57 AM
Hi,
I think function module 'BUPA_GENERAL_CALLBACK' should do...
Regards,
Thimo