Hi there,
Let's say we have two BAPI/RFC operation:
Z_PARTNER_LIST - reads the list of available business partners from backend SAP.
Z_PARTNER_Create - creates a new business partner in backend SAP.
I've created a MBO with the schema based on Z_PARTNER_LIST. So far so good.
I've added a "Create" operation that is based on Z_PARTNER_Create BAPI
All output fields of "create" operation are mapped to the MBO fields.(including the primary key field)
If I execute the "Create" operation new business partner gets created. Everything looks good except that I cannot get the output values back.
For Instance, I want to get a new business Partner ID after a call.
The ID itself is generated on the SAP side and sent as a result of BAPI operation.
This is what I am doing on the Client side(App Side):
BPShortInfo is MBO.
var item = new BPShortInfo();
item.LastName = "sup test";
item.FirstName = "SUP test";
item.Create();
item.SubmitPending();
BusinessPartnersDataDB.Synchronize();
I expected that after the Synchronize I would get the generated ID from SAP.
But it's not the case. It's empty. I would appreciate any ideas.
and the second thing:
Let's say that the BAPi operation that is used for "Create" operation has in addition to all output data one output parameter(e.g. STATUS) that doesn't exist in MBO because the BAPI that was used to create a MBO doesn't have this field either.
STATUS says us ,whether the operation was successful or not, by setting it to -1 or 0.
I cannot map this field to MBO, because I don't have a field for it. I can add it to MBO... and then map it.
In general this field makes no sense to the MBO itself it is only valid for the "create" operation.
How is this supposed to be handled?
Thanks in advance.