2006 Jul 29 6:33 PM
Hi all,
I'm using the function module BUPA_OUTBOUND_GET_MAIN to read all the data for a business partner. I supply the function module with the BPIDs which I want loaded but have noticed that I sometimes receive more than one record for each business partner.
The first record in the returning parameter has the BUS_EI_EXTERN-HEADER-OBJECT_TASK field set to "C" and the second record it is set to "U".
Why does this happen? I simply want one record with all the latest data.
Any help would be greatly appreciated.
Thanks and regard
Walter
2006 Aug 16 8:32 PM
Hello Walter
The field BUS_EI_EXTERN-HEADER-OBJECT_TASK has the underlying domain BU_EI_OBJ_TASK with the following domain values:
I Insert
U Update
M Modify
D Delete
C Current State
What I do not understand is why you are using this odd function module for reading all data of a a business partner.
Have a look at the BAPI explorer (transaction BAPI) and you will find under "Cross-Application Components" -> "SAP Business Partner" -> "Business Partner" the method "GETDETAIL" of this business object. This method is realised using BAPI BAPI_BUPA_CENTRAL_GETDETAIL which you should use to read business partner data.
In general, if you are dealing with a SAP business object you will almost always a corresponding "object" in the BAPI explorer. The methods of such objects are quite standardized, e.g.:
- create => BAPI_<business object>_CREATE
- change => BAPI_<business object>_CHANGE
- read data => BAPI_<business object>_GETDETAIL
Using BAPIs has some additional advantages:
- their interfaces are usually quite stable (even at different SAP releases)
- they are RFC-enabled (which may be an upcoming requirement in the future)
Regards
Uwe
Hi all,
I'm using the function module BUPA_OUTBOUND_GET_MAIN to read all the data for a business partner. I supply the function module with the BPIDs which I want loaded but have noticed that I sometimes receive more than one record for each business partner.
The first record in the returning parameter has the BUS_EI_EXTERN-HEADER-OBJECT_TASK field set to "C" and the second record it is set to "U".
Why does this happen? I simply want one record with all the latest data.
Any help would be greatly appreciated.
Thanks and regard
Walter
2006 Aug 16 8:32 PM
Hello Walter
The field BUS_EI_EXTERN-HEADER-OBJECT_TASK has the underlying domain BU_EI_OBJ_TASK with the following domain values:
I Insert
U Update
M Modify
D Delete
C Current State
What I do not understand is why you are using this odd function module for reading all data of a a business partner.
Have a look at the BAPI explorer (transaction BAPI) and you will find under "Cross-Application Components" -> "SAP Business Partner" -> "Business Partner" the method "GETDETAIL" of this business object. This method is realised using BAPI BAPI_BUPA_CENTRAL_GETDETAIL which you should use to read business partner data.
In general, if you are dealing with a SAP business object you will almost always a corresponding "object" in the BAPI explorer. The methods of such objects are quite standardized, e.g.:
- create => BAPI_<business object>_CREATE
- change => BAPI_<business object>_CHANGE
- read data => BAPI_<business object>_GETDETAIL
Using BAPIs has some additional advantages:
- their interfaces are usually quite stable (even at different SAP releases)
- they are RFC-enabled (which may be an upcoming requirement in the future)
Regards
Uwe
2007 Mar 26 8:18 AM
Hi Uwe,
Could you please give more detail about meaning of each value of BU_EI_OBJ_TASK as they are:
I Insert
U Update
M Modify
D Delete
C Current State
I'm very interesting in it because currently I'm working on it.
Thanks a lot for you help!
Best regards,
Long