cancel
Showing results for 
Search instead for 
Did you mean: 

copy graphics that has been store in STXBITMAPS

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

FredericGirod
Active Contributor
0 Kudos

Hi,

maybe you could do this with OAOR

Rgd

Frédéric

Former Member
0 Kudos

how to use OAOR

athavanraja
Active Contributor
0 Kudos

i am not sure whether it gets stored in BDS (OAOR). if yes you can use FM BDS_BUSINESSDOCUMENT_COPY to copy .

Regards

Raja

athavanraja
Active Contributor
0 Kudos

the class name to use with this

FM will be 'GRAPHICS' class type 'OT' and object key will be <TDNAME><TDID><<TDBTYPE>

Regards

Raja

Former Member
0 Kudos

GRAPHICS doesnt exist in the class

athavanraja
Active Contributor
0 Kudos

its not a business object. its type OT (others).

Regards

Raja

Former Member
0 Kudos

Hi Raja,

in the class name's field should fill in graphics right? but graphics doesnt exist in the system .

i know in class type shud fill in 'OT'.

suresh_datti
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

hi Suresh,

Thanks for your help. it works.

Former Member
0 Kudos

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.

fav79
Explorer
0 Kudos

The best answer of all! I used a code inside a LSMW to copy a BMAP to another and worked fine. Thanks!

Answers (2)

Answers (2)

fav79
Explorer
0 Kudos

The best answer of all! I used a code inside a LSMW to copy a BMAP to another and worked fine. Thanks!

vinod_gunaware2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

I know about se78 and its functionality..just dont feel like using it as i thought there might be another function just to change the graphics' name that have been stored in the STXBITMAPS.

My task it to rename whatever signature's bmp that has been uploaded to another names.