RE: ole coding for msword

hi everybody, i strucked in putting borders for the certificates created in msword,is any property or method for that, if anybody know ,please let me know, very uregent.

Hmm looking at MS Help, it seems that border object is part of borders collection and itssuper objects can be paragraph, table, cell, selection and column. This object has many properties line linestyle, linewidth, visible etc. So i infer that you should create it from your main object, if you are using MSword with OLE , i assume you will be using object hier. like application than document than table .... So it border can be a subobject for table or cell object. For further help you can refer to MS help, and look for available properties and methods for "border object"
Hope this solves your problem.
Cheers

Similar Messages

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All
    In system object we have the user mapping fields like District,city,plant,Salesmanager.
    now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
    if anybody have sample codes of the same then it would be great help to me
    Thanks in advance
    Thanks
    Trisha Rani

    Hi Kavitha
    Thanks for your reply
    My requirement is exactly as follows.
    1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement  in system object.
    i created the user mapping fields like Plant,SalesManager,District etc.
    i also created the system alias name for the same system object
    2)  Now i came to persoanlize link and mapped the system object to the portal user.
    while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
    once we enter all the values and click on save then these usermapping  values to be mapped to the portal user.
    3) Now my requirement is , i  want to control the usermapping field values thru webdynpro coding for setting/getting the values.
    I need sample code of the same.
    Please let me know if u need more details on the same.
    Thanks
    Trisha Rani

  • Coding for ABAP Proxy and mapping

    Hi XI Ds
    which one need coding neither ABAP Proxy nor ABAP Mapping
    Thanks

    Hi Kushee  ,
    We need coding for both ABAP Proxy and mapping. We need to know some OO(Object Oreinted) ABAP concepts.
    We can also import JAVA CODE for certain functionality.
    Check the following websites for clarity:
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    cheers!
    gyanaraj

  • Coding for static fill-out form

    fill out form questionnaire?
    I am creating in Flash CS4 (AS3) a static fill out form for a website that I am involved in. The questionnaire helps to determine whether a person is suseptible to drug and alcohol abuse with either a postive answer (not likely to develop substance abuse) or a negative answer (likely to develop substance abuse)
    There are six questions on this form that MUST be answered either yes or no.
    I have created the form with all art and buttons and it is ready to implement in Dreamweaver but need the scripting to make work.
    The six YES buttons are assigned instance names of cb1, cb3, cb5, cb7, cb9 and cb11
    The six NO buttons are assigned instance names of cb2, cb4, cb6, cb8, cb10
    and cb12.
    When the participant answers all six questions either yes or no they will hit a Submit button (with an instance name of submit) that will direct them to a new web/flash page with appropriate answer.
    If the participant answers TWO or more questions with YES and hit submit they will be directed to a new page/doc in the website with the negative answer.
    If the participant answers ONE YES and hit submit they will be directed to a new page/doc in the website with a positive answer.
    If the participant answers ALL NO and hit submit they will be directed to a new page/doc in the website with the same positive answer as answering with ONE YES response.
    I assume this is a very complex coding problem. I am a beginner/intermidiate flash person with extreme novice understanding of coding. I know what stop(); does in AS3 and understand simple clickTag coding etc.
    Would appreciate any help with AS3 coding for this document.
    I usually find coding on forums like these and online blogs - but I don't even know where to begin looking.
    Thanks

    on the timeline that contains your buttons:
    var yesNum:int=0;
    var noNum:int=0;
    submit_btn.addEventListener(MouseEvent.CLICK,submitF);
    for(var i:int=1;i<=12;i++){
    if(1%2==0){
    this["cb"+i].addEventListener(MouseEvent.CLICK,noF);
    } else {
    this["cb"+i].addEventListener(MouseEvent.CLICK,yesF);
    function yesF(e:MouseEvent):void{
    yesNum++;
    e.currentTarget.removeEventListener(MouseEvent.CLICK,yesF);
    function yesF(e:MouseEvent):void{
    noNum++;
    e.currentTarget.removeEventListener(MouseEvent.CLICK,noF);
    function submitF(e:MouseEvent):void{
    if(yesNum+noNum==12){
    // take appropriate action based on yesNum and/or noNum
    } else {
    // error.  all questions not answered.

  • Require coding for purchase requisation outstanding aging report

    Hi Gurus,
                    I got a requirment to develop  purchase requisation outstanding aging report.Please provide me the coding for purchase requisation outstanding aging report.
    Points will be rewarded  for every reply.
    Regards ,
    Sonali.

    Hi Sonali,
    You need to use EBAN, EBKN Tables.
    Regards,
    Satish

  • Please tell me if coding for ITS is done in ABAP.

    Hi all,
    Please tell me if coding for ITS based on ABAP.
    Thanks.

    Hello Sanjiv,
    I'm not sure I understand the question...
    ITS uses BusinessHTML and HTML and other Internet standards (css, js, etc).  However, you can develop in ABAP and then use SE80 to generate a template for you or use the WEBGUI service to call your ABAP developed transaction directly.  You can find more information by using the links at the top of the ITS forum to go to the Wiki or FAQ or Product page for the ITS.
    Edgar

  • Coding for IE on my completed site

    I've completed my site  brucebever.com   and it's working fine in safari and firefox, not working in IE, and I have no idea about Chrome, Opera, and Netscape.
    Now I need to go back through the site and fix all the IE bugs.  This is my first website attempt, so maybe I should have been coding for IE during the construction of the site, but learning DW was hard enough without having to learn two or three different coding formats too.
    So I guess my question is very general... Could someone take a look at my site and code and tell me my next step?  Is there a resource somewhere that will help me with this seemingly monumental task?
    Thanks
    Bruce

    In searching out the code to change for IE, I actually resolved my gray-background issue... funny how things are all related.  I left you a note over there, but thanks again.
    I tried changing that var eB to 'false' in each of my three index files, but it didn't work.  Might it be in the param.xml that is exported with the Flash content?
    I also see in the css file something called 'allow full screen= true' but there is a full-screen button you can click on in the slideshow, so I thought that particular code may be refering to that feature of the show.
    I'd like not to re-export all my slideshows if I can avoid it.
    EDIT:
    I found this code in the swffit.js file:
    swfobject.createCSS("#"+_ft,"position:absolute; width:100%; height:100%");swfobject.createCSS("#"+_ft+" object","position:absolute");swfobject.addDomLoadEvent(startFit)}function startFit(){html.style.height=doc.body.style.height='100%';html.style.overflow='auto';doc. body.style.margin=doc.body.style.padding='0';
    Does any of this affect IE?

  • Coding for Automatic execution

    in our project we deal with three independent machines namely server,validation server and a client.the job of the validation server is to find the original ip address of the client and the finding operation is carried out secretly by the validation server.we have got the coding for finding the original IP address.but this coding should run automatically once the client receives the message from the validation server.So we require assistance in the form of coding in java to solve this problem.pls reply as early as possible.

    its not like malware. In my project is to find the hacker. a person can spoof another IP address and send messages to others. so in order to find its original IP address we are writing module in my project, where we got code for finding IP address but it run explicitly which is not opt for my project. so we need to run that code in the hidden format for which we describe as the virus performance. Actually we don't need cod for virus.
    Here is my code to find IP address
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    public class IPAdress {
    public static void main(String[] args) {
    try {
    System.out.println(InetAddress.getLocalHost().getHostName());
    System.out.println(InetAddress.getLocalHost().getHostAddress());
    } catch (UnknownHostException e) {
    e.printStackTrace();
    Edited by: Serv on Mar 9, 2009 8:40 AM

  • Coding for selecting a specific data

    i have a table with n records where email id is 1 field. In this table i have email id records.
    i want logic and coding for the following
    1. the mail id should be printed only once in the screen followed by its contents.
                                                                                    00    LPS19073_CRF-DESIGN_P1    LPS          000           -            22.03.2007 [email protected]
    00    LPS19073_CRF-DESIGN_P5    LPS           000           -            01.04.2007 [email protected]   
    00    LPS19073_CRF-DESIGN_P7    LPS           000           -            22.03.2007 [email protected]   
    for next mai id it should be printed in the next line and its contents should be printed .
    the putput should like this
    [email protected]
    00    LPS19073_CRF-DESIGN_P5    LPS           000           -            01.04.2007
    00    LPS19073_CRF-DESIGN_P7    LPS           000           -            22.03.2007
    [email protected]
    00    LPS19073_CRF-DESIGN_P1    LPS          000           -            22.03.2007
    plz help me

    Chandrasekharan,
    Check the below   code.There we are passing the total internal table data at once in FM
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = object_hd_change
    object_type = 'RAW'
    outbox_flag = 'X'
    TABLES
    objcont = object_content
    receivers = rec_table
    Instead of this put the internal table in LOOP . and assign the mail ID value to
    rec_table-recextnam = '[email protected]'.
    rec_table-adr_name = '[email protected]'.
    So you will achieve your goal.Pls. see the below code.
    Go through the below code.
    REPORT zmbundal_email_out .
    DATA BEGIN OF object_hd_change. "SAPoffice: object definition,
    INCLUDE STRUCTURE sood1. "change attributes
    DATA END OF object_hd_change.
    DATA BEGIN OF object_content OCCURS 5. "SAPoffice: Single List with
    INCLUDE STRUCTURE solisti1. "Column Length 255
    DATA END OF object_content.
    DATA BEGIN OF rec_table OCCURS 1. "SAPoffice: recipient with
    INCLUDE STRUCTURE soos1. "attributes
    DATA END OF rec_table.
    Build email recipient table...........................................
    CLEAR rec_table.
    rec_table-sel = 'X'.
    rec_table-recesc = 'B'.
    rec_table-recesc = 'U'.
    rec_table-recnam = 'U-'.
    rec_table-recextnam = '[email protected]'.
    rec_table-adr_name = '[email protected]'.
    rec_table-sndex = 'X'.
    rec_table-sndpri = '1'.
    rec_table-mailstatus = 'E'.
    rec_table-SNDSPO = 442355.
    rec_table-SNDCP = 'X'.
    COLLECT rec_table.
    *.Email.content.........................................................
    object_content = 'dannyboy baboy'. APPEND object_content.
    object_content = 'dannyboy pogi'. APPEND object_content.
    object_content = 'dannyboy fagg*t'. APPEND object_content.
    *...Subject.Line........................................................
    object_hd_change-objnam = 'Test email'.
    object_hd_change-objdes = ' Email for Baboy'.
    Send Email............................................................
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = object_hd_change
    object_type = 'RAW'
    outbox_flag = 'X'
    TABLES
    objcont = object_content
    receivers = rec_table
    EXCEPTIONS
    active_user_not_exist = 1
    communication_failure = 2
    component_not_available = 3
    folder_not_exist = 4
    folder_no_authorization = 5
    forwarder_not_exist = 6
    note_not_exist = 7
    object_not_exist = 8
    object_not_sent = 9
    object_no_authorization = 10
    object_type_not_exist = 11
    operation_no_authorization = 12
    owner_not_exist = 13
    parameter_error = 14
    substitute_not_active = 15
    substitute_not_defined = 16
    system_failure = 17
    too_much_receivers = 18
    user_not_exist = 19
    originator_not_exist = 20
    x_error = 21
    OTHERS = 22.
    *...SAPconnect..........................................................
    SUBMIT rsconn01 "SAPconnect Start Send Process
    WITH mode EQ '*'
    WITH output EQ ''
    TO SAP-SPOOL
    DESTINATION 'LOCAL'
    IMMEDIATELY ' '
    KEEP IN SPOOL 'X'
    WITHOUT SPOOL DYNPRO
    AND RETURN.
    Don't forget to reward if useful....

  • Coding for maintain the multip[le sessions

    i have 1,00,000 records in a flat file how to maintain  the multiple sessions
    each session having 10000 records i want coding for how these multiple sessions

    see the example program and the selection screen you can maintain how many records per session.
    Report     : ZMPPC015
    Type       : Data upload
    Author     : Seshu Maramreddy
    Date       : 05/26/2005
    Transport  : DV3K920025
    Transaction: ??
    Description: This ABAP/4 Program to Create Planned Independent
                 Requirement for SMI plants using MD61 Transaction.
                 It accepts tab-delimited spreadsheet input and
                 creates BDC sessions.
    report zmppc015 no standard page heading
                    line-size 120
                    line-count 55
                    message-id zz.
    Constants
    constants : c_x type c value 'X'," Dynbegin
                c_tcode type tstc-tcode value 'MD61'." Transaction Code
    Variables
    data : v_lines_in_xcel like sy-tabix,
           l_tabix like sy-tabix,
           v_trans_in_ssn type i,
           v_ssnnr(4) type n," Counter
           v_ssnname like apqi-groupid,
           v_matnr(18) type c. " Material Number
    Internal Tables
    Internal table for file
    data : begin of t_file occurs 0,
           matnr(18) type c,   " Material Number
           berid(10) type c,    " MRP Area
           PLNMG01(17) type n, " Forecast Month -01
           PLNMG02(17) type n, " Forecast Month -02
           PLNMG03(17) type n, " Forecast Month -03
           PLNMG04(17) type n, " Forecast Month -04
           PLNMG05(17) type n, " Forecast Month -05
           PLNMG06(17) type n, " Forecast Month -06
           PLNMG07(17) type n, " Forecast Month -07
           PLNMG08(17) type n, " Forecast Month -08
           PLNMG09(17) type n, " Forecast Month -09
           PLNMG10(17) type n, " Forecast Month -10
           PLNMG11(17) type n, " Forecast Month -11
           PLNMG12(17) type n, " Forecast Month -12
           WERKS(4) TYPE C,    " Plant
           end of t_file.
    Internal table for BDCDATA Structure
    data : begin of itab_bdc_tab occurs 0.
            include structure bdcdata.
    data : end of itab_bdc_tab.
    Selection-screen
    selection-screen: skip 3.
    selection-screen: begin of block id1 with frame.
    parameters: p_name        like rlgrap-filename
                              default 'C:\My Documents\InputFile.txt'
                              obligatory,
    bdc session name prefix
                p_bdcpfx(6)   default 'ZPIRCT'
                              obligatory,
    number for transction per BDC session
                p_trnssn      type i
                              default 2000 obligatory,
    retain the BDC session after successfull execution
                p_keep        like apqi-qerase
                              default c_x,
    user who will be executing BDC session
                p_uname       like apqi-userid
                              default sy-uname
                              obligatory.
    selection-screen : skip 1.
    Requirement type
    parameters : p_bedae like t459u-bedae,
    From Date
                 p_date like sy-datum default sy-datum obligatory.
    selection-screen: end of block id1.
    at selection-screen on value-request for p_name.
    F4 value for Input file
      perform filename_get.
    main processing
    start-of-selection.
    To get the data from file to Internal table
      perform getdata_fromfile.
      loop at t_file.
      hang on to xcel line num
        l_tabix = sy-tabix.
      if num-of-trnas-in-session = 0, create new BDC session
        if v_trans_in_ssn is initial.
          perform bdc_session_open.
        endif.
      begin new bdc script for rtg create trans
      fill in bdc-data for prod.version maintenance screens
        perform bdc_build_script.
      insert the bdc script as a BDC transaction
        perform bdc_submit_transaction.
      keep track of how many BDC transactions were inserted in the BDC
      session
        add 1 to v_trans_in_ssn.
      if the user-specified num of trans in BDC session is reached OR
      if end of input file is reached, close the BDC session
        if v_trans_in_ssn = p_trnssn or
           l_tabix = v_lines_in_xcel.
          perform bdc_session_close.
          clear v_trans_in_ssn.
        endif.
    clear t_file.
      endloop.
    top-of-page.
      call function 'Z_HEADER'
    EXPORTING
      FLEX_TEXT1       =
      FLEX_TEXT2       =
      FLEX_TEXT3       =
    *&      Form  filename_get
          F4 Value for input file
    FORM filename_get.
      CALL FUNCTION 'WS_FILENAME_GET'
           EXPORTING
                DEF_PATH         = 'C:\Temp\ '
                MASK             = ',.,..'
                MODE             = 'O'
                TITLE            = 'Select File '(007)
           IMPORTING
                FILENAME         = p_name
           EXCEPTIONS
                INV_WINSYS       = 1
                NO_BATCH         = 2
                SELECTION_CANCEL = 3
                SELECTION_ERROR  = 4
                OTHERS           = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " filename_get
    *&      Form  getdata_fromfile
          Upload the data from file to Internal table
    FORM getdata_fromfile.
      CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME                = p_name
                FILETYPE                = 'DAT'
           TABLES
                DATA_TAB                = t_file
           EXCEPTIONS
                CONVERSION_ERROR        = 1
                FILE_OPEN_ERROR         = 2
                FILE_READ_ERROR         = 3
                INVALID_TYPE            = 4
                NO_BATCH                = 5
                UNKNOWN_ERROR           = 6
                INVALID_TABLE_WIDTH     = 7
                GUI_REFUSE_FILETRANSFER = 8
                CUSTOMER_ERROR          = 9
                OTHERS                  = 10.
      if sy-subrc eq 0.
        sort t_file by matnr .
        delete t_file where matnr = ''.
        clear v_lines_in_xcel.
        describe table t_file lines v_lines_in_xcel.
        if v_lines_in_xcel is initial.
          write: / 'No data in input file'.
          stop.
        endif.
      else.
        write:/ 'Error reading input file'.
        stop.
      endif.
    ENDFORM.                    " getdata_fromfile
    *&      Form  bdc_session_open
          BDC_OPEN_GROUP
    FORM bdc_session_open.
    create bdc session name = prefix-from-selectn-screen + nnnn
      add 1 to v_ssnnr.
      concatenate p_bdcpfx v_ssnnr into v_ssnname.
      CALL FUNCTION 'BDC_OPEN_GROUP'
           EXPORTING
                CLIENT              = SY-MANDT
                GROUP               = v_ssnname
                KEEP                = p_keep
                USER                = p_uname
           EXCEPTIONS
                CLIENT_INVALID      = 1
                DESTINATION_INVALID = 2
                GROUP_INVALID       = 3
                GROUP_IS_LOCKED     = 4
                HOLDDATE_INVALID    = 5
                INTERNAL_ERROR      = 6
                QUEUE_ERROR         = 7
                RUNNING             = 8
                SYSTEM_LOCK_ERROR   = 9
                USER_INVALID        = 10
                OTHERS              = 11.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " bdc_session_open
    *&      Form  bdc_build_script
          BDC Script
    FORM bdc_build_script.
    Local Variables
      DATA : l_frdat(8) type c,  " From Date
             l_todat(8) type c,  " To Date
             l_frdat1(4) type c, " Year
             l_frdat2(2) type c, " Month
             l_frdat3(2) type c, " Day
             l_tdate like sy-datum, " Subtract date(1)
             l_todat1(4) type c,    " Year
             l_todat2(2) type c,    " Month
             l_todat3(3) type c.    " Day
       Get the material number from tables ZMSMI_FERR_RAW,
       ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
      perform get_matnr.
    Screen 0100.
      perform bdc_screen using  'SAPMM60X'     '0100'.
      perform bdc_field  using  'BDC_OKCODE'   '/EBDPT'.
      perform bdc_field  using  'AM60X-MATAW'  'X'.
      perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
      perform bdc_field  using  'AM60X-PRGRP'  SPACE.
      perform bdc_field  using  'AM60X-PBDNR'  SPACE.
      perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
      perform bdc_field  using  'AM60X-WERKS'  SPACE.
      perform bdc_field  using  'RM60X-VERSB'  '00'.
    Converted the date as per MD61 Transaction.
    From date
      l_frdat1 =  p_date+0(4).
      l_frdat2 =  p_date+4(2).
      l_frdat3 =  p_date+6(2).
      concatenate l_frdat2 l_frdat3 l_frdat1 into l_frdat.
    To Date
      l_tdate = p_date - 1.
      l_todat1 =  l_tdate+0(4) + 1.
      l_todat2 =  l_tdate+4(2).
      l_todat3 =  l_tdate+6(2).
      concatenate l_todat2 l_todat3 l_todat1 into l_todat.
      perform bdc_field  using  'RM60X-DATVE'  l_frdat.
      perform bdc_field  using  'RM60X-DATBE'  l_todat.
      perform bdc_field  using  'RM60X-ENTLU'  'M'.
    Screen 0127
      perform bdc_screen using  'SAPMM60X'     '0127'.
      perform bdc_field  using  'BDC_OKCODE'   '=WEIT'.
      if p_bedae is initial.
        perform bdc_field  using  'T459U-BEDAE'  space.
      else.
        perform bdc_field  using  'T459U-BEDAE'  P_BEDAE.
      endif.
    Screen 0100.
      perform bdc_screen using  'SAPMM60X'     '0100'.
      perform bdc_field  using  'BDC_OKCODE'   '/00'.
      perform bdc_field  using  'AM60X-MATAW'  'X'.
      perform bdc_field  using  'AM60X-MATNR'  T_FILE-MATNR.
      perform bdc_field  using  'AM60X-PRGRP'  SPACE.
      perform bdc_field  using  'AM60X-PBDNR'  SPACE.
      perform bdc_field  using  'RM60X-BERID'  T_FILE-BERID.
      perform bdc_field  using  'AM60X-WERKS'  SPACE.
      perform bdc_field  using  'RM60X-VERSB'  '00'.
      perform bdc_field  using  'RM60X-DATVE'  l_frdat.
      perform bdc_field  using  'RM60X-DATBE'  l_todat.
      perform bdc_field  using  'RM60X-ENTLU'  'M'.
    Screen 0200
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG01.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG02.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG03.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG04.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG05.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG06.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG07.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG08.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG09.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG10.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=S+'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG11.
      perform bdc_screen using  'SAPLM60E'     '0200'.
      perform bdc_field  using  'BDC_OKCODE'   '=SICH'.
      perform bdc_field  using  'RM60X-PLN01(01)'  T_FILE-PLNMG12.
    ENDFORM.                    " bdc_build_script
    *&      Form  get_matnr
          Get the material number from tables ZMSMI_FERR_RAW,
          ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
    FORM get_matnr.
      clear v_matnr.
      case t_file-werks.
        when '0101'.
          select single cmatnr from zmsmi_simp_raw
                 into v_matnr  where matnr = t_file-matnr.
          if sy-subrc eq 0.
            clear t_file-matnr.
            t_file-matnr = v_matnr.
          endif.
        when '0103'.
          select single cmatnr from zmsmi_ferr_raw
                 into v_matnr  where matnr = t_file-matnr.
          if sy-subrc eq 0.
            clear t_file-matnr.
            t_file-matnr = v_matnr.
          endif.
        when '0102' or '0110' or '0111' or '0112' or '0113'
             or '0114' or '0115' or '0116' or '0117'.
          select single cmatnr from zmsmi_snap_raw
                 into v_matnr  where matnr = t_file-matnr.
          if sy-subrc eq 0.
            clear t_file-matnr.
            t_file-matnr = v_matnr.
          endif.
      endcase.
    ENDFORM.                    " get_matnr
    *&      Form  bdc_screen
          BDC Script for Screen fields
         -->P_PROG   Program name
         -->P_SCRN   Screen Number
    FORM bdc_screen USING    p_prog
                             p_scrn.
      clear itab_bdc_tab.
      itab_bdc_tab-program = p_prog.
      itab_bdc_tab-dynpro = p_scrn.
      itab_bdc_tab-dynbegin = c_x.
      append itab_bdc_tab.
    ENDFORM.                    " bdc_screen
    *&      Form  bdc_field
          BDC Script for Screen fileds
         -->P_NAM   Field name
         -->P_VAL   Field value
    FORM bdc_field USING    p_nam
                            p_val.
      clear itab_bdc_tab.
      itab_bdc_tab-fnam = p_nam.
      itab_bdc_tab-fval = p_val.
      append itab_bdc_tab.
    ENDFORM.                    " bdc_screen
    *&      Form  bdc_submit_transaction
          BDC_INSERT Function Module
    FORM bdc_submit_transaction.
    Load BDC script as a trqansction in BDC session
      call function 'BDC_INSERT'
           EXPORTING
                tcode          = c_tcode
           TABLES
                dynprotab      = itab_bdc_tab
           EXCEPTIONS
                internal_error = 01
                not_open       = 02
                queue_error    = 03
                tcode_invalid  = 04.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      refresh itab_bdc_tab.
    ENDFORM.                    " bdc_submit_transaction
    *&      Form  bdc_session_close
          text
    FORM bdc_session_close.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      NOT_OPEN          = 1
      QUEUE_ERROR       = 2
      OTHERS            = 3
      skip 2.
      if sy-subrc ne 0.
        write: / 'Error Closing BDC Session ' , 'RETURN CODE: ', sy-subrc.
      else.
        write : /  'Session created:', v_ssnname,
                50 '# of transactions:', v_trans_in_ssn.
      endif.
    ENDFORM.                    " bdc_session_close
    Reward Points if it is helpful
    Thanks
    Seshu

  • Coding for picoscope 2205 LabVIEW

    can anybody give me the coding for picoscope 2205 for labVIEW

    Don't know if this is still an issue for you, but others might find it helpful...
    We've just released a set of open-source drivers for PicoScope 2203, 2204, 2205.The so-called driver that Pico provide is perhaps the worst bit of LabVIEW code I've ever seen.
    Feedback welcome:
    PicoScope 220x Drivers 
    Enjoy!
    Jon.
     

  • ABAP OLE Word for reading a file

    Hi,
    I am looking for the method or property to get the word document content to send it to the clipboard.
    All I found an OLE is for writing but not for reading and I need it to read a file.
    Someone got an idea?
    Thanks a lot.
    David

    Hi David, the ad on top sucks.
    it's already almost 10 years old but SAP did not develop anything new un this area (as far as I know),
    [Desktop Office Integration (BC-CI) H|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]
    copy_selection
    You use this method to copy marked text from the office document to the clipboard:
    CALL METHOD document->copy_selection
    EXPORTING no_flush = no_flush
    IMPORTING error = error
    retcode = retcode.
    paste_clipboard
    You use this method to insert the contents of the clipboard at the current cursor position. The
    clipboard contents are inserted as fixed text; there is no link to the object:
    CALL METHOD document->paste_clipboard
    EXPORTING no_flush = no_flush
    IMPORTING error = error
    retcode = retcode.
    select_all
    You use this method to mark all text in the office document.
    CALL METHOD document->select_all
    EXPORTING no_flush = no_flush
    IMPORTING error = error
    retcode = retcode.
    I hope you were looking for this.
    Regards,
    Clemens

  • ABAP-Coding for EVERY Key figure in infocube 0RT_C02

    Hello gurus;
          Does anybody know which is the reason for Abap-coding for every key figure in infocube 0rt_c02 from InfoSource 2lis_13_vditm?
    Thanks in advanced!
    Csr

    Hi,
    this is done like this in the business content because the extractor is providing the data with a process key; this process key is then translated into meaningfull business objects (key figures);
    fro instance ProcessKey 202 in application SD is reflecting Credit memos:
    * Credit Memo
      IF COMM_STRUCTURE-PROCESSKEY = '202'
        AND COMM_STRUCTURE-BWAPPLNM EQ 'SD'.
    * currency convert
        IF COMM_STRUCTURE-COST <> 0.       "Value in document UNIT
          PERFORM LOC_CURR_CONVERT
            USING    COMM_STRUCTURE-COST   "Value in doc UNIT
                     COMM_STRUCTURE-TRANS_DATE     "Date for exchange
                     COMM_STRUCTURE-DOC_CURRCY     "Document Currency
                     COMM_STRUCTURE-LOC_CURRCY     "Local currency
    *                COMM_STRUCTURE-EXCHG_RATE     "Exchanging rate
                     COMM_STRUCTURE-/BIC/ZEXRATEAC "Exchanging rate Acctn
            CHANGING RESULT.
    * the KPI's must be turned to positive because the SD-extractors
    * allways deliver them neg. if it's a process back (e.g. return order)
          RESULT = RESULT * ( -1 ).
          UNIT = COMM_STRUCTURE-LOC_CURRCY.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 0.
        ELSE.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 4.
        ENDIF.
      ELSE.
    * if the returncode is not equal zero, the result will not be updated
        RETURNCODE = 4.
      ENDIF.
    the above routine is quite self explaining the code.
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Required sample coding for invoice billing for script

    Hi,
            Required sample coding for invoice billing for script in form and endform.
         please help me its very urgent issue. thanks in advance.
    thanks&regards
    sirish

    Hi Sirish,
    these are some of the links where u can find ur solution plz check...
    <u>
    SAP SCRIPT
    SAP SCRIPT
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=invoicebillingfor+script&adv=false&sortby=cm_rnd_rankvalue</u>
    regards,
    Sana M.

  • Third Party Tool using OLE DB for OLAP

    We have built a query in BEx 7.0 Query Designer and released for access via OLE DB for OLAP to Cog nos 8 Repor Designr. 
    I am trying to see the SQL/MDX code Cog nos is sending to BW to retrieve data.  Is there a way to see what BW gets from Cog nos report on the BW side?  Just to clarify, getting this info for the BW query executing without the 3rd party tool is not useful, because we dont have any issues running the BEx query, however 3pty tool gets back bad data.  Specifically when using a query with a BEx reusable structure. 
    I have further details on the design of the query, however I am trying not to create a very long and messy thread with unnecessary info.  Please ask if those details are necessary to understand the issue.

    Here is a little more info on how the query is setup and why I think it is having a problem.....
    Query has Two Structures....
    <u>Rows:</u>
    Reusable Structure (Without Key Figures) with 20 Rows (selections and formulas) defining each line of a Financial Statement.  Structure Name is "XYZ Statement"
    <u>Colums:</u>
    Reusable Structure (With Key Figures) with 3 Columns (05/2007 Actuals, 05/2007 Plan, Variance).  Structure Name is "Comparison"
    <u>Free Characteristics:</u>
    GL Account
    Cost Center
    Other Char...
    <u>What Cognos 8 sees in the package:</u>
    In Cognos, Structure "XYZ Statement" appears as a regular dimension, the same way Free Characteristics do.  The Structure "Comparison" appears as a Key Figure, aka Measure.
    <u>How the Cognos Report is built in Report Studio:</u>
    If the report is built NOT using the dimension "XYZ Statement", regardless of whatever Free Characteristics you use from the query as a datasource, you will not get any data, however it works fine when the "XYZ Statement" dimension is used.
    <u>What I think the problem is:</u>
    I am thinking all Cognos reports build off this package MUST use the dimension "XYZ Statement" (aka Reusable Characteristic Structure in BW), other wise the query does not return any data.
    <u>How I am trying to validate this theory:</u>
    Query is the datasource for Cognos.  Executing RSRT only allows me to get details on the query execution via BW, however since the Cognos report is not returning correct data, I am trying to see what the Cognos Report is passing back to BW, to understand/validate what I think is the issue.  If this is just the way it works, then I want to validate and move on.

Maybe you are looking for

  • Problem with UNIQUE field parameter in Release 2

    (using Enterprise Manager) I started with 9i Release 1 and began creating tables, setting a field called ID to not null, primary key, and unique. No problem in Release 1. I updated to Release 2 (removed Release 1 and fresh-installed Release 2), and a

  • How do I scan multiple pages into one pdf?

    I have been using the "System Preferences" -> "Print and Scan" -> then I select the "open scanner" button for my printer.  When I first used this feature, it would scan multi-page documents into a single PDF, but it has stopped for some reason.  It i

  • Show a menu of roles in the Top Level Navigation

    Hello, Imagine a scenario where a user has many roles assigned to him (say 40 roles). In that case the user will have 40 tabs in the first level of the top level navigation and by default a horizontal scroller appears on the right part of the screen

  • Can't move pages in version 8

    I used to be able to just move pages back and forth between documents in Acrobat by just clicking and dragging. Now I have version 8 and it won't let me do this.  Version 7 lets me do this by asking me to give it exact typed directions. Why isn't my

  • Adobe Master Colection CS5 error 7

    My windows 8.1 pro When i try to instal a have error 7 Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 1 fatal error(s), 2 error(s), 34 warning(s) WARNING: Display requirements not met for {1BBD8D7