@Prior and Custom Defined Macros

Hello all,In planning applications, year and months are in seperate dimensions. For this reason, it is very hard to use @prior function when you go several months backwards. For example if you are in Feb 2004 and you need to go back 5 months, you need to go prior in Years dimension too.I have seen a custom defined macro for a similar calculation, but i wasn't able to rewrite it to my needs. Has anyone done a similar calculation??

There is new function in version 6.5.1 called @XRANGE. This function does what you are looking to do. There is not a lot of documentation on this particular function however. For instance it is not in the Tech reference.The function takes as two members (single or cross-dimensional) and returns a member range.The function is primarily used for working with Time and Scenario dimensions instead of creating a dimension that combines the two.Basically the @XRANGE function allows you to store your months in a Time dimension and your years in a seperate Scenario dimension, but still do calculations as if you had set up a fiscal year cross over model.The syntax is @XRANGE(mbrName, mbrName)Hope that helps.

Similar Messages

  • Using Custom Defined Macro

    Hi
    I am trying to use the function *@ISUDA* in a custom defined Macro and call the Macro from a Calcscript.
    Macro is as follows:-
    create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
    IF (@ISUDA("Account","UDAstring"))
    @SUM(1,2);
    ELSE     
    @SUM(4,2);
    ENDIF
    Calcscript is as follows:-
    SET UPDATECALC OFF;
    FIX(...)
    "Member"
    "A/c member"= @macrofunc ();
    ENDFIX
    Error given is as follows:-
    Error: 1200336 Error compiling formula for [Member] (line 8): [(] without [)]

    create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
    You should try adding account name to the macro itself. I have not use macro as a return type but only as repeatable piece of code. Also, macros are used only with business rules but not calculation scripts
    IF (@ISUDA("Account","UDAstring"))
    "A/c member"= @SUM(1,2);
    ELSE     
    "A/c member" = @SUM(4,2);
    ENDIF
    Calcscript is as follows:-
    SET UPDATECALC OFF;
    FIX(...)
    %macrofunc ();
    ENDFI

  • URGENT--Custom Defined Macro Problem.

    Can u pls . explain what does ELSE;@@1-@' means in following.( pointed by<<---????????????). The macro is correct & working fine but I am unable to decode it fully.create or replace macro 'EEF'.'@MMOV'(ANY) as 'IF(@ISMBR(JAN));IF(@ISMBR(FY06,FY07,FY08,FY09));@@1-@PRIOR(@@1->DEC,1,@CHILDREN(Years));ELSE;@@1-@@1->BegBalance;ENDIF;ELSE;@@1-@' <<---????????????spec 'Calc Month Movement on Account'comment 'Valid for FY04 thru FY09 : BegBalance input to FY04 :Requires modification (or use of SubsVars) for later year BegBalance'Regards

    Turns out this problem can be resolved by the proper JDK settings.
    I was using JDK 1.6 to compile my code (as its a pain to find and download the 1.5 JDK). Essbase uses a 1.5 JVM.
    The following errors can be resolved by the proper javac settings:
    Java Virtual Machine error
    Wrong java method specification
    Here is the new javac line I used with JDK 1.6:
    javac -target 5 CalcFunc.java

  • Etext, xpath and custom defined level

    I am using XML Publisher in EBS.
    I am running into an issue with xpath syntax in an etext template.
    I have XML as follows:
    OutboundPaymentInstruction
    +PaymentInstructionInfo
    +PaymentProcessProfile
    +PaymentFormat
    +Instruction Totals
    +Instruction Grouping
    +Payer
    +BankAccount
    </InstructionGrouping>
    +OutboundPayment
    </OutboundPaymentInstruction>
    From OutboundPayment level, I can navigate back to payer info by using this syntax
    ../InstructionGrouping/Payer/Address/AddressLine1
    However, I need to define an additional level as follows:
    <DEFINE LEVEL>     PaymentPayee
    <BASE LEVEL>     OutboundPayment
    <GROUPING CRITERIA>     SupplierNumber
    <END DEFINE LEVEL>     PaymentPayee
    How do I get the payer information now? I thought it should be
    ../../InstructionGrouping/Payer/Address/AddressLine1
    as OutboundPayment is now nested below PaymentPayee, but this doesn't work. Any suggestions please?
    Thank you,
    Tam.

    Hi
    Sorry for the delay. My User got locked for some time.
    I have seen the document you sent me on my email id.
    <b> I noticed in the case where the Search help is working fine, there is no space in between the contents of the Fixed values and their short text under the value range tab of the Domain element.
    But in the case, where there is a problem with the search help. There both the Fixed values and their short description is having a space in between the words.
    Try maintaining COND_A instead of "COND A". Also with the short description use "COND_A" instead of "COND A".</b>
    <u>I hope this will resolve the issue.</u>
    <b>Update me once you have any issues.</b>
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • URGENT: Custom Defined Macro

    I developed the following macro: MAXL> create macro MIS2000.'@ISMBRSUBSTRING'(single,single,single) as 2> '@ISMBR(@MEMBER(@SUBSTRING(@CURRMBR (@@1),@@2,@@3)))' 3> spec '@ISMBRSUBSTRING(dimName,StartPosition,EndPosition)' 4> comment 'verifies if the substring of a current member in the specified dimension is a current member in another dimension'; We have a dimension "Year" with members 1999, 2000, 2001, 2002, 2003... and a dimension "Planversion" with members 2000_01, 2001_02,... 2001_12, 2002_01, ...So I use the CDM in a member formula as follows:IF(@ISMBRSUBSTRING(Planversion,0,4)) ....ELSE ....ENDIFI would like to check out if the current member in the year dimension equals the first 4 letters of the current member in the dimension "Planversion" and use this in an IF statement.When I used this macro in a member formula the application crashed immediately. Is there anything wrong with my macro? Or is there another way to get the desired result.I would need urgent help as I do need a solution by monday (next data load).Your help is highly appreciated. Gerald PS We use Essbase 6.14

    It would have been easier if you had tried to do it. Just for fun... did you even try before asking.. I guess, since you are asking, you did not try. I kind of find it lame that people ask questions before even taking 2 mins to try it out.
    Macros can be used in business rules but not calc scripts.

  • Use of Vendor and Customer in 'Define Shipping Data for Storage Location"

    Under the stock transfer order configuration, there is a IMG step <b>"Define Shipping Data for Storage Location".</b>
    In this at storage location level, we can assign, sales org/distribution channel, division and VENDOR and CUSTOMER to storage location.
    The customer number is used a sold-to-party in outbound deliveries.
    <b>But I am not able to figure out what's the use of VENDOR number we are specifying in this step.</b>
    If I am assiging the VENDOR Number here to every storage location, then when I am creating cross-company code Stock transport order, which vendor code I will select the one assigned to PLANT or one Assigned to Storage location.
    <b>Also I need to know what vendor account group I will use for creating this storage location vendor.</b>  I have more than one storage locations) under one plant. Soif I used account group as "0007" plant, SAP doesn't allow me to assigne one plant code to 2 vendors and in vendor master on 'additional purchasing data' screen I am not seeing storage location field, it has only 'PLANT' field.
    <b>So I need to know-
    1. Which account group to use for creating storage location vendor
    2. What's the ultimaye use of this vendor code
    3. What vendor # I will use while creating cross-company PO (one for plant or one for storage location.</b>
    Thanks

    Hi,
    Define Shipping Data
    Here in this step you maintain the customer number of the receiving plant. This customer number is used in SD shipping processing to identify the goods recipient (ship-to party) if stock transfer to be carried out with an SD delivery
    A goods receipt can be planned in the receiving plant.
    You can enter a vendor (transport vendor) in the stock transport order
    In IMG step "Define Shipping Data for Storage Location".
    You can assign sales org/distribution channel, division and VENDOR and CUSTOMER to storage location through Plant only.Means this Vendor is created for entering in the STO .This vendor is created for the the Plant (Supplying Plant)so as u can create STO.
    Rewards If usful
    Regards
    Sanjay L

  • Error while creating Custom Defined Functions in Essbase

    <p>Hi All,<br>I am trying to create CDF(Custom Defined Functions) in Essbase. Iwant to create a function which take list of child member andreturn the first child. For this, i have created a java file called"ChildAccess.java" which contains the following code:<br>public class ChildAccess<br>{<br>public static char GetFirstMember(char [] members)<br>{<br>return members[0];<br>}<br>}<br>I have compiled and made jar file called"ChildAccess.jar" and pasted it at"ARBORPATH/java/udf". Then i restarted the Essbase Serverand run the following MaxL command to register the function<br>create or replace function '@ChildAccess' as<br>'ChildAccess.GetFirstMember'<br>spec '@ChildAccess(memberRange)'<br>comment 'adds list of input members'.<br>Till here i am not getting any error but when i am using thisfunction in my calc script as given below<br><br>FIX(@ChildAccess(@CHILDREN("Abc")))<br><br>it gives the following error<br>"Error:1200414 Error parsing formula for [FIX STATEMENT]<br>(line 2)"argument[1] may not have size[6] in function[@CHILDREN]"<br>NOTE: The SIZE[6] is giving the no. of child in member"ABC".<br><br>Thanks in Advance<br>Arpit</p>

    If you want to use the CDF in a FIX statement you need to make sure that it returns a member name rather than a number:<BR><i><BR>public class ChildAccess<BR>{<BR>    public static String GetFirstMember(String[] members)<BR>    {<BR>        return members[0];<BR>    }<BR>}<BR></i><BR>I prefer to define the function against a specific application rather than globally because you only need to restart the application in order to pick-up any modifications to the .jar file. So the MaxL function definition would be:<BR><i><BR>    create or replace function appname.'@_GETFIRSTMEMBER' as<BR>        'ChildAccess.GetFirstMember(String[])';<BR></i><BR>and in the calculation script the FIX statement would become:<BR><i><BR>    fix ( @member( @_GetFirstMember( @name( @children( "Abc" ) ) ) ) )<BR></i><BR>This looks a little messy so you can use a macro to simplify it:<BR><i><BR>    create or replace macro appname.'@GETFIRSTMEMBER'(single) <BR>        as '@member( @_GETFIRSTMEMBER( @name( @@1 ) ) )' <BR>        SPEC "@GETFIRSTMEMBER(memberRange)";<BR></i><BR>and then the FIX statement could be written:<BR><i><BR>    fix( @getfirstmember( @children( "PRODUCT" ) ) )<BR></i>

  • I am planning to create custom defined  DSO Object & Info cube

    Hi ,
                     i am planning to create custom defined  DSO Object & Info cube.what ratio i can calculate what is the keyfields & what are the data fields in DSO.How can i calculate.
                     2. how can i create  suitable dimensions, suitable characterstics  for dimensions.what ratio i can decide.
    Thanks,
    chandu.

    Hi Diego Garu,
                               Thanks for your fast response.i
    VBELN     VBAP     2LIS_11_VAITM                                              0DOC_NUMBER
    POSNR     VBAP     2LIS_11_VAITM                                                0S_ORD_ITEM
    KUNNR     VBAK     2LIS_11_VAHDR                                                 0SOLD_TO
    VBELN     VBRP     2LIS_13_VDITM                                                    0BILL_NUM
    FKDAT     VBRK     2LIS_13_VDHDR                                                 0BILL_DATE
    INCO1     VBRK     2LIS_13_VDHDR(INCO1FieldNot Available in Data Source)     0INCOTERMS
    ZTERM     VBRK     2LIS_13_VDHDR(Payment terms field Not Available in Data Source)                                                                                0UCPYTERMS
    NETWR     VBRP     2LIS_13_VDITM                                                           0NETVAL_INV.
                                           here data is coming from the multible tables.that why i am planning to create custom defined data source based on view. here how can i calucate dso is suitable or cube is suitable.
    suppose dso is suitable how can i decide which on is the data field and which one is the key field.
                                        how can i decide how many dimensions are needed here.and which chara are suitable for that dimensions.
    Thanks ,
    chandu.

  • My experience in Toshibas product and customer services

    Just a warning to people who may be considering purchasing a Qosmio based on my own experiences and the research I have done in the last week.
    Toshibas customer service is simply not what it once was and there are 100s of reports of Qosmios of all generations suffering extreme issues just outside of warranty periods.
    Ref: Toshiba Qosmio X500-149, Support call reference ********
    I am writing to express my frustration, anger and disappointment in Toshibas product and customer services.
    I am a Freelance Community Manager, Video Game and hardware reviewer in the video games industry presently looking after 2 communities for 2 employers totalling over 2.5m users, I travel to a lot of trade shows, expos and community meet and greets where I require a laptop suitable of showing the employers products which are usually AAA video games or editing video on the fly for publication to social networking sites.
    In January of 2011 my 4 year old Alienware hit that point where it really needed replaced, I opted for a Toshiba Qosmio over the Asus G73 as there was a 300 price difference for near identical spec.
    I managed to source a X500-149 at PCWorld the companies flagship model here in the UK paying 1499 for it on January 26th 2011 reduced from 1799.
    For the 1st 13 month this laptop performed admirably aside a design issue of the fan guards that I raised on the 16th May 2011 with PCWorld where the heat expelled causes the rear guard plastics to become exceptionally brittle and crack. I evangelised the product to anyone who asked me what laptop and model it was that was running these AAA games in such great detail, something I certainly won't be doing in future.
    In early March 2012 it then began randomly locking up requiring a hard reboot this would then suffer issues restarting, reporting Operating system could not be found this would usually point to a fault on the primary HD, disk checking software however reported no errors but this continued to happen which would lead me to suspect the motherboard.
    Within a month of this problem starting the left laptop fan began making a horrible screeching noise and had a distinct wobble whenever high RPM's were required and the machine began to often go into thermal shut-down whilst performing my work duties and utilising graphics and higher than idle CPU.
    I decided on the 23rd April 2012 that enough was enough and I was going to speak to Toshiba as for this to happen to a flagship laptop that was only just out of warranty was simply unacceptable.
    23rd April called to report the issue and was basically told tough luck its out of warranty at this point I also updated my tel numbers with Toshiba as the info was outdated, after expressing my anger at this Toshiba agreed to offer me a extended warranty at a cost of 166.
    I was fuming to say the least Toshibas flagship laptop breaks at 14 month old and I am expected to stump up more money. If I was not desperate as the machine is critical to my work I would have returned the machine to PCWorld under the sales of goods act and it not being fit for purpose.
    As that course of action would likely lead to legal proceedings, engineer reports and even more delay than just dealing with Toshiba for a repair, against my better judgement I called back at 11am on 24th April paid the 166 and took Toshiba up on the warranty extension, order number ********** again having to provide correct tel numbers as where once again incorrect, immediately after I reported the faults.
    Toshiba Support centre on fault reporting where great noting each issue in detail and raised a collection with UPS for the following day.
    The evening of the 24th April whilst I was retrieving data from the laptop in preparation for factory resetting it the machine went into thermal shut-down with a very distinct smell of burning chemical/plastic coming from the rear vents.
    It took me over 90 minutes to get the machine cool enough to actually reboot and get my data after this I shut it back down and boxed it up not be used again.
    I thought the best course of action would be to report this as it was a fair step up from the previous overheating. Wednesday 25th April at around 9am I called Toshiba to report this and was advised this would have to be dealt with by a head office case manager, as the item had become hazardous thus the collection that would take the laptop to the service centre was cancelled.
    At this stage the advisor took my contact numbers again and escalated the case to head office advising at that time that I would be called by HO within 24 hrs.
    Thursday 26th April 15:31 Well past the 24 hr mark and no sign of a call so I called support again and spoke to a advisor called Jacob. Jacob advise that HO had indeed tried calling on 01670 ******* this number was my old number, this number was the number I had advised twice already was incorrect and had provided both a correct land-line and mobile number 3 times previously. To say I was annoyed was a understatement.
    Jacob attempted to contact Chloe Sontag who was looking after my case but the line just rang out so Jacob advised that he had sent an email asking for Chloe to contact myself.
    Friday came and still no contact by 15:00 so I called support who once again tried to patch me to Chloe who's number once again just rang out and again an email was sent asking to call me.
    No call by 17:30 so I called tech support again and spoke to Ian asking for head offices number so I could call them direct, Ian provided the number yet advised that HO are now closed.
    After expressing my frustration with this whole process and just how critical this machine is to my daily working life Ian promised to look into the case on Monday AM and try and expedite actually getting a phone call to at least start the process of having this laptop repaired.
    To say I'm annoyed is really a understatement not only has this failure to receive a simple phone call at least delayed the repair by almost a week but it is costing me more and money daily when I spent a large amount on what I imagined would be a great laptop for 3-4 years and believed Toshiba actually had good customer service in the event something did happen.
    My best guess is that Chloe is on holiday or is part time or such like as her phone just rings out and if that is the case then I would question why assign a case to her, if she isn't then I would want to know why after 2 additional mails advising that the customer is not happy and to contact them has there been no contact or are your case workers just so overworked with faulty products that they can't manage the workload ??
    So far Toshibas inability to produce a product that last as long as you expect it would has cost me 2 days off work that I am having to make up this weekend thus cancelling prior commitments, 166 extended warranty 600 for a HP laptop that I had to go and purchase yesterday 27th April 2012 to actually perform my work on and who knows how much in phone calls by the time this matter will finally be resolved.
    I was happy with Toshiba as a manufacturer and of course laptops can have issues however having now researched these issues far to many Qosmio X500 users report severe overheating just after the 12 month period or within it and many state that repair after repair has taken place but still to no avail, this on top of the cracking of the rear heat-sink guards has to be a design fault.
    This letter will not arrive with you before I have hopefully had a phone call and my laptop has at least been collected for repair, If I have not had that phone call then I would expect another letter very shortly.
    Why have I wrote this letter ? To express my disappointment with just how poor the durability of your flagship laptop is and also at just how poor your customer service are, 1500 is a lot of money in the PC purchasing scheme of things and to expect this quality of hardware and customer service is simply unacceptable.
    I expect the repair to be expedited and if like some of the horror storys I have read online parts required will take 4 weeks + then I would expect a replacement laptop, not everyone uses these things for entertainment and whilst the HP I had to rush out and buy with money I didn't really have available can allow me to perform my core duties to the minimum it cannot allow me to perform my duties to my standards, my employers standards or my expectant communities standards.
    This has been a really unfortunate series of events as I had been considering the X870 Ivy Bridge based on the Nvidia 670m Qosmio which would release soon and passing this X500 onto my partner but after these events and the fact that the HP laptop had to come out of the money saved for it then I can categorically state that will not be the case and I will instead opt for the Asus G55 or G75.
    If this issue cannot be resolved to a satisfactory manner then I will have no option but to seek an independent engineers report as well as printing the myriad of similar reports of these issues on the internet and return the item to PCWorld.
    In line with the sale of goods act 1979 a large electrical item has to be of satisfactory quality and fit for purpose for a period of 6 years whilst I wouldn't expect the full 6 years from a laptop I would expect at least 3-4 year especially considering that this is a near 2000 flagship model not a 200 budget model.
    This is a action I really do not want to take as it will likely end in small claims court against PCWorld a company that on this occasion has done nothing wrong, I do not believe in punishing those who are not at fault so its a action I really wouldn't be happy with and I'm sure PCWorld one of if not the largest vendor of Toshiba products when you incorporate the rest of the DSG group wouldn't be too pleased with it either.
    Frustratingly

    So I received my laptop back today after having fans replaced and a good clean as well as the top cover replaced.
    Opened the box and took the laptop out 1st thing I noticed was a screw rattling around inside, SIGH!!!!
    Plugged the laptop in and attempted to boot it at this point it just cycle through finalisation of windows install and shutdown.
    How could a laptop have been tested if it didn't even have windows installed ?
    An hour later and I gave up unplugged it and lo and behold it actually booted when on battery only.
    I then noticed that the SSD was full, oh wait no it wasn't the head office engineer in his infinite wisdom decided that partitioning a 64GB SSD to 2 drives barely even leaving enough for Windows on the C: and wait for it putting the HDD recovery on the second partition was a good course of action.
    So a completely borked install and a screw floating around inside remind me how this particular engineer has a job ??
    I spent the next 15 minutes just moving data around and creating and deleting partiitions to fix this mess up.
    Grabbed HWMonitor to check temps and at an idle 50c on CPU and 36c on GPU they didn't look too bad,
    Installed the Toshiba recommended Nvidia driver a driver I hasten to add that was released in 2010 as Toshiba have not updated the drivers for their flagship series laptop since then, They are happy to take your 1643 that the unit cost but then don't expect support for it.
    Anyway that aside I then installed 1 of the games I work on and began to run the machine through our benchmark software wooooosh the temps shot up to 90c+ on both CPU and GPU and remained at this temp for the duration of the benchmark never quite triggering thermal shutdown, I then loaded into a warzone for further testing and sure enough half way through it the machine shut down due to thermal shutdown.
    I then uninstalled the toshiba driver and tried a NVidia one sure enough as others have advised actual Nvidia drivers seem worse and thermal shutdown came so much earlier.
    I have been to PCWorld today to begin proceedings of returning outside of warranty due to not being fit for purpose or of suitable quality. This is costing me a further 60 and at least 2 weeks more without a proper machine and will likely result in me getting about 1300 back from PCWorld.
    So lets do the math on just what this will have cost me by the time its finished.
    1634 Original purchase
    166 Extended Warranty
    600 Backup Laptop whilst this was away for a month
    60 outside of warranty assessment
    50 phone calls
    I will probably receive 1300 back but then 1300 doenst buy me the spec I need for work so I will have to pull out another 300-400 for the required spec so lets add that to the original figures.
    A Toshiba Qosmio, Toshibas flagship laptop will have cost me in total 2910 almost double its actual retail price.
    I will NEVER buy a Toshiba product again and it will become my lifes mission to let everyone know just how terrible they are.

  • How to get custom defined messages in WAD

    Hi
    can you please help me how to get customized error messages in WAD.
    While I'm executing in RSRT the customer exit variable throws error message saying that 'No Sales orders exist for this Sold_To Party' but when I execute same query using Bex WAD, then no error message throwing for me for given sold_to party. I tried with all options as given in below code, but WAD gives me system error that "No values found for the customer exit variable 'Zxxxx'. Please help me in this regard. Should I do any settings in WAD to get custom defined messages. Kindly let me know
    my code is as below
    I_STEP = 2.
    CASE i_vnam.
    WHEN 'Custome exit variable'.
    IF sy-subrc = 0.
    ELSE.
                   MESSAGE e060(/bmc/bw).  "No Authorization exist
                    g_errflag1 = 'X'.
                   exit.
                   CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                      EXPORTING
                        i_class  = '/bmc/bw'
                        i_type   = c_e                                    "'E'
                        i_number = '061'
                        i_msgv2  = l_msgv2.
                         RAISE NO_REPLACEMENT.
                    l_s_range-low = g_soldto.
              l_s_range-sign = c_sign_i.
              l_s_range-opt  = c_range_opt_eq.
              APPEND l_s_range TO e_t_range.
    ENDIF.
    I_STEP = 3.
      READ TABLE i_t_var_range INTO w_s_var_range
                  WITH KEY vnam = 'customer exit variabel'.
      IF sy-subrc = 0.
    Check the flag and throw message 'No Sales orders'.
        IF g_errflag1 = 'X'.
          l_msgv1     = 'No Sales orders'.
    Call the FM to populate message
          CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
            EXPORTING
              i_class  = c_r9
              i_type   = c_e                                    "'E'
              i_number = c_000
              i_msgv1  = l_msgv1
            EXCEPTIONS
              dummy    = 0
              OTHERS   = 0.
         CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
         CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
          RAISE NO_REPLACEMENT..
        ENDIF.
    Thanks & Regards
    silu

    Hi
    Custom Messages WAD

  • Internal Error in reading a Table of Oracle custom-defined objects.

    Hi,
    We are running into an Oracle internal error when trying to extract data from an OUT parameter of a stored procedure. The OUT parameter is of the type TABLE of Oracle custom-defined OBJECT.
    Any help on this issue will be greatly appreciated.
    Thanks, in advance,
    OraNew
    Program:
    package test;
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Types;
    import java.util.ArrayList;
    import java.util.List;
    import oracle.sql.ARRAY;
    import oracle.sql.STRUCT;
    import src.vo.ProfileBank;
    public class TestOracle {
    * @param args
    public static void main(String[] args) {
    try{
    Connection con = getConnection();
    ResultSet rsBalance = null;
    CallableStatement cs =
    con.prepareCall("{ CALL acr_profiles.get_profile_bank( ?, ?, ?)}");
    cs.setLong(1, new Long(133).longValue());
    cs.setLong(2, new Long(29032).longValue());
    cs.registerOutParameter(3,Types.ARRAY,"ACR_USER." + "ACR_PROF_BANK_TAB");
    cs.execute();
    ARRAY array = (oracle.sql.ARRAY) cs.getObject(3);
    System.out.println("length: "+ array.length());
    System.out.println("isConvertible: " + array.isConvertibleTo(Object.class));
    System.out.println("isInline: " + array.isInline());
    rsBalance = array.getResultSet();
    showResultSet(rsBalance);
    } catch (Exception sql){
    System.out.println("Exception "+ sql);
    public static void showResultSet (ResultSet rs) throws SQLException
    System.out.println("ResultSet = "+ rs.toString());
    List profileBanks = new ArrayList();
    while (rs != null && rs.next()) {
    STRUCT struct = (STRUCT)rs.getObject (2); //getting the Internal Error on this line.
    Object[] attribs = struct.getAttributes();
    System.out.println("Bank Alias Id"+ (java.math.BigDecimal) attribs[0]);
    System.out.println("Bank Name"+ (String)attribs[1]);
    System.out.println("Bank set flag "+ (String) attribs[2]);
    ProfileBank pBank = new ProfileBank();
    pBank.setBankAliasId(new Integer(((java.math.BigDecimal) attribs[0]).intValue()));
    pBank.setBankName((String) attribs[1]);
    pBank.setSelBankFlag((String) attribs[2]);
    profileBanks.add(pBank);
    public static Connection getConnection() throws ClassNotFoundException, SQLException {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Driver loaded");
    // establish a connection
    Connection conn = DriverManager
    .getConnection(
    "jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.3.11.201)(Port=1521)) (CONNECT_DATA=(SERVICE_NAME= aada.a.al)))",
    "acr_user", "acr_user");
    System.out.println("Database connected");
    return conn;
    Console Output:
    Driver loaded
    Database connected
    length: 2
    isConvertible: false
    isInline: true
    ResultSet = oracle.jdbc.driver.ArrayDataResultSet@1f3aa07
    Exception java.sql.SQLException: Internal Error
    Partial Stacktrace obtained from the Eclipse Debug window:
    oracle.jdbc.driver.DatabaseError.throwSqlException(int) line: 292
    oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName() line: 1192
    oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(int) line: 1225
    oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName(boolean) line: 119
    oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName() line: 93
    oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).initSQLName() line: 497
    oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).getName() line: 392
    oracle.sql.StructDescriptor.getClass(java.util.Map) line: 2003
    oracle.sql.STRUCT.toJdbc(java.util.Map) line: 983
    oracle.jdbc.driver.ArrayDataResultSet.getObject(int, java.util.Map) line: 1379
    oracle.jdbc.driver.ArrayDataResultSet.getObject(int) line: 1198
    test.TestOracle.showResultSet(java.sql.ResultSet) line: 53
    test.TestOracle.main(java.lang.String[]) line: 38
    Environment:
    Database: Oracle 10g (10.2.0.3)
    JDBC Drivers: version 10.2.0.3 (ojdbc14, orai18n)
    Database Server: HP-UX
    Client machine: Windows XP
    <end of thread>

    hi Thom,
    most error relating to table DOKTL are caused by misconfigured network card.
    if this is a "home" system, install a loopback adapter from Microsoft and use IP address 127.0.0.1 and also check "hosts" file for inconsistency. do not use the IP adddress provided by your ISP as it may change.

  • Impacts in COPA of changing material and customer master data

    Dear experts,
    In my company we are considering following scenario:
    Currently mySAPerp 6.0 is implemented for all modules for the mother company.
    We have developed a new global template where there are significant changes versus the existing system, especially in the SD processes. Material and customer master also change significantly in terms of content in the tables/fields and/or values in the fields.
    The idea was to build the template from scratch in a new machine and roll-out all group affiliates, but now we are considering the possibility of making an evolutionary of the current system and try to stretch it to the processes defined in the global template.
    The scenario we want to analyze is: Keeping same organizational structure in terms of Company code, CO area and Operating Concern in existing SAP client and make an evolutionary of the existing settings to the global template processes.
    The doubts we are having are the following:
    Changing material & customer master data: Impact in COPA
    Option 1: Material master data and customer master data codes are maintained but content in the tables/fields is changed substantially, both in terms of logical content of specific fields and/or the values in the specific fields. We have following examples of changes.
    Case 1: source field in material master changes logical content. E.g. Material master field MVGR1 is currently used for product series (design line) and the content changes to be the Market Segment. The product series will be moved to a classification field. At least 5 other fields are affected by this. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 2: the source field is not changed so that the logical content of the field remains but the values change, i.e. for the same concept there will be different codifications. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 3: Characteristics where currently the source material master field is a Z field and the derivation is via table look up and where the Z field changes to a classification field. How can you convert the existing COPA line items to ensure that attributes are aligned? Should new characteristics be created or just change the derivation logic of the characteristic?
    Option 2: Material master data and customer data codes are re-created (codification of records is changed), meaning that new material and customer codes will exist and content in tables/fields is changed (as in option 1)
    Case: material and customer codes are changed. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Iu2019ve never phased a similar scenario and I fear that maintaining operating concern while changing source master data and also SD flows (we have new billing types, item categories, sales doc. Types, order reasons) may lead to inconsistencies and problems in COPA.
    I would like to ask you experts if you have come across a similar scenario and if from your experience, it is something feasible to do or there are many risks involved. What can be the impact of this scenario in existing Operating Concern for both option 1 and 2 and what would be the key activities to perform to adapt the existing operating concern. What will be the impact of the needed conversions on P&L reporting?
    Sorry for the long story. I hope you can help me out.
    Thanks and Regards,
    Eric

    Hi,
       First i think you will need to test if it works for new COPA documents created via billing.
      If it works fine then the issue is if you wish to apply these changes to the historical data already posted.
      Normally there are transactions like KE4S where you can repost the billing document to COPA
      However this may not be viable for bulk postings
      You can perform realignment (KEND) but this only works at the PA segment level (table CE4XXXX)
    regards
    Waman

  • HR LDB PNP and customer infotypes in 640

    Hello,
    I encountered the following problem during an upgrade from 4.6C to SAP ERP Central Component 5.0. When using logical database PNP and customer infotypes the syntax check produces the following syntax error:
    - INCLUDE report "%_HR9731" not found
    I have added an example program below. Prerequisite for this program is that the cutomer infotype 9731 exists in the system.
    Has anyone experienced this problem before? And if so, is there a solution? I can program some workarounds, but I prefer a solution, which does not involve changing my code.
    Regards,
    Marcel
    REPORT ZTESTINFOTYPES.
    tables: pernr.
    infotypes: 0000,
    0001,
    0002,
    9731 mode n.
    start-of-selection.
    get pernr.
    write / p0002-pernr.
    end-of-selection.

    Hi all,
    "You will have to run report RPUMS40CCI (XPRA for generation of
    infotype include) for existing customer-defined infotypes.
    If you have not run this report then please do so.
    The report RPU40CCI creates the infotype include %_HRnnnn (nnnn =
    infotype number) and the additional data structure Pnnnn_AF (nnnn =
    infotype number) for the given infotype, provided that the correspondin parameter ("generate infotype include" or "generate additional data
    structure") are set on the selection screen. If the parameter "maintain only T77ID" is set, no infotype include or additional data structure is maintained, only those entered in table T77ID."
    Best Regards
    Silvio Galery

  • Poor business practices and customer services

    Best Buy, that's a LIE!  Shoppers beware!  I purchased a Sony theatre system from Best Buy, store #251 at 8290 W. Bell Rd, Glendale, Arizona, which was on sale for $249 ($10 less expensive than Walmart), 12-days prior to my wife's birthday.  I gave it to her on her birthday and attempted to return it within the 14-days of actually giving it to her, but past the 14 days from original purchase.  I brought the item back to the same store and Best Buy told me they won't accept the return and for me to just keep it, they will not accept a return.  It was in perfect working condition, but for some reason they said even if it wasn't working I had to give it to their 'Geek Squad' to repair it.  Even If it wasn't working I would've wanted a new replacement under 1-year warranty.  This was something very strange I never heard of before from any retailer.  It was working fine, so this wasn't an issue, but I was puzzled to hear them say something about their replacement policy.  Wow, watch out when you buy a product, you never know if it's new, used or repaired!   I also contacted customers service by telephone on several occassions and they regurgitated their written policy of no returns past 14-days.  I explained that I am a totally disabled veteran with limited income, plus my wife has been battling cancer that spread to her lungs and that she has been undergoing chemotherapy, plus she was hospitalized three days the week prior and two days the next week and several additional times since, due to the chemo treatments.   I explained to them I believe they should be flexible and compassionate, use good will and good faith to accept our return because of these circumstances beyond our control.  I asked them, what is someone to do when they purchase an item, that's on sale, in advance of someone's birthday, Christmas, anniversary, wedding, etc., and it's past the 14-day return policy and they try to return it. I received no answer.  After requesting to speak with a supervisor and explaining all this information and requesting they allow us to return the item, Best Buy stopped all communication with us!  We haven't heard a word from them and we are now left with the Sony system we cannot use.  They show total disregard for both my wife's and me and totally lack of customer service and appreciation in the entire matter.  They seem to be only concerned with the bottom line, greed and Money!  I'm totally disgusted with their policies and business practices.  They don't care about the customer, only the bottom line, lining their pockets with our hard earned money!  I may have saved $10 at Best Buys price of $249 versus Walmarts price of $259, but it cost us $270 for a product that is useless to us, just becuse they will not allow us to return the item. cheaper doesn't mean BEST BUY!   I never had a problems returning any items to Walmart!!!

    Hello Ken1,
    I was very disheartened to read of your wife's condition and I my best wishes go out to her. I also wish to thank you for your service and sacrifice for our country. I was further dismayed to read that your intended gift of the home theater system didn't meet your needs and that you weren't able to return it as expected. Certainly causing you aggravation was never our goal.
    As published on your original receipt, our website, and posted in your local Best Buy store, our Return & Exchange Promise allows for a return or exchange of a product within 15 days of purchase (30 days for My Best Buy Elite members and 45 days for Elite Plus members). Outside of this time frame, we are unable to offer a return or exchange.
    I'm grateful that you took the time to write to us and for your feed back on our Return & Exchange Promise.
    Sincerely,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Ageing wise vendor  and customer report

    hi....
    Where i can get ageing wise vendor  and customer report?
    Thanks & Regards
    Rekha shrama

    Hello
    First configure credit management & customise.
    A/R Summary
    Degree of ageing
    You can set the allowed degree of ageing in Customizing for Sales, under Basic Functions ® Credit Management/Risk Management ® Credit Management ® Define Automatic Credit Control.
    Under Checks in financial accounting/ old A/R summary, you can enter the permitted degree of ageing for the A/R summary, in the fíelds Permitted days and Permitted hours. Here, you can define how old the A/R summary can be, in order to be called up for a check. If the permitted degree of ageing for the A/R summary is exceeded in the credit check, then the document is blocked.
    Fields allowed days and allowed hours are only available for entry if you have entered an X in field Read A/R Summary in Customizing. The path is: Accounts Receivable and Accounts ® Credit Management ® Credit Control Account ® Make basic settings for credit management.
    Updating
    The A/R summary is either sent periodically (with the help of the report RFCMCRCV) from central Financial Accounting to the decentralized Sales and Distribution units according to ALE distribution model or, if an obsolete A/R summary is presented, updated for the credit check by the system per remote function.
    In order that the system is burdened as little as possible, SAP recommends you stick to the following order:
    Program run: Incoming payments in central FI
    Program run: Distribution A/R summary from central FI to decentralized Sales and Distribution units
    Program run: Renewed credit check for blocked sales documents in decentralized Sales and Distribution units
    Status Management for Obsolete A/R Summary
    If the A/R summary is obsolete, the credit status Credit data obsolete is set. This means that the document is blocked, and appears in the credit representativeu2019s worklist. In Customizing for Sales, in the section Automatic Credit Control, for the single, aforementioned checks, for which FI data is necessary, you can define whether a warning appears in the obsolete data, or whether a status is set.
    If you are working with the A/R summary, and would like to re-process obsolete data, it is recommended that you set a status.
    Reg
    suresh

Maybe you are looking for