怎样复制sap一个用户名下的收藏夹到另一个用户名下的收藏夹内 5
2个回答
展开全部
有2个方法,看你自己需要了,别忘了给分哦!
方法一、在菜单下载、上传,点击菜单栏-收藏夹-选择下载到PC---然后再上传到你另一个用户就可以了。
方法二、程序实现
REPORT z_barry_test .
DATA: it_buffc TYPE STANDARD TABLE OF smen_buffc ,
wa_buffc TYPE smen_buffc ,
it_buffi TYPE STANDARD TABLE OF smen_buffi ,
wa_buffi TYPE smen_buffi .
PARAMETERS: uname1 TYPE sy-uname DEFAULT sy-uname .
SELECT-OPTIONS: s_name FOR sy-uname NO INTERVALS .
START-OF-SELECTION.
SELECT * INTO TABLE it_buffc FROM smen_buffc WHERE uname = uname1 .
SELECT * INTO TABLE it_buffi FROM smen_buffi WHERE uname = uname1.
LOOP AT s_name .
DELETE FROM smen_buffc WHERE uname = s_name-low.
READ TABLE it_buffc INTO wa_buffc INDEX 1.
wa_buffc-uname = s_name-low.
MODIFY it_buffc FROM wa_buffc TRANSPORTING uname WHERE uname <> '' .
MODIFY smen_buffc FROM TABLE it_buffc .
DELETE FROM smen_buffi WHERE uname = s_name-low.
READ TABLE it_buffi INTO wa_buffi INDEX 1.
wa_buffi-uname = s_name-low.
MODIFY it_buffi FROM wa_buffi TRANSPORTING uname WHERE uname <> '' .
MODIFY smen_buffi FROM TABLE it_buffi .
WRITE : / 'Change user:', s_name-low, '... finished'.
方法一、在菜单下载、上传,点击菜单栏-收藏夹-选择下载到PC---然后再上传到你另一个用户就可以了。
方法二、程序实现
REPORT z_barry_test .
DATA: it_buffc TYPE STANDARD TABLE OF smen_buffc ,
wa_buffc TYPE smen_buffc ,
it_buffi TYPE STANDARD TABLE OF smen_buffi ,
wa_buffi TYPE smen_buffi .
PARAMETERS: uname1 TYPE sy-uname DEFAULT sy-uname .
SELECT-OPTIONS: s_name FOR sy-uname NO INTERVALS .
START-OF-SELECTION.
SELECT * INTO TABLE it_buffc FROM smen_buffc WHERE uname = uname1 .
SELECT * INTO TABLE it_buffi FROM smen_buffi WHERE uname = uname1.
LOOP AT s_name .
DELETE FROM smen_buffc WHERE uname = s_name-low.
READ TABLE it_buffc INTO wa_buffc INDEX 1.
wa_buffc-uname = s_name-low.
MODIFY it_buffc FROM wa_buffc TRANSPORTING uname WHERE uname <> '' .
MODIFY smen_buffc FROM TABLE it_buffc .
DELETE FROM smen_buffi WHERE uname = s_name-low.
READ TABLE it_buffi INTO wa_buffi INDEX 1.
wa_buffi-uname = s_name-low.
MODIFY it_buffi FROM wa_buffi TRANSPORTING uname WHERE uname <> '' .
MODIFY smen_buffi FROM TABLE it_buffi .
WRITE : / 'Change user:', s_name-low, '... finished'.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询