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

two clients in the same server--Script??

kiran_k8
Active Contributor
0 Likes
2,040

Hi Folks,

1.I have two clients in the same server say 100(used for dev) 120(used only for testing).I had developed a script in 100 which I want to test it in 120.Now how to move this script in 100 to 120.

2.How to use includes in scripts and what is the usage?

Thanks,

K.Kiran.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,976

Hi Kiran ,

You can use the transaction SCC1 , there you can specify the transport request which contains the script , or you can do it from SE71 .

SE71 --> Utilities --> Copy from Client.

Includes are used in scripts to print long texts , here you speicfy the text type , text name and other details.

Regards

Arun

19 REPLIES 19
Read only

Former Member
0 Likes
1,976

hi Kiran,

Sorry do this way SE71 -> Utilities -> Copy from Client.

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

Former Member
0 Likes
1,976

Hi Kiran,

Use SE71 -> Utilities -> copy from client to copy scripts.

Regards,

Atish

Read only

former_member214288
Participant
0 Likes
1,976

Hi Kiran,

SAP Scripts are Workbench requests and hence need not be moved across clients within the same system (or server). Scripts developed in 100 can be used in 120 as well. If you want to use these scripts in other system like quality then you will have to transport them from 100 to your quality system.

Reward Points if helpfull.

Regards,

Ram

Read only

Former Member
0 Likes
1,976

hi,

u just use SCC1 tcode in testing client

enter request number execute it

it will be copied down into 120........

reward points if helpful,

Regards,

Imran

Read only

Former Member
0 Likes
1,977

Hi Kiran ,

You can use the transaction SCC1 , there you can specify the transport request which contains the script , or you can do it from SE71 .

SE71 --> Utilities --> Copy from Client.

Includes are used in scripts to print long texts , here you speicfy the text type , text name and other details.

Regards

Arun

Read only

Former Member
0 Likes
1,976

<b>INCLUDE: </b>Include other texts

With the command INCLUDE, you can include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting.With the INCLUDE command, you always get the most current version of the required text, since this is only read and inserted during the output formatting.

Syntax:

/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]

The name of the text to be inserted must be specified and can have up to a maximum of 70 characters. If the text name contains blanks, then you must put it in quotes as a literal. It can also be specified via a symbol. All further parameters of the INCLUDE command are optional. If they are missing, SAPscript uses default values for them which are based on the respective call environment.

Examples:

/: INCLUDE MYTEXT

The text MYTEXT is included in the language of the calling text.

/: INCLUDE MYTEXT LANGUAGE ‘E’ PARAGRAPH ‘A1’

The text with the name MYTEXT and the language E is included, regardless of in which language the calling text is created. The paragraph format A1 is valid as the standard paragraph for this call.

Optional specifications:

•&#61472;LANGUAGE If a language is not specified, the language of the calling text or the layout set is set for the text to be included. If a language is specified, the text is always loaded in this language, regardless of the language of the calling text.

•&#61472;PARAGRAPH The text to be included is formatted with the style allocated to it. With this parameter, the standard paragraph of this style can be redefined for the current call. All * paragraphs of the inserted text are then formatted with the paragraph specified here.

•&#61472;NEW-PARAGRAPH The first line of the included text has this format flag, provided it is not a command or comment line. If the optional entry PARAGRAPH (see above) is empty, all * paragraphs of the included text are formatted with the paragraph np specified with

NEW-PARAGRAPH.

•&#61472;OBJECT To specify a text completely, you must make further specifications regarding the text object. There are different rules and restrictions for this which depend on the object type of the calling text: All texts can be included in a layout set. If no object is entered here, TEXT is used (standard texts).With a documentation text (object DOKU), you can only include documentation texts. This object is assumed even if no object is specified in this environment. Only hypertext or documentation text can be included into a hypertext (object DSYS). If the OBJECT specification is missing, DSYS is set as a default value.

Only standard text (object TEXT), documentation text or hypertext can be included in any other type of text. The default object is TEXT if nothing is entered.

•&#61472;ID The text ID, which allows further text types within an object, is a further part of the text key. If the ID is not entered, the default Include ID from table TTXID is used for the calling text. If the specification is not in this table, the text ID of the calling text is used.

The ID together with the object are now the basis of a further consistency check:

•&#61472;All text IDs are allowed for a layout set.

•&#61472;Only documentation texts with the text IDs TX (general texts), UO (authorization objects), and documentation texts which have the same text ID as the calling documentation text may be included in documentation texts.

•&#61472;All DSYS texts may be included in DSYS texts, regardless of their ID. Documentation texts to be inserted may only have IDs TX and UO.

•&#61472;Standard texts with all the allowed text IDs, DSYS texts with all IDs, and documentation texts with Ids TX and UO may be included in the other types of texts.

Regards,

Santosh

Read only

Former Member
0 Likes
1,976

Hi Kiran,

In SE71,Go to Utilities Menu,Use Copy from Client option.

Give the Form name ,client from which ur copying the form and the Target Form.

Press Execute.

Form name and Target Form name both may be same.

Regards,

Dharani.

Read only

kiran_k8
Active Contributor
0 Likes
1,976

Hi,

So,we need to create a TR Num even though it is to moved from one client to another client within the same server.Am I right?

Thanks,

K.Kiran.

Read only

Former Member
0 Likes
1,976

It is not required.

Regards,

Atish

Read only

Former Member
0 Likes
1,976

not required Kiran, You can directly move with the specified way .

Regards,

Santosh

Read only

kiran_k8
Active Contributor
0 Likes
1,976

Hi,

But I was not able to do the same from se71 in 120.(utitlities-copy from client-formname-z3 source client 100- target form name -z3).

SCC1 is asking for transport request which I don't want to create.

K.Kiran.

Read only

Former Member
0 Likes
1,976

Hi Kiran ,

While making changes to the script in client 100 , did you specify a transport request, if yes then supply the same request number in SCC1 transaction in cleint 120.

If you did not specify a TR , the you will have to use the option availabe in SE71 , so could you tell me what is the error you are getting when you try to copy the form from 100.

Regards

Arun

Read only

kiran_k8
Active Contributor
0 Likes
1,976

Arun,

Generally we will not be able to develop anything in this client 120,all development work we do in 100.But both these clients are in the same server.I don't want to create a transport request but want to test it in 120.But it is not permitting through do the same from se71.So,I think I have to create a TR and go through scc1 way.Am I right?

I am getting the following error when using se71 in 120:-

Problem calling the transport system and Workbench Organizer

Changes to Repository or cross-client Customizin

not permitted

Message was edited by:

Kiran K

Read only

Former Member
0 Likes
1,976

hi kiran,

yes u need to do through SCC1 ...it will worked.....

i hv done the same lots of time........

dont forget to rewards points if helpful..............

regards,

Imran

Read only

Former Member
0 Likes
1,976

Hi Kiran ,

Then what i would suggest is to create a new TR .

To add the script to the TR , please see the following link

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/change%2bdevelopment%2bclass%2band%2bassign%2btransport%2brequest%2bto%2bsapscript">adding Script to TR</a>

Regards

Arun

Read only

Former Member
0 Likes
1,976

Hi Kiran,

If u saved the Form in client 100 in a TR then when u try to copy it in 120,it will automatically b saved in the same package and in the same TR in 120 also.

Regards,

Dharani.

Read only

Former Member
0 Likes
1,976

Hi,

You can do either of the following ways.

Goto 120 client->se71->utilities->copy from client->give the client as 100 and enter the form name and execute.

or use the tcode SCC1 to transport the related Transport Request to 120 client.

Reward points if it is helpful.

Regards,

Sangeetha.

Read only

Former Member
0 Likes
1,976

dear u have to transport this for one time after that it will be automatically synchronize

contact basis guy any tel them the request number (no need to release) the will copy that to another client, then u can work with that

Rewards if helpful.

Read only

kiran_k8
Active Contributor
0 Likes
1,976

Hi,

Fine it seems that I have to go through SCC1 by creating a transport request.Thanks everybody.

K.Kiran.