ā2024 Apr 15 2:32 PM
Is there a standard BAPI function that I can call to retrieve fixed values of a domain? For example, our application uses the .NET Connector XBP interface and I can see in the documentation that the "BAPIXMRECIP" structure that has a "REC_TYPE" where the API document says the following are valid values:
B ā SAP user name
O ā SAPoffice user
P ā personal distribution list
C ā shared distribution list
F ā fax number
U ā internet mail
Is there a BAPI function I can call to retrieve those values? This would allow me to get those values and then populate them in a drop down control in our application when calling SAP. I know I can see them from SE11 and looking at the "Value Range" tab but I want to retrieve them programmatically.
Thanks,
Phil
ā2024 Apr 15 2:57 PM
Hello @phil_s
You can use read domains fixed values with either DD_DOMVALUES_GET or DDUT_DOMVALUES_GET functions. The former is more offical.
Best regards
Dominik Tylczynski
ā2024 Apr 15 3:23 PM
Hi Dominik,
Thank you for that suggestion. Do you know if those are available in all instances of S3 & S4/HANA?
Thanks,
Phil
ā2024 Apr 16 7:53 AM
ā2024 Apr 15 6:25 PM - edited ā2024 Apr 16 3:47 PM
BAPI is not mandatory, you just need any RFC-enabled function module (DD_DOMVALUES_GET and DDUT_DOMVALUES_GET are not RFC-enabled in my 7.40 system), so it has been already answered, you can find it by searching from your Web search engine:
"rfc" "domain" "values" site:sap.com
EDIT: I see other people continue searching, so what you can find:
DD_DOMA_GET.
ā2024 Apr 16 9:16 AM - edited ā2024 Apr 16 11:28 AM
I think what you are looking for are the F4-Help Values. There are remote-enabled BAPIs, which can be used here:
BAPI_HELPVALUES_GET
BAPI_HELPVALUES_GET_SEARCHHELP
Though I am not sure, whether they work for any kind of structure/input fields, or only for BAPI input fields.
Edit: another idea is to use DDIF_DOMA_GET. This function module is not remote enabled, so you would have to create a wrapper (like Z_DDIF_DOMA_GET) and remote-enable it, but it returns exactly the values you need: the "Value Range" of the domain SO_ESCAPE.
ā2024 Apr 16 2:17 PM
ā2024 Apr 16 9:37 AM