Data selection from New GL Total

Hi Experts,
I need to create - Profit center  wise account balances. I am planning to use new GL total Tables FAGLFLEXT.
What the things to be taken care like Transaction,  Ref . Transaction, Credit / Debit (to which account we need to choose Credit / Debit)
Regards
Gowsi

Hi,
          I have got this link on SAP help for PSA data manipulation throgh API(Link: http://help.sap.com/saphelp_nw04s/helpdata/en/4f/8d4b38187a8442e10000009b38f8cf/frameset.htm).  but, I think this is for 3.5 development where you have transfer structure and infosource. How can i do it for 7.0? Please guide.
Thanks and Regards,
Harpal

Similar Messages

  • Excute_query when new date selected from calender

    hi,
    i have a mater detail form. form is displaying current day values as default.
    i put a calendar to form for users can be select date.
    now,
    i want to excute_query when new date selected from calender.
    i writed below code to text_item(calendar) when_validate_item trigger but it nor woring
    .giving frm-40137 error.
    code is;
    :parameter.GUNLUK_TARIH := Name_In('PARAMATRELER.TARIH_SON');
    SET_RECORD_PROPERTY(1,'XXMOB_YAPBOZ_TAHTASI_GV',STATUS,QUERY_STATUS);
    go_block('XXMOB_YAPBOZ_TAHTASI_GV');
    DO_KEY('Execute_query');
    any help please
    best regards
    aykut

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Is it possible to delete data selectively from Business content cubes

    Dear Experts,
             Requesting you to help me out to know, is it possible to delete data selectively from Business content cubes.
    When I'm trying to delete selectively from Business content cubes, the background job gets cancelled with ST22 logs stating
    A RAISE statement in the program "SAPLRSDRD" raised the exception  condition "X_MESSAGE".                                                                               
    Since the exception was not intercepted by a superior program, processing was terminated.  
    and i tried  with few more Technical content cubes but the same thing happens.
    Pls let me know how to selectively delete data from Business content cubes if it's possible?.
    Thanks in advance for your favorable assistance.
    Regards,
    Ramesh-Kumar.

    Hi Ramesh,
    Follow below steps for selective deletion:
    1.     Transaction code: Use the Transaction code DELETE_FACTS.
    2.     Generate selective deletion program:
    A report program will be generated of the given name, here .
    3.     Selection screen:
    Take the deletion program u201CZDEL_EPBGu201D to the transaction code SE38 to see/execute the program.
    After executing it will take you to a selection screen:
    As we need to carry out deletion selective on Calendar week, we need to get the screen field for the field Calendar week. For this, click on the Calendar week field and press F1.
    Click on the technical information button (marked in red box above) you will get below screen:
         ABAP program to carry out the Calendar week calculation
    Problem scenario: As stated earlier the requirement is to delete the data from the cube based on the calendar week. Thus a code must be developed such that the number of weeks should be taken as input and corresponding calendar week should be determined. This calendar week should be then passed to the deletion program in order to carry out the data deletion from the InfoCube.
         Transaction code: Use T-code SE38 in order to create a program.
    Logic: Suppose we need to delete the data older than 100 weeks.
    a.     Get the number of weeks and system date in variables and calculate the total number of days :
    lv_week = 100.      *number of weeks      
    lv_dte = sy-datum.     *system date
    v_totaldays = lv_week * 7.      *total days
    b.     Get the corresponding calendar day from the total days. This is obtained by simply subtracting the total no. of days from the system date.
    lv_calday = lv_dte - v_totaldays. *corresponding calday.     
    c.     Now in order to get the calendar week corresponding to the calculated calendar day we must call a function module 'DATE_TO_PERIOD_CONVERT'. This function module takes input as Calendar day and Fiscal year variant and returns the appropriate fiscal period.
    Get the sales week time elements
      call function 'DATE_TO_PERIOD_CONVERT'
        exporting
          i_date                      = lv_calday
          i_periv                     = lc_sales
        importing
          e_buper                     = lv_period
          e_gjahr                     = lv_year
        exceptions
          input_false                 = 1
          t009_notfound               = 2
          t009b_notfound              = 3.
      if sy-subrc = 0.
        ls_time-calweek(4)      = lv_year.
        ls_time-calweek+4(2)    = lv_period.
      endif.
    v_week = ls_boots_time-calweek.
    Note: We can pass the fiscal year variant which can be obtained from the table T009B.For e.g. here fiscal year variant lc_sales = Z2. LS_TIME will be any table with suitable time units.
    d.     Now we have obtained the required calendar week in the v_week variable. This calendar week is the week till which we need to keep the data. And older data than this week will be deleted. This deletion will be done by the deletion program
    Submitting the Data deletion program for ZEPBGC01 and key field
    SUBMIT ZDEL_EPBG WITH C039 LT v_week.
              Here the calendar week value is submitted to the deletion program ZDEL_EPBG with the screen field of calendar week.
    Hope ... this will  help you..
    Thanks,
    Jitendra

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys,
    I have a situation where user picks a date from a date picker in tabular form.
    So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
    I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
    I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
    Thanks ,
    Raj

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Dynamic data select from table is giving dump

    Hello Experts,
       Below statement is giving Dump after it move all the data in my dynamic table.
    When i see in debug. All my recored are avilable in <T_TAB> Table.
    SELECT * FROM (pa_tab) INTO CORRESPONDING FIELDS OF TABLE <T_TAB>.
    > IF SY-SUBRC = 0.
    Information on where terminated
    The termination occurred in the ABAP program "ZFIR_ZTABLE_UPLOAD" in
    "F_DOWNLOAD".
    The main program was "ZFIR_ZTABLE_UPLOAD ".
    The termination occurred in line 403 of the source code of the (Include)
    program "ZFIR_ZTABLE_UPLOAD"
    of the source code of program "ZFIR_ZTABLE_UPLOAD" (when calling the editor
    4030).
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "F_DOWNLOAD" "(FORM)" but was not handled locally, not declared in
    the
    RAISING clause of the procedure.
    The procedure is in the program "ZFIR_ZTABLE_UPLOAD ". Its source code starts
    in line 399
    of the (Include) program "ZFIR_ZTABLE_UPLOAD ".
    please help me.
    Regards,
    Amit
    Message was edited by:
            Amit Gupta

    Hi Amit,
    Check if you are doing the following in your program
    FIELD-SYMBOLS <T_TAB> TYPE STANDARD TABLE.
    DATA: g_tabref type ref to data.   "Reference to your table structure
    CREATE DATA g_tabref type standard table of (pa_tab).
    ASSIGN g_tabref->* to <T_TAB>.
    SELECT * FROM (PA_TAB) INTO TABLE <T_TAB>.
    Hope this solves your problem.
    Let me know if you require any further info.
    Enjoy SAP. Reward points of useful
    Rajasekhar

  • Query displaying from date & to date selected from calendar

    Hello every1,
    I just want to create a query which will display from date and to date which i need to select it from the calendar.
    Can any1 help me out for it.

    HELLO,
    ACTUALLY I HAVE A FIELD CALLED DUE DATE IN MY UDT WHERE I HAVE ENETERED  SOME MY DUE DATES. NOW WHEN IAM CREATING A QUERY FOR DUE DATE AS FOLLOW:
    SELECT * FROM DBO.[@LC_OV_H]  T0 WHERE T0.DUEDATE>='[%0]' AND T0.DUEDATE<='[%1]'
    IT IS GIVEN ME A LIST OF THE DUE DATES WHICH I HAVE ENTERED BUT HERE I WANT A CALENDER TO BE DISPLAYED DURING SELECTION.........
    Edited by: MEGHSHILPK on Jul 17, 2010 10:07 AM

  • Updating the Leave Information (dates selected) from MSOutlook to SAP ESS

    Hi Forum,
                    I had a scenario where I need to use Microsoft Outlook as an interface and the leave information selected in outlook calender should be updated to SAP ESS. Does Any one worked on similar kind of scenarios ? I would like to know if any API is available to interface between MS Outlook and SAP. If not is there any 3rd part integration technologies available ? Helpful answers will be Appriciated in the SDN way
    Regards
    Ramesh

    Hi Manoj,
                   Thanks for your reply. I am looking for a Java API using which i can read the calender information in outlook (dates selected and saved by the user). If I can get this dates information i could think of updating the same dates (leave info) to SAP ESS usingn JCO Client java program.
    Please suggest me some java API to read the calender information stored in outlook.
    Thanks & Regards
    Ramesh

  • Value of a cell dependent on a data selected from the list in another cell

    Hello Everyone,
    Could you please help to solve this puzzle.
    I need to make a value of cells in the 2nd column dependent on the selection made in the cells in the 1st column, i.e.:
    Header 1
    Header 2
    List An
    LIst Bn
    Lists A and B have 10 items each
    A1    B1
    A2    B2
    A10  B10
    If A1 is selected I need a B1 appear in the second column in the same row, if A2 selected then B2,...and so on.
    Could you please hep to resolve this, if at all this is possible?
    Many thanks,
    Andrew

    Supposing that your list is a drop down list, you could put a script like the following on the exit event of List A. (very approximate, since I don't know any of your field names)
    switch (this.rawValue)
    case "A1":
         ListB.rawValue = "B1";
         break;
    case "A2":
         ListB.rawValue = "B2";
         break;
    Obviously, you'll want to replace "ListB" with the name of your field, and possibly the references to it (ie. TableName.RowName.FieldName) and fill in more case statements all the way to A10 if that's what you need. If List B is going to be a read-only field, you may even want to make it simply a text input box and have it display the values you want it to have based on the selection from List A.

  • Populating a matrix cell with data selected from a picker

    Dear All,
    I am new to SAP Bussiness one, please let me know how to get the selected data from a picker in to a matrix cell. I have warehouse code and warehouse name in the picker. I want the user selected warehouse code in the matrix cell
    Below is my code But I am not getting the selected code in the matrix cell
    I am adding the datasource as below
    oUserDataSource = oForm.DataSources.UserDataSources.Add("UDCFL", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
    Then I am adding the choose  list  as below
    Private Sub AddChooseFromList()
            Try
                Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oCFLs = oForm.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                ' Adding 2 CFL, one for the button and one for the edit text.
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "64"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)                
            Catch
                MsgBox(Err.Description)
            End Try
        End Sub
    *Then I am binding the data as below to the matrix column*
    oColumn = oColumns.Item("colToWhs")
            oColumn.DataBind.SetBound(True, "", "UDCFL")
            oColumn.ChooseFromListUID = "CFL1"
    Then in the event i have added the  below code.
                        Dim oDataTable As SAPbouiCOM.DataTable
                        oDataTable = oCFLEvento.SelectedObjects
                        Dim val As String
                        Try
                            val = oDataTable.GetValue(0, 0)
                        Catch ex As Exception
                        End Try
                        oForm.DataSources.UserDataSources.Item("UDCFL").Value = val
                       End If
    But the code is not getting populated in the matrix cell. Please let me know at the earliest
    Thanx in Advance

    sOLVED

  • Data selection in new Open Hub destination Vs Infospoke

    In BW 3.5, we can use T code RSBO to create Infospoke, In the selection tab, we can use any infoobject in the source infocube as the data filterfor the infoSpoke, e.g I can set company code as 1002 etc, while in the new  BI 7.0, Open Hub Destination,  where I can achieve the same by set the filter for a specific infoobject in the source cude?
    Edited by: Jianbai on Mar 29, 2010 11:49 PM
    Edited by: Jianbai on Mar 29, 2010 11:51 PM

    For Open Hub in BI7 we are creating transformation and DTP. The same resrtiction you can give in DTP (activate it after change).

  • Date selection from calender.

    Hi,
    I have  created a report based n values in Cube. I have a selection criteria where date range(based on 0CALDAY) is to be filled.
    I have a requirement where is instead of user enter values manually, there should display a calender and user will pick up values from there.
    Is this possible. If it is how to do it.
    I am in BI7 NetWeaver 2004s.

    Hi Amiya,
    Thanks for Reply.
    well, this variable has been created on 0CALDAY which is a calender day. But, on clicking the selection screen, search helps pops up, but it contains the list of dates and direct manual entry, which we dont want.
    I have a requirement where on clicking search help a calender will pop up directly as it pop up in SAP R/3 and user will select values from there.
    Regards.

  • Data selection from Table

    Hi ,
    My requirement is to have Commercial Documents which are not Accounted. So that I've used the following logic.
      SELECT a~vbeln
                     a~vbtyp
                     a~fkdat
                     a~bukrs
             a~kunrg
             SUM( b~netwr )
           FROM vbrk AS a INNER JOIN vbrp AS b
           ON avbeln EQ bvbeln
           INTO ls_bill WHERE a~vbtyp EQ 'M'          AND
                              a~fkdat IN s_fkdat      AND
                              a~bukrs IN s_bukrs      AND
                              a~kunrg IN s_kunrg
                        GROUP BY a~vbeln
                                 a~vbtyp
                                 a~fkdat
                                 a~bukrs
                                 a~kunrg.
        l_awkey = ls_bill-vbeln.
        SELECT awkey FROM bkpf INTO l_awkey
                     WHERE awtyp EQ 'VBRK'  AND
                           awkey EQ l_awkey AND
                           bukrs EQ ls_bill-bukrs.
        ENDSELECT.
        IF sy-subrc NE 0.
          APPEND ls_bill TO lt_bill.
        ENDIF.
        CLEAR : ls_bill, l_awkey.
      ENDSELECT.
    Is that the above logic for getting data is correct. or  First taking all the entries from VBRK and VBRP table then selecting entries from BKPF and then if any entry of VBRK is not in BKPF then taking that.
    Regards,
    Rajiv.V
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Dec 10, 2009 9:36 AM

    You should have searched SDN for Performance Tuning.
    Solution :
    Please search SDN for Performance Tuning and then try to understand the use of various statements that you have used in terms of performance.

  • Data selection from infotypes

    The req is that records from one infotype need to be populated, then records from another infotype need to be populated into the same internal table based on the records retrieved from the first infotype. The second infotype has some subtypes also that need to be selected. Can someone suggest a solution with an example?

    Hi Sandeep,
    Programming in HR module is something different, the best is that you use the logical database PNP. Set this value in the Program attribute. Using select statement in HR programming is not advicable. Proper HR programming should be as below:
    REPORT  yhr_program
           NO STANDARD PAGE HEADING
           LINE-COUNT 60  LINE-SIZE 600.
    * tables
    TABLES: pernr.
    * infotypes.
    INFOTYPES: 0000,   "Personal Actions
               0001,   "Org. Assignment
               0002,   "Personal Data
               0105.   "Communication Infotype
    * data declaration.
    Data: Begin of I_TAB occurs 0,
             PERNR type persno, "employee number
             NACHN type PAD_NACHN, "employee's last name
             USRID_LONG type COMM_ID_LONG, "IT0105 user id
             end of I_TAB.
    * START-OF-SELECTION.
    START-OF-SELECTION.
    * GET FROM LOGICAL DB PNP
    GET pernr.
    * rp-provide-from-last is an macro used in HR programming can be found in
    * table trmac.
    * p0002 is the infotype structure
    * space is for subtype <-- in this case there is no subtype
    * pn-begda is for begin date
    * pn-endda is for end date
    * getting employee infty 0002 record
      rp-provide-from-last p0002 space pn-begda pn-endda.
    * p0105 is the infotype structure
    * '0001' is for IT0105 subtype for communication
    * pn-begda is for begin date
    * pn-endda is for end date
    * getting employee infty 0105 record
      rp-provide-from-last p0105 '0001' pn-begda pn-endda.
      i_tab-pernr = pernr-pernr.
      i_tab-nachn = p0002-nachn.
      i_tab-USRID_LONG = p0105-USRID_LONG.
      append i_tab. clear i_tab.
    * END-OF-SELECTION
    END-OF-SELECTION.
    perform print_report.
    ...... more codes....
    Hope it helps.
    Benefits:
    1) You have all the auth issue settled.
    2) Macros shorthen your code

  • Data selection from internal table.

    Hi all,
    Can anyone suggest me the replacement of the statement:
    Select sum( col1 ) from table into var1 where col2 = 'abc' and col3 like '1.%' or col3 = 1.
    above statement works on database table but i need the same query on an internal table.
    please tell me.
    Thanks in advance
    Rahul

    PLEASE HELP !
    points will be awarded.

  • Data selection from graph

    Hello,
    I'm interested in graphing or charting binary data, and then selecting a subset of data within that graph to keep and analyze. 
    Essentially, I have very large data sets and it would be helpful to select out parts of that data to keep, and throw the rest away.  It's hard to tell what's useful without plotting it, however.  Any ideas?
    Thanks,
    Joe

    Have a look here. You can modify this to control the position of the first cursor when a mouse down event occurs and that of the second when a mouse up occurs.
    Try to take over the world!

Maybe you are looking for