on 02-27-2006 8:56 AM
dear experts,
how to copy the existing graphics' name into another one without having the real picture stores in the hard disk..is there any function available to copy this thing
Hi,
maybe you could do this with OAOR
Rgd
Frédéric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ester,
I can understand your concern about using SE78 for mere change of name.. I don't think there is a function module that does it.. Though the document itself is stored in BDS, it is linked to the BITMAP (TDNAME) in STXBITMAPS via the DOCID. So, there is no need to change anything on the BDS. One option could be to change the name via a custom program that updates the STXBITMAPS Table. here is piece of code.. just in case..
update stxbitmaps set tdname = 'ZZDA' "newname
where tdobject = 'GRAPHICS'
and tdname = 'ZZTEST' "oldname
and tdid = 'BMAP'
and tdbtype = 'BCOL'.
if sy-subrc eq 0.
* name changed.
endif.
I've made a small routine....
REPORT ZZ_BB_STXBITMAPS .
Tables: stxbitmaps.
DATA: wa like stxbitmaps.
selection-screen skip.
parameters: p_co radiobutton group g01,
p_ch radiobutton group g01.
selection-screen skip.
parameters: old like stxbitmaps-tdname default 'LOGO ARBEITSAMT',
type like stxbitmaps-tdbtype default 'BMON'.
selection-screen skip.
parameters: new like stxbitmaps-tdname default 'LOGO ARBEITSAMT2'.
if p_ch = 'X'.
*update stxbitmaps set tdname = 'ZZDA' "newname
update stxbitmaps set tdname = new "newname
where tdobject = 'GRAPHICS'
and tdname = 'ZZTEST' "oldname
and tdname = old "oldname
and tdid = 'BMAP'
and tdbtype = 'BCOL'.
and tdbtype = type.
if sy-subrc eq 0.
name changed.
endif.
else.
select single * from stxbitmaps
where tdobject = 'GRAPHICS'
and tdname = 'ZZTEST' "oldname
and tdname = old "oldname
and tdid = 'BMAP'
and tdbtype = 'BCOL'.
and tdbtype = type.
if sy-subrc = 0.
move-corresponding stxbitmaps to wa.
wa-tdname = new.
INSERT INTO stxbitmaps VALUES wa.
endif.
endif.
The best answer of all! I used a code inside a LSMW to copy a BMAP to another and worked fine. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use SE78 use for upload and download graphics.
Use transaction SE78 to inmport graphics to SAP.
In the form painter, you can either include directly to the form using menu Edit->Graphic->Create or using the INCLUDE statement in a window.
To use an INCLUDE stanment, goto into the woindow script editor and use menu Include->Graphic. The include can look like this for a bitmap:
/: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
regard
vinod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.