Condition based text module

Hi,
  I need to print different text based on customer type. Can any body guide me how to use text modules for this.
Regards,
Venkat.

Hi,
     First create the different standard texts using SO10 transaction.
And then in the form window you can give the condition like if customer type = 'A' then display standard text 'a' or elseif 'b' else 'c'.
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas

Similar Messages

  • Print multiple pages of text module as Terms and Conditions at end of PO

    Hello,
    I have a text module that contains a two page terms and conditions to print as the last pages of a PO.
    I have three pages
    FIRST-->Calls NEXT
    NEXT--> Calls NEXT with a command to LAST in the MAIN window
    LAST-->Calls Last, has a MAIN Window and a regular window which calls text module
    The text module only prints on the first page in the end of the PO(i.e.last page). It does not flow or create an additional page for the left over text in the text module.
    Please advice.

    Hi,
    We have same situation. What I did was to introduce a new element in MAIN WINDOW ( by the way only FIRST & LAST pages are sufficient, no need to have additional page for printing Terms & Conditions ) in that element just have 2 lines viz.:
    /:   NEW-PAGE                                     * Above command so that terms & conditions will always start from a new page.                       
    /:   INCLUDE ZPO_TERMS_AND_CONDITIONS OBJECT TEXT ID ST LANGUAGE EN      
    If terms & conditions are more than a page it will automatically be printed on the next page. ( In our case currently we have got 5 pages of terms & conditions ).
    At the end of the program i.e. When you are finished with printing of a PO just 'WRITE' this element using WRITE_FORM.
    I hope this helps,
    Regards
    Raju Chitale

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • Text module constrained to single page?

    I have added a page to the “standard” smart form for purchase order printing. The purpose is to print standard terms and conditions, which are stored in a text module. This should be a piece of cake I thought, but apparently not...
    A command to go to the new page has been added at the end of the main window of the standard form.
    If I put the text element in a main window on the page they are not printed at all. I would not hesitate to call that a bug, but for all I know Smart Forms are limited to having one window of type Main window in each form.
    If I put the text element in a secondary window they are printed partly. There is one page of output, but the terms and conditions need two pages (or possibly more).
    I have tried both with a single page for the terms and conditions, and having a YTERMS and YTERMS_CONT.
    Any ideas are welcome, and good ideas or tips from people who have solved similar problems are of course extra welcome :-)

    Hi Kjetil,
    you should hold it in the MAIN-Window. To solve your problem and to be not limited with secondary windows you should do it in that way.
    I just draw it here:
    MAIN-Window
    ...<A lot of code_before>...
    NEW-PAGE Command node
    -Table with your prefered layout (If you need two columns or something like that)
    --- here you include your text
    So you are not limited in the pages and you are able to build the layout you need.
    (Only limited in the width, because your MAINWindow must same width overall)
    OR
    you create different textes and do it with secondary windows, but here you have to figure out how much fits in what window and that might be end in a messy work if you use different device types.
    Let me know, if something is not that clear and I will try to explain it more / offer an example-form
    ~Florian
    PS: The picture should just explain the bracket better

  • Detecting TextAlignment in a Library based text Object

    Hi All,
    I have several text field objects that are shared (linked) to create a growing group text and button objects that are created at runtime. Oh, TLFtextField's are only being used, but that probably doesn't matter for the this set of issues.
    I test the text as it is being filled in each text field to see if it overruns the field. Lots of layout and size variations.
    I am inserting over 30 different languages into the text and will ultimately use RTL and BiDi (bi-directional) text. Some text is also center justified. Some text grows the text field too. I am automating this for testing and to help our translation service. We also have a translation database to reuse old phrases (but they may not fit new layouts).
    So things that I need to detect are: Locale, Justification, Alignment, MultiLine, autoSize.direction, etc.The text Field will report x,y,w,h but not textFormatAlign (null) or direction (null - I believe from earlier tracing).
    How can I extract the settings on these Library based  text objects?
    Do I have to expectedly set each feature that I have to text for when constructing the text instances I am placing on stage?
    Would we classify the text object in the library as a 'Prototype' object? (to help me get my head around this and for others too) ?
    Thanks,
    Jim

    Hi,
    I already solved the problem, correctly implementing the lines count function, forcing a pagebreak upon the correct count of lines. But I'll follow up just out of interest in another solution :o).
    The formulae in the problematic part of report are as follows:
    The text field itself is formula based. Upon a condition it draws data either from one source column or from another one. The difference here is that one of the columns' data is a single line, while the other is four lines (i.e. includes three CRLF chars). In both cases the text can also be empty or null.
    The text field's Can grow and Keep together are both on, the may number of lines is 0 (= can grow infinitely).
    The section containing the field is a group footer of group level 2, suppressed based on a formula detecting whether the text was already displayed in the group of group level 1 (the higher level). This is done by a variable which contains the group1 identifier for previous group2 data. If the previous and current group1ID are not equal (which means that the current group2 record is the first one in current group1), the text is displayed, otherwise it is suppressed.
    Also, the section is suppressed if blank (= if the text data are empty or null).
    Just FYI, the last problem of the linescount function was solved by merging the two section-suppressing condition into one.
    Hope it helps.
    BR, Petr

  • Command line in text module is not working

    Hi ,
    I have the follwoing if condition inside the text module (smartform)
    but the if statement is not working.
    /:     IF  &T001-BUKRS& = '0201'.
            please ignore
    /:     ENDIF.
    it is not checking for company code and printing the text.
    Please let me know what is causing this issue ?(T001-BUKRS has data in the smartform)
    Thanks,

    Hi Renuka,
    >
    renuka tadishetti wrote:
    > Hi ,
    >
    > I have the follwoing if condition inside the text module (smartform)
    > but the if statement is not working.
    >
    > /:     IF  &T001-BUKRS& = '0201'.
    > *         please ignore
    > /:     ENDIF.
    >
    > it is not checking for company code and printing the text.
    >
    > Please let me know what is causing this issue ?(T001-BUKRS has data in the smartform)
    >
    > Thanks,
    In Smartforms texmodule command line will not work iam sure ,
    like checking some condition what you mentioned in the above will not work
    if it is SAP Script it will work
    Thanks
    Surendra

  • Date Condition based on time

    Hi :
    I am working on Plant Maintenance module, i extracted work orders ( aufnr ) from AUFK based on some conditions.
    In the selection screen i have s_date option where the user can give any date range .my question is ...after selecting all the work orders, i want to count work orders whose status is conformed and date condition is " For the calender week X, work order actual end date ( getri ) should not be later than the week ending of sunday night 11:59pm " .
    Here calender week X, starts on monday morning 00:01 am and ends sunday night 11:59pm
    I am able to extract work orders whose status is conformed , but i need logic for tha date condition based on the time ie, end date should not be later than the week ending of sunday night 11:59pm.
    points will be rewarded ..
    Thx.
    Raghu

    if you want the current date and time you can check with sy-datum or sy-uzeit.
    Or you can find if there is any date and time fields in the table and compare them against the date you want to.
    I am not sure if youa re looking for this.

  • Text Module in SMARTFORMS

    Hi ,
    I am trying to append a text at the end of main window at any page ..when ever main window ends.for this I created a text module in transaction SMARTFORMS.and tried to add it into the form when I am doing it ..How should I select the options in the TASK KEY..there are 4 things to be filled
    TEXT NAME  :
    TEXT  OBJECT : ???
    TEXT ID :???  (I am doing a print doc for deliveries)
    LANGUAGE
    Anyone help me out of this ASAP

    If you created a <b>text module</b> that you want to include in your form, you don't refer to it like that.
    Once you selected the area / window your text should be in, right-click on the window name, select Create -> Text. Then, in the 'General Attributes' tab, you have to change the type to 'M' (Text module). On the next screen, you just specify the name of your text module that you want to include and the language key. You can specify under 'Conditions' that your text should only be displayed before or after the end of the main window (or whatever your requirement may be).
    Now if you want to include an already existing text (that you created via SO10, for instance), then you have to select the type 'I' instead. For SO10 texts, the text object will be TEXT, and you should know the other three parameters if you were the one creating the text. Obviously, the text object will change to another value if you want to include an application-dependent text - then, as it was mentioned, SE75 will help you find the proper object name.
    I'm not sure where do you see the "options in the TASK KEY"... hope this helps a bit though.

  • Text from text module is not appearing in smartform output

    Hi Experts,
    We are using text modules in one of our smartform to print the sender text . The name of this text module is being dynamically determined during the execution and is coming correctly but still the the text inside the text module is not appearing in the output. We checked one more similar form which is working on the similar logic but calling a different text module , there it is working perfectly. I have tried all the possibilties like changing the window size, changing the fonts and other parameters of the text module but still its not appearing . This seems to be something unusual as in both the smartforms(one with text appearing from module and one without the text) the logic is exactly similar for getting the text module name. The name is getting determined in both the cases correctly and the text modules are also maintained in same manner for both these forms but text is appearing on one and not on other.
    Kindly help if any one of you have also faced similar issue.
    Regards

    Hi Priyank,
    There could be various reasons....
    Wrong language for example
    An easy way to prove this is, put the text direct into the smartforms and see, if it pops up immediately.
    If so, you have to really debug this spot and see if the pased name is correct. (Copy paste it in the debugger, to be really sure, there could be a space in fornt or in the end...)
    If that doesn't help, you have to share more details. Your question is not that very specific. You know
    ~Florian

  • How to add internal table fileds in Text module in smart forms

    Hi Friends,
        How to add internal table fileds in Text module in smart forms?
    Thanks & Regards,
    Vallamuthu.M

    Hi Vallamuthu ,
    how did you solve your problem?
    thanks,

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

  • E-recruitment 6.0 - Smart Form - Text Module - Qualifying Event

    Hi all,
    Once more a question:
    E-recruitment 6.0
    Smartforms with invitation letters (for example for an interview)
    In the recruiter's portal we use a 'qualifying event' to 'set' an appointment' , date, time, place etc.
    We use the input from this reference activity in the text module of the smartform.
    The text module holds the main text of the letter.
    The text from the module appears in the recruiters portal when the recruiter performs activity 'send letter' (act. type: invitation) so that he can add some text manually if he likes.
    This functionality is in E-R6.0 since SP7
    It goes well when the recruiter does not add anything manually. The variables load in the smartform and it works as wel wanted.
    BUT when the recruiter manually changes the letter (the text module) in the recruiters portal, all variable are lost from the letter.
    I hope someone can help me out.
    Edited by: N. Lodewijk on Dec 4, 2008 11:57 AM

    You need to use the functionality "Changeable letter".

  • Converting a web-based text page to XMP

    I have a live, web-based text feed that contains all of the metadata I want to capture. I want to tag this metadata to video and image files, and I want that information to stay with the video and image files throughout the production process (ie. the metadata information should be available in transcoded copies of the video files and so on).
    I'd also like to use this metadata to create data-driven graphics in Photoshop. At this stage I can get basic datasets working in PS, but I have to cut-and-paste the info from some cells into a .csv file first. Ideally I'd like to eliminate this manual step as it introduces the possibility of human error, which is what I'm trying to eliminate in the first place.
    Photoshop can't read the whole text file as a dataset because I think it's in an array (I'm not sure, I don't get it), and from my understanding datasets will only work with .csv files.
    It should be a relatively simple process to grab information from a live, web-based text feed and convert it to useable metadata, but I find the XMP SDK completely indecipherable. Apologies for my ignorance but I have no coding experience whatsoever and it seems like it's written in an alien language. Can someone please offer some advice as to how I go about this? Attached is a copy of the text file I'm trying to use.
    Thanks to anyone with enough smarts or nerd power to crack it... it's beyone me, I've wasted weeks staring at a blank page and I'm more confused now than when I started.

    Hi,
    what you are planning to do seems technicaly possible with our XMP C++ SDK. But you really need programming skills in C/C++ to realize this project.
    Regards,
    Samy

  • Dist. of Header Condition based on the material Value

    Hi All,
    I have one query regarding the header Condition.i have selected the Calculation type as B - fixed amount  (mandatory) for a particular Condition type and also selected the header and Item condition indicator.Now if the material have more than one line item then the system distributes this condition based on the quantities in PO.
    My client requirement is that they want to have a header condition as we are using now. But they want to distribute this header condition according to the material values for each line items in a PO. please Mention that this condition is a fixed value (mandatory).
    So, how can we make a Fixed Value (Calculation type) for a header condition to be distributed among the line items based on the base Value?
    Please revert back asap.
    Sure, points will be awarded for the same.

    as explained earlier ,
    system is distributes the header amount on the basic of value calculated by Basic X qty
    e.g.
    header value =100
    two line item
    1 is with Rs 4/- and qty is 10
    2 is with Rs 10/- and qty is 15
    so distribution is
    Rs 21.05/-  for 1st item
    and
    Rs 78.94/- for 2ed item
    regards,
    sujit

Maybe you are looking for