Hi,
I have a similar requirement. Have you found a solution?
Thanks and regards.
Hi,
I have a similar requirement. Have you found a solution?
Thanks and regards.
Hi Lohit,
You are doing it correctly.
Check the method GET_DEFINITION, in this method clear the attributes related to read-only. i.e. read-only & read-only references.
Ideally it should work the way you tried it, but sometimes the references from the BO hold up.
Hope this helps you.
Regards,
Sanket.
Hi All,
I have 10 radio buttons on the screen.I designed the radio buttons on the Webdynpro View.After click the radio button,i need to display the corresponding screen on the right side.How to implement this process in FPM?
Thanks,
Shabbir
Hi Jens,
Again, very helpful answer.
But, I am not quite able to implement it.
When I don't set ev_data_changed to true then also the ref fields are getting lost. So, I tried to put all validation in get_data.
Your idea was right- when I give the error in GET_DATA then the fields get highlighted correctly. But there is a problem - this is an old application and we have around 6 UIBBs and all of them are using the same feeder. So, when we are appending lines in ET_MESSAGE that code runs 6 times and same message gets added 6 times.
Now, one way to handle this is if we can know what is the current UIBB for which get_data is getting triggered. Then we can write condition and add fields to be validated for specific UIBBs.
Is there any other way this can be handled.
Again, many thanks for your help this far.
Regards,
Saikat
Hi Sanket,
Thanks for your reply . The issue is already solved by considering the reference fields too.
Thanks
Lohit
Hi Sanket,
I have the smae requirement , but in one tab there can be many uibb's with different feeder classes , so in which feeder class-method we need to call read_only event so that entire tab is in read only mode.
Thanks
Hi Lohit,
For entire tab to make it read-only, the possible method which is know to me right now is to make changes to all feeder classes n make all the fields read only.
That's how I have achieved it at least.
Regards,
Sanket.
Hello All ,
We have developed an object with OVP FPM and BOPF frame work. We created a List with FPM_LIST_UIBB_ATS. We also capture the number of rows and display in the below. Now the requirement is- " When user tries to filter the One column then he needs to see how many records filtered with respect to his choosed filter in the below count". I tried to get the information by keeping the break points in the FBI class(view exit class) as well as Feeder class. But I am not able to get any solution for it.
How can I get the filtered row count/s from the SAP standard filters.
Regards,
Partha
Hi Experts and Colleagues,
I have following situation, I have dialog box (ok, cancel) with three elements:
The input field 2 is mandatory and the whole dialog box is checked against mandatory.
Info text view changed on selecting drop down.
But if the input field 2 not yet filled then it become red but the info field is not changed.
From my colleagues said that the dropdown triggered a server roundtrip which cancelled due to mandatory input field 2.
The mandatory field should only red when I press ok on the dialog box
Is there any way around this situation?
Appreciate your help here.
Best regards,
Steve
Hi,
Thank you for the hepful suggestion, will try this and let you know.
-Balajii
I can think the possibility to use the abap command "delete adjacent duplicates" to eliminate the duplicate error messages. If all the messages are the equal. you might need to sort the error messages first (the command work only if the data adjacent)
Hi Steve,
Thank you for your response.
In this case, the delete adjacent wont work. I checked this and found out that inside your feeder class methods when the control comes the et_message parameter is always blank. So when you are adding some messages you don't get to see messages which are already there(added in the previous call).
So, will be have to think of something else. Any more ideas?
Thanks,
Saikat
Dear All,
I am developing an application in FPM, i am having 2 form UIBBs and 1 List UIBB. All these UIBB are part of same feeder class.
Now there is a button call SAVE on the screen. Whenever I am clicking on it, Feeder class form~get_Data is trigger where I have written my SAVE logic. the get_data method is executed twice for my 2 form UIBB. So is there any way to Know the event is already executed ?
what is standard practice ? Where should i write the code Process Event or Get Data ??
Thanks In Advance,
P$G.
Hi,
Do you have SAVE as global FPM button ? .... or individual save buttons for both forms?
Thanks
KH
Hi KH,
I have SAVE button on my global toolbar.
Thanks.
P$G
Hi Saikat,
if there are six UIBBs with the same feeder - do they all issue the error for the same field (REF_NAME)? This sounds a little strange, but maybe I miss something. If they all refer to the same backend field only one of them should be editable for UX reasons e.g. configured as an input field - and this information comes with IT_SELECTED_FIELDS in method GET_DATA.
Anyway, if you have the same instance of the feeder class (in case there is no wiring and no or identical feeder parameters in all six configurations) you can simply introduce a flag (instance attribute) MV_MESSAGE_SENT: Set it to X when sending the message in GET_DATA and don't send if the flag is set already. Clear the flag in PROCESS_EVENT. This way the message is sent only once.
If you have separate instances it is easy to distinguish them anyway e.g. by storing the config key given in method INITIALIZE.
Best regards
Jens
Hi Experts,
I am using a list UIBB ( FPM_LIST_UIBB ) to enter material data. Now, in real life scenario the users can enter the data manually or by a barcode scanner.
So in the event "FPM_GUIBB_LIST_CELL_ACTION" i.e. on pressing enter(in case of manual entry) or on scanning( in case of barcode scan) the data is getting populated in the current row and along with that I am adding another blank row in the bottom for the next entry.
All this is working fine.
Now, there is one requirement which has come that I am a bit doubtful about. They want when we scan a barcode and the data gets populated, the mouse cursor to point to a field of the newly added row in the bottom.
Now, is this possible?
Many thanks in advance.
Regards,
Saikat
Hallo Colleagues and Experts,
I have a field which already assigned to a F4 (I defined ddic_shlp_name in if_ofm_guibb_form~get_definition)
Now in Form I have a dropdown, I would like the F4 to be replaced with other F4 if the dropdown changed.
Can this be done?
Thank you and best regards,
Steve
Hi Saikat,
actually the List ATS UIBB does have a certain mode called "mass edit mode" which might fit for the
use case / scenario that you have. Therefore I would recommend first to try this, because you get it "for free" so to speak and the effort is almost zero for you. When the mass edit mode is active, new rows will be created automatically by the List ATS UIBB. The user can insert data in the new dummy rows and press enter. Then the dummy rows will be converted into real data rows.
Ok, here is how to activate the mass edit mode: First the feeder not to activate it, this is done in method get_definition, parameter es_options, there set parameter ALLOW_CREATE_ROWS_BY_LIST_UIBB to abap_true.
Additionally it is necessary to set a flag in the configuration, general setting: “automatic row appending”. It is also possible for the feeder class to enable, disable the mass edit mode and pass template values. This is done via feeder class method: get_data, parameter IO_EXTENDED_CTRL, method SET_MASS_EDIT_MODE. Services (like sorting, filtering) are not applied to the new rows. There exists also a example application (application config id: FPM_TEST_LIST_ATS_MV_PASTE_AC).
Now, if this "mass edit mode" is not the feature you need or does not fit your use case then of course you need go the long way. In this case I recommend to use the so called "change log" for changing parameter (see feeder class method get_data, parameter EO_ITAB_CHANGE_LOG). Because when using the change for inserting new rows, the List ATS UIBB will automatically put the focus into the first editable cell of the new row. But before you can use the change log you need to read some docu. This docu can be found in the FPM developers guide: Developers' Cookbook
There in developers guide for 7.03 see "Appendix III: Guidelines for Edit Scenarios for List ATS", page 289.
Kind regards,
Ulrich
Hi Mari,
Have you tried opening webgui as an external window from your application?
http://scn.sap.com/thread/1998987
Hope it helps. Cheers!