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

Script

Former Member
0 Likes
376

Hi all,

I copied a Standard Script in that i want to use only the layout from that script for header data ,for that case i have to copy all the scipt or is there any way to copy only the header layout. Also tell me how to create a logo in a script

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
355

Hi

You have to Copy the Entire Form. And then Remove the unnecessary elements.

To Add a logo as Bitmap.

Tcode SE78. import the Bitmap with a Name.

To insert the Logo in Layout set .

Open the Text elements of window.

Menu path: Insert->Graphic -> Stored on Document Server

Here you select the Graphic from F4 Help.

This will add the BITMAT command in the text elements.

<b>Reward if Helpful</b>

3 REPLIES 3
Read only

varma_narayana
Active Contributor
0 Likes
356

Hi

You have to Copy the Entire Form. And then Remove the unnecessary elements.

To Add a logo as Bitmap.

Tcode SE78. import the Bitmap with a Name.

To insert the Logo in Layout set .

Open the Text elements of window.

Menu path: Insert->Graphic -> Stored on Document Server

Here you select the Graphic from F4 Help.

This will add the BITMAT command in the text elements.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
355

1. First save the file as BMP

2. Open the BMP file in IMaging (Goto -> Programs -> Accessories ->

Imaging) and

make it Zoom as 100% and save as *.TIFF

3. Open SE38 and execute program RSTXLDMC

4. Give your TIFF file path name

5. Select Bcol (for Color)

6. TEXT ID will be ZHEX-MACRO-*.

7. Inplace of * write your own logo name (ZCOMPANYLOGO)

8. Execute the program

9. Now Goto SE71 create your ZFORM

10. Create logo window

11. Goto text element of logo window

reward points to all helpful answers

kiran.M

Message was edited by:

KIRAN KUMAR

Read only

Former Member
0 Likes
355

in your case there is no option except to copy entire layout.

<b>procedure to copy layout</b>

There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.

I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...

To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.

You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.

Ex: Go to SE71,

on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing

Form name:

Source Clinet:

Target Form:

give Form name as usedefined form name EX: ZFORM1

Source client as 000 and

Target form as MEDRUCK.

execute.

Now, the standard from MEDRUCK is copyied to your form ZFORM1.

NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.

Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.

Go to NACE Transaction.

on Applications select EF for purchase order and click Output types button on application tool bar.

now select NEU as output types dobule click on Processing Routines.

now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.

go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .

you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms.

regards,

srinivas

<b>*reward for useful answers*</b>