Home > Ask the SAP software/management Experts > SAPscript and Smart Forms Questions & Answers > Convert SAPscript into Smart Form
Ask The SAP Expert: Questions & Answers
EMAIL THIS

Convert SAPscript into Smart Form

Mark Smithson EXPERT RESPONSE FROM: Mark Smithson

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 29 January 2004
I'm trying to convert a SAPscript into a Smart Form. The problem I'm having relates to the multiple-language capability of the SAPscript.
It starts with an INCLUDE of a standard text containing DEFINE statements.
e.g.
INCLUDE ZMEDRUCK_TEXT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&

I have standard texts defined in all the languages I need. (advantage was that only 1 layout needed to be maintained)
DEFINE &ST_TO_BE_PRICED& = 'To be priced' in English 

DEFINE &ST_TO_BE_PRICED& = 'A pr?rquer' in French

Is there a way I can reuse this standard text by for example having a piece of code that would load the correct language and then populate the global variables?


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAPscript and Smart Forms
Modifying standard SAP Smart Forms for purchase orders
How to solve output alignment problems with SAPscript printing
Using SAP Smart Forms to change layout of Plant Maintenance
How to fix Smart Forms printing double purchase orders
Deriving the name of a Smart Style from a Smart Form
Fixing a common OPEN_FORM and START_FORM error in SAPscript
Avoid printing out blank address lines in SAP Smart Forms
Setting soft breakpoints in ABAP that reside in Smart Forms
Printing specifics on the last page of a Smart Form
Unwelcome change in Smart Forms icons

SAPscript and Smart Forms
Modifying standard SAP Smart Forms for purchase orders
How to solve output alignment problems with SAPscript printing
Using SAP Smart Forms to change layout of Plant Maintenance
How to fix Smart Forms printing double purchase orders
Deriving the name of a Smart Style from a Smart Form
SAP administration information for a Basis interview
Transferring R/3 Admin skills to SAP NetWeaver
Easier maintenance of output types, procedures, conditions, etc.
Avoid printing out blank address lines in SAP Smart Forms
Setting soft breakpoints in ABAP that reside in Smart Forms
SAPscript and Smart Forms Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


You have come up with an elegant approach for dynamic handling of language-specific output in SAPscript. Unfortunately, as you probably have found already, this particular approach does not work in Smart Forms.

Within a Smart Form, you can set up an 'Include text' node to access standard texts as used in SAPscript. In addition, you can specify dynamically the language to retrieve (via a variable in the language parameter). However, any commands within these standard texts -- such as DEFINE -- are ignored.

Thus, I would recommend simplifying your approach. Based on your example above, since you can no longer assign the words 'To be priced' and 'A prÉmarquer' to variables within standard texts, why not put the words directly into these standard texts (or into text modules) instead and invoke them solely when you wish to produce output? As an alternative -- if you need tighter control over how these words appear or wish to minimize external text retrieval -- insert a language-dependent CASE statement assigning the words to variables within the Smart Form itself (in the Initialization section or a Program node).

Either approach will allow you to rely upon a single Smart Form for your multi-language output. If there are many, many such texts you may wish to reevaluate whether the benefits outweigh the disadvantages of having a single form for multi-language output.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts