Reg:Allocation using UJR_WRITE_BACK

Hi Experts,
                 I am doing allocation using badi based on previos year actuals.
                 I am using FM UJQ_RUN_RSDRI_QUERY to get the previous year actuals but the problem is that i have to use this FM
                 multiple times for every record.so it affects the performance of the system.
                 Can anyone send the sample code for this scenerio or helps me out in fetching database values effectively.
Regards,
Vinoth

* Call SQE to read transaction data
TRY.
    CALL FUNCTION 'UJQ_RUN_RSDRI_QUERY'
      EXPORTING
        i_appset_id       = lv_appset_id
        i_appl_id         = lv_application_id
        it_dim_name       = lt_dim_name
        if_check_security = abap_false
      IMPORTING
        et_data           = <lt_tx_data>.
  CATCH cx_ujq_exception.
ENDTRY.
I used this simple code and got all the records into the ITAB. hope this helps
Sravan

Similar Messages

  • New GL allocations using customer fields functionality

    Can anybody throw light on New GL FI allocations using extended fields(Customer fields). Not much info is present on this topic and detailed steps on how to achieve this would be appreciated. I am basically trying to allocate between a cost center to some custom field e.g. distribution channel. Is that possible?. If so how exactly.

    I found the answer
    The following steps must be executed to allocate to a customer field in new GL FI allocations
    Step1-(OXK3) Add customer fields to the coding block.
    Step2-(FAGL_GINS)Add the new custom fields to the FAGLFLEXT table.
    Step3-(SE11) Create value and text table for the new fields added.
    Step 4-(SE16n) Maintain products and distribution channel table.
    Step 5- (GLGCS1) Add the new fields in the master data check.
    Step 6-make the new custom fields as optional entry in the field status group variant for postings and also open the fields for corresponding posting keys.
    Step 7-(GLGCA6) maintain Field usage for distribution.
    Step 8-update customer fields to the required ledgers
    now create a distribution cycle FAGLGA31  and execute it using FAGLGA35

  • Cost Allocation Using BADI

    Hi,
    I have to do cost allocation using BADI.
    shall I use UJ_CUSTOM_LOGIC for this if not then which BADI should I use?
    Can anyone provide me the sample code for this. (BPC version is 10)
    I am totally new to BPC. Please help.
    Regards,
    Atiqa.

    Please read my answer for your other question.
    Vadim

  • Problem in Component Allocation using RCPTRA01 for Reference Operation Set

    Hello,
    I am trying to do Reference Operation Set upload with component allocation using RCPTRA01 program in lsmw.
    Even though i assign values to BIMPZ structure fields the component allocation is not happening.
    Could u please give some inputs ?
    Thanks!
    Regards,
    Deepali

    Hi,
    Check this link, if it can help you.
    http://help.sap.com/saphelp_45b/helpdata/en/35/a47e3b763e0392e10000009b38f9b7/content.htm
    Reddy

  • What is bad # for 'Space Allocated/Used" and 'ITL Waits' in V$SEGMENT_STATS

    I ran a query against the V$SEGMENT_STATISTICS view today and got some possibly disturbing numbers. Can some one let me know if they are bad or if I just reading to much into them.
    DB has been up since 1/10/2011 so they represent the stats since then. DB size is 3TB
    OBJECT_NAME     OBJECT_TYPE     STATISTIC_NAME     VALUE
    XXPK0EMIANCE     INDEX     space allocated     27,246,198,784
    ITEMINTANCE     TABLE     space allocated     22,228,762,624
    LITEMINSTANCE     TABLE     space used     19,497,901,889
    XXPK0TEMINSTANCE     INDEX     space used     17,431,957,592
    TTINGCORE     TABLE     space allocated     8,724,152,320
    XXPK0IANCE     INDEX     space allocated     6,912,212,992
    SKISTANCE     TABLE     space allocated     4,697,620,480
    IIXCNSTANCE     TABLE     space allocated     4,697,620,480
    on the XXPK0EMIANCE index the inital extent is 64k
    XXPK0MINSTANCE     INDEX     ITL waits     1,123
    XXIEKILSTANCE     INDEX     ITL waits     467
    XXPKLINSTANCE     INDEX     ITL waits     463
    XXPKCE     INDEX     ITL waits     338
    XXIE3ENT     INDEX     ITL waits     237
    If these are bad do they impact performance? My understanding is that being wait states, things stop until they are resolved. Is that true.
    Also these looked high, are they?
    LATION_PK     INDEX     logical reads     242,212,503,104
    XXAK1STSCORE     INDEX     logical reads     117,542,351,984
    XXPK0TSTANCE     INDEX     logical reads     113,532,240,160
    TCORE     TABLE     db block changes 1,913,902,176
    SDENT     TABLE     physical reads     72,161,312
    XXPK0PDUCT     INDEX     segment scans     35,268,027
    ESTSORE     TABLE     buffer busy waits     2,604,947
    XXPK0SUCORE     INDEX     buffer busy waits     119,007
    XXPK0INSTANCE     INDEX     row lock waits     63,810
    XXPK0EMINSTANCE     INDEX row lock waits     58,129
    XXPK0NSTANCE     INDEX     row lock waits     57,776
    XXIE2DDSTANCE     INDEX     row lock waits     54,788
    XXPK0DDDSTSCORE     INDEX row lock waits     49,167
    Am i just reading too much into this? I am not a DBA, our DBA is too busy doing data changes and such to spent time looking at these stuff. I was tasked to try to find out why our DB is so slow.

    Statistics on waits and reads are cumulative since the last database instance startup --- which was more than 4 months ago.
    So :
    XXPK0MINSTANCE INDEX ITL waits 1,1231,123 waits in 4+ months isn't bad.
    Reading such statistics without reference to the duration is utterly meaningless.
    Those 1,123 waits could have been 10 waits a day @1 every 2 hours.
    OR those 1,123 waits could have occurred between 01:00 and 01:30 on 03-May-2011.
    We have no way of knowing which is the case.
    Hemant K Chitale

  • OracleDataReader allocation using extractvalue() on XMLType column

    I am accessing an element within an XMLType column in a select statement using the extractvalue SQL function.
    Select ExtractValue(column_name,'//Text') from table_name
    I noticed that the RowSize for the command used to execute the select is unusually large (~24K). I have narrowed the space allocation issue down to the extractvalue() column, which is about 8k per instance of extractvalue() in the select statement. Since the fetch size if 64K, I am seeing a lot of calls to opsDacRead (DB round trips?) in the ODP.NET log, probably due to the fact that only 3 rows are being returned in each call to opsDacRead.
    My question is: How does ODP.NET determine the amount of space allocated within the reader's buffer for such a column? The element I am trying to extract is defined in the xml schema as 'xs:string' and is never more than 40 characters or so.

    Mark,
    Thanks for the response.
    Yes, I tried increasing FetchSize. Unfortunately, under heavy load, I experienced long execution/wait times within the first and last calls to opsDacRead() while walking the reader. I suspect that was due to allocation and clean-up.
    However, I did find out why the buffer size was so large. If the xml schema does not contain length restrictions on string/text elements via the maxLength option, Oracle defines the underlying field in the data type created for the schema as VARCHAR2(4000).
    I'm pretty sure that adding a maxLength restriction to the string element in the xml schema will reduce the size of the data type's field and in turn reduce the size of the Reader's buffer, but I haven't had a chance to test it.
    Thanks again,
    -Jeff

  • Memory Allocated using EXEC SQL VAR in ProC

    For a table that stores resumes, I have a ProC program which outputs LONG column values into a host variable. Here is the table definition:
         create table resume (resume_id number(5),
                   resume_size number(15),
                   resume_text LONG)
    The size of the resume_text can be vary from 0 bytes up to 90K bytes. We use the column "resume_size" to store the size of the resume_text in bytes. Since most of them are smaller than 8K, we don't want to allocate 90K memory for every resume SELECT call. Before we do the SELECT on the resume_text, a host variable pointer is used to allocate memory according to the size of the resume_text:     
         char *resume_buffer;
    len = get_resume_size(id); /* A SELECT statement to fetch the resume_size for this resume from the table */               
         resume_buffer = malloc(len); /* Allocate memory for the resume according to the resume_size. For example, len could be 6000 */
         EXEC SQL VAR resume_buffer IS LONG (100000);      /* without using a constant number will lead to a compiler error */
         EXEC SQL SELECT resume_text INTO :resume_buffer FROM resume WHERE resume_id = :id;
    Is 100000" the size actually allocated in memory (either OS level or Oracle data buffer cache) every time it runs or is it just the maximum possible size needed to satisfy the precompiler?
    Any help greatly appreciated.

    You have to use 'BEGIN procedure_name END' in the execute statement while calling PL/SQL Procedures
    EXEC SQL EXECUTE
    DECLARE
    BEGIN
    END;
    END-EXEC;

  • Reg:Allocation on previous year actuals

    Hi Experts,
                      I have an issue in allocation, i wrote allocation logic to allocate profit center by previous year actuals that was ok but if there are new profit center created for this year and there wont be any previous year actuals for it so he asks me to allocate the amount evenly to all the profit centers if that possile in Run allocation ?
    the script below
    *SELECT(%ACC%,"ID", "ACCOUNT", "TOPDOWNALLOC = 'Y'")
    *SELECT(%CurrencyList%,"ID","RPTCURRENCY","CURRENCY_TYPE = 'R'")
    *SELECT(%ENTI%,"ID","ENTITY","ID = %ENTITY_SET%" )
    *SELECT(%CATE%,"ID","CATEGORY","ID = %CATEGORY_SET%" )
    *SELECT(%TIME%,"ID","TIME","ID = %TIME_SET%" )
    *SELECT(%PTC%,"ID","PROFIT_CTR","ID = %PROFIT_CTR_SET%" )
    *XDIM_MEMBERSET RptCurrency = %CurrencyList%
    *XDIM_MEMBERSET CATEGORY = %CATE%
    *XDIM_MEMBERSET TIME = %TIME%
    *XDIM_MEMBERSET ACCOUNT = %ACC%
    *XDIM_MEMBERSET PROFIT_CTR = %PTC%
    *FOR %ACCT%=%ACC%
    *RUNALLOCATION
    *FACTOR = USING/TOTAL
    *DIM ENTITY WHAT =%ENTI%.INP ; WHERE=%ENTI%; USING=%ENTI%; TOTAL=%ENTI%
    *DIM CATEGORY WHAT=%CATE%; WHERE=<<<; USING=ACTUAL; TOTAL= <<<
    *DIM ACCOUNT WHAT=%ACCT%_INP; WHERE=BAS(%ACCT%); USING=BAS(%ACCT%); TOTAL=<<<
    *DIM DATASRC WHAT=INPUT; WHERE=INPUT; USING=UPLOAD; TOTAL=<<<
    *DIM PROFIT_CTR WHAT=BAS(%PTC%_IN); WHERE=BAS(%PTC%); USING=BAS(%PTC%); TOTAL=<<<
    *DIM COSTCENTER WHAT= NO_COSTCENTER; WHERE=BAS(1004322231); USING=BAS(1004322231); TOTAL=<<<
    *DIM TIME WHAT=BAS(%TIME%); WHERE=BAS(%TIME%); USING=BAS(2009.TOTAL) ; TOTAL=<<<
    *DIM RPTCURRENCY WHAT=LC; WHERE=INR; USING=IN; TOTAL=<<<
    *ENDALLOCATION
    *COMMIT
    *NEXT
    Regards,
    Vinoth

    Hi Vinoth,
    First, what REF_DATA is. Initially WHEN statement in BPC NW worked on members defined in your XDIM statements rather than records from your Application like in BPC MS. Starting from BPC NW 7.0 SP09 (7.5 SP04) default behavior of WHEN has been changed to be based on Application data. For compatibility purposes and to leave a choice of using Dimension data a new statement was introduced - *WHEN_REF_DATA. You can read in more details about it in OSS Note [Note 1474115 - Enable new keyword: *WHEN_REF_DATA for script logic|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1474115].
    So, based on what Profit Centers you have to use you have to put either *WHEN_REF_DATA=MASTER_DATA or *WHEN_REF_DATA=TRANS_DATA.
    I didn't understand why would you need multiple new Profit Centers. I can see 2 options of implementing your scenario:
    1. You create an Input Schedule that allows user to enter number of Profit Centers. Than you use that number in your RUNALLOCATION.
    2. You create a script that calculates number of Profit Centers and stores it in same Application. Than you use that number in your RUNALLOCATION.
    a) Your script calculates total number of Profit Centers and puts it on member NO_PC. Than FACTOR = 1/USING will be in RUNALLOCATION
    b) You populate value 1 on each Profit Center on some special Account. Than FACTOR = USING/TOTAL will be in RUNALLOCATION.
    You have to decide first which path is more convenient for you. Some of the considerations I explained in my previous posting. After than we can proceed with developing that script; otherwise there are too many unknowns in that task.
    Regards,
    Gersh

  • Reg:Allocation by group

    Hi Experts,
                      I have an issue in allocation by groups , the user does not need to plan for certain base members of the profit center group.
           I maintained a property as DONTPLAN in profit center and i told them to maintain X there and i thaught of filtering in Script logic.
           But the problem is that i can filter the values using XDIM but i dont know the way to pass to Allocation logic.
    *SELECT(%ACC%,"ID", "ACCOUNT", "TOPDOWNALLOC = 'Y'")
    *SELECT(%CurrencyList%,"ID","RPTCURRENCY","CURRENCY_TYPE = 'R'")
    *SELECT(%ENTI%,"ID","ENTITY","ID = %ENTITY_SET%" )
    *SELECT(%CATE%,"ID","CATEGORY","ID = %CATEGORY_SET%" )
    *SELECT(%TIME%,"ID","TIME","ID = %TIME_SET%" )
    *SELECT(%PTC%,"ID","PROFIT_CTR","ID = %PROFIT_CTR_SET%" )
    *SELECT(%PTC2%,"[ID]","PROFIT_CTR","[ DONTPLAN <> 'X']" )
    *XDIM_MEMBERSET RptCurrency = %CurrencyList%
    *XDIM_MEMBERSET CATEGORY = %CATE%
    *XDIM_MEMBERSET TIME = %TIME%
    *XDIM_MEMBERSET ACCOUNT = %ACC%
    *XDIM_MEMBERSET PROFIT_CTR = BAS(%PTC%)
    *XDIM_MEMBERSET PROFIT_CTR  <> %PTC2%
    //FROM HERE ON HOW CAN I PASS BASE MEMBERS VALUE TO ALLOCATION.
    *FOR %ACCT%=%ACC%
    *RUNALLOCATION
    *FACTOR = USING/TOTAL
    *DIM ENTITY WHAT =%ENTI%.INP ; WHERE=%ENTI%; USING=%ENTI%; TOTAL=%ENTI%
    *DIM CATEGORY WHAT=%CATE%; WHERE=<<<; USING=ACTUAL; TOTAL= <<<
    *DIM ACCOUNT WHAT=%ACCT%_INP; WHERE=BAS(%ACCT%); USING=BAS(%ACCT%); TOTAL=<<<
    *DIM DATASRC WHAT=INPUT; WHERE=INPUT; USING=UPLOAD; TOTAL=<<<
    *DIM PROFIT_CTR WHAT=BAS(%PTC%_IN); WHERE=BAS(%PTC%); USING=BAS(%PTC%); TOTAL=<<<
    *DIM COSTCENTER WHAT= NO_COSTCENTER; WHERE=BAS(1004322231); USING=BAS(1004322231); TOTAL=<<<
    *DIM TIME WHAT=BAS(%TIME%); WHERE=BAS(%TIME%); USING=BAS(2009.TOTAL) ; TOTAL=<<<
    *DIM RPTCURRENCY WHAT=LC; WHERE=INR; USING=IN; TOTAL=<<<
    *ENDALLOCATION
    *COMMIT
    *NEXT
    Regards
    Vinoth

    Hi Vinoth,
    First of all, you can use properties directly in RUNALLOCATION,  like
    *DIM PROFIT_CTR WHAT=[DONTPLAN]= X; WHERE=[DONTPLAN]=Y; USING=<<<; TOTAL=<<<
    I'm not sure if you can use <> there, but can't you put some Property value on those members on which you want to plan instead of on those that you don't want?
    Also you can put more than one condition on same Property and it will be interpreted as OR even thought you have AND there.
    Hope this helps.
    Gersh

  • Allocations using MDX in ASO?

    Can allocations be done in an Essbase ASO application using MDX calc scripting? If so, is it worth moving to it considering the work involved? It is fairly easy to develop and support in BSO applications. Thanks.

    Hi Hiren,
    According to your description, you will not select Country, State & City at the same time, right?
    So as per my understanding, you needn't to create the hierarchy, just create three attributes Country, State and City. Then when you select one of the attributes in the PowerPivot table, the attribute can be the filter which you can see on the screenshot
    below.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Reg Capacity used and capacity available

    Dear all,
    How can I see the capacity available and capacity used for a particular resource for previous month , is there any standard report available in standard SAP.
    Regards
    madhav

    Try transaction MCP7

  • Kindly help reg - LSMW using BAPI

    Hi All,
      I am using LSMW using BAPI method to upload data to create an Purchase order. I m getting this error.
    " Identification specifications missing for source structure 'PSOURCE_HEAD' ".
    Here are the steps I have followed.
    1. Created an IDOC Inbound Processing.
    2. Bussiness Object: BUS2012
        Method          : CreateFromData
        Message Type    : PORDCR
        Basic Type      : PORDCR05
    3. Maintained Source Structure : PSOURCE_HEAD AND PSOURCE_ITEM
    4. Maintained Source Fields for PSOURCE_HEAD AND ITEM
    5. Maintained Structure Relations:
         E1PORDCR=>PSOURCE_HEAD
         E1BPEKKOC=>PSOURCE_HEAD
         E1BPEKOC=>PSOURCE_ITEM
         E1BPEKET=>PSOURCE_ITEM
    6. MAINTAINED FIELD MAPPING:
         E1PORDCR - E1PORDCR-HEAD_ADD_DATA_RELEVANT = 'H'.
         E1PORDCR - E1PORDCR-ITEM_ADD_DATA_RELEVANT = 'I'.
    7. specify files
    8. Assign Files : assigned uploaded file to both PSOURCE_HEAD AND PSOURCE_ITEM
    9. IMPORT DATA: I M GETTING THE PROBLEM " Identification specifications missing for source Structure 'PSOURCE_HEAD' ".
      H     1001     1000     000     
      I     100-130     20     200     001     1000     28.06.2006
    With Regards
    Vasu

    Hi vasu
    I have encountered the same problem with material BOM creation.
    The reason you get this message is probably because you didn't define correctly the identification field in the source structures.
    In step 'Maintain source fields' you should define the first field of every structure as identification field by creating char field of length 1. Then from the tree view of source fields, double click this field (in change mode) and give appropriate value in field 'Identifying Field Content', meaning 1 for header structure, 2 for items structure etc.
    This should fix the problem.
    Best regards

  • Reg:protocol used in XI

    Hi,
    After the message is sent from integration engine to advanced adapter engine,through which protocol the AAE receives the message.whether it is XI protocol or HTTP protocol.
    pls let me know when XI protocol is used and when HTTP protocol is used in XI for communication across different components (AE->IS->AE)
    Regards
    chandrakanth

    Hi Chandrakanth,
      Server will use xi protocol while sending message within server between server components(Integration Engine to BPM etc). So it will uses the XI adapter to transfer message between two components with in the system.
    thanks,
    madhu

  • Dynamic Port Allocation Using OPMN

    I wanna use jrockit mission control to monitor a java application which is running in 8 oc4j instances controlled by opmn. I included the -Xmanagement:ssl=false,authenticate=false,autodiscovery=true,port=7091 in the oc4j startup command line in opmn.xml but i need that opmn dynamically change the port part of the command using a range of predefined ports, just like opmn does for oc4j rmi, jms, ajp ports. Is that possible? Can I define a custom port range in opmn.xml and user the port id as a variable in oc4j's startup command line? Any help is more than appreciated

    In addition to the above, the following was taken from D:\Hyperion\logs\BIPlus\FRClient.log on the client machine after the error occurred:
    08-12 10:04:38 ERROR HRResourceBundleFactory Could not locate registry
    08-12 10:04:38 ERROR HRResourceBundleFactory 5500
    com.hyperion.reporting.util.HyperionReportException: Server not yet configured. Please configure the server.
    at com.hyperion.reporting.config.ConfigResourceBundle.<init>(Unknown Source)
    at com.hyperion.reporting.config.ConfigResourceBundle.getInstance(Unknown Source)
    at com.hyperion.reporting.config.HRResourceBundleFactory.getConfigBundle(Unknown Source)
    at com.hyperion.reporting.config.HRResourceBundleFactory.getInstance(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.getReportServerNames(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.removeReportServerFromLocalCache(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.unregisterFRComponentAtRemoteRegistry(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.pickRandomServer(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.lookup(Unknown Source)
    at com.hyperion.reporting.registry.FRSystem.lookupHsServer(Unknown Source)
    at com.hyperion.reporting.javacom.HsServer.getServer(Unknown Source)
    at com.hyperion.reporting.javacom.HsHelper.getServer(Unknown Source)

  • Query in reg the use of ResourceBundle and Properties in my webapplicatiom.

    I have property file which have some values. I use ResourceBundle to get values by passing the key to getString method. But the problem for me is that my webapplication is running in tomcat server. When i add a new value in property file i could not get that value. I want know which method is used to reload the property file which has changed without restarting my tomcatserver.
    Regards
    Richard

    Question 1: Yes I have done this.
    Question 2: Yes, but you would need to configure you DHCP server to hand out the additional option 150 address.
    Question 3: Yes the .xml files for phones will be.  The default firmware will be as well. If you upgraded firmware from the default you will need to upload it on that server as well.
    Question 4 :If the TFTP server does not respond, the IP phone falls back to the last
    used configuration stored in NVRAM. 

Maybe you are looking for

  • Can't send mail from outlook for mac

    I have a desktop mac with OS X 10.8.3 operating system. I recently upgrade to Mountain Lion. I use Outlook Office for mac 2011 to receive/send emails. For the last four days I haven't been able to send mail, only receive. Whenever I try to send an em

  • How to share photos or other media to friends inbox on facebook with blackberry z10

    Good day, So while talking to a friend bout a meeting I went to he asked if I could send him pictures to his Facebook inbox I went to the picture, tapped on share icon but I realized that if I share to Facebook it will go to the time My question is h

  • New user account - cann´t open bootcamp partition through vmware fusion

    Hi all! I installed on my new Imac Bootcamp first, than VMware using the bootcamp partition under my admin account ( all working fine ). After a few days I opened a new standard user account for my wife. I hoped that VMware Fusion will work under the

  • Doubt on Stock Transfer

    Hi Experts,         Please suggest me how to do Stock Transfer Orders Bin to Bin..           Its very Urgent....      Thanks in Advance Thanks and Regards Siri..

  • I need help, in using rest of the project option

    Hello All. In my project I have 160 slides. I have one object to be displayed for the first 150 slides but it should not be displayed for the last 10 slides. I added the object in the first slide and applied the "rest of the project" property. Now, C