Author |
Message
|
ghoshly |
Posted: Mon Jun 06, 2022 7:02 am Post subject: Blank fields in SAP BAPI Return object |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hello,
I am using IIB v10.0.0.20 using Adapter Implementation-Version: 7.5.0.5_IF32 in AIX 7.2 and able to execute SAP BAPI synchronously. I am able to expose the functionality so that 3rd party can execute ESB API and get the business objects returned by SAP.
SAP Adapter is not returning Blank or Null fields in the result set, however the 3rd party wants to get all the possible fields even if it has blank or Null values.
Is there a way I can use any SAP adapter property or SAP Request node property or any environment variable to tell SAP Adapter, to return all fields in the result set, even if it has blank values?
Is my query / request is clear to understand? Thanks for your kind response. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 06, 2022 3:10 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
When you initialize the SAP Adapter against the BAPI it creates in its repository the description of the interface. you should look at using the connection and use java and the SAP jars to extract that interface information. You could probably then create a schema.
On the other hand doesn't the adapter create a schema in IIB / ACE for the interface call? Why is the op not using that schema?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ghoshly |
Posted: Mon Jun 06, 2022 7:20 pm Post subject: SAP Adapter creates schema |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hello,
SAP Adapter indeed creates the schema when the Adapter connection is created and we can get any update to the BAPI structure via Iterative Discovery.
If we have to manually create each and every field, it would be cumbersome for those BAPI where hundreds of fields are returned and occurrences as per number of records returned. Instead of that, I am looking for some generic solution which can be applied for all BAPI execution for an given adapter call. |
|
Back to top |
|
 |
abhi_thri |
Posted: Tue Jun 07, 2022 3:00 am Post subject: Re: Blank fields in SAP BAPI Return object |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
ghoshly wrote: |
Hello,
SAP Adapter is not returning Blank or Null fields in the result set, however the 3rd party wants to get all the possible fields even if it has blank or Null values.
|
hi...assuming all those blank/null fields are optional ones why does the third party insist on having the fields populated? Just ask them to stick to the message contract...
With regards to whether it is possible for the SAP adapter to return everything, may be worth raising it with IBM via PMR or so to see whether there is any setting which could achieve this. |
|
Back to top |
|
 |
ghoshly |
Posted: Mon Jun 13, 2022 10:41 am Post subject: |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Couldn't get enough support from IBM as IIB version has reached EOS.
We have to replicate the issue in ACE v12, in order to get help from IBM. |
|
Back to top |
|
 |
|