on 06-02-2009 12:44 PM
Hi All,
I am using FM: API_RE_AO_CHANGE to run REFX Interface with Geographic Info. System (GIS) using XI. The user in GIS creating/update/delete Parcel and trigger the interface program to create Architectural Object in REFX. XI is the medium to transfer the attributes in order to create AO in REFX.
When the AO is created, the system pick-up the BATCH-NAME in the following fields in VIBDAO:
1. Entered by = BATCH NAME [VIBDAO-RERF]
2. Last Change by = BATCH NAME [VIBDAO-RBEAR]
3. Person Responsible = BATCH NAME [VIBDAO-RESPONSIBLE]
The question is how I am going to overwrite those values (1 to 3) with the username from GIS? The interface is sending the username from GIS. Assuming the inteface sending "ROBERT" as the user name and this is exist in SAP, the following entries are expected:
1. Entered by = ROBERT
2. Last Change by = ROBERT
3. Person Responsible = ROBERT
Is there any field need to be marked on the FM:API_RE_AO_CHANGE ?
Thanks in advance.
Regards.
Shamshul Akmal
Hi,
I am afraid it is not possible to change fields "entered by" and "last change by" with BAPI. Such fields are set automatically when a data set is created or changed with the user data of the person who does these changes. It is also not possible to change such fields in the application afterwards and so you can't do it with BAPI.
The "responsible" field is changeable in the application and therefore also with BAPI.
Hope this helps.
Regards, Franz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shamshul,
Please check API_RE_AO_CHANGE, you can find all your required fields.
1. Goto SE37
2. Give API_RE_AO_CHANGE Functional Module
3. Look for IS_ARCH_OBJECT parameter name and its Assciated Type BAPI_RE_ARCH_OBJECT_INT
4. Double click on BAPI_RE_ARCH_OBJECT_INT
5. you will finding all the required field under this BAPI
RERF RERF CHAR 12 0 Entered by
DERF DERF DATS 8 0 First Entered on
TERF TERF TIMS 6 0 Time of Initial Entry
REHER REHER CHAR 10 0 Source of initial entry
RBEAR RBEAR CHAR 12 0 Employee ID
DBEAR DBEAR DATS 8 0 Last Edited on
TBEAR TBEAR TIMS 6 0 Last Edited at
RBHER RBHER CHAR 10 0 Editing Source
RESPONSIBLE RECARESPONSIBLE CHAR 12 0 Pe
Thanks
Veman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Viman,
Thanks for the reply. I did used the FM: API_RE_AO_CHANGE. All the required fields had been entered for structure BAPI_RE_ARCH_OBJECT_INT. Here are the steps:
1. API_RE_AO_CHANGE and update
i. RERF
ii. RBEAR
iii. RESPONSIBLE
2. BAPI_TRANSACTION_COMMIT
Only item iii.RESPONSIBLE got updated. Is there any other field/entry/check that I missed out? It seems that only RESPONSIBLE is allowed for "checked".
Appreciate your opinion.
Thanks & regards.
SHAMSHUL
Hi Shamshul,
If i look at the code, User data fields are not updated, its only updating person responsible field and etc..
Its btter if you toch base with your basis team, it might be related to authrization problem.
Please see the bold code
IF is_arch_object_x IS NOT INITIAL.
PERFORM fill_busobj_chg
USING lo_busobj
is_arch_object
is_arch_object_x
lo_msglist_temp.
ENDIF.
*=======================================================================
FORM fill_busobj_chg
*=======================================================================
USING io_busobj TYPE REF TO if_rebd_arch_object
is_busobj TYPE bapi_re_arch_object_int
is_busobj_x TYPE bapi_re_arch_object_intx
io_msglist TYPE REF TO if_reca_message_list. "#EC *
BODY
AO-only data*
mac_api_change_valid_period validfrom validto.*
mac_api_change_field xao.*
mac_api_change_field doorplt.*
mac_api_change_field measstrc.*
mac_api_change_field usagecommon.*
mac_api_change_field aofunction.*
mac_api_change_field partseparator.*
mac_api_change_authgrp.
mac_api_change_field responsible. *
set data reflecting business entity data
mac_api_change_field sinstbez.
mac_api_change_field slagewe.
mac_api_change_field sobjlage.
mac_api_change_field sverkehr.
Edited by: veman goli on Jun 8, 2009 1:08 PM
Hi Guys,
Anybody could help on this?
Thanks.
SHAMSHUL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.