11-24-2009 10:31 AM
hi All,
My Problem is as follows..
Xi interface send a file which will contain data to create equipments. this will also contain the user name field . The equipment created/changed by should be with this user ID.
I create set of Equipments(Through BAPI) and update the stock information thorugh BDC using IE02. my problem is i could create the Equipment with the user id given in the file. but when i do stock updation through IE02 it takes sy-uname. i tried to pouplate sy-uname with the name given in the file jus before call transaction IE02. it is not working.
I tried using BAPI BAPI_EQUI_CHANGE to change the changed by field but no luck.
Any pointers on how to resolve this would be highly appreciated.
11-24-2009 10:38 AM
11-24-2009 11:09 AM
sy-uname = 'DUARAN'.
CALL TRANSACTION 'IE02' USING lt_bdcdata
OPTIONS FROM lw_opt
MESSAGES INTO lt_bdc_errors.
please let me know if you want more info..
11-24-2009 11:29 AM
Hi Sreekanth,
The problem here is that, it is not recommended to change the system fields. Since you are changing it, it is again getting filled with the default sy-uname value.
I think you will have to search for user exits in the program and try changing it there.