Show standard texts on document

Hi all,
Our customers have the need to show some text on the bottom of some documents (invoice, order confirmation). Normally, I would use SO10 for the text. No problem there.
In general, those texts have a limited time in which they should be printed on the documents. Is there a way (or table) in which you can define texts as well as a start date and/or an ending date?
Any other solution is also welcome
Thanks.

Hi Karin,
it just depends on what date is the correct one to check. Todays date is in SY-DATUM always included and always available.
In your case, it is a invoice and I can imagine that the VBRK-ERDAT (date when the invoice is created) or even the VBRK-FKDAT (date when the invoice is booked) maybe also a good solution.
Both fields are included in the structure VBDKR by the way
For your order confirmation have a look in table VBAK / VBDKA. The fields there are ERDAT and AUDAT I think.
The select statement should look something like that:
Select single ... from     yourtable
                        into     yourstructure
                        where datefrom <= sy-datum
                           and dateto    >= sy-datum.
IF sy-subrc = 0.
*whatever you want to do now
ENDIF.
~Florian

Similar Messages

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

  • Standard text in Routings - Word documents

    Hi all
    I want to attach word documents to Standard Routers. I checked the standard text CA10 but did not find a way to upload word documents. I saw an option only for uploading 'ASCII', RTF or RTF files. Is there a way I can attach word documents to the Routings. What is the best way to do it? Is it standard text or some other process.
    Am using ECC 6.0
    thanks

    Dear,
    you cannot attach,....but you can copy from word document to text click on long text and copy the word document data to the long text page and save

  • Import R/3 SO10 Standard Text to BW Documents

    Hi
    Please let me know
    1. How can Import the Standard Text (SO10) from R/3 to BW Documents?
    2. Is there any Function Module to extract the text?
    Please let me know since it has become priortized task. Thanks!!
    ~ Vaishnav

    Ok this is easy and not that tough as expected...
    I'll write a program that calls the function module READ_TEXT and export the output to the application server and then I'll retrieve the data into BW documents  after changing the respective InfoObject as Characteristic is Document Attribute.
    ~ Vaishnav

  • Extract R/3 Standard Texts to BW Documents

    Hi Experts,
    I would like to know how to extract the R/3 Standard Texts into BW Documents. We can use SO01 Tcode to see the text and STXH to see other fields relative to standard text and we can also use "READ_TEXT" function module to retrieve the values after giving necessary parameters in R/3.
    Initially, I thought I can use all these function module and table and do a custom extractor and bring it to BW but in BW it would not allow more than 60 chars and this would be somewhere around 500 to 1000 chars per text. So I'm not sure how to bring the text into BW and save it as a Document in BW.
    Please I need your expertise on this issue. Thanks!!
    ~ Vaishnav

    Ok this is easy and not that tough as expected...
    I'll write a program that calls the function module READ_TEXT and export the output to the application server and then I'll retrieve the data into BW documents after changing the respective InfoObject as Characteristic is Document Attribute.
    ~ Vaishnav

  • How to convert a Word Document to SAP SCript standard text.

    Hi team,
    Does any one know how to convert a word document or text in Word format to standard text.
    So that we can use that standard text in Script output.
    This might be very useful if we need to convert a lot of text into standard text.

    Hi,
    Create the name of the standard text you want in SO10.
    When the editor is called up, select Text -> Upload and then browse for your file(s). Must be saved in RTF format in Word remember.
    Cheers
    Colin.

  • Smartforms : print standard texts or texts out of document with command in.

    We used to have an output via Sapscript (printout of a purchase order) and the output was containing standard texts or text out of the purchase order, which contains commands (a test in the standard text or an include of another standard text). This text was correctly printed via sapsript, command were taken into account.
    Now we have a new output for the purchase order which is working with smartforms. When working in the smartforms with a text type 'include text', commands in the text are not working.
    When working with smartforms, is it not possible to include texts (out of the STXH table) which contains commands? These commands are not taken into account.
    Thanks.

    Thanks for the answers!
    Example how they work here : in the material master, purchasing text => somtimes include of a 'standard' text. This to avoid typing the text in all materials which use this text. We can avoid this by instead of including the text, to 'append' the standard text.
    Also in some standard texts, some tests were done (on output type, purchasing organisation,.....) which we can change by reading the text in the print program and building those tests in the print program itself.
    I just wanted to be sure that there was a possibility or not in Smartforms to work like that because we worked like this using sapscripts and it worked fine.
    We will change this way of working and build the logic into the print program. We will inform the master data team not to use the 'include' command into a material master text but instead append the standard text directly into the material master text.
    Best regards,
    Ann.

  • How to add standard text in PO and how it is maintained ?

    How to add standard text (paragraph) in PO and how it is maintained ?

    Hi
    Please go through this document.which has a step by step
    Working with Frequently Used Texts
    Use
    You can copy texts from various sources to create PO texts:
    Standard texts
    Certain standard texts are supplied with the system and can be assigned to a purchasing document in Customizing.
    The content of some standard texts is predefined by your system administrator.
    You can also create standard texts yourself and copy them into purchasing documents.
    Master records
    Database fields
    Activities
    Creating Standard Texts
    You can create your own standard texts via Tools ® SAPscript ® Standard text.
    Inserting Standard Texts
    You can insert your standard text on the long text screen via Insert ® Text ® Standard.
    For more information, refer to the Basis documentation under BC Word Processing with the SAPscript Editor:  Including Texts.
    You can display the print preview via Text ® Print ® Print preview.
    Inserting Texts from the Master Record
    There are three ways of linking texts from a master record with a purchasing document. The relevant settings are made for each text type in Customizing for Purchasing. The indicator in the status column shows the nature of the linkage.
    Option                                              Indicator in status column
    The text is copied:               
    It is then independent of the text                 None
    in the master record. Changes to
    the text in the material master record
    have no influence on the text in the document.
    The text is displayed only:
    It cannot be adopted.                                          N
    The text is offered for copying:
    It can be copied via Header or Item ® Texts ® Adopt text. (In requisitions: Goto ® Texts ® Adopt text.) Changes made in the master record will also be adopted in the document until such time as you copy the text.
    Inserting Texts from Database Fields
    You can include the content of a database field at any point in the text on the long text screen. A value specific to the relevant document is displayed in the printed document.
    Choose Insert ® Symbols ® Program symbols.
    Choose DDIC fields.
    Search for the relevant table/structure (in the case of PO items, this is EKPO) and then choose ENTER .
    Choose the relevant table field.
    Choose Text ® Print preview to see the print preview.
    Reward if useful
    Aasif

  • Advanced actions - trying to show a text caption

    I have a slide with 5 text captions made from smart shapes, and 5 click boxes. All 5 smart shapes are hidden. I have 5 variables, all of which are set to zero. When a click box is clicked on, the corresponding smart shape shows and the value of the first user variable is set to one. When another click box is clicked on the corresponding smart shape shows and the next user variable is set to 1. Each of the click boxes is set up in a similar fashion. I set up 5 advanced actions, and the On Success action for each of the click boxes uses one of 5 advanced actions. The action for each click box looks something like this (I'm using generic names for this example):
    IF variable1 is equal to 0
    ACTIONS
    Show textCaption1
    Assign variable1 with 1
    Play Audio sound.wav
    Continue
    This is working fine, and the corresponding smart shapes are showing as they should when each of the click boxes is clicked on.
    But I have an additional feedback text caption that I want to show after all 5 smart shapes are showing. I tried setting up an advanced action that looks like this:
    IF
    variable1 is equal to 1 AND
    variable2 is equal to 1 AND
    variable3 is equal to 1 AND
    variable4 is equal to 1 AND
    variable5 is equal to 1
    ACTIONS
    Show feedbackTextCaption
    But even after all of the click boxes have been clicked (which should set each of the 5 variables to 1), the feedback text caption does not show.
    Can anyone help with a suggestion?

    @Sreekanth, that is not the correct approach, because a user could click 5 times on the same click box and see the final text caption. Only when you disable an already clicked interactive object this can be used. Jay was right by choosing five different variables.
    @Jay How do you trigger that last conditional action? Which event do you use? You explain that the first described action is triggered by the click box, but not what is triggering the conditional action.
    I suspect you'll have to combine both actions, and assign them to each click box. That means a conditional action with two decisions:
    First decision 'Always' needs the condition 'IF 1 is equal to 1' to create a mimicked standard action, and has to show the text caption, to assign 1 to the variable and to play the audio. I don't know why you added 'Continue'? If the click boxes pause all at the same moment, don't add Continue, let the playhead remain at the same location.
    Second decision 'Checker' is the conditional action that you wrote, checking the values of the 5 variables, and if they have all the value 1 to show the feedback text.

  • Urgent -- using Standard text in SMart forms

    Hi Techi's.
    I have created a standard text using SO10 , and included the same in smartform.
    But the requirement is , i need to change the format of the standard text with my own style, so i craeted a Smart style with relevant Paragraph  and Character formats.
    Plz help me out in linking the STandard text with the smart style.
    I know how to include smart style in smart form, but the issue is "how to include Smart style for the created  Standard Text ".
    Urgent and helpful answers will be rewraded.
    Regards,
    Naveen

    hi naveen
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • How to get the Hardcoded text and the Standard text in the same line

    Hi,
    I have an SAP Layout. In that, it should show the Consignee name as below.
         Consignee: SAP LABS
    In this, the text 'Consignee: ' should be hardcoded in the layout itself. and the customer has requested to create a standard text for 'SAP LABS' sothat if they want to change the value in future, they would go and change the Standard text. I have created the Standard Text for SAP LABS. I am not able to get both these texts on the same line. I wrote in the layout like below and AS is the Paragraph format.
    AS     Consignee:
    /:        INCLUDE ZVRU_CONSIGNEE OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH 'AS'
    But, both are coming in dofferent lines. As /: is a command line, it is coming in the next line. Is there any way of getting these two texts in the same line..? While Inserting the Standard Texts, will there be any option/command to print it in the same line..?
    Please share your thoughts. Thanks in advance.
    Thanks & Regards,
    Paddu.

    Hi Paddu,
    I have had a similar requirement. I did not use any FM or anything, simply did the following:
    In  SO10, for your standard text where u have used the text SAP LABS.
    Instead of P1/ default para, change it to =. And then Save ur Standrd text.
    Now in the SAPScript Text editor in which you want to print
    P1 'Consignee :'
    /: INCLUDE TEST OBJECT TEXT ID ST LANGUAGE EN
    the output will be
    Consignee : SAP LABS
    I have tried and tested this method. It will surely work.
    With regards,
    Niharika.

  • Track Changes log of a specified Standard Text?

    Hello Experts,
    Am looking to develop a report (change log report) for standard texts, for example, (pls. note all input parameters of this standard text are same)
    Yesterday the user entered the standard text as
      This is yesterdays standard text
    And again user has changed today it to
    This is todays standard text
    Pls. let me know that is there any standard transaction to track these changes log? is there any table (seems STXH, STXL are not helps me) to store these changes? how can i retrive all these changes for a specified stanrd text?
    Thank you

    Hi M_S_Raju_0613,
    I never heard of a tracking feature for standard texts - standard sapscript texts must be an add on SAP took from any non-SAP development and never integrated well. So you have to change documents for them or the pool tables where they are stored.
    If only some texts and only special changes are in question, you may create a special program that stores a copy of the text and compares the copy to the actual text in  a recurring job.
    No better idea, sorry.
    Regards,
    Clemens

  • Standard text displayed correctly in print preview but not in print

    Hi,
    I have a script in which a standard text has to be printed in the output.
    The standard text contains some german characters.
    These characters are displayed correctly in print preview but not in print.
    The text is maintained in 3 languages DE,EN and Russian.
    The same text is being printed in some standard report. But that is displayed correctly both in print and print preview.
    Please suggest something.
    Regards,
    Richa Aggarwal

    Hi Richa,
    Check this document from SAP: [help doc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0652a95-5f0b-2a10-5aba-c085f8bbe6d6?QuickLink=index&overridelayout=true]
    It indicates that you have to be sure to select "Unicode" fonts for your SAPScript form to ensure the proper printing of "Unicode" characters.  If a character does not display then that means it does not exist in the font that you are using.
    Regards,
    Ryan Crosby

  • Standard text in SO defined as bold doesn't come out bold in smartform

    Hi Gurus,
    I have created a standard text in SO10 transaction and I have given to it the characteristic highlighted (bold) the test effectively appears as bold while in SO10.
    However when I call  this standard text in a smartform (which is treated to be edited as a spool in a subsequent step), my so-called text does not show up with the highlited chatacteristic specified on the spool printout.
    Can anyone tell me how I could solve this ?
    helpful hints will be rewarded,
    Many thanks;
    Cedric

    Hi,
    In case of smartform,
    create a style with bold and then use it in smartform.
    revertback if queries
    regards
    jansi

  • Standard Text in Arabic

    Hi,
    i have created one standard text in S010 transaction using language code 'AR' . i.e
    Arabic. In design mode is showing properly but when i am previewing it.
    it is showing me transvere characters means last character is comming at the first place and same is
    apparing sequentially.
    For example :
    Original text in design mode :  abcd
    Changed text in preview mode : dcbd.

    Hi Archana,
    For Arabic texts, you have to change the Character Set to "Arabic(Right-Justified)". In any of the SAP Screens, You can set it by clicking the last button in the standard tool bar. Or You can use Alt+F12.
    There go to option Chartacter Set and then set it as "Arabic(Right-Justified)". Usually we will log in to our systems with West Europian(Latin-1). But, their default settings are different compared to us. So, for the checking the output, logon to the system using AR and then change the character set.....
    This would be helpful, i guess.....
    ,,,,,Pavan

Maybe you are looking for