How to use characterset to sent .doc attachment which content is in chinese

when I write the like this:
FileDataSource fds = new FileDataSource(((File) attachments.get(attachnames)));
MimeBodyPart mbp_tem = new MimeBodyPart();
mbp_tem.setDataHandler(new DataHandler(fds));
String filename = new String(fds.getName().getBytes("GB2312"),"ISO-8859-1");
mbp_tem.setFileName(filename);
mp.addBodyPart(mbp_tem);
and then in a jsp I download the attachment,but it can not show the chinese message correctly.
why?
the

new String(fds.getName().getBytes("GB2312"),"ISO-8859-1")Here's what that does:
1. Consider the string fds.getName(). (This is a file name, right? Does it contain Chinese characters?)
2. Convert it into an array of bytes using the GB2312 encoding.
3. Convert that array of bytes back into a String, assuming that the byte array is in ISO-8859-1 encoding.
Clearly the assumption in step 3 is false, and that is why you get garbage.
You should be able to download any data you like in an attachment. Any binary data at all. Is your problem only with the name of the attachment?

Similar Messages

  • How to use fnd_webattch.add_attachment API to attach document to an invoice?

    I am trying to use fnd_webattch.add_attachment API to attach document to an invoice.
    But the program seems successfully loaded  the attachment to Invoice. But when I try to open the attachment from UI, I got ORA-01403 no data found screen.
    Don’t know what’s worng with code, Can someone help?
    My pdf file is locate  at app  and DB servers.
    Here is my sql program,
    set feedback off
    set verify off
    set serveroutput on size 100000
    set autocommit off
    Declare
    v_category_id              NUMBER;
    v_attached_doc_id          NUMBER;
    v_invoice_id               NUMBER :=2814131;
    v_invoice_image_url        VARCHAR2(500) := NULL;
    v_function_name            VARCHAR2(50)   := 'APXINWKB';
    v_category_name            VARCHAR2(100) := 'CUSTOM291';
    v_description              VARCHAR2(300) := 'Test script for attaching OB10 scanned image file to AP invoice';
    v_entity_name              VARCHAR2(100) := 'AP_INVOICES';
    v_file_name                VARCHAR2(100) := '/tmp/AMKOR_PRD_0000577922_20130712-151504.pdf';
    v_user_id                  NUMBER               := 1234;
    TYPE result_set_type IS REF CURSOR;
    v_result_set_curr           result_set_type;
    CURSOR  cur_cat_id
    IS
        SELECT     fdc.category_id
        FROM       fnd_document_categories fdc
        WHERE      fdc.name  =  v_category_name;
    BEGIN
         OPEN cur_cat_id;
         FETCH cur_cat_id INTO v_category_id;
         CLOSE cur_cat_id;
             -- Invoke the fnd_webattach api for attaching the file to the invoice
            fnd_webattch.add_attachment ( seq_num                   => 100
                                         ,category_id               => v_category_id
                                         ,document_description      => v_description
                                         ,datatype_id               => 6
                                         ,text                      => NULL
                                         ,file_name                 => v_file_name
                                         ,url                       => v_invoice_image_url
                                         ,function_name             => v_function_name
                                         ,entity_name               => v_entity_name
                                         ,pk1_value                 => v_invoice_id
                                         ,pk2_value                 => NULL
                                         ,pk3_value                 => NULL
                                         ,pk4_value                 => NULL
                                         ,pk5_value                 => NULL
                                         ,media_id                  => NULL
                                         ,user_id                   => v_user_id
                                         ,usage_type                => 'O'
            SELECT    count(fad.attached_document_id)
            INTO      v_attached_doc_id
            FROM      fnd_attached_documents fad
            WHERE     fad.pk1_value = v_invoice_id;
            IF  v_attached_doc_id > 0
            THEN
              DBMS_OUTPUT.PUT_LINE('Attached sucessfully');
            ELSE
              DBMS_OUTPUT.PUT_LINE('Failed to Link the Attacment.');
            END IF; --IF  v_attached_doc_id > 0

    Hi Hussein,
    Yes. I got "Attached Successfully" message at the end.
    Don't know why it didn't created FND_LOBS record for it.
    My sql was copied from the reference on your reply.
    Thanks,
    Florence

  • How to use an own plugin to add 3d-content

    Hi,
    I have started to develop a plugin for Acrobat 8.0 that will add some kind of 3d-content to an existing model. I tried somewhat, but I face the problem that I can't find out how to use the plugin in Acrobat with Javascript. I added the .api file in the folder Acrobat/Plugins and the plugin is loaded.
    But I can't find out how to use the methods of the plugin. I always get the error: 'can't found [methodname]'. Do you need to use some kind of prefix, or whatever. Perhaps this is a newbie question, but I can't find out it in the documentation.
    Any help will be fine!
    Regards,
    Ewout

    > I face the problem that I can't find out how to use the plugin in Acrobat with Javascript.
    That's right. You can't.
    >
    >But I can't find out how to use the methods of the plugin.
    You cannot use the methods of a plug-in. They are for its own internal
    use.
    A plug-in registers for call backs. Most obviously menu selections,
    but also selecting a tool, clicking on a button, opening a document,
    changing page etc. Also it can register an "idle" procedure to be run
    when Acrobat is not busy, at intervals. Your plug-in code is run, by
    Acrobat, at these moments.
    Aandi Inston

  • How to use Mail to sent messages when away from home

    How do I have to configure my "Mail" on my PowerBook G-4 (OS 10.4.5) in order to use it in a WIFI enviroment?
    At home when connected via Airport to my own Outgoing Mail Server (smtp 8. sympatico.ca) I have absolutely no problems. However, last year I was on a Cruise Ship and tried to use the existing WiFi System. I could receive messages using Mail, but I could not send messages using Mail.
    At the moment I'm visiting my son in the Boston area and I'm having the same problem. I was forced to use the Sympatico Web Mail in order to sent E-mail messages. (receiving mail using "Mail", represents no problem)
    There has to be a way to configure Mail to originate messages and sent them as well, but I cannot find anything which tells me how to do that.
    The version presently installed for Mail is 2.0.7.
    Any help in this regard would be greatly appreciated!
    Best Regards,
    Hank
    iMac 20 G-5, 768 of RAM; 12 PowerBook G-4   Mac OS X (10.4.5)  

    Hank,
    The problem here is your ISP (looks like its Sympatico) blocking connections to their mail server from computers not connected directly to their network. I wouldn't blame your ISP though b/c as I understand it almost ALL ISPs block these type of connections to cut down on SPAM being sent.
    What you need to do is to find the outgoing mail server for the network you are on.
    For example, if you look on the "Mail" settings on your Son's computer and note his "Outing Mail Server" (in the "Accounts" pain of "Mail" prefs) settings and then go to your machine and put in that same "Outgoing Mail Server" info then you should be fine.
    You can do this on your machine by selecting "Add Server..." from the "Outgoing Mail Server" drop down menu. When the window comes up just type in the same settings your Son uses. If he does not have a machine with mail setup on it then you can call his ISP and they'll tell you.
    Remember to switch the "outgoing mail server" back to your home server when you return home. By the way, most places (like hotels) will give you their outgoing mail server info if you ask them, so next time you're on a cruise with wifi you might try asking the IT people.
    Best of luck,
    Allen

  • How to use BAPI extension for updating field which is not in BAPI stracture

    I am doing a conversion for control cycle create. The data is maintained in DB Table "PKHD". i have to update 12 fields threre through BAPI "BAPI_KANBANCC_CREATE". there are 11 fields in BAPI structure. but 1 field called"BERKZ" is not there . How can i update it through EXTENSION.

    Hi ,
    in the bapi extension check one structure with name BAPIPAREX will available..
    you need to pass custom structure in that..
    ands conactenate 12 field of your structure and pass in to value1 in bapirex structure and append.
    go to se11 and enter >bapiparex> check where it is used -->see the zprogram and check how it is used the add your code according to that..
    Regards,
    Prabhudas

  • How to use the space on the form which is coming when hide the elements

    Hi,
    I have an issue with the white space coming when I am making subform visible/hidden using java script based on condition.
    Let me explain the complete scenario. I have created an adobe form for printing invoice details, basically I have two pages, the second page is used to handle overflow content from first page and the requirement is that we should show totals section on last page only when we multple page invoice output. To do that I have written a script on second page for total sub form in such a way that the subform will be visible only on last page and will be not visible on any other page. But due to hiding the element I am getting white space in other pages which I dont want. I want to continue to print the items deatisl in that place to use that empty space.
    Can you guys help me to solve this.
    Thanks,
    Suman

    Hi Radzmar,
    Thanks for your reply.I will try this option and will update you.
    I have one more thing to ask. I want to give some space between rows in the table. Can you suggest me how do  i achieve this.
    Regards,
    Suman

  • How to use DPS for a daily newspaper with content management system like wordpress

    Hi,
    I am using DPS for magazines.  I would like to use it urgently for a newspaper company.  the content will be in form of Content Management System such as wordpress, joomla.  I know i can upload html content into folios.  How do I display content like The New york Times and Washington post  on iPad using digital publishing suites?

    Hi,
    Please send me a private mail (ktukker at_sign adobe -d o t - com ) with your question and description of workflow. Can you give me some sample links of Washington Post / NYT that you are referring too?
    You can combine an HTML workflow with DPS. have a look at the Shell Scenarios app; content has all be created in HTML articles.
    Shell Scenarios: https://itunes.apple.com/nl/app/scenarios/id605820338?l=en&mt=8
    -Klaasjan

  • How to use other cols in group by which does not need grouping.

    HI,
    saleshistory table has sales record of each empoly, day wise.
    that is saleshistory has more than one record of empid in it.
    empcode is number(9,0) and empname is varchar2(200), sales number(10,5),empid is number(10,0)
    select empid, sum(sales), max(empname), max(empcode) from saleshistory
    group by empid ;
    or
    select empid, sum(sales), empname,empcode from saleshistory
    group by empid ,empname,empcode ;
    i want to find the total amout of sales done by each employee with empid,empname,empcode in select list.
    1) please tel me which method good which i should follow or is there any other good way to get it.
    yours sincerely
    Edited by: 944768 on Apr 20, 2013 5:14 AM
    Edited by: 944768 on Apr 20, 2013 5:15 AM
    Edited by: 944768 on Apr 20, 2013 5:15 AM
    Edited by: 944768 on Apr 20, 2013 5:16 AM
    Edited by: 944768 on Apr 20, 2013 5:34 AM
    Edited by: 944768 on Apr 20, 2013 7:08 AM

    Hi,
    This sounds like a job for the analytic SUM function.
    Since you didn't post CREATE TABLE and INSERT statements for your own table, I can't test with your table. I'll show how to do his using the scott.emp table instead. In scott.emp, there can any number of rows with the same job, just as in your table there can be any number of rows for the same empid.
    SELECT       job
    ,       sal
    ,       SUM (sal) OVER  (PARTITION BY  job)     AS total_sal
    FROM       scott.emp
    ORDER BY  job
    ;Output:
    JOB              SAL  TOTAL_SAL
    ANALYST         3000       6000
    ANALYST         3000       6000
    CLERK           1300       4150
    CLERK            950       4150
    CLERK            800       4150
    CLERK           1100       4150
    MANAGER         2850       8275
    MANAGER         2975       8275
    MANAGER         2450       8275
    PRESIDENT       5000       5000
    SALESMAN        1500       5600
    SALESMAN        1250       5600
    SALESMAN        1250       5600
    SALESMAN        1600       5600Most aggregate functions (like SUM) have analytic counterparts which can get the same results without collapsing the result set down to one row per group. The PARTITION BY clause of analytic functions corresponds to the GROUP BY clause used with aggregate functions.
    944768 wrote:
    ... when we used GTT in Stored proc (SP) is it necessary to truncate it at the begining of sp , if one truncate can it create any harm, as SP is used by many people at the same time.This seems to be a completely separate question. Most of your message involved grouping and the SUM function; it has nothing to do with Global Temporary Tables or stored procedures. You might have an application that uses a stored procedure and a global temporary table, and which also uses groupng and the SUM function, but that doesn't mean you hve a problem that involves all of them. If the stored procedure problem has anything to do with the grouping problem, explain it. If it is a completely separate problem, then start aompletely separate thread or it (and explain it).
    I hope this answers your question.
    If not, point out where the query above is producing the wrong reslts, and explain, using specific examples, how you get the correct results in those places.
    If you want to use your own table, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • How to use a dropdown in a workbook which can work in different queries?

    Hi Experts,
            I have created a workbook which can display the query by using the 'Push Button'. One query is based on material analysis and another one on product analysis.
            It works good..
            In that workbook, I want to use a dropdown so that it can display the required key figure. (Note : In both the queries, key figures are same.)
            While selecting the keyfigure option in the properties of dropdown, the target data provider is not visible.
            So, pls help me to use the dropdown which can work in both the queries.
    With Regards,
    Yokesh Kumar.

    Hi,
    After fixing the error in the role I noticed that all I should do is to publish the querry in a new role.
    From that moment a user that is tied to new role can read the old report using the rights associated in a new role.
    Thanks for help.
    Regards. Leszek

  • How to use j query in .jsf page which is designed using adfpagetemplate.

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled7.jsf" id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:resource type="javascript"
    source="/lib/jquery/jquery-1.3.2.min.js"/>
    <af:resource type="javascript">
    function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    // use this to pull the images in the order they appear in the markup
    var $next = $active.next().length ? $active.next() : $('#slideshow img:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
    $active.removeClass('active last-active');
    $(function() {
    setInterval( "slideSwitch()", 15000 );
    </af:resource>
    <af:resource type="css">
    #slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
    #slideshow IMG.active {
    z-index:10;
    opacity:1.0;
    #slideshow IMG.last-active {
    z-index:9;
    </af:resource>
    <af:panelGroupLayout id="slideshow" layout="vertical">
    <!-- The use of groups avoids that each image gets surrounded by a div -->
    <af:group>
    <af:image source="/images/cristo1.jpg" id="i1" />
    <af:image source="/images/cristo2.jpg" id="i2"/>
    <af:image source="/images/ipanema1.jpg" id="i3"/>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end"/>
    <f:facet name="start"/>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    Above content is my code written in jsf page....
    jquery working fine if i create page withoput pagetemplate...
    Any please guide me to use jquery in the jsf page(created with page template)...
    Thanks in advance
    Edited by: 991543 on May 7, 2013 11:05 PM

    Hi frank,
    thanks for your reply frank........still am facing the same issue even i tried wat you told.
    I have pasted the code below for your reference.....
    please let me knw wat is the wrong thing in below code if any thing wrong plz guide me to resolve because this is needed in our project, thanks in advance.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled7.jsf" id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:resource type="javascript"
    source="/lib/jquery/jquery-1.3.2.min.js"/>
    <af:resource type="javascript">
    function slideSwitch() {
    var $active = $('#pt1:slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#pt1:slideshow IMG:last');
    // use this to pull the images in the order they appear in the markup
    var $next = $active.next().length ? $active.next() : $('#pt1:slideshow img:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
    $active.removeClass('active last-active');
    $(function() {
    setInterval( "slideSwitch()", 1000 );
    </af:resource>
    <af:resource type="css">
    #pt1:slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
    #pt1:slideshow IMG.active {
    z-index:10;
    opacity:1.0;
    #pt1:slideshow IMG.last-active {
    z-index:9;
    </af:resource>
    <af:panelGroupLayout id="slideshow" layout="vertical">
    <!-- The use of groups avoids that each image gets surrounded by a div -->
    <af:group>
    <af:image source="/images/cristo1.jpg" id="i1" />
    <af:image source="/images/cristo2.jpg" id="i2"/>
    <af:image source="/images/ipanema1.jpg" id="i3"/>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end"/>
    <f:facet name="start"/>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    Thanks & Regards
    Gowthaman Narayanan
    Edited by: 991543 on May 15, 2013 4:27 AM
    Edited by: 991543 on May 15, 2013 4:30 AM

  • How to use different images in the Table of Contents?

    Hello everyone, I am creating an iBook about Architecture and I would like to have different images for each Chapter in the Table of Contents... But when I add an image it automatically appears on all the other chapters, too. What am i doing wrong?

    You drag the image to the screen and it replaces the placeholder image.
    When you hover over the current image, don't you get the message "this is a placeholder . . ." under your mouse pointer?
    I think the documentation states that the new image must be jpg or png, but a Photoshop image seems to work too.
    In portrait mode, only one image shows at the top of the list of chapters, and that can be changed too.
    But in landscape mode, all of the separate chapter images can be accessed by clicking the littel dots at the bottom of the screen when at the TOC page.

  • How to use cm_nodeName attribute of search tag in content queries ?

    hello,
    i want to know about cm_nodeName,cm_path attributes of search tag.Actually i want to directly reterieve concerned node,so that content should be directly reterieved from that node and it should not search into all the present nodes in repository,to improve performence.
    Problem is that above mentioned tags are not working.
    Peply as soon as possible

    You could always write your own authenticator (i do not know if you can configure BEA directly)

  • How to Use SOAPArray to Exchanged Data with a Web Service

    The method of a prototype Web service I created is defined to take many parameters
    and return an object of a user defined class. Furthermore, the user defined class
    includes data elements of another user defined class and the Java ArrayList class.
    This works with a Java client referencing the WebLogic created client.jar file
    but I don't know how well it will work with a non-Java client. In particular,
    with Perl which is the language that will be used by the developer who first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers" has
    been discouraged and the "language-agnostic" SOAPArray recommended. I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray to exchange data
    with a Web service to achieve the goal of a service accessible by any language.
    Thank you.

    Replies in-line:
    How are the structures, e.g. gltrans-workType, defined in the Web service?The structure is made up of nested Java Beans, but this does not mean that the
    client for your web service has to be written in Java. The WSDL that I sent contains
    everything that a .NET-based (or Perl-based, or Python-based, or VB-based, or
    C++ based) Web Service Stack needs to correctly create all the data types in the
    web services' signature! That's the beauty of XML Schema! It's programming language
    independent :-)
    In
    other words, what definition in Java resulted in the WSDL statements?The WSDL wasn't produced by WLS 6.1, but it (WLS 6.1) can consume it.
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?public void submitGLTransWorkAsJavaBean(GlTransactionsCpyType glTransactionsCpyType)
    GlTransactionsCpyType is the outer-most Java Bean. WLS 6.1 does not generate
    Java Beans for you, but it will use ones that you defined. See the Java Bean tutorial
    on the Javasoft sitem for details on how to create a Java Bean.
    Was the WSDL generated using the WL tools for creating a Web service?No.
    Conclusion:
    You asked for someone to provide you with an example of how to use SOAP array
    in a WSDL, which is what the attached file contained :-) What you want to do now
    is find a tool that can generate Java Bean code from this WSDL (Apache Axis has
    a wsdl2java tool that should work), or create the Java Beans yourself. Afterwards,
    create a WLS 6.1 Web Service a expose it for a Perl or .NET client.
    Regards,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    >
    Please elaborate.
    How are the structures, e.g. gltrans-workType, defined in the Web service?
    In
    other words, what definition in Java resulted in the WSDL statements?
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?
    Was the WSDL generated using the WL tools for creating a Web service?
    Thank you.
    "Michael Wooten" <[email protected]> wrote:
    Hi Jeff,
    Sounds like a pretty cool prototype :-)
    I have attached a WSDL (at the bottom of this post) that contains a<schema>
    that
    uses a SOAPArray to create an array of a <complexType>.
    HTH,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    The method of a prototype Web service I created is defined to take
    many
    parameters
    and return an object of a user defined class. Furthermore, the user
    defined class
    includes data elements of another user defined class and the Java ArrayList
    class.
    This works with a Java client referencing the WebLogic created client.jar
    file
    but I don't know how well it will work with a non-Java client. Inparticular,
    with Perl which is the language that will be used by the developerwho
    first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers"
    has
    been discouraged and the "language-agnostic" SOAPArray recommended.
    I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in
    a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java
    Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values
    and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray toexchange
    data
    with a Web service to achieve the goal of a service accessible by any
    language.
    Thank you.

  • HOW TO USE BAPI   BAPI_BILLINGDOC_CREATEMULTIPLE

    HI  ALL:
         I  want to create billing num. in t-code 'VF01'. It is just to input a delivery num.
    then press zhe 'save' button.
         How to use the bapi  BAPI_BILLINGDOC_CREATEMULTIPLE, I mean which
    variable  should be given.  Is there any examples.
         THANKS FIRST.

    Hi,
    Following is the documentation provided by SAP in the BAPI transaction:
    Functionality
    This method can be used to create billing documents.
    As input parameters, you are expected to enter information on the items to be processed in the table BILLING_DATA_IN. This data is processed and produces a batch of billing documents. You also have the option of transferring information for entry in the input structure CREATOR_DATA_IN. If this information is already determined, this is transferred into each billing document header. You can also enter optional conditions for the individual items to be processed in the input table CONDITION_DATA_IN, as well as means of payment information in the table CCARD_DATA_IN.
    This method can be used in the simulation run (TESTRUN = 'X') and also in the update run including the update (TESTRUN = ' '). Both execution variants deliver errors that may have occurred back to the output table RETURN. Information on successful processing is sent back in the output table SUCCESS. This output table delivers the document numbers of the billing documents created in particular.
    Notes
    Required entries :
    BILLING_DATA_IN-SALESORG
    BILLING_DATA_IN-DISTR_CHAN
    BILLING_DATA_IN-DIVISION
    BILLING_DATA_IN-DOC_TYPE
    BILLING_DATA_IN-ORDBILLTYP
    BILLING_DATA_IN-SOLD_TO
    BILLING_DATA_IN-ITEM_CATEG
    BILLING_DATA_IN-REQ_QTY
    BILLING_DATA_IN-SALES_UNIT
    BILLING_DATA_IN-CURRENCY
    If a material is billed for which a material master needs to be
    determined (BILLING_DATA_IN-NO_MATMAST = ' '), you must make the
    following entries :
    BILLING_DATA_IN-PLANT
    BILLING_DATA_IN-MATERIAL
    If, on the other hand, a material is billed for which no material
    master is to be determined (BILLING_DATA_IN_NO_MATMAST = 'X'), you
    must make the following entries :
    BILLING_DATA_IN-COUNTRY
    BILLING_DATA_IN-MATERIAL
    BILLING_DATA_IN-TAXCL_1MAT
    COMMIT control :
    In the update run (TESTRUN = ' ') the update is carried out by COMMIT
    WORK as part of the method available.
    I guess using this, you will be able to populate the required things to create the billing documents.
    Thanks
    Vijay

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

Maybe you are looking for

  • How do I use the top screen for fullscreen gaming?

    I have a 13" MacBook Pro hooked up to my LCD Cinema Display. When I try to play a game (i.e. Civilization, Spore, etc.), it will only play on the bottom screen (my 13" one, not the LCD). Is there any way to make it play fullscreen on the top? I have

  • Call to a C++ DLL, using JNI - C++ method has char*

    I am trying to link into an existing C++ Dynamically Linked Library(DLL) using the Java Native Interface(JNI). All goes fine, and the library loads into the current program, however when I try to call the function, it crashes. The function has char p

  • Missing Java Plugin?

    Hi, I am new to Java, so be kind :) I create virtual tours using Java, and have run into a common. Since Windows XP no longer includes Java as a default, this has created some confusion for users. I would like to include a Java code that could detect

  • Internal order number ranges

    Hi gurus I moved my new Order type into QE and also the new number range to be used with this new Ordertype. However when I look in the "Define Order type" configuration , the number range interval is "Not assigned". If I go into "Maintain Number Ran

  • Editing Topics in Work

    I am working on a project with individuals that are not so technically savvy, so I had them creates documents using Word. This is my first time using RoboHelp, I typically build a web site from scratch. I saw that RoboHelp would retain style formatti