How to call a custom controller method in a view
Hi ,
I am getting the partner no in the custom controller method . I want to call that method in the view.How is it possible......?
Hi Masood,
now i dont want cross compnent navigation ....
Requirement : Account Identification number in ZVIEW
My component is CRMCMP_BPIDENT
In the custom controller CRMCMP_BPIDENT/CuCoBuPa under context node SEARCHCUSTOMER
the attribute struct.partner is available
in this component im navigating from
CRMCMP_BPIDENT/ObjectCompVs to ZCRMCMP_BPIDENT/ZProducts
in the layout of ZCRMCMP_BPIDENT/ZProducts
TRY .
lr_cuco ?= controller->get_custom_controller( 'CRMCMP_BPIDENT/CuCoBuPa' ).
CATCH cx_sy_move_cast_error.
RETURN.
ENDTRY.
check lr_cuco is bound.
lr_entity ?= lr_cuco->typed_context->SEARCHCUSTOMER->collection_wrapper->get_current( ).
check lr_entity is bound.
lv_account_name = lr_entity->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
this code is written to get the account identification number but still the same problem
lr_entity not getting populated .......
i checked IF_BSP_WD_HISTORY_STATE_DESCR~IS_RESTORABLE
hr rv_result is set to x.....
any suggestions....
Regards,
Sijo...
Similar Messages
-
How to call a custom controller method from view
Hi,
I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.
How to call a custom controller method from view?
Please explain the syntax.
Regards,
Manoj.Hi Patralekha,
Give some idea for the below scenario:
I ve created a simple web service and consumed it in a model. What I did was
1) for the input parameters, mapped the node from view->custom controller->model
2)for the output parameter, mapping from model->custom controller->view.
It works fine.
But I don't want to access model nodes directly, rather I want to set the input param in somewhere else (like custom controller) before calling the appropriate method, same for the response also.
Share me your thoughts.
Regards,
Manoj. -
Call a component controller methods from a view
Hi,
I have created a view v1 with context node c1and binded the context node c1 of it with the component controller so that the values entered in the view v1 are available.
now can i know how to access this values from component controller context node which i binded in a other view......
Thanks,
PremHi Sayan,
component : BP_HEAD
View: BP_HEAD/BPHeadOverview
I have called event EH_ONPOPUP_CLOSED when popup is closed in view BP_HEAD/BPHeadOverview and i get all the values entered in the popup here using below code.
lr_context_node = gr_popup->get_context_node( iv_cnode_name = 'ZPOPUPCN' ).
lr_col_wrapper = lr_context_node->collection_wrapper.
lr_entity = lr_col_wrapper->get_current( ).
IF lr_entity IS BOUND.
lr_entity->get_properties( IMPORTING es_attributes = ls_data ).
ENDIF.
now ls_data contains all the data entered in the popup ie. - firstname, lastname, house_no, street, city, postal code, country.....
now it have tried the below code to map/set the entries with the Account management - individual account creation screen.
data : ls_header TYPE crmst_header_object_buil, " BuilHeader
ls_header1 TYPE crmst_address_buil, " BuilStandardAddress
ls_header-firstname = ls_data-zfirstname.
ls_header-lastname = ls_data-zlastname.
ls_header1-house_no = ls_data-zhouseno.
ls_header1-street = ls_data-zstreet.
ls_header1-city = ls_data-zcity.
ls_header1-postl_cod1 = ls_data-zpostcode.
ls_header1-country = ls_data-zcountry.
ls_header1-telephonetel = ls_data-ztelno.
ls_header1-e_mailsmt = ls_data-zemail.
entity ?= me->typed_context->builheader->collection_wrapper->get_current( ).
IF entity IS BOUND.
entity->set_properties( EXPORTING is_attributes = ls_header ).
ENDIF.
entity1 ?= me->typed_context-> BuilStandardAddress->collection_wrapper->get_current( ).
IF entity IS BOUND.
entity1->set_properties( EXPORTING is_attributes = ls_header1 ).
ENDIF.
but the problem is both the entity is INITIAL. -
How to access Custom Controller Methods and context
Hi
I have to components (comp1,comp2) in one DC. I want to use custom controller method of comp1 into comp2 view?
Thanks
PrasadHi,
in order to access comp1 from comp2.
create Public part for Comp1 and it to the useds DC of Comp2 and as well add the required controllers in Comp2 (in view controller and custome controller where u want to access them).
PFB link fro example.
[http://wiki.sdn.sap.com/wiki/display/WDJava/UsecomponentsinbiggerWebDynproprojects+%28componentization%29]
Regards,
Govindu -
How to call a standard BOR method in a program.
Hi All,
How to call a standard BOR method in a program. For example I have to call BOR method ISUSMORDER.Release in my program but don't know how to call.
Also, plz tell me how to capture the Exceptions in case of BOR method.
Plz help me out in this.
Thanks,
MithileshWould be easier (however not always possible), to determine the functionality of this method and call that in your program. I mean, normally this method calls a BAPI, or function module (or a transaction). Have a look at the coding inside of the method, and try and use this.
-
How to call the screen in methods could u please explain
hi,
how to call the screen in methods could u please explain clearly with exampleHI ,
CALL SCREEN - Call a screen
Basic form
CALL SCREEN scr.
Addition:
... STARTING AT x1 y1 ... ENDING AT x2 y2
Effect
Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen.
Note
Please consult Data Area and Modularization Unit Organization documentation as well.
Addition
... STARTING AT x1 y1 ENDING AT x2 y2
Effect
The coordinates x1, y1 (start column and start line in the window) and x2, y2 (end column and end line in the window) define the size and position of the CALL screen ("top left - bottom right"). Besides these coordinates, you can also see the contents of the primary window, but cannot perform any action there.
Note
If "ENDING AT ..." is not specified, suitable values are substituted for x2 and y2, taking into account the size of the called screen.
Exceptions
Non-Catchable Exceptions
Cause: No further screen level (call screen); the maximum number of nested screen levels is restricted to 50 at present.
Runtime Error: DYNP_TOO_MANY_CALL_SCREENS
THX -
Urgent!! How to call a custom transaction or an ABAP program in BSP?
Urgent!! How to call a custom transaction or an ABAP program in BSP?
We are pretty new on BSP. Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program. Would we have to create a button or event handler to do that? And the detailed steps?
Thanks in advance and we will definately give you reward points!hi Durairaj,
During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
<td>
<htmlb:inputField id = "client"
value = "<%= client %>" />
</td>
Then we added Client to the page attribute and define it as type String, then get another error:
The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
OnInputProcessing:
code
event handler for checking and processing user input and
for defining navigation
event handler for data retrieval
event = cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP? -
How to call a custom method of same view?
Hello
I am developing a WDA on ABAP. I kept 3 LTA (Link To Action, kind of hyper link) on the initial_view, they perform the below functions (pls. note all the below 3 are on the initial_view ONLY),
1) LTA_1 -> Creates 'A' -> The linked EVENT for this LTA is CREATE_A
2) LTA_2 -> Creates 'B' -> The linked EVENT for this LTA is CREATE_B
3) LTA_3 -> Creates 'A' and 'B' -> The linked EVENT(onAction) for this LTA is CREATE_A_and_B, fine.
I wrote the ABAP code for creating the 'A' for LTA_1 in the associated Event Handler(method), same way i did for B
Now, for LTA_3 (Event is CREATE_A_and_B), i do not want to replicate the code from LTA_1 and LTA_2.
1) So, i guess, i just call the above )Event Handler) methods sequentially in CREATE_A_and_B's ABAP editor, am i right?
2) If so, pls. let me know how to call these methods, say, just for A, so that i will call for B on my own. Normally, we call as below
my_Class->my_method_name
3) If so, there is not-optional parameter as WDEVENT, just i need to pass blank for it?
Thank youdata: wdevent TYPE REF TO CL_WD_CUSTOM_EVENT.
wd_this->CREATE_A ( exporting wdevent = wdevent ).
wd_this->CREATE_B ( exporting wdevent = wdevent ). -
How to get my custom controller updated with the global custom controller?
Hi all,
I'm new to CRM Web UI and need some advice from the expert. Currently I'm working on component ICCMP_BT_DATES and noticed something weird with this component. When this component is first launch it display the dates of a service ticket correctly. However when I navigate to another screen, save a new ticket and back, the dates are not reflected. When I went in and debug the component, I noticed that the context is still tied to the previous ticket. I think the custom controller is not updated with the latest from the global custom controller.
My question is how do I get my custom controller updated with the latest.
Regards,
RickyYou have to bind your custom controllers context node to the event NEW_FOCUS of the collection wrapper on the global custom controller.
Best place to do this might be the CONNECT_NODES of the context of your custom controller.
Get the global CuCo with GET_CUSTOM_CONTROLLER() and then the appropriate context node. Now:
SET HANDLER yourMethod for lr_global_cuco->typed_context->thecontextnode->collection_wrapper activation iv_activate.
Of course you have to implement a method similar to ON_NEW_FOCUS as it is on many other nodes.
cheers Carsten -
How to call javascript function & action method on clicking jsf button?
I have one jsf custom button. I am checking client side validations in mail by calling javascript function & also sending mail by calling action method of a bean which will execute at server side for onclick event of that button. Because of this when I click on that button its calling both javascript function and action method. So even though validations failed its sending mail. How can I overcome this problem?? Please help me....
I am asking regarding commanLinks in jsf. I have the following code block in jsf. Even though mailSentMessage('true'); returns false, its calling action="#{emailObjectAction.sendEmail}" method. thats why I got that doubt. try the following code.
<h:commandLink id="mailBtn123Send" onclick="return mailSentMessage('true');" value="send mail" action="#{emailObjectAction.sendEmail}">
</h:commandLink> -
How to call parent`s overriden method?
Hello all!
I do not know how to call overriden method outside
the class. Example:
class A {
public String method() {
return new String("A");
class B extends A {
public String method() {
return new String("B");
public class test {
public static void main(String[] s) {
A a = new A();
B b = new B();
// this is simple
System.out.println(a.method()); // result: A
System.out.println(b.method()); // result: B
// now I need to call method from object A
System.out.println(((A) b).method()); // res.: B
At the last line the result was "B". It just implies from
polymorphism but what I need is to call A.method()
on object of type B.
From real world. Have a class with some toString() method.
I inherited this class and made a new toString() methods that
adds some more information. Now I have a collection of various
sub-classes and I need to print their information but in
one style. I need to call the parent`s toString() method not
the children ones...
How to do it? How to create A.method() on object of type B?
In C# there is a way not to use virtual/ovveride but to
use virtual/new keywords...
Please help me. Thank you very much.Just thought of something else you can try (if it's that important):public class A {
public String toString () {
return "A";
public class B extends A {
public String toString () {
return "B (A: " + super.toString () + ")";
}Kind regards,
Levi -
I am using NetBeans 5.5 and created a custom jDialog. I want to be
able to call the custom jDialog from another Form. The dialog I created
allows a user to set parameters for a template. The template saves
basic employee information to a text file for populating a time card.
When the template needs to be altered, the user would call the
template, which is the custom jDialog, to reset the template.
I thought I could just instantiate the custom jDialog class I created and
use a 'go()' method to bring up the templateChooser jDialog but
nothing seems to be working. Here is some sample code:
Here are sample code:
public class templateChooser extends javax.swing.JDialog{
/** Creates new form templateChooser */
public templateChooser() {
}//end template Chooser()
public void go(){
initComponents();
templateAttributesEnabled(false);
jCmbxDutyDaysEnabled(false);
formLoadData_onDialogOpen();
}//end go
}//end of templateChooser
public class tcForm extends javax.swing.JFrame {
public tcForm() {
initComponents();
//jf.setVisible(true);
}//end constructor
private void jMenuItem_OpenTemplateMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
//call the template dialag box
templateChooser tc = new templateChooser();
tc.go();
} // end jMenuItem
}//end classOK...I figured it out!!!
For all that our out there using NetBeans5.5. When using the MenuItem and selecting mouseclick as an event will not cause the desired action to occur. You have to select Action -> ActionPerformed for that menuItem. My menu Item now "fires" the event for my custom dialog to appear. Go figure...I would have thought that the event mouseClicked would be fine...I guess not. -
How to call a Custom screen in portal from a Poratal UWL ??
How to display a Custom screen which is developed in portal when a work item is executed through the
portal-UWL ?.
In detail....
A custom screen has been developed in portals.
Workflow triggers when a new item is created on the custom screen then the workitem gets populated in the respective approver Portal UWL(universal work list).
when the workitem is executed from the UWL then it has to display the custom screen with its header data on the portal.Hi sampath,
Thanks. I found that the redirection is not working
properly at IIS end and changed the configuaration to
make it work.
Thanks a lot,
Gopi -
How to call a custom form on click of a button?
We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
some sample code will help. Thanks in Advance,
Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053Hi,
I think you are working with Oracle EBS.
I don't think so that we can able to call the custom form on clicking button.
We can call the form from the standard form using both custom.pll and form personalization
In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
So please check further, and let me know if any i can help you any.
Regards
Sri . -
How to call function module/ class method of another system.
Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
of course i know about the host name, port and logon information over these systems.
who can give my some suggestions or other solutions.
thanks in advance.
Johnney.Hello,
If u want to call a FM of the other system then that FM should be a RFC enable on one.
<b>CALL FUNCTION func DESTINATION dest.</b>
Effect
Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
Note
Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
Vasanth
Maybe you are looking for
-
Old iPhoto Library won't update
I have an old iPhoto library from iPhoto 9 that won't update to iPhoto 11 and won't open. How do I fix this or can I retrieve the photos from the old library without opening it in iPhoto?
-
DB Adapter 902 binding exception while passing parameters for simple string
Hi, I have an PlSQL API with two input paramters of string type... But this is only started after XML validation TRUE on the BPM server. The error is <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>902</code> </
-
Transport classes and programs to another server
Except for transport routing and charm copy function, do we have other ways to do so? for example copy or so forth. best regards, Blake Le
-
Dv7t-6000 my recovery partition gone and HP wants $50 to mail me a restore disk.
dv7t-6000 my recovery partition gone and HP wants $50 to mail me a restore disk. Does anyone have a download link for this; it's criminal HP does not offer it to customers free. I already paid for it once when I bought the laptop. thanks
-
Identifying business content based on requirements from Functional Doc
Hi everyone, I have a requirement to create technical documents from functional documents that I have received. The funct. docs describe the report to be created however, the fields that the user is looking for are basically in plain English (or atle