Looking to create a detailed P/L in Crystal for B1

We have an excellent P/L report created in XL Reporter. We are running SAP B1 v 8.82 but are considering a move to v 9.0. We know that XL Reporter is no longer integrated in B1 but just as an add on and I therefore wanted to see if I could use crystal to recreate the P/L Report.
I must also add that I am a relative novice with regard to crystal and sql but have produced simple reports and queries in both.
Our report takes the data from the General Ledger and I believe that the tables required are:-
JDT1 - Journal entry rows
OACT - G/L Accounts
OFPR - Posting period
Our report shows the following columns:
Period Total Last Year - Period Cumulative Total Last Year - G/L Item Name -  Period Total This Year - Period Cumulative Total This Year - Budget  Cumulative Total This Year
I want to be able to select the financial period and for the report to generate from that selection. From the original XL Report I know the G/L Accounts I need to include. I know all the values come from the JDT1 table and the values come from summing  (Debt) - (Credit). What I am struggling with is how to create different date ranges i.e. just the period and the year to date for the current year, the corresponding date ranges from the previous year and to have those dates relate to a chosen period.
Any assistance or if you can suggest any points of reference to assist would be a great help.
Thanks
Andy

DATA:L_WA_FINAL TYPE TY_FINAL,
l_wa_string type string.
OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
if sy-subrc ne 0.
write: ' file cannot be opened'.
stop.
endif.
LOOP AT P_I_FINAL INTO L_WA_FINAL.
move l_wa_final to l_wa_string.
TRANSFER l_wa_string TO P_PREFIL.
write: 'file can not be written'.
clear l_wa_final.
ENDLOOP.
CLOSE DATASET P_PREFIL.
if sy-subrc ne  0.
write: ' file cannot be closed'.
stop.
endif.

Similar Messages

  • What is the use of creating a detail object on a measure.

    Hi Experts,
    In BI 4.X business layer, we can create a detail object of a dimension and as well as measure.
    Can you please let me know what could be the use of the detail object of a measure object?
    In the business layer, it is showing like this...
    <Measure object>
    -><Detail Object>
    Dimensions have attributes, we create those attributes as details objects.
    when we want to see the different grains of the measure in one report. we will use these details objects.
    Example:
    1. Query 1 returns country, sales revenue
    2. Query 2 Returns Country,State,Sales revenue.
    But in the report if we want to show the State wise Revenue. It is not possible bcz both the quires are returning different grain.
    state object is incompatible object, so you can't drag the object into report.
    in this scenario we will merge the Country dimension , create the state object as details with merged dimension, then you can drag the state details detail object.
    this will give expected results Country and State wise revenue.
    Normally Dimensions and details objects will drives the measures values in report.
    So, Detail object on measure not helpful in case of relational database(Please correct me if i am wrong). It is useful only for OLAP database because when I have created a webi report on top of BEx query then it is automatically created a detail object on measure object.
    As far I know, 'Measure attribute' introduced for OLAP based business layer. which can provides information for the formatted value like unit, currency or value.
    For example:-
    Amount is key figure in BEx query and when I have created Webi report on top of that then it will create three object.
    1. Amount as meausre.
    ->2. Amount currency(detail).
    ->3. Amount formatted value(detail).
    Below is the output after running the report.
    Amount || Amount currency || Amount formatted value
    30 || $ || 30.00
    8 || $ || 8.00
    I have found one difference, We can't implement the index awareness on detail object which we have created on measure object although we can implement the index awareness on detail object which we have created on top dimension object.
    But Still I am looking for good example of Detail object on measure object..
    Any thought would be welcome...
    Thanks,
    Sachin

    I moved this to the Semantic Layer space for faster response.

  • F.31 create exposure details

    I have not found the credit exposure details (break up) anywhere in the standard reports. I would appreciated help from some one to view create exposure details. It is appearing collectively in f.31 but i need to see breakup of that figure.
    Thanks in advance,,
    asif
    Edited by: Muhammad Asif on Oct 27, 2010 8:01 AM

    Hi,
    What sort of details are you looking forward? If you are concerned about Credit Limit, Total Receivables for Credit Limit Check, etc, or something else..?
    Can you please elaborate..?
    Thanks.
    Kumar Saurav.

  • Creating master detail rows

    using adf/bc with jsf. I have defined a master detail relationship between two entities. This relationship is a composition relationship. The entities are related by a view link which link the master and detail view objects. i have a need to create/insert a master row and a detail row programmatically "on the fly" so that when the jsp renders, the user will see blank inputs for both the master and detail view objects. The problem is that the primary key of the master record is not known at creation time ( it will be entered by the user) and therefore the detail record cannot be created by the framework because of the unknown value of the parent's primary key. I was hoping the following section in the adf guide would eliminate my problem, but it doesn't appear to:
    This is from section 26.7.3.2 of the adf developer's guide
    Note: An alternative to the programmatic technique discussed
    above, which solves the problem at the J2EE application layer, is the
    use of deferrable constraints at the database layer. If you have control
    over your database schema, consider defining (or altering) your
    foreign key constraints to be DEFERRABLE INITIALLY DEFERRED.
    This causes the database to defer checking the constraint until
    transaction commit time. This allows the application to perform DML
    operations in any order provided that by COMMIT time all appropriate
    related rows have been saved and would alleviate the parent/child
    ordering described above. However, you would still need to write the
    code described in the following sections to cascade-update the foreign
    key values if the parent’s primary key is assigned from a sequence.
    This approach did not help in allowing me to create the detail record without first knowing the value of the parent's primary key record in a composition relationship. The only thing i've found to work is define the relationship as just an association, and not a composition. However, this is a true one to many (composition) relationship and i would like to take advantage of some of the features of the framework that are there when a relationship is defined as a composition relationship. Is there any way to do what i need to do with a composition relationship defined between these two entities? Thanks.

    Hi,
    I guess you need a "Cascading LOVs".
    1) Create viewObject for country values list. Named VO1.
    2) Create viewObject for state values list. Named VO2.
    3) Create view criteria for (bind variable) VO2 which can restrict the result by country.
    4) Create view accessor to get VO1.
    5) Create view accessor to get VO2. Define the bind variable value which can provide country info dynamically. I guess it should be a Groovy expression.
    6) Create country LOV on step 4) view accessor.
    7) Create state LOV on step 5) view accessor.
    Done
    On the view layer, you may enable PPR between country and state attributes.
    Todd

  • Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Basically you would need Acrobat. However, it is now also possible to create basic form fields using just the free Reader. In fact, I've been working on a tool that allows you to do it, so if you're interested in it please contact me privately.

  • Creating master-detail VO in custom AppModule method

    Hi.
    I need to create master-detail view objects and save them in DB in my custom AppModule Service Interface method.
    I have the next master-detail view objects:
    RegistryVO (1) -- (*) RegistryItemVO
    Also I have a view link for this relationship.
    I wrote custom method with next signature:
    Integer createRegistry(RegistryVORowImpl registry) {
    Then, I added this method to my AppModule Service Interface.
    Method works fine, but only master row is created and inserted to DB (only Registry but not RegistryItem). I.e. when I testing this method in EM I fill full RegistryVO with nested RegistryItemVO data but in my method RegistryVO comes without nested RegistryItemVOs.
    Then, I added SERVICE_PROCESS_CHILDREN custom property to view link (RegistryVO-RegistryItemVO) as it described in chapter 11.2.5 of Fusion Developer 's Guide for Oracle Application Development.
    After that nested RegisttryVO in my method contains nested RegistryItemVOs.
    In my custom method i need to set primary key for RegistryVO. So I set it in registryVO to PK attribute and set it in nested registryItems to FK attribute.
    But when I doing commit I have an exception:
    Exception while executing the business logic: JBO-26048: Constraint "PP_PST_RG_IT_PP_PST_FK" is violated during post operation "Insert" using SQL stat
    ement " *INSERT INTO PP_PERSON_ST_RG_ITEM* (PP_PERSON_ST_RG_ITEM_ID,IN_DOCUMENT_ID,POL,FULLNAME,NAME,FULLOT,TIN,D_ROG_DT,D_REEST
    _DT,PROCESSING_DT,PROCESSING_STATE_CD,RECEIVE_YEAR) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12)".: ORA-02291: integrity
    constraint (PP_PST_RG_IT_PP_PST_FK) violated - parent key not found
    It seems that only registryItems are commited in DB. I'm not seeing INSERT for Registry in ServieInterface log...
    But if I setting primary key for RegistryVO when I invoking method (if I setting id for registry in test console of EM, not in method) - it's work fine .
    What I'm doing wrong ?
    How can I create custom method for AppModule Service Interface to create master-detail view objects and set PK for master and FK for details within method ?
    Edited by: user2975420 on 19.10.2010 4:46
    Edited by: user2975420 on 19.10.2010 4:49

    Thanks for reply, John.
    I have already added master and detail view objects usages to my AppModule Data Model. And yes, I add detail VO as child of master.
    It seems that the reason of my problem is another...
    I can't create master/detail when I'm setting id of master in custom method. If I set id of master in input parameter (RegisterVORowImpl) then method invokes successfull.
    I noted one moment - if I'm not setting SERVICE_PROCESS_CHILDREN custom property for view link, I can set id of master VO inside method. But in this case my master VO haven't got nested RegisterItemVOs.
    Edited by: user2975420 on 19.10.2010 10:23
    Edited by: user2975420 on 20.10.2010 1:31

  • Create Contact details @ Customer Account Site

    Hi guys
    After loads of efforts I managed to create a contact @ Customer Account Site level using below API Call
    DECLARE
    p_cr_cust_acc_role_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.cust_account_role_rec_type;
    x_cust_account_role_id NUMBER;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    BEGIN
    -- NOTE:
    -- must be unique CUST_ACCOUNT_ID, PARTY_ID,ROLE_TYPE
    -- must be unique CUST_ACCT_SITE_ID, PARTY_ID,ROLE_TYPE
    p_cr_cust_acc_role_rec.party_id := 2126134; --value for party_id from step 8>
    p_cr_cust_acc_role_rec.cust_account_id := 999059; --value for cust_account_id from step 2>
    p_cr_cust_acc_role_rec.primary_flag := 'Y';
    p_cr_cust_acc_role_rec.role_type := 'CONTACT';
    p_cr_cust_acc_role_rec.created_by_module := 'TCA_V2_API';
    ---For attaching the contact to a particular site
    p_cr_cust_acc_role_rec.cust_acct_site_id := 29422; --Value for x_cust_acct_site_id from step >5
    HZ_CUST_ACCOUNT_ROLE_V2PUB.create_cust_account_role(
    'T',
    p_cr_cust_acc_role_rec,
    x_cust_account_role_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line('***************************');
    dbms_output.put_line('Output information ....');
    dbms_output.put_line('***************************');
    dbms_output.put_line('x_cust_account_role_id: '||x_cust_account_role_id);
    dbms_output.put_line('x_return_status: '||x_return_status);
    dbms_output.put_line('x_msg_count: '||x_msg_count);
    dbms_output.put_line('x_msg_data: '||x_msg_data);
    dbms_output.put_line('***************************');
    IF x_msg_count >1 THEN
      FOR I IN 1..x_msg_count
       LOOP
        dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
      END LOOP;
    END IF;
        IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
    COMMIT;
    ELSE
    ROLLBACK;
    END IF;
    END;
    Now I want to attach "Address/Email/Phone number" to this contact @ the Account site level. Please let me know how and which APIs I need to call
    Regards,
    Raj

    Okay I found the solution.
    Reference material : How to Create Contact,Phone, Email under Communication tab for Customer Account Site using API [ID 985500.1]
    docs.oracle.com/cd/B34956_01/current/acrobat/120hztig.pdf
    Repeat Run --3. Create a physical location with customer account site level Address (ie, Specific contact address details). Note down x_location_id value
    GET "x_party_id: " from "--8. Create a relation cont-org using party_id from step 7 and party_id from step 2"
    Now Run "--4. Create a party site using party_id from step 2 and location_id from step 3" passing "x_party_id" from Step 8 & x_location_id from Step 3
    Commit the changes and you will able to populate the account site specific contact person details
    Regards,
    rajesh

  • I am looking to create an app that add widgets to iphone, is it ok with apple and what shall I do?

    I am looking to create an app that add widgets to iphone, is it ok with apple and what shall I do?

    In iOS, those would have to be standalone apps due to the sandboxed design of iOS and its use of memory and resources.  There is already an abundance of clock, weather and calendar apps in the app store.  You can certainly make some of your own, but just realize yours would have to offer something really different or unique to stand out in the crowd of similar apps.

  • Foreign key validation while creating master/detail record in document mode

    I am creating master/detail records in the document mode. And I am generating the master primary key in the create() method of the master Entity Object. Now I valdate the foreign key in the detail Entity Object's validateEntity() method by doing a query to the master table through some View Object.
    But since the master record has not yet been posted (since it hasn't been committed) to the database, this query does not return any record and the validation fails in detail object.
    And thus the create fails.
    Please let me know if this is the right approach for doing this. If so where I am going wrong? Else please let me know if there are any better approach to do this.
    Kunal

    Kunal:
    Use a code snippet like the following:
    --- Assuming you're in the detail EO's create method ---
    oracle.jbo.server.EntityDefImpl eDef = oracle.jbo.server.EntityDefImpl.findDefObject(<package-qualified-name-of-the-master-Entity-Object>);
    oracle.jbo.Row masterRow = eDef.findByPrimaryKey(this.getDBTransaction(), <foreign-key>);
    If the row does not exist, masterRow will be null.
    findByPrimaryKey first checks the entity cache (which will include your new master row(s)) and then go out to database (if it's not in cache).
    Thanks.
    Sung

  • Error creating Master/Detail Form

    Hi,
    I tried to create a master detail form. I went through all the steps fine, only when i click the button to create the form, i received the following errors:
    ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Unable to create Master Detail pages.
    Could someone please tell me what's wrong?
    Thanks,
    Patrick.

    We are getting this message in several areas in the development environmnet. It's happening in the developer login screen, when creating new tabs, and when tryig to create master detail reports. Here is our error from the Apache Log:
    [Mon Mar  2 11:41:31 2009] [error] [client 10.64.8.231] [ecid: 1236012090:148.94.143.136:24226:0:1621,0] mod_plsql: /pls/apex_qmnt/wwv_flow.accept HTTP-404 ORA-06502: PL/SQL: numeric or value error\nORA-06512: at line 31\n
    I think this is different from the issue above as that is due to too many items in a shuttle list. Ours seems to be related to our new APEX insstallation. Any help is appreciated here.

  • Trying to create Master - Detail form, getting  ORA-06502: PL/SQL: numeric

    Anyone know why we might get this error trying to create a Master Detail form in HTMLDB 2.0?
    ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Unable to create Master Detail pages.
    Return to application.

    Please create the failing case in your workspace on apex.oracle.com and tell us the workspace name, app ID and steps to recreate.
    Scott

  • Unable to create master detail report

    Hi,
    I´ve two tables (Organisation and Purchases) and want to create a master-deatil with the wizard.
    At the end an error occurs:
    ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Unable to create Master Detail pages.
    Return to application.
    Any ideas ? Any reaction will be appreciated
    Leo

    Leo,
    How are your two tables related? Do you have a foreign key constraint? It sounds like that there may be a datatype mismatch between the master table's PK and the detail table's FK - check to make sure that they are both NUMBER.
    Thanks,
    - Scott -

  • How to create Method Detail in javadoc

    I am using NetBeans 5.0. I have generated javadoc giving explanation to my classes. But I don't know how to create Method Detail in javadoc to give explanations to my methods.
    Could anyone please help me with this.

    For a class, I am creating comments as shown below in my source code and it's displaying fine in the javadoc
    * <pre>
    * This is className
    * </pre>
    public class className
    }In the same way, I am giving comments to my method, but it's not getting displayed in the Method Detail section of the javadoc.
    * This is methodName
    private static String methodName(String line)
    }Could you please help me with this.

  • Having problem with creating Master Detail form , please help

    I have to work on a project to create a survey system using APEX, as am new on using this tool , am still facing some problems to finish my job..
    i created Master/Detail form using wizard, the master form is working fine but am when i try to add data using the detail form its giving me error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "5F8B1EE5CD3D46437455F43B37B9A6A0"., update "ABA"."ABA_SURVEY_SUBCATEGORY_MAST" set "ASCM_CATEGORY_ID" = :b1, "ASM_SURVEY_CODE" = :b2, "ASSM_SUBCATEGORY_ID" = :b3, "ASSM_SUBCATEGORY_DESC" = :b4
    i tried to go through the posts from others but i still dunno what is this error !!!& how to solve it..
    my master data table have 2 primary keys.. the details data table have 3 primary key all of them using trigger to fire a sequence to get the next_val!!
    am desperate & need help urgently for this ASAP.

    hello
    here is the solution,i hope this might help u.
    go to the code of your button and change write the following
    go_block('name of your master block');
    execute_query(no_validate);
    and in the object navigator make the first item in the master
    block that it should be displayed in the canvas and it must be a
    navigable item too.not a display item.
    thank you
    Zeeshan Ahmad

  • Firstly hello to all. I'm looking to create a vi that will take a single logged output from a thermocoup​le and monitor the temperatur​e and produce a Boolean when the temperatur​e has stabilised for a pre determined time say 1minuet.

    Firstly hello to all. I’m looking to create a vi that will
    take a single logged output from a thermocouple and monitor the temperature and
    produce a Boolean when the temperature has stabilised for a pre determined time
    say 1minuet. I have managed to find a couple of examples on the forum but one
    will only run on V8.2 and I have V8, the other is for more than one channel
    witch is fine I can always reduce this, but it was the timing feature I was
    having difficulty with. I looking to monitor the temperature of a motor until
    it has stabilised prior to testing and then to use this temperature as a
    reference. Pleas forgive my ignorance if this is a very simple thing but I’ am
    learning and really enjoying it. Thank you in advance for your answers.

    Hi
    Graham, thank you for you reply.
    What I’ am trying to achieve is a vi I can use in a motor
    testing setup, a part of this would be to warm the motor up until the exhaust
    air temperature has stabilised, this takes approximately 10 minuets. I was
    thinking of just letting the motor run for this time and leave it at this, but
    some motors warm up quicker that others and. I am basically looking for a vi with
    an adjustable temperature window of say ±5 C° in 1° increments, timing wise 1minuet
    to 10min the adjustment is so I a can use this for another application. I tried
    to adjust the code I found at the link below but had a little difficulty with
    the timing. Thank you so much for your help it’s much appreciated.
    sine.ni.com/niforum/niforum?forumDU=http://forums.​ni.com/ni/board/message?board.id=170&message.id=25​1017&requireLogin=False

Maybe you are looking for