Excel (Worksheet logic) to BADI

Hi Everyone,
Ive a report where the cells are defined with the "Worksheet Logic". Based on the values determined (through work sheet logic) I have to post those values to another application where I will use the source to destination concept.
Could anyone help on how to pass the data defined through "Worksheet logic" to the BADI as input???
Thanks in Advance.
Gokul.N

Hi Gokul,
I did not completely understand your situation. Based on my understanding let me explain what can be done!!!
1. BAdIs can be triggered only at certain situations... for example a write back BAdI (UJR_WRITE_BACK) can be triggered when inputting manually through input schedule. for this scenario even if you have worksheet logic involved in your input schedule the data will be passed to ct_data ( or ct_array i dont remember), then you can do what ever you wish to do with the data in the BAdI method.
2. Posting to another application is possible through Destination App implementation which is freely available through a "how to guide". This is a Custome Logic enhancement.
for your situation you can first determine what ever you want to send and manipulate the data in write back badi and then once data is saved in the source application you can use the destination app BAdI to send it to the target application. You may keep the script logic which triggers destination app in the default logic which is automatically triggered through input schedule send.
Hope this helps.....
If you think i have missed some important point here.. just let me know.... happy to help again.
Cheers!!
~~Surya Tamada.

Similar Messages

  • Input template worksheet logic requirement

    Hello,
    I need to accomplish the following requirement that I need some help with. Lets say the user selects Forecast_Vmay2012, the may 2012 value of a specific account ABC should sum Jan-Apr 2011 XYZ Account values. This needs to be flexible, in other dimension member Forecast_vmay2012 has current month property with value of 5. Just like that, Forecast_Vaug2012 has value of 8 etc. based on this, the worksheet logic needs to sum previous year's initial current month -1(in our initial example current month value is 5, so sum 1st 4). Any idea on how to accomplish it?
    Thanks.

    Hi Zack
    Based on the information provided and from my understanding. If you know that there a static calculations or in your example: Account ABC should SUM XYZ account values then you can use nested IF statements with the AND / OR operators.
    Please find below a link to an example using complex and nested IF statements.
    [http://www.experiglot.com/2006/12/11/how-to-use-nested-if-statements-in-excel-with-and-or-not/]
    Will using script logic not be able to meet your requirements ? or is there a large amount of calculations which need to occur?
    The downside to this approach will unfortunately be that your workbook will be large and depending on the amount of data, potentially slow in performance.
    Hope this helps
    Kind regards
    Daniel

  • Worksheet logic

    Hi,
    Can any one give me an example of worksheet logic? Also, can anyone give me the links which explains the same.
    Regards,
    Diksha

    Hi Diksha,
    Any calculation done on the BPC excel can be termed as worksheet logic. For example, fetching data through EVGTS, or doing some mathematical calculations using native excel formulas.
    Worksheet logic includes the functions provided by BPC, plus the native functions of Excel itself.
    Any functions relative to BPC excel can be found in the below link:
    http://help.sap.com/saphelp_bpc75/helpdata/en/5A/69200C88AA40C9B18844A25259F147/frameset.htm
    And then go to "functions reference".
    Hope this helps.

  • Data open/save-as in Excel worksheet

    Hi all,
    i created implement one diagram into my existing vi for opening and saving the data in microsoft excel worksheet but it doesn't work. I have been looking through Excel Macro Example but couldn't make sense of it much.
    still new in this and will really appreciate if someone can give me any insights for my problem.
    thank you
    Attachments:
    Excel messedup.vi ‏40 KB

    You need to learn about data dependency!
    In your VI you are performing three actions simultaneously:
    Reading from an instrument and collecting data and then writing it to a text file in tab-delimited format, and then reading that file, but not doing anything with it.
    Opening an Excel workbook and then a worksheet, and then closing the reference to the workbook.
    Opening the Excel application and then closing it the reference to it.
    Why do you need to open/close Excel if you're already writing the data to a text file in tab-delimited format? Excel can read this directly.
    I would strongly suggest going through the LabVIEW tutorials that discuss data dependency and how to code in LabVIEW.

  • Uploading multiple EXCEL Worksheets to SAP

    hello everyone.
    i am new to SAP, and i wanted to create a program that would read multiple excel worksheets and appened the values of the file to an internal table.
    can somebody help me with this?
    here's what i wanted to do exactly:
    excel tab:
    worksheet 1:
    pernr  |  begda | endda |
    worksheet 2:
    pernr  |  begda | endda |  address line 1 | address line 2 | phone number
    worksheet 3:
    pernr  |  begda | endda |  Annual salary |
    i wanted those data to be in the following internal tables:
    for worksheet 1: >>>> i_pa0002.
    for worksheet 2: >>>> i_pa0006.
    for worksheet 3: >>>> i_pa0008.
    thanks a lot for future replies.
    Mark

    hi,
    you can use  fm
    ALSM_EXCEL_TO_INTERNAL_TABLE
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = 'File Path\File name.xlsx'
        i_begin_col                   = 'A'
        i_begin_row                   = 1
        i_end_col                     = 'E'
        i_end_row                     = 3
      tables
        intern                        = itab
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    thanks

  • Sending report output to Excel worksheet- Why all labels R put in one line?

    We need to export data from Oracle database to MS Excel work sheet. We developed a report and put all required things in the report. Set DESFORMAT and DESNAME parameters accordingly. Every thing works fine. But all the labels at the start of report are put in one line when we open output file in Excel worksheet. That is report heading, sub heading and column headings are all put in one line. Rest of the data is fine.
    To make excel worksheet more readable, we need to show these lines as these appear in layout and Line Previewer.
    Pl. help.

    Thanks Siva,
    Yes I am setting destination format to DELIMITED. But I do NOT want to suppress headers. In fact I do want headers in proper manner. The reason is that a no of files are produced by the same report for different columns as per user option in parameter form. So I want to put headers at the top of Excel file so that later on, at the time of using file for graphs in excel, user is able to properly recognize what the file contains. So I do want headers in manner in which they appear in Live Previewer and printed report.
    Waiting for reply from U and support group.
    M. Tariq

  • Suddenly, all my saved Excel Worksheets are opening as Numbers documents, even though I've NEVER used the Numbers application, and even though the documents continue to be identified as Excel documents--losing years of work.  What happened?

    How can I uninstall Numbers?  I've never used the Numbers application before, and suddenly all my saved Excel Worksheets are opening as Numbers documents, even though they continue to be identified as Excel documents?  I'm losing years of work.

    Right click on a Excel Worksheet file, choose 'Get Info'. In the small window that opens change the 'Open with:' from Numbers to Excel. Click on 'Change All…'

  • Help and some explanation how to get a Microsoft.Office.Tools.Excel.Worksheet host item that extends the functionality of the current Microsoft.Office.Interop.Excel.Worksheet object

    Hello,
    I would use some help and more info about how to get host object that extends the functionality of my current Interop.Excel.Worksheet object. I read this artical: https://msdn.microsoft.com/en-us/library/ee794671.aspx where I can call this function
    GetVstoObject to get host object. But I see that here I need to pass the Globals.Factory object as second parametar. Can someone give me more details about that parameter and how to access it? I would like to get host object so I can access extension
    property, since my interop excel worksheet doesn't have it.  
    I am using Visual Studio 2013 for developing Excel addin. Using Excel 2010.
    Thanks in advance for help.
    Regards,
    Zeljka

    Hi Zeljka,
    >>I am using the Microsoft Office PIAs, so my question is how to access this automatic generated class Globals in my case?   <<
    Sorry, I am not able to understand the application you were developing exactly. From the orgnal post, you were developing an application level add-in, however based on the description above, it seems that you were building an console or Windows form application
    to automate Office application.
    If you were developing Office automation, the host item can't work for this secnario since it should run under the VSTO runtime.
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I print an excel worksheet so the rows have contrasting shades making it easy to read data across the page?

    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?

    sophia beth wrote:
    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?
    Not sure if it's any better in the version you have, but in earlier versions, you would have to manually select alternating rows using cmd-click in the row numbers and then fill the cells with the lightest possible shade in the fill palette.  Again, in an earlier version, it is possible to use the format painter (use your Excel help for details) to select several rows formatted with the shading and paint that format to an equivalent number of rows elsewhere.

  • Any method of ole2 to count the no. of rows in excel worksheet ??

    Dear all,
    want to generate a for 1..n loop structure to access the excel worksheet.
    iam using ole2 to upload data from excel to oracle.
    rest is fine..
    till now iam arbitrarily inputting a value as a count from forms to run the loop.
    want to know is there any method of ole2 to count the no. of rows in excel worksheet...???
    regards,

    If you have purchase order number in your cube then you can use the easiest method of all of counting -- a calculated key figure with exception aggregation.
    Create a CKF and add any basic key figure to it from your cube (basic means a key figure from the cube, not another CKF or RKF).  If you're using the 3.x query designer then click the Enhance button and set the exception aggregation to Counting All Values.  If you're using the 7.0 query designer then click on the Aggregation tab and switch the Exception Aggregation to Counter for All Detailed Values.  With either query designer set the reference characteristic to your PO number characteristic.  This CKF will count the number of PO documents.
    See this document for step-by-step instructions:  [How to... count the occurrences of a characteristic relative to one or more other characteristics|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af].

  • How do I read a formatted excel worksheet as a string array

    I am using the report toolkit to read a excel worksheet as a LV string array.  This works fine except that it reads the full precision of numeric cells (~10 digits of precision).
    In my workbook I have the displayed precision set to 2.  Is there any way to read the table as it is displayed instead of how it is internally stored?  (BTW, I understand how to do this
    manually by parsing the string array and limiting the precision myself but would prefer to use excel itself to determine the precision)
    Solved!
    Go to Solution.

    sachsm,
    This should allow you to get the actual displayed text from an cell or range of cells.  Kind of doing a 'Paste Special' 'Values'.
    Attachments:
    Read Excel Displayed Text.png ‏30 KB

  • Xcelsius suddenly only allows chart to call data from first excel worksheet

    Hi
    I'm using Xcelsius 2008 Engage with SP1 FP3 installed.
    I have never had this problem before, but in the last week, Xcelsius won't allow a chart to call data from any worksheet in the excel file other than the first worksheet. If I reorder the worksheets in the excel file, i can access a different worksheet, but only the one that is saved as the first worksheet (left most tab).
    In dashboards i have already created, i can't change the data range of a chart that's already calling data from a worksheet unless i select the first worksheet.
    Could this be an automatic update from microsoft? Has anyone else experienced this and worked out how to overcome it? It is frustrating to keep moving the worksheet to the front and reimporting the data everytime i want to make a change that isn't in the first excel worksheet.
    Thanks,
    Scott.

    As far as I remember it's not possible. Thus, find attached VI and use it to convert line/column to excel cell format. It's working if you are not using more than 26 columns (i.e. column AA, AB, ... if this is the case you have to improve it a little)
    Hope this helps
    Attachments:
    To_Cell_Format.vi ‏18 KB

  • Converting excel worksheets with links

    I am converting excel worksheets to PDF. The excel worksheets have links to external files. When using Adobe X Pro, the links work properly in the converted PDF document. However, when using Adobe XI Pro, the links do not work. Any suggestions?

    Have you tried going to print menu and turning on Print entire workbook? If this is set all pages will be shown
    By the way don't put page numbers in excel. Add them In the PDF. They will be line up right.
    Even though This is the Mac version of the Print menu so layout will be different in PC version but should have similar controls.  and this  setting Print What: should be exactly the same.

  • Create PDF button gone from Excel worksheet

    Recently had to restore computer back to factory. I installed full CS4 WebSuite which includes Acrobat. I used to have a PDF button in Excel that would let me create a PDF from an Excel worksheet. How do I get that back? I used to use Office 2003 and now I use Office 2013.
    Thanks so much in advance!

    The store is at http://www.adobe.com/products/acrobatpro/buying-guide-upgrade-pricing.html. If you click the upgrade option, you will see the option to upgrade to AA XI from the AA X Suite (whatever that is, I assume CS) or from individual products. In your case it is not an individual product, but a suite. If you have questions or want to see if you can get a deal, you will have to call the Adobe sales folks. We can only repeat what we see and have heard from others (except for those folks who have the suite).
    You can still print to the Adobe PDF printer from Excel 2013, if you can get AA9 to work on Win8 (an outside chance, but may require some workarounds). You would just not get links or bookmarks. You might see if there is a MS plugin for creating PDFs from Excel. If there is, you might be able to create the PDFs that way and edit in Acrobat 9.

  • Map Excel worksheet into Oracle tables repository

    I am new to VB2005. I am working on VB code that can map(read) any table from excel worksheet and load it into Oracle table. Oracle table that I have are: 1)META_OBJECTTYPES(OBJECTTYPEID pk,OBJECTTYPENAME,OBJECTTYPEDESC, OBJECTMETATYPE,OBJECTDOMAIN).
    2) META_OBJECTS(OBJECTKEY PK,OBJECTTYPEID FK,OBJECTNAME,OBJECTDESC).
    3)META_OBJECTDEPENDENCIES(SRCOBJECTKEY FK, TGTOBJECTKEY FK,DEPENDENCYTYPE PK)
    4)META_OBJECTATTRIBUTES((OBJECTKEY FK, OBJECTATTRNAME PK,OBJECTATTRVALUE). NOTICE META_OBJECTTYPES IS PARENT TO META_OBJECTS AND META_OBJECTS IS PARENT TO (META_OBJECTDEPENDENCIES AND META_OBJECTATTRIBUTES) AND ALL PARENT HAS 1 TO MANY REALTIONSHIP TO CHILD TABLES. For example I have employee table in Excel worksheet that has two columns employee_id number, employee_name varchar2(50) I need my vb code map table name employee with its 2 columns into my 4 tables that I have in Oracle repository,
    My code so far just insert values into oracle tables in repository, but what is require is mapping table with contents into oracle tables.
    Imports System
    Imports System.Data ' VB.NET
    Imports Oracle.DataAccess.Client ' ODP.NET Oracle data provider
    Imports Excel = Microsoft.Office.Interop.Excel
    Public Class Form1
    'System.Data.OracleClient lets you access Oracle databases.
    Public con As System.Data.OracleClient.OracleConnection = New System.Data.OracleClient.OracleConnection() 'Oracle.DataAccess.Client.OracleConnection()
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim xlApp As Excel.Application
    Dim xlWorkBook As Excel.Workbook
    Dim xlWorkSheet As Excel.Worksheet
    Dim range As Excel.Range
    Dim rCnt As Integer
    Dim cCnt As Integer
    Dim Obj As Object
    xlApp = New Excel.ApplicationClass
    xlApp.Visible = True
    xlWorkBook = xlApp.Workbooks.Open("c:\employee.xls")
    xlWorkSheet = xlWorkBook.Worksheets("sheet1")
    range = xlWorkSheet.UsedRange
    For rCnt = 2 To range.Rows.Count
    For cCnt = 1 To range.Columns.Count
    Obj = CType(range.Cells(rCnt, cCnt), Excel.Range)
    MsgBox(Obj.value)
    Next
    Next
    xlWorkBook.Close()
    xlApp.Quit()
    releaseObject(xlApp)
    releaseObject(xlWorkBook)
    releaseObject(xlWorkSheet)
    End Sub
    Private Sub releaseObject(ByVal obj As Object)
    Try
    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
    obj = Nothing
    Catch ex As Exception
    obj = Nothing
    Finally
    GC.Collect()
    End Try
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    '2.Specify connection string
    con.ConnectionString = ("Data Source=dprod;User Id=smughrabi; Password=Sul9966")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "insert into meta_objecttypes values (4,'TABLE', 'TABLES','ERstudio','Demo')"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    cmd.CommandText = "commit"
    cmd.ExecuteNonQuery()
    'Catch ex As Exception
    '4.display if any error occurs
    'MsgBox(ex.Message, Microsoft.VisualBasic.MsgBoxStyle.Exclamation, "OraScan")
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add.Click
    Dim daOracle As New OracleDataAdapter
    Dim InsertCommand As New OracleCommand
    daOracle.InsertCommand = New OracleCommand
    '1.Create connection object to Oracle database
    Dim con As OracleConnection = New OracleConnection()
    Try
    If TableName.Text = "" Then
    MsgBox("Please enter the tablename", MsgBoxStyle.Exclamation, "OraScan")
    Exit Sub
    End If
    MsgBox(TableName.Text, MsgBoxStyle.Exclamation, "OraScan")
    '2.Specify connection string
    con.ConnectionString = ("Data Source=gema;User Id=dare; Password=rtae")
    '3. Open the connection through ODP.NET
    con.Open()
    Dim cmd As OracleCommand = New OracleCommand
    cmd.Connection = con
    cmd.CommandType = CommandType.Text
    cmd.CommandText = "select * from user_objects where object_name='" + UCase(TableName.Text) + "' and object_type='TABLE'"
    cmd.ExecuteNonQuery()
    'You have to commit to be inserted into DB
    'cmd.CommandText = "commit"
    'cmd.ExecuteNonQuery()
    MsgBox("Command executed successfully", MsgBoxStyle.Exclamation, "OraScan")
    'Catch ex As Exception
    '4.display if any error occurs
    'MsgBox(ex.Message, Microsoft.VisualBasic.MsgBoxStyle.Exclamation, "OraScan")
    Finally
    ' Close and Dispose OracleConnection object
    con.Close()
    con.Dispose()
    End Try
    End Sub
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TableName.TextChanged
    End Sub
    End Class

    Thanks Lyndon, what I need is map any table someone create in Excel worksheet to Oracle repository.For example to map Excel worksheet(employee)table with its 2 columns to oracle table META_OBJECTTYPES(OBJECTTYPEID pk,OBJECTTYPENAME,OBJECTTYPEDESC, OBJECTMETATYPE,OBJECTDOMAIN). In my case I have 2 objecttypes 1)table(employee) and 2nd columns:employee_id,employee_name
    --for inserting table info manually into DB:
    INSERT INTO META_OBJECTS
    (OBJECTKEY, OBJECTTYPEID,OBJECTNAME,OBJECTDESC)
    VALUES
    (META_OBJECTS_SEQ.NEXTVAL,
    4, --TABLE  
    'employee',--notice this is table name from Excel worksheet
    'Table to store employee info')
    --for inserting columns info:
    INSERT INTO META_OBJECTS
    (OBJECTKEY, OBJECTTYPEID,OBJECTNAME,OBJECTDESC)
    VALUES
    (META_OBJECTS_SEQ.NEXTVAL,5,'employee_id or name','employee column')
    notice above I insert manually Excel worksheet employee table with its two cols into oracle meta_objecttypes. What I want is VB to do this I mean if I go to Toad and erase what I insert in meta_objecttypes when I run vb, the program should map table employee with its 2 cols to Toad(DB). I hope it is clear now. Please refer to 1 st post for 3 other tables in DB

Maybe you are looking for

  • Recording songs from Vinyl

    Hi, Have recorded tracks from vinyl on my iMac using garageband but only get sound through one speaker on playback.  Connection is from amplifier to iMac via headphone jack socket and "audio-in".  Vinyl player produces sound in left and right speaker

  • ImagePattern - is ready to use?

    Hello, all! I tried ImagePattern from JavaFX 2.2.9 Created such simplicated app ( based on docs ) import javafx.scene.paint.ImagePattern; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene

  • Maintain terms of Payment

    Hello to everyone, I have got a small problem and i hope someone help me!!! When i am trying to create a Payment, like that:  Payment day 5 to 2 mounths -day limit 30 -fixed day 5 -additional months 2 -Document day In my document the Posting date and

  • Possible bug with 2.0.2.8 parser?

    The following sample Java code behaves strangely attempting to create an XML document from scratch: XMLDocument doc = new XMLDocument(); xmlPI = (XMLPI)doc.createProcessingInstruction("xml","version=\"1.0\""); doc.appendChild(xmlPI); doc.setDoctype(s

  • How do you restore iOS4 back to 3.1.3?

    Does anyone know?