Add column in FBL3N (report)

How do i insert a new field in transcation report FBL3N (G/L Account Line Item Display), that column is a sales order value.?
Regards
Carlos Orden

Additional fields can be added to FBL3N layout using transaction code O7R3.  But I don't think sales order value is in the available fields that can be added in O7R3.  Go to O7R3 and check the tables that are available in table field.  Only fields from those tables can be added.

Similar Messages

  • Add Columns to Updatable Report

    Hello,
    i need some help regarding an "Updatable Report".
    My goal is to have some SelectLists in comluns named "2008_05", "2008_08", ....."2010_01", "2010_04".
    The user must have the option to add more cloumns.
    My process on submit is:
    declare
      SQL_STRING varchar2(4000);
    begin
      SQL_STRING :=  'ALTER TABLE TAB_REPORTS ADD "' || :P3700_COLUMN_NAME ||  '" varchar2(100)';
      EXECUTE IMMEDIATE(SQL_STRING);  
      return;
    end;At the moment I have this code for a standard report returning a SQL query:
    declare
      q varchar2(4000);
    begin
      q := 'SELECT R_ID, PLANT_NAME, UNIT_NO, R_TSO_NO TSO_NO';
      For i in (SELECT * FROM USER_TAB_COLUMNS
      WHERE table_name = 'TAB_REPORTS'
      AND column_name like '2%')
      loop
        q := q || ', ';
        q := q || 'APEX_ITEM.SELECT_LIST_FROM_LOV (1, ';
        q := q || chr(34);
        q := q || i.column_name;
        q := q || chr(34);
        q := q || ', ';
        q := q || chr(39);
        q := q || 'LOV_QER';
        q := q || chr(39);
        q := q || ', ';
        q := q || 'null';
        q := q || ', ';
        q := q || chr(39);
        q := q || 'Y';
        q := q || chr(39);
        q := q || ') as "';
        q := q || i.column_name;
        q := q || '"';
      end loop;
      q := q || ' FROM TAB_REPORTS ';
      q := q || ', TAB_SD';
      q := q || ', TAB_CONTACT';
      q := q || ' WHERE TSO_NO = R_TSO_NO';
      q := q || ' AND CON_PLANT_NAME = TAB_SD.PLANT_NAME';
      q := q || ' AND R_TSO_NO = decode(:P3700_FILTER_PLANT_NAME, ';
      q := q || chr(39);
      q := q || 'all';
      q := q || chr(39);
      q := q || ', R_TSO_NO, :P3700_FILTER_PLANT_NAME)';
      q := q || ' ORDER by PLANT_NAME, UNIT_NO';
      return q;
    END;The function returning a SQL is not working for an updatable report.
    It has to be static i think.
    Any solutions or ideas?
    Thx & greetings
    Chris

    Problem solved. See [this post|Add columns to CV04N report;
    Regards.
    Gregory.

  • OIM report / add column to working report

    Hi,
    I need some help with OIM reports.
    Cannot add a column to a working report. What I have done is that I have changed the Stored procedure and then changed the Report XML Metadata to include that column.
    The report just turns out to be blank after the changes made.
    A snippet of the change to the Stored Procedure(added line in bold):
    -- contruct the query
    strColumnList := ' tusracc.system as "SYSTEM", ' ||
    ' vifs.ifsemp_employee_id as "EMP_ID", ' ||
    ' vusr.usr_first_name || '' '' || vusr.usr_last_name as "EMP_NAME", ' ||
    *' vusr.usr_status as "USR_STATUS", ' ||*
    ' tusracc.attribute as "ATTRIBUTE", ' ||
    ' tusracc.attrvalue1 as "ATTRVALUE" ';
    strFromClause := ' v_users vusr, v_ifsusers vifs, tmp_user_access tusracc ';
    strWhereClause := ' tusracc.usr_key = vusr.usr_key ';
    strWhereClause := strWhereClause || ' and vusr.usr_key=vifs.usr_key(+)';
    IF strsortcolumn_in IS NULL THEN
    strOrderByClause := ' 2 ' ;
    ELSE
    strOrderByClause := strsortcolumn_in ;
    END IF;
    IF strsortorder_in = 'DESC' THEN
    intSortDirection_in := 0;
    ELSE
    intSortDirection_in := 1;
    END IF;
    -- run the report query
    XL_SPG_GetPagingSql(strColumnList,
    strFromClause,
    strWhereClause,
    strOrderByClause,
    intSortDirection_in,
    intStartRow_in,
    intPageSize_in,
    select_stmt
    OPEN csrresultset_inout FOR select_stmt;
    ELSIF intdocount_in = 2 THEN
    OPEN csrresultset_inout FOR select dummy from dual;
    END IF;
    In the report XML Metadata I have added a line for the USR_STATUS column(change in bold):
    <Report layout="Tabular">
    <StoredProcedure>
    <InputParameters>
    <InputParameter name="v_resource_name" parameterType="varchar2" order="1" fieldType="LookupField" fieldLabel="report.ResourceAccessList.label.resourceName" required="true">
         <ValidValues lookupCode="Lookup.Reports.Objects"/>
    </InputParameter>
    </InputParameters>
    </StoredProcedure>
    <ReturnColumns>
    <ReturnColumn name="SYSTEM" label="customer.report.system" display="true" position="SectionHeader" primarySort="true" filterColumn="false" />
    <ReturnColumn name="EMP_ID" label="customer.report.emp_id" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    <ReturnColumn name="EMP_NAME" label="customer.report.emp_name" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    *<ReturnColumn name="USR_STATUS" label="global.label.Status" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />*
    <ReturnColumn name="ATTRIBUTE" label="customer.report.attribute" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    <ReturnColumn name="ATTRVALUE" label="customer.report.value" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    </ReturnColumns>
    </Report>
    Anything that I have missed to do? We have restarted the app server, but it still doesn't work.
    Regards,
    Thomas

    Arghle.....
    I found the reason for the blank result page with this...
    apparently we are not allowed to name a resulting column in a stored procedure to USR_STATUS, silent fail :/
    When I renamed this to EMP_STATUS it all works as intended...
    Duh!
    I wonder in where it says not to do this...

  • How can I delete/add Columns in my Report?

    Hi everybody,
    i´ve just a silly little question...
    We´re using APEX to revise our Daily Reject-Rows and some other Dimensiontables.
    For every Table, witch is to revise we´ve got a single Page in our APEX Application.
    Also, in every Page we created a Report for our users,
    so that they can revise the Data,
    and published it in our intranet, using a Webserver.
    Now my Question...
    In one of these Pages we´ve more then 110 columns in the sql Region Source,
    placed in the Region Definition.
    But...in the Report Attributes, there are only shown 99 Columns.
    I must integrate 3 or 4 more Columns from my Source Definitioned Table in the Report.
    Where can i do this?
    I only see how i can edit the columns, make them visible or hide them,
    define their Propertys...but where can i add a new Column?
    or delete one?
    I´m very thankfull for every Awnswer :-)
    Best Regards
    LoneWolf

    Ok, i found a Solution...
    It seems to be a BUG. (?)
    The Report Attributes will be realy generated automaticly
    under using the Source Definition, but...
    - There´s a Restriction in the Sum of all Columns,
    it can be only 99 witch will be able to define and revise.
    - If you´ver got more then 99 Columns in your Source
    you have to specified them exactly, by Name
    ...AND...
    - you have to create the Source SQL new.
    It is not sufficiently if you change the Position of the Columns in the SQL Source (placed at the Region Definition).
    I copied and pasted the Source SQL three Times,
    before APEX accept the changes of the Position from the Columns.
    At least...
    In the Moment as i define the needed Column,
    (now in the Report Attribute available),
    APEX understands it an i can put the others Columns (Columns 99 till 110) back in the Source SQL, without loosing my needed Column in my Report again.

  • Add Column Delete  in report, How to delete row using this delete Option

    Hi Friends,
    i have a report ,iwant to add an option DELETE in last column.When i click on DElete then respective id sholund be deleted.
    My Table Is
    CREATE TABLE  "DUMY_FILE"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "FILE_OBJ_ID" NUMBER,
         "MIME_TYPE" CLOB,
         "DOC_SIZE" NUMBER,
         "BLOB_CONTENT" BLOB,
         "DESCRIPTION" VARCHAR2(500),
         "UPLOAD_DATE" CHAR(25)
    How can i do this.
    Thanks
    Edited by: 805629 on Nov 16, 2010 11:51 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Trent,
    Thanks for you suggestions. .. Let me explain my problem a little better ...
    I have a report that lists fields associated with a report ... I have a delete icon which deletes a row and removes it from the underlying table ... however, I am trying to implement a Before header process which runs a pl/sql process that checks if the selected field is the last field in the report ... if so, I want a confirmation dialog to pop up ... if they click cancel .. then the deletion is aborted, else the field is deleted (which triggers other status changes).
    Based on this logic if there is a way to implement this based on your suggestion I would appreciate it ...
    Here is the process I was trying to use .... but the I have a few issues with this approach
    declare
    -- cursor to check if this is the last field
    cursor fld_cnt is
    select count(*) from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID;
    num_flds number;
    msg varchar2(300);
    begin
    open fld_cnt;
    fetch fld_cnt into num_flds;
    If num_flds > 1 then
    delete from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    commit;
    :P9_DELETED_FLD := NULL;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    apex_application.g_print_success_message := msg;
    else
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("This is the last field included in this report .. \n Deleting it will Inactivate the report and remove it from schedule (if scheduled) ...\n Do you want to proceed?");
    if (r==true)
    {      delete from prm_ptnr_rpt_fields 
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    :P9_DELETED_FLD := NULL;
    commit;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    update prm_ptnr_rpts
    set report_status = 'INCOMPLETE',
    active_report = 'N'
    where report_uid = :P22_REPORT_UID;
    msg := msg || ' and Report Status changed to INCOMPLETE';
    apex_application.g_print_success_message := msg;
    htp.p('}else {
    alert("Delete Action Aborted");
    htp.p('</script>');
    End if;
    Close fld_cnt;
    end;
    a) Even if I click cancel ... the field still gets deleted ...
    b) :P9_DELETED_FLD is the id for the selected field ... I am setting it on the link attributes which places it on the URL ... I would rather user javascript (but not exactly sure how).
    Thanks,
    Gerald
    Edited by: user5459177 on Feb 22, 2011 2:45 PM

  • Add Columns to Adhoc Reports Layouts?

    Are there any config or sql injections or translations to add additional columns to the custom layouts in the Adhoc Reports in RPT?
    Specifically, would like to display Related Specs when running reports for Trade Specs.
    Edited by: Trey on May 1, 2013 11:26 AM

    You could probably technically add related items as a search result column in a ready report, but it isn't an out of the box available result column. So it will require some undocumented customization work. I don't think the results grid is the best location for this data due to performance implications and even UI display challenges. I think your best option would be to create a BI Publisher report. Your PLM4P license includes a free limited use license for BI Publisher. This would be a good topic to discuss during a dev to dev call.

  • Dynamic add column in Bex report

    Hi all,
             we have input parameter is month wise. For example if i have input 12.2011 - 03.2012
    Output:
    12.2011--01.2012--02.2012-----04.2012
       50kg -
    70--90--
    54
    Like above dynamically have to change column based on month input parameter. Please guide me how to design bex query.
    Thanks
    Saravanan

    hi,
    restrict calmonth with variable type manual input, and put this calmonth in columns on top of amount or quantity. It will give you your desired output.
    hope this helps,
    regards,
    ray
    Edited by: ray100 on Mar 9, 2012 2:54 PM

  • Report Attributes: Add column link and derived column

    On the Report Attributes page (4000:420), under the Tasks list on the right side of the page, there are 2 links, "Add column link" and "Add derived column". This is the first time I am noticing them.
    The usage is clear, they add columns to the report to function either as a drill-thru link column or just a read-only derived field.
    Doing it this way does NOT modify the source query for the report region.
    Is there any benefit to using this feature versus adding a "null column_link" or "null derived_col" columns to my source query then setting attributes for those columns?
    Thanks

    Well, one disadvantage I can see of using the 'Add Column link' is that if I have more than 1 of such columns, they all show up as '[column link]' on the Report Attributes page with no way to tell what the underlying links are. Instead, if I were to manually add these dummy columns to my query itself, I would give them meaningful column aliases that indicated where they link to.
    Suggestion: Maybe a tooltip could be added to the Report Attributes page for such columns which indicate what the underlying link is without actually going to the Edit page for that column.
    Thanks

  • How to add columns dynamically in a classical rep deending on a parameter

    hi all,
    i have a scenario where ii have to add columns in my report depending on a certain parameter.the report should dymnamically add the columns based on the parameter.

    Hello Diego
    Revert your logic and remove or do not display columns if the corresponding parameter is missing or does not have the expected value(s).
    Using ALV lists you would accomplish this using the following coding:
    IF ( <parameter is missing or has not expected value> ).
      ls_fcat-tech = 'X'.
      MODIFY gt_fcat FROM ls_fcat
        TRANSPORTING tech
        WHERE ( fieldname = <column> ).
    ENDIF.
    The column for which this attribute is set in the fieldcatalog will appear neither in the ALV list nor in the layout.
    Now for a classical report (WRITE report ?!) you should develop a similar logic. You have to encapsulate the displaying or writing for each column and make this dependent from the parameter, e.g.:
    LOOP AT gt_data INTO ls_data.
    IF ( <parameter is missing or has not expected value> ).
    " do nothing -> skip this column
    ELSE.
      PERFORM write_column USING ...
    ENDIF.
    ENDLOOP.
    Regards
      Uwe

  • How to add two columns in OBIEE report?

    Hi to All,
    Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
    Thanks in Advance,
    Thenmozhi

    Assume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
    For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
    Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
    Let me know if you are looking for something else.
    Thanks

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • Add a Column to a Report

    Hello,
    How do I add a column to a Report after it has been created? I cannot find a way to do it readily in the "Report Column Attributes" as I thought it might be the more rational place to put such a time. Nor is there any information in the PDF Manuals.
    Thank you for your kind clarification and assistance.

    Colin,
    If this is a report on a SQL query, simply augment your query with the additional column in your select clause.
    Joel

  • KSB1  extra column or user exit to add extra fiel on report.

    Hi
    How do I add my own extra column on the report "Display actual cost line items for cost centers' - SAP transaction KSB1.
    Thanks
    Rendani

    Hi,
    Please search for OSS note in market place.
    I have worked on it, but I donot remember the OSS note number.
    Thanks,
    Sriram Ponna.

  • Add New Column in ALV Report of Standard SAP ME28.

    Hi anybody,
    I want add new column in alv report of standard SAP Program ME28 Screen.
    Add Last PO Price column inside ALV Report ME28 Screen.
    Can u please anybody tell me how to add new column in ME28 Screen.
    Thanks
    S.Muthu.

    Try to find any BADI for the same
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    OR
    Also one more option is to copy ME28 and, make modifications to the copied program.

  • How to add column to report for entry

    what does it take to add another column to a (classic) report?
    I added a column to the table and view and now I need it to be in the report for data entry.
    That's the problem. I got as far as getting the column in the report which was as easy as
    adding it to the query, but it is not shown as
    a field that could be entered. So I'm missing something. What distinguishes a field that
    is enterable from a field that is not enterable? I don't see where that information is held.
    similarly if I try to add a validation for it the new field does not appear in the list as it is not
    viewed as a crud field. What gives it the crud magic?
    I'd really appreciate it if someone can tell me.

    Never mind I figured it out on my own.
    (No I cant believe it either.)
    Having added the column to the select statement,
    What makes a newly added tabular form column be viewed as updatable is
    what is in the Display As entry. (I think). Such as Text Field
    or Datepicker. Those are updatable. But display as text is not updatable.
    But I suspect it is also necessary under report attributes for the column
    to have these filled in also.
    reference table owner SOME_SCHEMA
    reference table name SOME_TABLE
    reference column Name COLUMN_NAME

Maybe you are looking for