Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display ID Picture in Smartforms

Former Member
0 Kudos

Hi! Would anyone know how can I get data from an ID archive storage in a server and display the picture in the form? What types of picture (e.g. jpg, bmp, tif) can be displayed by forms? Is there anyone familiar with standard texts? How do they work? Thanks for any reply!

4 REPLIES 4

Former Member
0 Kudos

Bueno,

The pcitures you can show in the SMART Form, will have uploaded via SE78 transaction. SMART forms cannot get the picture from Archive.

Standard Texts - These are big paragraph texts that can be maintained in SO10 transaction. If you want to display these in form, create a text element, and change the type to INCLUDE TEXT and mention the parameters and the entire text will be printed.

Regards,

Ravi

Note : Please mark all the helpful answers

0 Kudos

I have an existing sapscript program displaying image in .TIF format using standard texts in HEX command. Is it possible to display .JPG image?

Tried using INCLUDE TEXT with existing standard text (from sapscript program) but the image did not display in smartform.

Former Member
0 Kudos

HI

GOOD

GO THROUGH THIS LINK FOR THE DETAILS ABOUT THE STANDARD TEXT

http://www.sappoint.com/abap/sscript.pdf

DEMO PROGRAM

-


REPORT Z_Sapscript_program_1.

TABLES: BSIK, LFA1.

PARAMETERS : ACCT_NO LIKE BSIK-HKONT DEFAULT '200501',

CMP_CODE LIKE BSIK-BUKRS DEFAULT '0001',

YEAR LIKE BSIK-GJAHR DEFAULT 1994.

DATA: SYM1(35),

SYM2(35),

SYM3(36).

DATA: BEGIN OF ITAB OCCURS 100,

NAME1 LIKE LFA1-NAME1,

AMOUNT LIKE BSIK-DMBTR,

LIFNR LIKE LFA1-LIFNR.

DATA: END OF ITAB.

START-OF-SELECTION.

SELECT * FROM BSIK WHERE HKONT = ACCT_NO "'0000200501'

AND GJAHR = YEAR "'1994'

AND BUKRS = CMP_CODE. "'0001'

MOVE-CORRESPONDING BSIK TO ITAB.

SELECT * FROM LFA1 WHERE LIFNR = BSIK-LIFNR.

MOVE-CORRESPONDING LFA1 TO ITAB.

APPEND ITAB.

ENDSELECT.

WRITE : / ITAB-AMOUNT , ITAB-NAME1.

ENDSELECT.

END-OF-SELECTION. "EXIT.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

APPLICATION = 'TX'

ARCHIVE_INDEX = ' '

ARCHIVE_PARAMS = ' '

DEVICE = 'SCREEN'

DIALOG = 'X'

FORM = 'ZAMVENTRAN'

LANGUAGE = SY-LANGU

OPTIONS = ' '

IMPORTING

LANGUAGE = SY-LANGU

EXCEPTIONS

CANCELED = 01

DEVICE = 02

FORM = 03

OPTIONS = 04

UNCLOSED = 05.

LOOP AT ITAB.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM1&'

VALUE = ITAB-NAME1.

  • VALUE_LENGTH = E03.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM2&'

VALUE = CMP_CODE.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM3&'

VALUE = YEAR.

CALL FUNCTION 'START_FORM'

EXPORTING

FORM = 'ZAMVENTRAN'

LANGUAGE = SY-LANGU

STARTPAGE = 'PAGE1'

IMPORTING

LANGUAGE = SY-LANGU

EXCEPTIONS

FORM = 01

FORMAT = 02

UNENDED = 03

UNOPENED = 04

UNUSED = 05.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

  • ELEMENT = 'T10'

  • TYPE = E03

WINDOW = 'MAIN'.

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

COMMAND = 'NEW-PAGE'

EXCEPTIONS

UNOPENED = 01

UNSTARTED = 02.

CALL FUNCTION 'END_FORM'.

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

THANKS

MRUTYUN

former_member184569
Active Contributor