cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript

fabio_bellocchio
Participant
0 Kudos

Hi experts,

sorry, I am very begginer at SapScript.

The client has asked for changes on a standard Sapscript.

(Including adding a new logo, changing texts and layout)

I am catching up on how to build/change forms using SE71.

However, I have many questions about how to implement this, as everything is SAP Standard, and the original programs (RFKORD50 and RFKORD10) are really big and complex.

- Do I have to create a new Sapscript?

- Is a new "caller" program required, to call the new Sapscript? Should I copy the original one?

- How to change the Standard application to call the new Sapscript (or the new "caller" program)?

I would appreciate any suggestion on where I could start working from.

Sapscripts:

F140_DOCU_EXC_02 Customer AR Invoice

F140_CUS_STAT_02 Customer AR Statement

Programs:

RFKORD50

RFKORD10

Application:

Transaction for output: F.64 (MAINTAINING CORRESPONDENCE REQUESTS)

Please, can anyone give a piece of advice?

Thank you,

Fabio

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

see. first go to NACE.

check the output . how it is declared.

if you want to go ahead with a new script and new routine you need to create another outout type for this. and for this new output type you can havea z script which can be a copy of the standard one with your changse. and the processing logic as required by you.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

As suggested you can create a copy of the standard print program and the layout set in a zprogram and create a new Z output type.

In the script it is very simple to make the changes....

After you open the script in se71 click on page windows....

Choose any window...

Click on Utilities --> Page layout where it will open another window with the text as print...

Enter the output device as "LOCL" and click Print preview....

A screen comes where a particular window will be highlighted and that is the one that you have selected on the Page Windows screen....

Now you have located the place to put any logo or text changes... and to code in the located place,

click on 'Text elements' icon or 'F9' where you code the changes.....

Thanks,

Sindhu

fabio_bellocchio
Participant
0 Kudos

Thank you all. It's a good starting point!

Now, sorry for the silly question but... is it possible to have an image (logo) in the sapscript code below:

INCLUDE &T001G-TXTKO& OBJECT TEXT ID ADRS LANGUAGE &T001-SPRAS&

This is the HEADER Window content (of the standard F140_CUS_STAT_02 form), but in the printing, the logo of the company comes up, and it should be in the HEADER window.

Thank you so much

Fabio

former_member585865
Contributor
0 Kudos

Hi Fabio,

just comment that one,and bring your logo,see below example

BITMAP ' LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 100

fabio_bellocchio
Participant
0 Kudos

Thanks all.

I created a new form, and changed the reference of the driver program (SPRO) to this new form.

Cheers.

Former Member
0 Kudos

Hi,

Hi,

No need to create new one.

For Copying a Standard Script folow following ,

Go to SE71 and give the name of the form in Utilities -> Copy from Client

It leads to copy forms between Clients.

forms name : which you want to copy ( already existed )

source client: default 000

Target Form : give the name of the form ( you want to create ).

Execute.

goto SE71 Enter form name

language ' DE '

Press change

utilities -> Convert Original Language

in To Original language 'EN'. or ' the language what you want '.

Now the form has been copied from the source client to your client in the language what you want.

you can open it now in SE71 and you can also edit the script.