Column field to be added in Layouts of ALV Display.
Dear Expert,
I need to add one column field in IW37 transaction layout.IW37 transaction output is diplayed in ALV where i need to add one field in layout set of column.This layout of column can be found under the menu settings> layouts>curent in the ALV output of transaction IW37.Please suggest how to accomplish this?
Thanks
Seem you have to find the exit to add field in standard program then find enhancement spot to put your field to gt_fieldcat.
Otherwise, should copy the standard program and edit by yourself.
How about your result now? Can you please post your solution?
Regards,
Hung Tran
Similar Messages
-
Fields present in the saved layout of ALV
Hi All,
I have a report which has 20 fields in output.
I have saved a layout with only 10 fields and I am using these default layout while executing the program.
Is there any possibility to get the fields in the layout without actually going to the report output?
When I run this report in background mode I am downloading the fields into an excel and sending it to an email.Though the layout has ten fields, all the 20 fields are downloaded into the excel.This is because I have taken all the possible fileds into the excel.
Is there any possibilty to look at the fields present in the layout and pass only those fields data to the excel?
Thanks
SandeepYou should be able to do this as the data is obviously held inside SAP - but the approach may differ a little depending on how your table catalog is defined. The best starting point would probably be function REUSE_ALV_VARIANT_SELECT - have a look at include RJITMON_DOWNLOAD for example (if it's in your system) that uses this to read the variant and assemble a download. Otherwise you may need to delve down a layer or two into the function modules that REUSE_ALV_VARIANT_SELECT calls (e.g. LT_VARIANT_LOAD, LT_DBDATA_READ_FROM_LTDX, & LT_FC_LOAD) - if you do a where-used on these you will probably find an example you can copy the logic for determining the variant column attributes from.
Jonathan -
Unwanted field validation when adding new line to ALV (ABAP OO)
Hi,
We are using OO Controls to create an editable ALV grid, whose structure contains debit/credit indicator.
When we click on the standard add new line button, a new line is added but an error message appears telling the user to enter a valid credit/ debit indicator (of course it is blank in the new line).
This is annoying for users - is there any way to suppress this when....but just when a new line is being created?
Thanks,
TristanDebug and find out what is the sy-ucomm when you add a new line in the ALV. And then In the validation of "enter a valid credit/ debit indicator " put a IF condition to check the if the SY-ucomm is not for inseting new line.
Hope this helps.
Fran -
Hi,
I am using both is_variant, i_save parameters in this method, but still am not getting save layout button on my grid.
ls_variant-REPORT = sy-repid.
CALL METHOD w_alv1->set_table_for_first_display
EXPORTING
is_variant = ls_variant
i_save = 'A'
i_default = 'X'
is_layout = it_layout
CHANGING
it_outtab = <fs1>
it_fieldcatalog = it_fcat
it_sort = it_sort
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
Please sujjest me.
Thanks,
Prathapsample code:
gs_variant-report = g_repid. "Program name
CALL METHOD grid1->set_table_for_first_display
EXPORTING it_toolbar_excluding = gt_ui_functions
is_print = gs_print
is_layout = gs_layout
i_save = x_save
is_variant = gs_variant
CHANGING it_outtab = gt_deldef
it_fieldcatalog = pt_fieldcat.
Also c
heck if you have authorization to all basic ALV functiobnalities. -
Problem adding a new field to existing BPS planning layout
Hi
I am new to BPS and planning
I have a requirement to add a new field which has values maintained as 0 and 1 to an existing planning cube.The user wants this new field in the existing planning layout where in he can enter the values for this field as 0 or 1.I have created a new field and maintained values for this field as 0 and 1.I have added this field to the existing planning area and have created variable with fixed value with range 0 to1.I have added the same in selections in existing planning level and package as well along with other existing selection conditions.
In additional functions of adhoc package they have made setting as set to all possible char combination.
In this planning area all the selections are locked in planning level and package.
Now when i execute the planning layout to enter data,my new field is grayed out,it does not allow me to enter the values.need help with this as to how can i make this field input enabled.This is an independent characteristic.
Thanks
PanchanHi,
Yu need to delete the data to fill the new field again.
Assign points if it helps
Regards,
Srinivas -
Calculations on Total column' fields(bps layout: dynamic calmonth)
hi friends,
in bps, output layout, based on dynamic calmonth i showing number of months. I want to system to calulate total(all calmonths) sum for a particular field.
Lead column data columns
Expenses apr2009 may 2009 june 2009.....mar2010 Total
Office 20 10 20 100
Usually for caculating total in layout builder 2nd screen, we chose tickmark(total) and then write c(1): c(1) like that or simply c(1) which calculates all calmonth values.
My situation is like this, user only enter number of year(s), in terms of range. I populate calmonth field using user-exit based on year range. Next using calmonth field in layout builder as dynamic field. Now user wants TOTAL of individual years along with calmonths. How can i put this condition in layout builder?
eg:
apr2009 may 2009......mar2010 Total(09-10) apr2010 may 2010 ...mar2011 Total(10-11).apr2011 ..Total(11-12).
Expenses 10 20 30..............
Next question, Can i do arthemetic calculation on total fields?
eg:
Lead column apr09 may09 ....mar10 total
A 10 20 100
B 20 30 200
c 10 5 ????(this value i want to calulate by above totals eg: (200/100)* 85.
Can it possible to get that?
thanks,
kumarIt is not possible to hide or change the column width during design time if the layout is ALV.
However if the layout is used in WIB (web interface builder), I believe the column widths can be modified at run time. This would need additional coding.
Regards -
How to hide columns that are getting added dynamically to UI Element 'Table
In SRM 7.0 while displaying a RFx, click on "responses and awards" button.
In the response comparision tab once the user selects response number and clicks on "compare all responses".
Item details table is displayed with fields item number,internal number,item description,........,Price etc.
Requirement is to hide the price column from the table.
The UI element type is 'Table'.
But the catch is there is no column price visible at layout design level.
This field is getting added dynamically at run time.
When i right click and see the 'more field help' at the front end i get the field id as 'GRP_1_COL_3_TXTV'.
lo_table ?= view->get_element( id = 'ITEMS_TABLE' ).
lo_column = lo_table->get_column( id = 'GRP_1_COL_3_TXTV').
ASSERT lo_column IS NOT INITIAL.
lo_column->set_visible( EXPORTING value = '01' ).
I had written the above code in the pre-exit of WDDOMODIFYVIEW.
But i am getting dump as assertion failed.it says no column by name 'GRP_1_COL_3_TXTV'.
Please help me inhow to hide fields or buttons getting generated dynmically.
Regards,
Venkat Raghavan.Hi Anitha,
What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
Any how i am giving solution in this way.
If both inputs are given proper table output is displayed
Write your below logic in the WDDOMODIFYVIEW )
Here i am assuming that you already have a table element in the view.
Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
data:lr_table type ref to cl_wd_table,
lr_column type ref to L_WD_TABLE_COLUMN.
lr_table ?= view->get_element( 'TABLE1' ).
CALL METHOD LR_TABLE->REMOVE_COLUMN
EXPORTING
ID = 'TABLE1_color'
INDEX =
RECEIVING
THE_COLUMN = lr_column.
i want to hide some empty rows also at runtime based on inputs.
Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
delete itab from wa where key1= "12" and key2="abd".
Now bind the internal table to context node.
LO_ND_hcm->BIND_TABLE(
NEW_ITEMS = it_final
SET_INITIAL_ELEMENTS = ABAP_TRUE ). -
Unable to generate a multiple field nVision report from a layout
Hi,
I have developed an nVision layout that lists the Budget Vs Actuals for specific Account nodes from an Account tree and works well . But as per the requirement, I am needed to include a second chartfield (CLASS_FIELD) in the report. In other words, the report needs to show the Budget Vs Actual amounts for all the Class Fields associated with each Account. For this , I have added column criteria for Budget and Actuals, and row criteria for Accounts , but I am stuck at adding the second Chartfield criteria at the row level , which is CLASS_FLD (for example, Labor and Other); i.e On the same row that I added ACCOUNT criteria, I have added additional Field in the Layout Defintion > Filter > Fields and Dimensions – added CLASS_FLD after ACCOUNT. When I run the report, the results show only the breakdown by Account but not with the additional Class field values.
I am aware we could achieve this by a Drilldown but the users are looking this in the original layout itself. Please advise. thank you!!Hi Mr.Bob,
Sorry I forgot to thank you in my earlier post...thanks a lot for your input
--Raghu -
Unable to find field which i added to FB03
HI Experts,
My requirement is to add field Amount and document line items field for particular document which i usually get by double clicking of document number in FB03
Is it possibel to add field Amount,. document line items which should be available when i clicked change layout button
I try to add field by following the below procedure
"" Enhancing Selection Views in the dynamic selection of FB03, FBL3n, FBL5n and etc
Related OSS Note: 188663 and 832997
Requirement: The business requires the Doc. Header Text be added in the dynamic selection in FB03
Solution:
Execute Transaction code SE36. Click F4. Enter the table name wherein you think the field could be found. In this case the table is BKPF and the logical database is BRF
From the initial screen of SE36, Choose from the path EXTRAS>> Selection Views
Copy Selection View "SAP" to "CUS"
Change the selection views "CUS"
In the right corner, double click your table BKPF.
In the right corner, check whether what functional groups does your field belong. If it is 01 then input it beside your field name.
Then Save it afterwards.""
By following the above procedure i selected table BSEG and Logical data base BRF .I created function group 02 called document segment and mentioned 02 before requiredfield names and selected check box after field names and clicked save.When i clicked Display contents i found the entries which i made but i closed and reopen it i didnt found any changes.
Please let me know where i went wrong.Anything is Appreciable.
Thanks&Regards,
narasimha.Hi ,
I can now able to see the fields that i added to BRF logical data base in se36 but how this enhancement is related to FB03 tcode
Thanks&Regards,
narasimha. -
How to get column values on item added event receiver
Hi,
I have two columns in a document library and one is people or group column and the other one is choice column with check boxes.
I want to know how to read column values on Item Added event receiver, so that I can create if statements based on those values.
Thank you,
AA.Hi AOK2013,
Have you had a look at this Microsoft tutorial: http://msdn.microsoft.com/en-us/library/office/gg981880(v=office.14).aspx
Essentially, you want to use the AfterProperties property to access the changed field value.
E.g.
var personvalue = properties.AfterProperties["YourPersonFieldName"]
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to right align a read only numeric field in a panel form layout
Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
I have looked online for some answers, and it seems that others are having similar issues.
I have tried different combinations for the properties, but so far I cannot get it to work.
Thanks
Judy
I am using JDEV 11.1.1.5Sorry for the delay in my response. Here is the code
<af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
label="#{bindings.TotalAirlineCostEst.hints.label}"
required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
id="it20" readOnly="false"
disabled="true"
styleClass="AFFieldNumberMarker">
<f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
<af:convertNumber groupingUsed="true"
pattern="#{bindings.TotalAirlineCostEst.format}"
type="number"
maxFractionDigits="0"/>
</af:inputText>
thank you,
Judy -
Change 'Created' column/field value
I have a business requirement of changing the date of 'created' column/field of selected
document/s in a document library(it has to be changed to current system date). This has to be done by adding a custom button to the ribbon and providing authorization to the button. Please let me know if this is possible?Hi,
Please refer to the following article.
http://www.learningsharepoint.com/2011/06/13/using-javascript-js-file-in-commandaction-of-custom-ribbon-button-sharepoint-2010/
In the above article, command action is JavaScript function. For example.
<CommandUIHandler
Command=”AboutButtonCommand”
CommandAction=”javascript:ChangeDate();“/>
Create a script file and refer to your command action.
//Referencing the Script
<CustomAction
Id=”AboutFilesButton.Script”
Location=”ScriptLink”
ScriptSrc =”/_layouts/RibbonScripts/ChangeDate.js”/>
You can add the following function to the "ChangeDate.js" file.
function ChangeDate()
var ctx = new SP.ClientContext.get_current();
var list = ctx.get_web().get_lists().getByTitle("CM");
var items = SP.ListOperation.Selection.getSelectedItems(ctx);
var item = list.getItemById(items[0].id);
item.set_item("Created", "2/13/2015"); //change the date
item.update();
ctx.executeQueryAsync(
function () {alert("Created date changed") },
function () {alert ("Error")}
Hope this works for you.
Please don't forget to mark it as answered, if your problem resolved or helpful. -
Can you update a table with a column field that has a default value
I am looking at a developer table(table_one) and basically, he has a column field called is_update and the default for that field is 1,
I was just wondering whether it would still be possible for me to use an update syntax of the form
update table_one t
set t.is_update = 0;
where t.id = 221;because I have tried doing so and the update isnt workingSemicolon (;) is the problem!
update table_one t
set t.is_update = 0 --Removed semicolon here!.
where t.id = 221;http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_10008.htm#SQLRF01708
query & URL added: Saubhik on Oct 21, 2010 7:02 AM -
Cost Center field in ME55 Report (Change Layout)
Hi all,
In ME55 (Collective Release for PReq) Cost Center is available as one of the "Selection fields", but it's (Cost Center field) NOT available in Change Layout Function (after you execute the report).
The requirement is the user want to see the Cost Center field in the ME55 report layout instead of having to drill down to each PR to see the Cost Center assigned to the PR Account Assignment.
Since Cost Center field in NOT available in the Change Layout function of ME55, How do I add it to the layout? Do I need enhancement? If so what do i need to do?
Thanks in advanceHai,
Please copy the RM06BF00 into zRM06BF00 & take help of your software engineer/abaper for modification of this program for adding cost center in the output.
With Regards,
Jaheer. -
Additional fields not showing in FS10N layout
Hi ,
1) appended new fields into RFPOS and RFPOSX structures and run the program RFPOSXEXTEND
2) created BTE to get values for additional fields added
it was fine working in DEV , once it move to QAS additional fields are not showing in the FS10N layout
same steps are processed as in QAS as i din in DEV, sturcture as got fields and BTE is fine
Why the additional fields are not showing up ...
Regards,
PradeepHow come i would be posting here without checking the layout , new fields are not in the layout even though it shows in the structure RPOSXEXT.
FS10N layout - added new fields in dev using structure and run the program to extend the structure , new fields and data show in DEV , same process i did but it doesnt show in QAS .
Would be any configuration issue or any other i need to check ....
Edited by: Pradeep Annaiah on Jul 20, 2011 10:35 PM
Maybe you are looking for
-
extension mobility - can i have 2 extension mobility profiles with the same extension for a 7970 phone and a 7975 phone? thanks
-
Lock & Edit button is not visible
Hi All, Whenever I create a WL 10.3 domain in Windows XP box I am not able to see "Lock & Edit" button and instead of that I see "Activate Changes". Once I click on "Activate Changes" still it doesn't release the configuration so I am unable to make
-
Automated Message from Oracle Files
Good Morning: When I set a new user account in Collaboration Suite, Oracle files generated a email notification like: "(Automated message from Oracle Files) An account has been created for you on Oracle Files (http://middleserver:7779/files/app) with
-
Export Settings for GoPro Hero 3?
I have some footage from GoPro Hero 3 Black. It's 1080p 60fps wide. When I export it from Adobe Premier Pro CS6 the quality is not the same as the original clip. What settings and format are you guys using? Could someone please provide the details as
-
HT201272 Can i download HD version of previous SD purchases
I want as much of my library in HD as possible but some movies are only available in SD. If they later become available in HD, do I have to buy them again or can I download the HD version for free?