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: 

Scripts

Former Member
0 Kudos

Hi friends,

I have following doubts regarding scripts.

1.What are the advantages of standard text(so10) and styles(se72) in scripts.

2.I want to add my own field to standard script RVORDER01 how should i know where to write subroutine?

3.In standard script RVINVOICE01,I want to convert netprice in digits to words.How?

Kindly reply at the earliest with few sample codes.

3 REPLIES 3

Former Member
0 Kudos

hi,

1. we can convert standard text to various languages.

We can define multiple paragraph and charecter formats in styles.

2. Identifying the structure where it is used or where it is displayed.

3. Use FM Spell_amount, in a form .... endform

Hope this helps.

Former Member
0 Kudos

hi,

All Standard Scripts are in client '000'.

We have to copy them to '800'. (this is your own company define client no)

All Standard Scripts and their respective print programs are listed in table 'TNAPR'.

Ex: FORM MEDRUCK has the Driver Program SAPFM06P.

NOTE: Never make any changes to the Standard Driver Programs

STEP 1.

-


Goto Transaction Code <SE71> and

select from Menu UTILITIES ->Copy from Client.

Enter the Standard Form Name, It source Client 000 and the target Form Name that you want it to be saved as on your client.

Say you are naming it as zmedruck1.

Click on EXECUTE.

STEP 2.

-


Converting form to English.

Open zmedruck1 in <SE71> With language DE.

Then goto UTILITIES -> Convert Original Language from DE to EN.

Then you can modify the layout for example, chaging the logo, or changing the headers, or adding any new code to do some calculation etc.,

SAVE THE CHANGES AND ACTIVATE.

Then select from the menu FORM -> CHECK -> TEXT.

SELECT your driver program name from the list adn click on COPY.

If you don't see the program name in the list then click on

'APPEND PRINT PROGRAM' and add your program name and then select it from the list and click on COPY.

STEP 3: Assigning our form to the standard print program.

-


Start Tr.Code <NACE>.

In our present case since we are working on 'Purchase order' we have to select EF and click on the button Output Types.

Then on Right hand side, scroll down and select NEU - New P O Printout.

(This may change for different programs).

Then Double click on Processing Routines on Left hand side.

Change from Display -> Change Mode.

Give your form name (zmedruck1) for printoutput and SAVE.

STEP 4:

-


Start Tr.Code <ME22N> since you are working on Purchase order and click on print Preview to make sure your layout etc., changes are OK. If not again you have to make the changes accordingly.

try FM Spell_amount for converting digits to words

regards,

pavant.

Edited by: Pavan T on Mar 19, 2008 7:18 AM

Former Member
0 Kudos

1.What are the advantages of standard text(so10) and styles(se72) in scripts.

The main significance of standard text is, easy to maintain diff languages.

The main adv of style is if at all you want to format the standard text's text then you should use Standard Style. No other alternative.

2.I want to add my own field to standard script RVORDER01 how should i know where to write subroutine?

Identify the right text element that you have to display the field then make use of subroutines to display that text. Before that make sure you copy the standard script to your own Z script.

3.In standard script RVINVOICE01,I want to convert netprice in digits to words.How?

make use of FM 'SPELL_AMOUNT' and call this FM using subroutine pool from script and display .

Reward if useful..............