Application Development and Automation 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: 
Read only

Put dinamically image in SMARTFORM from parameter.

Former Member
0 Likes
1,096

Hi, the problem is:

i must print a page (with SMARTFORM) in this mode:

From a parameter (from a selection-screen) i select a dependent (for example from TABLE PA0001) and then i put his photo on page. How i could do it?

Thanks for answers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
990

Hi,

If the photo images are already stored in the SAP repository, i.e Using SE78(Graphics Management)first assign the image name to the variable in the print program. Then we use the variable in the graphics node(&<<b><i>logo variable Name</i></b>>&).

or

The following code is written in the Smartform(Event INITIALIZATION):

can check the photo images storing table. then retrieve the image name from that table and using it in the Graphics window.

Hope this will help you.

- Selvapandian Arunachalam

7 REPLIES 7
Read only

Former Member
0 Likes
990

hii

check this func modules

<b>HR_IMAGE_*

HRWPC_RFC_EP_READ_PHOTO_URI

HR_ESS_EMPLOYEE_PHOTO_CHECK

HR_ESS_EMPLOYEE_PHOTO_INIT

HR_ESS_EMPLOYEE_PHOTO_RESET

HR_ESS_EMPLOYEE_PHOTO_SAVE

HR_ESS_EMPLOYEE_PHOTO_SHOW

HR_ESS_EMPLOYEE_PHOTO_TAKE</b>

transfer the photo from (Tcode OAAD) to sapscript graphics (SE78).

regards

Naresh

Regards

Naresh

Read only

0 Likes
990

The problem is how to transfer from report to the SMARTFORM. Thanks.

Message was edited by: Avalor

Read only

Former Member
0 Likes
991

Hi,

If the photo images are already stored in the SAP repository, i.e Using SE78(Graphics Management)first assign the image name to the variable in the print program. Then we use the variable in the graphics node(&<<b><i>logo variable Name</i></b>>&).

or

The following code is written in the Smartform(Event INITIALIZATION):

can check the photo images storing table. then retrieve the image name from that table and using it in the Graphics window.

Hope this will help you.

- Selvapandian Arunachalam

Read only

0 Likes
990

Where in the GRAPHIC NODE? I cannot create nodes under GRAPHICS in SMARTFORM.

Read only

0 Likes
990

In Graphics window,

u can pass the &<b><i>logo variable name</i></b>& to Name. it is in the General attributes.

- Selvapandian Arunachalam

Read only

Former Member
0 Likes
990

Check this Demo program.

I think this will help u .

DEMO_PICTURE_CONTROL**********Picture Control Demo

RSDEMO_PICTURE_CONTROL************Program

REgards

PRaneeth

Read only

Former Member
0 Likes
990

Hi,

read this message.

I asked something like this for sapscript.

Kind regards

Jens