on 12-30-2020 6:44 PM
We have a function module (call it Function Module A) that we are packaging with the AddOn Assembly Kit, so that it can be imported into a System via the SAINT Transaction.
One of our function modules includes several variables of TYPEs from the namespace /gsd/, like such:
DATA: y_event_ll TYPE /gsd/oc_event_interface_data,
y_events_lt TYPE TABLE OF /gsd/oc_event_interface_data,
y_ndoc_lt TYPE TABLE OF ndoc,
y_key_lf TYPE rn2doc_key,
y_xml_lf TYPE string,
Not all of our customers have access to this namespace. Of course, we could simply build two separate add-ons:
But, we are wondering whether there is any solution that would enable us to build only one package. We envision this in one of two potentially possible ways:
Are either of these solutions feasible - and if so, how? Alternatively, are there any other sensible solutions such that we can build only AddOn for the two possible target system landscapes (one landscape that has /gsd/, and one that doesn't)?
Hi Christopher! Not sure if you're still awaiting an answer (it's been a while) but to me it seems you'd be better off creating your own types within the add-on package / namespace.
For a long time, we've heard recommendations to make use of existing data types and avoid creating new ones. Not sure anyone could explain with confidence why but it's something that ABAPers were told.
However, more recently ("recently" in SAP terms can be a decade 🙂 ), the word spread out that this is actually not always a good idea. For example, it makes sense when, say, I build a report that shows material number. I know it's MATNR and even if SAP changes it, I would want my program to go along. But in other cases, we should not be using the types that we cannot control.
Many customers actually ran into this issue during ECC to S/4 migrations. Well-meaning ABAPers reused types from some obscure modules but SAP changed them (some were removed altogether from S/4) and now all that code needs to be updated.
An add-on should be self-contained by definition. If you use your own definition that is part of your package then if a customer decides to remove your add-on, they can easily remove the package and everything will be gone with it. Since your add-on can be used with or without GSD part, I'm guessing it's not mandatory to use its definition either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.