FM or classes for word form letter ?

hi there,
can anybody tell me how i can use the 'form letter' function out of an abap ?
some classes or fm's ?
i want to open WORD for windows with specific fields for form letter processing.
best regards, Martin

Hi,
check this sample prog in se38.........
SAPRDEMODOCUMENTCONTAINER
Cheers,
jose.

Similar Messages

  • How to use multiple classes for each form

    Hi,
    I have created two forms using screen painter and now i want to use different classes for these two forms .
    I have declared the Sbo Connection in main class i.e. Set Application ,Connection Context() but while connecting to other classes
    for executing the code for that form SAP is not connected to that class.How to use multiple classes functionality i don't able to
    do that.Please provide some sample codes for that as it will be more helpful for me to understand.
    Thanks & Regards,
    Amit

    Hi Amit,
    In fact, its more advisable to use separate classes for every form that you use.  Have one common class, say, for eg., clsMain.cs which has all the connection and connectivity to other classes, wherein, the menu event and item event of this main class, will just be calling the menu / item event of other classes.
    The individual functionality of the child classes will be called from the item / menu event of the respective classes.
    Item event in clsMain.cs will be as below.
    private void oApplication_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                SAPbouiCOM.Form oForm;
                BubbleEvent = true;
                try
                    if ((pVal.FormTypeEx == "My_Form1Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm1_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
                    if ((pVal.FormTypeEx == "My_Form2Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm2_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
    Now, in the individual classes, you can have their respective item events, which will be called from the main class, and the respective functionalities will occur.
    Hope this helps.
    Regards,
    Satish.

  • Provide a class for authoring a simple letter.

    Provide a class for authoring a simple letter. In the constructor, supply the names of the sender and the recipient: public Letter(String from, String to) Supply a method public void addLine(String line) to add a line of text to the body of the letter. Supply a method public String getText() that returns the entire text of the letter. The text has the form:
    Dear recipient name :
    blank line
    first line of the body
    second line of the body
    last line of the body
    blank line
    Sincerely,
    blank line
    sender name
    Also supply a program LetterPrinter that prints this letter:
    Dear John:
    I am sorry we must part.
    I wish you all the best.
    Sincerely,
    Mary
    Construct an object of the Letter class and call addLine twice.
    Hints: (1) Use the concat method to form a longer string from two shorter strings. (2) The special string "\n" represents a new line. For example, the statement
    body = body.concat("Sincerely,").concat("\n");
    adds a line containing the string "Sincerely," to the body.
    Complete the following class in your solution:
    This class models a simple letter.
    public class Letter
    Constructs a letter with a given sender and recipient.
    @param from the sender
    @param to the recipient
    public Letter(String from, String to)
    Adds a line to the body of this letter.
    public void addLine(String line)
    Gets the text of this letter.
    public String getText()
    private String sender;
    private String recipient;
    private String body;
    }

    I've answered the question and I've gotten the right answer. However, when I uploaded in our online homewok (which calls WileyPlus, "Launch LabRat") it gives me and error because it's a machine not a human to correct my answer. So, I thought people here could help me to come up with some new codes that would actually work in the "Launch LabRat".
    Here's how I answered the problem (it works perfectly in the BlueJ, but "LabRat" fails the solution):
    This class models a simple letter.
    public class Letter
    Constructs a letter with a given sender and recipient.
    @param from the sender
    @param to the recipient
    public Letter(String from, String to)
    sender = from;
    recipient = to;
    text = text.concat("Dear ").concat( recipient).concat(":").concat("\n").concat("\n");
    Adds a line to the body of this letter.
    public void addLine(String line)
    text = text.concat(line).concat("\n");
    Gets the text of this letter.
    public String getText()
    text = text.concat("\n").concat("Sincerely, ").concat("\n").concat("\n").concat(sender);
    return text;
    private String sender;
    private String text = "";
    private String recipient;
    This is the Tester
    public class LetterTester
    public static void main(String[] args)
    Letter departure = new Letter("Mary", "John");
    departure.addLine("I am sorry we must part.");
    departure.addLine("I wish you all the best.");
    String departureLetter = departure.getText();
    System.out.println(departureLetter);
    }

  • Kindly let me know the Tcodes for the forms below in MM

    Hi Guru,
    Kindly let me know the Tcodes for the forms below in MM
    Form - Deviation Request form       
    Form - Spot PO (direct, indirect, subcontracting)
    Form - Purchase Scheduling Agreement (direct, indirect, subcontracting)
    Form - Contract (direct, indirect, subcontracting)
    Form - Delivery Schedule (Long + Short term)
    Form - Vendor Non-Conformance
    Thanks
    Siva

    Hi,
    You can get all the forms & output devices in the Transaction code.NACE.
    you can check forms,program, for other modules also.
    Regards
    Ravi shankar.

  • Form class for service notification

    Hi All,
    I am unable to find form class (In transaction EFCS) for service notification for shop papers printing. Can anyone help me in finding form class for this.
    Thanks in advance.
    Vijay

    Tcode OIDA (I had to type /NOIDA 
    IMG>Plant Maintenance and Customer Service>Maint and Serv Processing>Maint and Serv Notifications>Notification Procesing>Notification Print Control

  • WRITE MACRO FOR WORD IN ORACLE FORMS 6I

    Dear All
    I want to know the coding to write a macro for word document to print , when i open the word document using ole2. I am able to open word, insert the header and footer but i want to print the document also. Since I dont want to write the macro in word file because i have lot of files , so whenever the user run the form i just want to take print . Is there any way.
    V.S

    V.S.,
    I suggest you open a Word document and record a macro that prints a document. Then edit the macro and you will see all of the commands that were issued to print the document. Then try to emulate these commands in your OLE calls from Forms.
    I tried searching the internet for a comprehensive list of OLE commands, but never found anything. Through trial and error, I discovered if I open the application and recorded a macro to perform that action I want (in this case - printing a Word document) - I could edit the macro and see the commands used by the application to perform the action. Then base your Form OLE code on the macro. ;-)
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Class for Forms 9i ??

    I am looking for an intermediate-level class on Forms. At first I thought a good choice would be:
    Oracle iDS Forms: Build Internet Applications II (Development Tools)
    However, on further examination, it seems that this class is for Oracle Forms (6i) Developer. Our Forms Builder is at level 9, and whatever I take needs to be for that level.
    So is there an intermediate-level class on Forms 9i? What do you recommend?
    Thanks, Wayne

    1) You can check http://education.oracle.com for courses - enter 'Forms' into the search box on the right edge
    2) Forms 10g courses will do quite nicely for Forms 9i
    3) You will get much more support and sympathetic ears over in the Forms forum, (http://forums.oracle.com ... scroll down to Forms or direct using Forms

  • Need to ommit the short form letter from the given string

    HI,
         I need to ommit the Short form letter from column data.
    EX :
    CREATE table #testdata
    (id int identity(1,1),cust_address varchar(max))
    insert into #testdata (cust_address)
    select 'first street 5N, North'
    union
    select 'second street W, west'
    union
    select 'roja street 5S, South'
    union
    select 'temple street E, East'
    union
    select 'first street, Northwest, NW'
    union
    select 'first street, Southwest, SW'
    select  * from #testdata
    actutal out put:
    id cust_address
    1 first street 5N, North
    2 first street, Northwest, NW
    3 first street, Southwest, SW
    4 roja street 5S, South
    5 second street W, west
    6 temple street E, East
    Need to ommit the Short form letter from this output,
    condition , 1) the short form letter should have space in front of the letter ex : first street (space)N, North
                   so the output should be "first street, North" like that for other words like "first street, Southwest, SW" should be "first street, Southwest"
                 2) the short form letter should not combine with any other letter ex :  first street 5N, North
                     here we dont need to do anything.
    Required Out put :
    id cust_address
    1 first street 5N, North
    2 first street, Northwest
    3 first street, Southwest
    4 roja street 5S, South
    5 second street, west
    6 temple street, East
    Nandha Kumar

     CREATE FUNCTION [dbo].[SplitString]
             @str VARCHAR(MAX)
        RETURNS @ret TABLE (token VARCHAR(MAX))
         AS
         BEGIN
        DECLARE @x XML 
        SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
        INSERT INTO @ret
            SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
            FROM @x.nodes('//t') x(i)
        RETURN
      END
    with cte
    as
    select  *
    from #testdata
    CROSS APPLY (SELECT * FROM [dbo].[SplitString](cust_address)) AS der
    ) ,cte1
    as
    select *,
    case when UPPER(token)=token COLLATE Latin1_General_BIN
      then  '' else token end as d 
     from cte
     ) ,CTE2
     AS
     (SELECT *,case when RIGHT(UPPER(D),1)=RIGHT(D,1) COLLATE Latin1_General_BIN 
      then  replace(D,RIGHT(UPPER(D),1),'') else token end d1 FROM CTE1
     SELECT m1.id,
           ( SELECT m2.D1 + ','
               FROM cte2 m2
              WHERE m2.id = m1.id
              ORDER BY id
                FOR XML PATH('') ) AS token
      FROM cte2 m1
     GROUP BY m1.id 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Converting RoboHelp for Word to RoboHelp HTML (v8)

    I have a RoboHelp for Word (started at v6, converted to v7, and now at v8) project that I want to convert to a RoboHelp HTML v8 project.
    The RoboHelp for Word V8 looks good, works great and builds good looking WebHelp and MS Html Help finished outputs! But, I can't seem to figure out how to embed Captivate App Demos (SWF) into the project. Another post in these forums indicated that this is easy with RoboHelp HTML; and after some testing, indeed it is! Great.
    Now - the question is, how do I get my existing (looks good, feels great) RoboHelp for Word V8 project imported into RoboHelp HTML V8?
    I made a copy of my RHWord project directory (so as not to screw anything up) and then opened RHHTML and chose to import an existing HPJ project. When asked whether to keep the project file XPJ or go to HHP, I chose HHP.
    During the conversion, I get lots of "images not valid; invalid chars" on GIF files that RHWord has no problem with. It will not display nor publish these GIF files. Actually, it does display some of the GIFs in the RHHTML dev env, but then doesn't publish them!
    Also, during the conversion, it asks if you want a single CSS for each file or one CSS based on one of the WORD docs from the RHWord project. The default was the former, so I chose it. After the conversion, many of the topics have CSS data that appears at the top (e.g. long list of font names) that end up getting published also. So why did this happen?
    Also, after the conversion, many of the topics have non-displayable characters that do not show up in the RHWord version; source or published version.
    So - my question is, how do I correctly go from a RHWord project that seems to edit and publish just fine to a RHHTML project cleanly?
    I have tried to be as detailed as possible on each of these issues, but if more is required, let me know.
    Thanks much for your assistance,
    Jeff
    Message was edited by: jonestech

    The original post included a complaint:
    "After the conversion, many of the topics have CSS data that appears at the top (e.g. long list of font names) that end up getting published also"
    I didn't spot an answer to this part of the problem.  I may have missed it
    I see this also in importig a RH8 WinHelp project for conversion to WebHelp. It's no big deal to just delete the font list in projects that have just a single original Word doc, but I have a number of projects that each contain hundreds of Word docs, and the font list is inserted tt the top of each converted htm file.
    So I am motivated to find a solution...
    Any ideas RH troops???

  • Is it possible to mailmerge a form letter to recipients identified in a database (names, addresses, etc.)?

    Is it possible to mailmerge a form letter so that the mailmerge process produces separate pdf files, one for each recipient identified in a database (names, addresses, etc.)?
    Or is is  it possible to mailmerge a form letter so that the mailmerge process produces one big file that contains a copy of the form letter for each recipient identified in a database?

    Hi marceepoo,
    If you're using Word for Windows, you sure can. See Adobe Acrobat X Pro * Create PDFs from Word mail merges
    Best,
    Sara

  • I am looking for educational posters from Apple or for Garageband, if they exist. I'll be teaching a new class for middle school using Garageband next year. Thanks!

    I am looking for educational posters from Apple or for Garageband, if they exist. My school district will be teaching a new class for middle school using Garageband next year. I'd love to make the rooms look awesome! Can anyone hook me up? Thanks!

    lucky14life wrote:
    first i was wondering what everyone thinks about macbooks compared to let's say another pc like hp,dell,etc.... i have been told that i'd have to be dumb to get a machine with windows vista on it,so that is why i have turned my focus to a macbook because i have heard they are pretty good and worth it...
    I personally like my MacBook better than any other computer I have ever owned. I like being able to use windows when I need to but not being tied to it. My wife bought an HP with Vista and it doesn't seem to bad. Lots of updates at least one a week. Mostly graphic card drivers update.
    also is it true that if you upgrade let's say the memory,hard drive,etc it won't be covered in the warranty/apple care plan??
    Only two things you can upgrade on a MacBook is the Hard drive and Memory. It will not void the warranty. This is apples word on it. DIY Warranty Info
    I would just like to ask for people's opinions please on purchasing one of these i am currently a senior in college and will be using it next year for grad school,need to replace the one i currently have...
    Be sure you can live with the graphics. If you do a lot of graphics work you might want to consider the MacBook Pro. I use my MacBook for video editing using Final Cut Express HD and it works well. The MB is also not very good for gaming if you are into that. The integrated chip set doesn't work well with 3D games.
    also any other ideas on getting iwork or office, a hard plastic case or a skin,thanks alot for anyone's input it is greatly appreciated.... i am looking to get one once leopard comes out thanks!!
    Depending on your school may be a factor in what you choose. I use iWork and it is pretty good. You could also try NeoOffice or Open Office. They are good also. Office is supposed to be coming out with a new Mac version but not sure yet how it will work.
    Be sure to ask for the student discount when you purchase the computer and software. It adds up.

  • Using a class for validation

    I have a form that collects some info (let's say username and email address). I wrote a Java class for it that has the set and get methods. I am wondering how I can redirect to the page from the class itself in case something fails (like an '@' not in an email address etc.). Also, if that's possible, how can I tell the original page that the validation failed so I can print a nice red error message?
    Thanks!

    Just submit the form through a servlet and let it handle all the business logic. Let the validator throw an exception or so and then let the servlet or bean handle it and let the JSP display a message based on that condition.
    You may find this article useful to get some ideas of how to layer things properly and get it all to work together: [http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html].

  • Multiple ipad Carrying case? Looking for some form of a case where elementary students can transport 20 ipads safely up or down staircases

    I am a teacher and my building just purchased a set of 25 ipad 2s.  I am looking for some form of a carrying case where a teacher or students can take 20-25 ipads from the iPad storage cart and carry it to the classroom.  Some classrooms are on the second floor so something that would hold them safely would be great. Thanks for the help!!

    Check out the carts on this page.  Great ways to spend taxpayer dollars!
    http://www.apple.com/education/labs/
    An Apple iPad Learning Lab streamlines the management of classroom sets of iPad devices. Each lab includes 10 iPad devices and a sturdy and secure mobile cart. The cart can store, charge, and sync up to 30 iPad devices and has room for a MacBook computer. The cart rolls easily around campus, so multiple classes can benefit, and it can be locked to secure the devices when they’re not in use. For even more iPad portability, the Bretford PowerSync Tray can charge, sync, store and secure up to 10 iPad devices at once and is available only through Apple. Purchase a predesigned Apple iPad Learning Lab or let us help you build your own iPad mobile lab.

  • Driver program for the Dunning letter SAP Script

    Hello All,
    Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
    Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
    Thanks and Regards,
    SNK.

    Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
    But notice
    - PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
    - During following upgrades of your system you will have to manage a copy of standard.
    Regards,
    Raymond

  • Issue with Customize program for Dunning Forms

    Hi  Experts
    I have write a perform for dunning form in a outside report apart from standard print program. After doing some calculations I want print some information in the form using the function module "Write_Form", but I am not able write on the form.
    Please advise me is there any other settings are additional details are required to print the custome lines in the dunning form. Dunning form also customized in this scenario.
    Awaiting for your reply
    Thanks
    Praveen

    Hi Shakeel
    Thanks for your help, I am using Write_Form only, but not able to write the statements in the Form.
    Let me explain my code here.
    1. I wrote the perform in the SAP Script under a text element.
    2. In that perform(in the program) I am calling other text elements, where I have to write the statements.
    But I dont know, what is the problem here, when I debug the Write_Form FM, in the very first statement itself, it is becoming false and coming out from the whole process. That statement is
    check co_perform-active <> true.
    Please advise me, am I doing anything wrong or is there any other process to fullfill it.
    Thanks
    Praveen

Maybe you are looking for

  • A set of sets

    I was trying to create a Set of sets of strings earlier today but getting an odd error from the compiler. My code looked something like this. Set< Set<String> > finalSet = new LinkedHashSet< LinkedHashSet< String> >();and the compiler error was as fo

  • The invoked JCA adapter raised a resource exception.

    Hello, I have to use an Oracle apps adapter in Bpel. Thus I created a non-XA datasource and a connection pool for the Oracle Apps Adapter - eis/Apps/DS with its datasource as jdbc/DS. Now when I invoke the Oracle apps adapter, i get the following err

  • Skype won't start up Windows 10

    did not help

  • PatchPro - string index out of range: -1

    Hmm - there seems to be two groups of forums on Sun. I tried this on the other one (the support forums) but they told me to go here. I have a Sun Fire v440 running Solaris 10 3/05 s10_74L2a SPARC. I note in /var/log/messages that I have a patchpro er

  • IMac 24" Display problem

    Hi, Im having display problem with my iMac 24" Early 2008. http://www.hockeystat.net/video.jpg I cant boot, after 20 seconds the OS freeze. I ran a full diagnostic with the Hardware Test...no error. http://www.hockeystat.net/video_test.jpg Any idea ?