How to send the idoc to 12 status, without processing with RSEOUT00 and RBD

Hi All,
How can I change the status of IDoc to 12 without processing with the programs RSEOUT00 and RBDMOIND programs, only with using the partner profiles.  Help needed ASAP.
Thanks,
sreenivas.

Then you need to use fm
  call function 'MASTER_IDOC_DISTRIBUTE'
    exporting
      master_idoc_control            = wa_edidc
    tables
      communication_idoc_control     = i_edidc
      master_idoc_data               = i_edidd
    exceptions
      error_in_idoc_control          = 1
      error_writing_idoc_status      = 2
      error_in_idoc_data             = 3
      sending_logical_system_unknown = 4
      others                         = 5.
then you want to change status
try to submit the above said program

Similar Messages

  • How to change the reason in a ICWC-followup-process with the copying-BAdI?

    Hi all,
    I want to use the followup- and docflow-functionality in ICWC to copy most of the information from one process to another.
    I made the definition of a copying control in the customizing -> working with a new BAdI and the copying routine. Everything works fine so far: I can get/change the description in the BAdIs ORDERADM_H method or the ibase information REFOBJ method for examples.
    The question is now how to get/change the reason of the process?
    Working with the genil_model_browser the reason is located in BTOrderHeader->BTHeaderBOSSet->BTSubjectSet_F->BTSubject_A1. Where can I find the reason in the BAdI methods?
    Thanks for your help.
    Regards,
    Benjamin

    Hi
    Put a break point in crm_order_maintain to see what structures and fields you need to fill out.  Then change the reason code in crm online, you will have all the data you need.
    Here is some code I used in the he badi order_save, method prepare.
      data:
        IV_REF_HANDLE     TYPE     CRMT_HANDLE,
        IV_REF_GUID     TYPE     CRMT_OBJECT_GUID,
        IV_REF_KIND     TYPE     CRMT_OBJECT_KIND,
        IS_SRV_OSSET_COM     TYPE     CRMT_SRV_OSSET_COM2,
        IT_SRV_REFOBJ_COM     TYPE     CRMT_SRV_REFOBJ_COMT,
        IT_SRV_SUBJECT_COM     TYPE     CRMT_SRV_SUBJECT_COMT,
        is_srv_subject_com type CRMT_SRV_SUBJECT_COM,
        ET_SRV_OSSET_COMT     TYPE     CRMT_SRV_OSSET_COMT,
        LT_SRV_OSSET_COMT     TYPE     CRMT_SRV_OSSET_COMT,
        ET_INPUT_FIELDS     TYPE      CRMT_INPUT_FIELD_TAB,
        ET_EXCEPTION TYPE  CRMT_EXCEPTION_T,
        tab_osset type CRMT_SRV_OSSET_COMT1,
        wa_osset like line of tab_osset,
        wa_srv like line of ET_SRV_OSSET_COMT,
        new_srv type CRMT_SRV_OSSET_COMT,
        call_list_name type char50,
        query_text(80).
      refresh: ET_INPUT_FIELDS,
                       IT_SRV_SUBJECT_COM.
              clear: is_srv_subject_com,
                     IS_SRV_OSSET_COM.
              IV_REF_KIND = 'A'.
              iv_ref_guid = iv_guid.
              IS_SRV_OSSET_COM-SUBJECT_PROFILE = 'Z00000002'.
              IS_SRV_OSSET_COM-PROFILE_TYPE = 'F'.
              is_srv_subject_com-ref_handle = '0000000002'.
              is_srv_subject_com-KATALOGART = 'A1'.
              is_srv_subject_com-CODEGRUPPE = 'Z0000002'.
              is_srv_subject_com-CODE = 'ZAA'.
              is_srv_subject_com-DEFQUANTITY = 0.
              is_srv_subject_com-MODE = 'A'.
              append is_srv_subject_com to IT_SRV_SUBJECT_COM.
              CALL FUNCTION 'CRM_SERVICE_OS_SET_DATA'
                EXPORTING
                  IV_REF_GUID        = iv_ref_guid
                  IV_REF_KIND        = 'A'
                  IS_SRV_OSSET_COM   = IS_SRV_OSSET_COM
                  IT_SRV_SUBJECT_COM = IT_SRV_SUBJECT_COM
                IMPORTING
                  ET_SRV_OSSET_COMT  = et_srv_osset_comt
                EXCEPTIONS
                  ERROR_OCCURRED     = 1
                  INVALID_GUID       = 2
                  NO_RECORD_EXIST    = 3
                  OTHERS             = 4.
              IF SY-SUBRC <> 0.
              ENDIF.
              CALL FUNCTION 'CRM_SERVICE_OS_PUT_DATA'
                IMPORTING
                  ET_SRV_OSSET_COM = et_srv_osset_comt
                  ET_INPUT_FIELDS  = ET_INPUT_FIELDS.
              read table LT_SRV_OSSET_COMT index 1 into wa_srv.
              if sy-subrc = 0.
                tab_osset[] = wa_SRV-osset[].
              endif.
              loop at ET_SRV_OSSET_COMT into wa_srv.
                append lines of tab_osset to wa_srv-osset.
              endloop.
              append wa_srv to new_srv.
            else.
              new_srv[] = LT_SRV_OSSET_COMT[].
            endif.
            CALL FUNCTION 'CRM_ORDER_MAINTAIN'
              EXPORTING
                IT_SERVICE_OS     = new_srv
              IMPORTING
                ET_EXCEPTION      = et_exception
              CHANGING
                CT_INPUT_FIELDS   = ET_INPUT_FIELDS
              EXCEPTIONS
                ERROR_OCCURRED    = 1
                DOCUMENT_LOCKED   = 2
                NO_CHANGE_ALLOWED = 3
                NO_AUTHORITY      = 4
                OTHERS            = 5.

  • How to send a 100 plus page MS Word Report with Word and pdf. attachments?

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume
    If your mail service allows all of that to be sent as attachments or however you are attempting that then it's possible the email server or servers receiving the email do not allow attachments that large.
    You say you are sending "a combination of MS Word and pdf files and attachments". I've never sent anything like that. I have zipped various files into a zip file then attached that to an email for sending.
    Googles mail appears to allow a total of 25 megabytes of attachments in a single email.
    Yahoo mail appears to allow a total of 25 megabytes also.
    Microsofts mail appears to allow a total of 20 megabytes of attachments in a single email.
    Another option would be to upload everything to your onedrives public folder and provide a link for others to download all of it in the email you send out.
    A single users onedrive supposedly can have up to 10 gigabytes loaded onto it. I suppose all of that could be used by the public folder but maybe not.
    La vida loca

  • How to keep the first row fixed in a JTable, with sorting, and bellow the headers ?

    I am trying to change the following code so then the fixed rows will stay on top(but below the headers!), but when I change getContentPane().add(fixedScroll, BorderLayout.SOUTH); to getContentPane().add(fixedScroll, BorderLayout.NORTH); it stays above the headers. How can I put the first rows on top, but below the headers ? Thanks.
    import java.awt.*; 
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    * @version 1.0 03/05/99
    public class FixedRowExample extends JFrame {
      Object[][] data;
      Object[] column;
      JTable fixedTable,table;
      private int FIXED_NUM = 2;
      public FixedRowExample() {
        super( "Fixed Row Example" );
        data =  new Object[][]{
            {      "a","","","","",""},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {"fixed1","","","","","","",""},
            {"fixed2","","","","","","",""}};
        column = new Object[]{"A","B","C","D","E","F"};
        AbstractTableModel    model = new AbstractTableModel() {
          public int getColumnCount() { return column.length; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedModel = new AbstractTableModel() {     
          public int getColumnCount() { return column.length; }
          public int getRowCount() { return FIXED_NUM; }
          public Object getValueAt(int row, int col) {
            return data[row + (data.length - FIXED_NUM)][col];
        table = new JTable( model );
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.setAutoCreateRowSorter(true);
        fixedTable = new JTable( fixedModel );
        fixedTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        JScrollPane scroll      = new JScrollPane( table );
        scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        JScrollPane fixedScroll = new JScrollPane( fixedTable ) {
          public void setColumnHeaderView(Component view) {} // work around
                                                 // fixedScroll.setColumnHeader(null);
        fixedScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        JScrollBar bar = fixedScroll.getVerticalScrollBar();
        JScrollBar dummyBar = new JScrollBar() {
          public void paint(Graphics g) {}
        dummyBar.setPreferredSize(bar.getPreferredSize());
        fixedScroll.setVerticalScrollBar(dummyBar);
        final JScrollBar bar1 = scroll.getHorizontalScrollBar();
        JScrollBar bar2 = fixedScroll.getHorizontalScrollBar();
        bar2.addAdjustmentListener(new AdjustmentListener() {
          public void adjustmentValueChanged(AdjustmentEvent e) {
            bar1.setValue(e.getValue());
        scroll.setPreferredSize(new Dimension(400, 100));
        fixedScroll.setPreferredSize(new Dimension(400, 52));  // Hmm...
        getContentPane().add(     scroll, BorderLayout.CENTER);
        getContentPane().add(fixedScroll, BorderLayout.SOUTH);   
      public static void main(String[] args) {
        FixedRowExample frame = new FixedRowExample();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
        frame.pack();
        frame.setVisible(true);

    Sorry, this code missed a very important line:
    table.setAutoCreateRowSorter(true);
    So you meant:
    Object[][] header;//class atribute
    header=new Object[][]{//in the constructor
                { "h","i","j","k","l","m"},
                { "h","i","j","k","l","m"}
    public Object getValueAt(int row, int col) {//in the TableModel
            if (row==0){
                return header[row][col];
            else {
                return data[row][col];
    I tried, but when I sort, the first row get sorted with the rest.

  • How to change the IDOC Status from 30 to 03

    Hi Friends,
    In the Partner Profiles Collect IDOCS option is Selected and the Output mode is 4.
    In my Custom Program i am Using the Function Module MASTER_IDOC_DISTRIBUTE to generate the IDOCs
    I am getting the IDOCs of Status 30.
    then in my Custom Program, I am Submitting the IDOCs to RSEOUT00 program.
    to change the IDOC status from 30 to 03.
      SUBMIT rseout00 USING SELECTION-SCREEN '1000'
                   WITH docnum  IN  gt_range_idocs
                   WITH p_compl EQ 'Y'
                   AND RETURN.
    but still i am not getting the IDOCs of changed status.
    I need to get the Changed IDOC status and if the IDOC status is not changed then I need to generate an Error file for the IDOCs data and send that data to customers as a mail.
    so my requirment is to call the RSEOUT00 in the Custom Program and Change the IDOCs Status to 03.
      When i am Executing the RSEOUT00 Indidually by giving the IDOCs numbers, then the IDOCs Status is going to change to 03 from 30.
    Kindly Guide me how to proceed furthur
    Thanks in Advance,
    Ganesh

    Thanks Shrishit,
    RC1_IDOC_SET_STATUS changing the Status from 30 to 03.
    Its fine, But my Question is will IDOC Data will be reached to XI Server or not.??
    means is the functionality of this Program is same as the RSEOUT00.
    MY job is to change Status from 30 to 03 only
    and then Check the Status of those IDOCs, and if the IDOC is not sended to XI  i.e.;03 status, then I need to send the Details of IDOC (i.e.; data in filed IDOC) to Customer Mail ID through an Attachement.
    I hope you Understood my AIM, why I need to change the Status in my Custom Program only, by submitting IDOCs to this report .
    Kindly waiting for your reply,
    Thanks in Advance,
    Ganesh

  • Issue with the configuration of http xml port for sending the idoc

    Hello,
          I am planning to send multiple idocs in a single file using http xml port.
    Presently I am trying to send a single idoc, but am having the issue.
    I am trying to create a RFC for HTTP XML port of type H i.e. HTTP Connection to ABAP System
    In the how to guide for - How Tou2026 Send Multiple IDocs Within One XI Message
    ( https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b )
    the following parameters are defined for the path prefix -
    RFC destination of type H (HTTP Connection to R/3 System).
    Specify the path prefix as follows:
    /sap/xi/adapter_plain/
    ?namespace=< your namespace>
    &interface=<IDoc_Type>
    &service=<Sender System>
    &qos=EO (or EOIO).
    I am trying to use the following prefix -
    /sap/xi/adapter_plain/
    ?namespace=urn:sap-com:document:sap:idoc:messages ( this is the standard namespace of SAP for all the idocs)
    &interface=DEBMAS05 (Idoc type )
    &service=SNDLS100 ( ECC system name )
    &qos=EOIO
    On testing the RFC connection, I am getting the error of page not found.
    Can anyone please give me pointers for the issue.
    Regards,
    Mayank

    Thanks Barry!!!
    Now I am getting a different message.
    In RFC...it is giving me the following message ->
    Status HTTP Response     204
    Status Text     Body is empty
    In case of Idoc, the status is till 02...
    the error description for the idoc is --
    "When transferring the IDoc by HTTP, the return code with the message '500<SAP:Error><SAP:Category>XIServer</SAP:Category><S' has occurred.
    The target address was: http://emgeccsnd1:8001/sap/xi/adapter_plain/?namespace=urn:sap-com:document:sap:idoc:messages&interf
    Check whether the IDoc can be sent again.
    It is unfortunately not possible to determine automatically whether the IDoc has in fact arrived in the target system and the error occurred afterwards"
    I am still not able to resolve the issue.
    Regards,
    Mayank

  • Adding some code before sending the IDOCs

    Hi all,
    I have one query. When I am doing some transaction system is generating the IDOC with status 03. Now My requirement is to send this IDOCs to the destination system after checking some conditions. So I want to insert to some code in the ALE configuration, so that it can filter the IDOCs based on my bussiness requirement. This is not simply checking one field, i have to write some logic after that only system should send the IDOC, Can you please tell me how to include the code?
    Thanks & Regards,
    Raghu

    Hi,
    There are two ways you can do it:
    1. Using Filters(Tcode BD64) & Convertion rules(Tcode BD55, BD62 & BD79).
    <b>Filter:</b>
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm
    <b>Conversion Rule:</b>
    /people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment
    2. Check for the user-exit or BADI to add your business requirement.
    To get the exact solution please add the business scenario.
    <b>Note:</b> Reward each useful reply.
    Raja T
    Message was edited by:
            Raja T

  • How to send the payload to a jsp using receiver Http adapter?

    Hi experts,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • How to import the IDOC into Seeburger BIC mapping designer

    Hi All,
    Can u please tell me how to import the IDOC into Seeburger BIC mapping desginer.
    I have scenario My scenario is SAP GTS 7.0.....>Seeburger BIS.....>Atlas customs system for Germany
    Idoc coming from SAP GTS to Seeburger BIS and then convert to EDIFACT send
    to Atlas systeam.
    Regards,
    Ramesh.

    Hi Ramesh
    BIC is a tool from Seeburger to transmit the XML data to EDI and EDI to XML.
    Seeburger mapping programs for transferring the XML data to EDI data and EDI data to XML data, but not for the structure changing, in the IR your mapping program is same.
    Receiver side you need AS2 Adapter for converting data to EDI target structure. we have many EDI versions are available, for converting the EDI to XML or vice versa AS2 gives some default mapping programs, xml to EDI or EDI to XML convertion done through this mapping programs.
    Seeburger AS adapter provider provides some mapping programs(for example EDI4010 version or other), if you are using the same EDI version(4010) then you can use that mapping programs, if the version is different then we can manually generate the Seeburger X2E and E2X mappings for the corresponding version and signal(850 or 810 or ..), for this seeburger provides the mapping designer tool (BIC), there we can develope the X2E and E2X mapping programs and configure this in the Seeburger work bench.
    Regards
    Ramesh

  • How to send the output of one step as input to next step

    Hello All,
                   I have a question that how to send the output of the first step as the input to the next step.
     for e.g
                  consider a test sequence as below,
      1.battery ON.
      2. read Voltage
      3. Check battery voltage.
     as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
    in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is  less than 11V or greater than 12V te test has to FAIL.
     so in order to check that voltage we need to send the voltage read from the second step.
    so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
    kindly suggest me this using LabVIEW/Test stand.

    Hi,
    Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
    Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
    But to answer your reoriginal question, some additional information is required.
    What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to send the report output to the application server in a excel file

    Hello,
    how to send the report output to the application server in a excel file.
    and the report runs in background.
    Thanks in advance.
    Sundeep

    Dear Sundeep.
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award Points *

  • HOW TO SEND THE REPORTS AND  THROUGH XI TO NON -SAP SYSTEM

    Hi Experts,
                 I want to know how to send the reports and  smartform through xi to another system. All the post blogs are   just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.

    Hi,
    XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
    In R/3 the smartforms, are generally converted to PDF and then  have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
    ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
    XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
    If need anymore  specific details, please let us know.
    Thanks
    Swarup

  • How to send an idoc of lower release to an External RFC server

    Hi All,
    I am sending idocs from the sap system to an external rfc server(written using Sap RFC SDK).
    When an idoc is sent from the Sap system, I receive an IDOC_INBOUND_ASYNCHRONOUS call in the external RFC server with the Idoc data.
    Everything works fine with the latest release of idocs. But if I send an Idoc of lower release number, I am getting the data records properly for the lower release(say 640). But the DOCREL field (in the control record- EDI_DC40) always gives me the latest release number(700)
    In my partner profile, I specify the Segment release number to 640 and even then I am receiving the value 700 in DOCREL.
    What am I missing here? How can I populate the DOCREL field with the appropriate release number?
    Any help would be greatly appreciated.
    Thanks
    PS: Please feel free to move this post to appropriate category, if this is not the one.

    Serigo,
    Thanks for your reply and we are not using XI.
    I have defined in the port definition giving the path name refering to unix like /outbound/<system name>/<directory name>. But I dont know how to define for C:\temp\, if I define the same way as c:\temp\  do I need define anything anywhere else ?
    Kindly let me know.
    Thanks,
    Kalikonda.

  • How to send Outbound IDocs through an RFC-enabled FM

    Good day to all;
    A partner system (AS/400) wants to use a Java Connection to execute a RFC Function Module, in SAP, that will then return a collection of IDocs.
    Currently, the Function Module builds the IDocs, but I'm not exactly sure how to simply send those IDocs back to the AS/400.
    If anyone can help in this regard, that would be great.
    My current thoughts are to use Master_IDoc_Distribute, but then I imagine that requires a port configuration for the AS/400.  And if this is the case, does that mean that SAP will send the IDocs back itself instead of using the RFC interface?

    Hi Tavares,
    If you want to send outbound IDoc to AS/400 (external system), you need to setup file port (t/code WE21).
    For RFC interface, you need to setup RFC file port with RFC Destination (t/code SM59). In this case, SAP will send IDoc (individually or batch) to receiver system (AS/400). Perhaps you need a middleware for data transformation, if AS/400 does not perform data mapping for outbound IDoc. 
    For FTP interface, you need to setup flat/XML file port for outbound. then you can FTP the file to AS/400 later on.
    In addition to file port configuration, you also need to setup partner profile for outbound parameter (t/code WE20) and the distribution model (t/code BD64).
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to Send the material master data from sap4.6c to ECC6.0

    Hi
        Friends this is shalini Shah, i got one requirement that is
    how to send the materail master data  from SAP 4.6C to ECC6.0 using XI.
    i  know the file to idoc and idoc to file scenarios but i don't know this one.
    please help me friends, Thanks in advance.
    Regards
    Shalini Shah

    Hi Shalini,
    To trigger IDoc these configurations should be done in the SAP 4.6, XI and ECC 6.0.
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3 (4.6 and ECC 6.0)
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    Also go ther the Blog <a href="/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi Configuration for Pushing IDOC's from SAP to XI</a> By Swaroopa Vishwanath
    U need to import the IDoc types both inbound and outbound to XI.
    1. Create Inbound and Outbound Message interface.
    2. Do one to one message mapping.
    3. Define an Interface mapping.
    ID:
    1. Create 1 Sender aggrement.
    2. Create 1 Receiver aggrement.
    3. Define 1 RD and ID.
    4. Only create an receiver IDoc CC.
    Regards
    San
    <a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
    Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

Maybe you are looking for

  • Best practice for having separate clone data for development purposes?

    Hi I am on a hosted Apex environment I have a workspace containing two instances/ copies of the application: DEV and PROD I would like to be able to develop functionality and data in/ with the DEV instance and then insert it into DEV. I gather that I

  • Can't get rid of old screen name in iChat

    when I first got my iMac a couple years ago, I was experimenting with the apps, including iChat. In iChat, I setup an account using a screen name that I no longer want to use, but when I try logging into iChat using the AIM account with the screen na

  • Update terminated when doing VF01

    hello, friends. we have a situation where Billing type F2 settings were changed (using VOFA).  specifically, in field "Assignment" i specified "E" (billing document).  supposedly, the billing document number will be used as assignment allocation.  th

  • Business Place Edit Issue

    Dear SAP Guru, When I am using T.Code:- J1INPP for put the missing Business Place into document.After excute that time the massage is document is incomplete Massage no. 8I0000 and not update the FI document. Please suggest me, How I can resolve this

  • Material for Netweaver EP

    Friends,         I am looking for the material for Netweaver Enterprise Portal, will you please help me out to get that. Thanks Hitesh Shah