OBJECTS_OBJREF_NOT_ASSIGNED_NO working on SOCO_GAF Webdynpro

Hello gurus,
I'm dealing on a task on the socoGAF web dynpro in SRM 7.0.
Basically; once I pass from step1 to step2 (each step is represented by a web dynpro, say GAF1 and GAF2), I have to get a mapper reference for each wd.
A sketch of code will help understanding the task: on a PROCESS_EVENT override on the componentcontroller of the GAF1, I wrote:
DATA: soco           TYPE REF TO /sapsrm/cl_ch_wd_ao_soco.
    DATA: gaf1           TYPE REF TO /sapsrm/if_cll_dom_soco_gaf1.
    DATA: gaf2           TYPE REF TO /sapsrm/if_cll_dom_soco_gaf2.
    soco ?= wd_this->ig_componentcontroller~mo_aom_soco.
    CALL METHOD soco->/sapsrm/if_cll_ao_soco~get_dom_soco_gaf1
      RECEIVING
        ro_dom_soco_gaf1 = gaf1.
This returns correctly the gaf1 reference, as by construction, gaf1 always exists and the method correctly works on it.
The problem arises with the next instruction, as similarly, I have to get a reference for gaf2 but this one could also be initial:
TRY.
      CALL METHOD soco->/sapsrm/if_cll_ao_soco~get_dom_soco_gaf2
        RECEIVING
          ro_dom_soco_gaf2 = gaf2.
      catch CX_SY_REF_IS_INITIAL into OREF.
    ENDTRY.
The above sketch does not work if gaf2 is initial, as the system dumps with the exception CX_SY_REF_IS_INITIAL. I tried, as you can see, a TRY/CATCH statement but it seems it doesn't work.
The task is however as follows:
- if gaf2 exists, take its reference and launch a pair of methods on it;
- if gaf2 does not exist (because it hasn't been instanciated yet), skip the above described lauch and proceed.
Obviously, gaf1, gaf2, gaf3 and gaf4 are private in soco, so that they could be accessed only via methods offered by SOCO object.
Any help will be appreciated.
Thanks
EDIT: I could also consider a workaroud as the aim of this task is to get all the item position which passes from STEP1 to STEP2. This seems not to be easy, though. As far as I understood, I can easily get:
- the items resulting from the search process in step 1;
- the items in step1 which have not been selected to pass to step 2;
The delta should represent my desiderata... But in a real scenario, an user could even pass some items one by one, so the missing information for me is: which item positions are eventually already in step2's workarea?
Sound a bit tricky, but it's the only solution that seems easily feasible as I don't know how to get, in the PROCESS_EVENT method in componentcontroller, all the item positions which are passing from step1 to step2.
Could anyone please provide me an hint/suggestion on how to proceed? Thanks in advance.
Edited by: Matteo Montalto on Nov 8, 2011 10:30 AM

Solved with a workaround

Similar Messages

  • BAPI not working in Java Webdynpro

    Hi,
    My BAPI from SAP is working in Netweaver perfectly, but when I call the same with the equal parameters in Java webdynpro, no results.
    I'm using following function: 'CVAPI_DOC_VIEW'.
    Any idea why the BAPI is not working in Java Webdynpro?
    Regards,
    Tim

    Hi Tim,
    AFAIK 'CVAPI_DOC_VIEW'  will work only in standard SAP Dynpro. Inside Webdynpro it is forbidden to save files in the background and using GUI class with execute, so you cannot use that Standard FM.
    Check this thread .
    Thanks
    Katrice

  • Get inf. about user, rol and group, which shows and works on my webdynpro ?

    Hi everybody,
    Can someone help me? I need the information about rol and group of the user, who's show and work on my webdynpro?

    Hi,
    You can use the below code to get the information you need. You need to add the jar file com.sap.security.api.jar to your Web Dynpro project's build path.
           IRoleFactory roleFactory= UMFactory.getRoleFactory();
        IGroupFactory groupFactory = UMFactory.getGroupFactory();
        try
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
         Iterator assignedRoles = user.getRoles(true); // true means all the roles are searched recursively
         Iterator assignedGroups = user.getParentGroups(true); // true means all the groups are searched recursively
         while(assignedRoles.hasNext())
              String roleID = (String)assignedRoles.next();
              IRole role = roleFactory.getRole(roleID);
              String roleName = role.getUniqueName();
         // Fill your model node with the role
         while(assignedGroups.hasNext())
              String groupID = (String)assignedGroups.next();
              IGroup group = groupFactory.getGroup(groupID);
              String groupName = group.getUniqueName();
         // fill your model node with group.
        catch(Exception ex)
             messageManager.reportException(ex.getLocalizedMessage(),false);

  • Whether Workflow Program Exit works in ABAP WebDynpro

    Hi,
    I have the custom  workflow in which in each task i have given a program exit to update the status into my custom tables.
    Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be made.
    I'm getting the Workitem id from the UWL and then it lauches the Web Dynpro to choose either Approve, Reject or Change etc along with some other travel expense information.
    Now once i complete the web dynpro by calling the method 'SAP_WAPI_WORKITEM_COMPLETE', the particular work item is completed.
    I want to ask whether before this FM is called,whether the Program Exit which i have written in the Class method and which is called in the Workflow, whether it triggers or not?
    Regards,

    It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
    So closing the thread.

  • Unable SAP Work Directory in Webdynpro ABAP

    Hi,
    I got a requirement to display SAP Work Directory path in Webdynpro ABAP application.
    So I am using FM - IW_C_GET_SAPWORKDIR to retrieve the path. I can able to execute in SAP GUI but when I try to execute the FM in Webdynro ABAP, its going to the runtime error.
    Suggest me to proceed further. Thanks in Advance!
    Thanks & Regards,
    Jaipal.

    HI Srinivas,
    I am getting an error as "Error accessing Windows registration" (message class - 42 and message no. - E678) from function module.
    I have declared correctly but still I am getting an above error at runtime.
    Regards,
    Jaipal

  • Get information about users, which shows and works on my webdynpro

    Hi everybody
    I need to know, what is the form to get the information about de user, who's shows and entry my webdynpro. i need this information to send to RFC Model to ABAP server

    Use the UME for that:
    try {
         IWDClientUser wdUser;
         wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
    } catch (WDUMException e) {
         e.printStackTrace();
    variable "user" has now all the data from the current user executing the dynpro,  extract the info from "user", then pass it as input parameter to your RFC's.
    Regards
    Julio C. Herrera

  • Problem in a webdynpro abap component - Really very urgent PLZ help me

    Hi Experts,
    I am working with FITV_POWL_TRIPS webdynpro component.In that my requirement is to keep a button and input fields near the create travel request button and to add some functionalities.
    I worked in the  component , unfortunately the component get corrupted. i don't know how to retrieve the component to its original state.I tried with version management but no use.
    Can anybody suggest me how to retrieve the component. Any of your inputs is valuable to me.
    if the patch should be installed is the only way mean plz tell me the patch details.
    Actually FITV_FPM  , this component get damaged. This component is under FITV_POWL_TRIPS.
    Regards,
    Ramanan
    Edited by: Ramanan Panchabakesan on Jul 9, 2008 12:10 PM

    Dear Thomas,
    Really i failed to use the enhancement mode to work with that POWL component.Actually the thing i did is added an attribute directly to the component controller of that component and  binded it to the drop down then activated , it shows some error "Configuration missing error" so again i deleted that attribute and reactivated it again but it shows the same error. so i tried to retrieve it back from version.But failed, then compared with other system the methods and attributes are same as it is.Finally copied the methods and code from that system though all are same in two systems, then activated.No error now.But clicking on the "create request" button the component shows a road map step with 1 as completed status.It looks with the following information
    Fite_Request
          1
    Completed
    and with two buttons one is disabled and thats capiton is Previous step and the other is exit that is enabled
    when i clicked that exit button it again goback to the intial screen of FITV_POWL_TRIPS.
    Before it shows with some 3 or 4 road map steps with some different status.
    Tell me any other way to retrieve it.As the patch to be  reinstalled is the solution means please tell in which patch this resides.Technically i want to retrieve it, going for patch update is secondary and i go for that if and only if there is no other way.
    with hope and regards,
    Ramanan.P
    Edited by: Ramanan Panchabakesan on Jul 15, 2008 7:34 AM

  • Table ui element in webdynpro java.

    Hi Friends,
    I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.  
    so please give me the required details.
    Here are my questions.
    1. how to populate the data into the table.
    2. and the back end is erp, i have to use rfc. to display the data into the table .
    3. so how to integrate the rfc into webdynpro java.
    if u send with screen shots that would be very help for me.
    Waiting for your reply.
    Thanks & Regards.
    Krishna.

    It's very simple.
    1) Import your RFC.
    For this:
    -Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.
    -Go to Used Models. Right click -> Add... -> then select the model that you created.
    2) I guess you have a view that is using a controller (Custom/Component) so:
    -Go to Context Tab-
    -Create a model node.
    -Bind the model node with the model that you created.
    -Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)
    -Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.
    -Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.
    -Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.
    -Then follow the steps.
    You have now your table binded to the rfc.
    Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:
    public void execute<YourBapiName>( )
        //@@begin execute<YourBapiName>()
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try
           wdContext.current<YourBapiName>Element().modelObject().execute();
           wdContext.node<YourBapiOutputNode>().invalidate();
           wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
         catch(WDDynamicRFCExecuteException e)
           manager.reportException(e.getMessage(), false);
        //@@end
    To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):
    <YourBapiName> input = new <YourBapiName>();
    input.set<YourBapiParameters>(<YourParameter>);
    wdContext.current<YourBapiName>Element.bind(input);
    wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();
    I hope it helps.
    Bye bye.

  • How to create hyper link to normal table field in webdynpro ABAP

    HI Experts,
    I am working on one Webdynpro Application where I am displaying Vendor information in normal table.
    But I wanted to make LIFNR field of the table as Hyper Link and when I click on that particular LIFNR  I wanted navigate that to XK03 transaction. Please help me out from this...
    When I searched in SDN I am geeting examples to create Hyper Links in ALV but I wanted to create that for normal table field.
    Thanks
    Basanagouda

    Hi,
    As you kept the Link to action.. Go to the Outline of the view and navigate to the to the newly inserted Link to action UI element in the View. Now see the properties window. In the properties you will find the category Events and in this you will have OnAction. You can create a new on action by clikcing on the button which is next to the input filed.
    This will create a method and in this implementaion you can write the logic to navigate to the Transaction.
    Regards,
    Raju Bonagiri

  • Navigation between  two applications under a single webdynpro project

    Hi All,
    Here i needs to work with a webdynpro project which has two application which needs navigation one view form the first application to one view in the next application. I have already tried with "EXIT URL" concept and its working fine. Is there any alternative way to accomplish that task. I am looking for valuable reply from you.
    Regards
    Ravi

    Hi Ravi..
    Try this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/webdynpro/wd%20java/wd%20tutorials/inter-application-navigation%20in%20web%20dynpro.pdf">Application Navigation</a>
    Urs GS

  • How to make field visible and invisible dynamically in webdynpro ABAP

    Hi Experts,
    I am working on simple webdynpro application, in which I have two radio buttons and three fields.
    When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
    Please help out.
    Thanks
    Basanagouda

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • Calling a Report/Transaction iview from Webdynpro..

    Hi all,
              Our first issue is we have a scenareio, where we need to execute reports(ABAP Program) from webdynpro. Is it possibile to execute a standard report from webdynpro? using JCO. Also tell me how to pass the input/output parameters.I am not allowed to create RFC.I can use only standard BAPI.
              Our second issue is we created one transaction type callable object, and we want to call this transaction callable object from webdynpro, in another callable object in GP. Is this Possibile in webdynpro. We tried using portal navigation, but it is working for normal webdynpro iviews only, not for url iviews also.
              Does any body know the answer for the above issues. please let us know.
             Thanks in advance.

    hi,
    1) it is not possible in web dynpro to call abap reports, what you can do is creating wrapper of Remote enabled FM around the report. But you dont have authorisation to create BAPI, so gotta take use of standard BAPIs.
    ABAP Report in WebDynpro
    this link will help you out for that(calling standard bapi in WD)
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715 [original link is broken]
    2) go thru this links
    WebDynpro Application as callable object in GP?
    Webdynpro callable object - RFC model
    implenting webdynpro as a Calable Object with GP Interface
    hope it helps
    regards

  • Models in Abap Webdynpro.

    Hi All,
    I am a Java guy having knowledge in Java webdynpro, it happend for me to get into ABAP webdynpro just had a small query here.
    How does models functionality work in ABAp Webdynpro.
    How do we access RFC, BAPI, web services, EJBs etc in ABAP web dynpro.
    Thanks in Advance,
    Sai Krishna.

    Hi Sai,
    Model is nothing but the business logic similar to the Java webdynpro . I guess you have seen those Hook methods like WD_doinit, WD DOmodifyView some standard default methods which we get according to the requirement we write our code as and where we want . One basic thing is u must be aware of the Context which is the heart of the webdynpro abap applications the interaction between the screen and the database is done by this .
    Let me take a small example of how are we going to use the RFC or Bapis.
    EG:
    We have a screen UI elemnets in which we have one input field and a table our aim is to fetch the data into the table depending upon the input field or say selection field . and here we will be using say RFC or it may be a BAPI.
    SO step1. Intially we desing the screen UI elements , create a Node for the input field with cardinality (0:1). and create another node for the table binding with cardinality as (0:n).then bind the values of the screen .
    step2:  Now since after giving the value in the input filed we want to fetch the data. On action of the Button or on enter of the input filed we need to write our code.
    That means here our bapi or RFC comes into picture . what we need to do is get_attribute of the input field and call that RFC in import values pass the get_attribute value and see that it returns some table
    say lt_table.
    Now when you debug you can see the table values which we need to bind it to the table.
    lo_nd_table->bind_table( lt_table ).
    This will fetch the table values depending upon the input field values you giv .
    Hope it is clear and helpful.
    Have A GoodDay:)
    Regards,
    Sana.

  • Portal Workprotect in Talent Profile - WebDynpro ABAP FPM application

    We are trying to implement Workprotect in ESS - Talent Profile application (HRTMC_EMPLOYEE_PROFILE). The requirement is that when user had entered data in either Internal work experience, External Work experience or other tabs; before he has saved the data, if the user clicks on some other link in portal or try to close the window, Portal work protect that is enabled should prompt the user to save the data or risk losing data.
    What has been done so far:
    1. Enabled Workprotect on Portal:
    Step 1: In the portal, go to System Administration -> System
    Configuration -> Service Configuration.
    Step 2: In the portal catalog, Select
    application "com.sap.portal.epcf.loader" and open the properties for
    service "epcfloader" for editing
    Step 3: Set property workprotect.mode.default = 3
    Step 4: Save -> Restart service
    Now, Portal Work protect is enabled.
    2. On the Talent application end, I have seen many posts in forum & FPM related workprotect documentation. But, it is not clear as to how this actually works when it comes to FPM application.
    The documents says FPM allows application to make use of work protect
    mode offered by Portal. To achieve this, the application must u2018tellu2019 the
    FPM whether it contains unsaved
    (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface
    IF_FPM_WORK_PROTECTION. In the is dirty method, you have to put
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    Questions:
    1. If you see the shared application component HRTMC_TP_SHARED_DATA, it implements interface IF_FPM_WORK_PROTECTION. But, the isdirty method in the component controller has already existing code
    METHOD is_dirty.
    ev_dirty = wd_this->mv_is_dirty.
    ENDMETHOD.
    Where should we put the code given below as described in FPM documentation. In shared component or in individual components like HRTMC_TP_WORKEXP_INTERNAL, HRTMC_WORKEXP_INTERNAL, HRTMC_TP_EDUCATION
    etc.
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    And, the line "* component contains unsaved data" as described in document- how do we code this for talent profile considering that there are multiple components, shared component etc? My requirement is that if user has entered some data in any of the tabs like internal work experience, external work experience, then work protect should work if
    user tries to navigate away or close browser.
    2. If you see general documentation for Work protect and webdynpro (not for FPM), it says that the application must define a special status (dirty flag), which tells the portal when there is unsaved data. You can set and cancel this status (TRUE, FALSE) using method
    SET_APPLICATION_DIRTY_FLAG in interface IF_WD_PORTAL_INTEGRATION.
    And it goes on to say that one must set application flag dirty
    SET_APPLICATION_DIRTY_FLAG
    exporting
    DIRTY_FLAG = TRUE | FALSE
    and also set work protect mode
    call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    exporting
    MODE = NONE | APPLICATION_ONLY | BOTH
    3. Which is the correct way to enable Work protect in case of Talent profile applications? Which method of which component should should we add code to? Which of the above ways should we follow ( Interface IF_FPM_WORK_PROTECTION or IF_WD_PORTAL_INTEGRATION) ? Which component and which method should we Set Work protect and  Set isdirty
    Please advise.

    Hi Experts,
    Can you please provide some useful info in implementing work protect in Standard FPM WebDynpro ABAP applications? In this case, as mentioned above, the application is  ESS Talent Profile application (HRTMC_EMPLOYEE_PROFILE).
    Thanks,
    Sandeep

  • How to skip first screen of XK03 in Webdynpro ABAP

    Hello Experts,
    I am working on one webdynpro application where I am displaying transaction XK03 based on Link to Action of the particular vendor. But my problem is that I wanted skip first screen of XK03 so that directely I can go to display mode. Plz help me out...
    Thanks
    Basanagouda

    see the forum please: Web Dynpro ABAP

Maybe you are looking for

  • Please send me Extraction Methadalogy in bw7.0

    Dear Friends,    Please send  me Extraction method(from r/3 to bw)in H.R MODULE    VERSION:BIW/BW 7.0  this is very urgent    Good reply will get good points   Regards,   SridharMenda

  • HB Split x2

    I have a HP Split x2, 64 bit operating system, with Windows 8.1 that I am trying to connect an older Dell monitor to temporarily. I purchased the HDMI to VGA adapter and connected as instructed by Best Buy. The HP will project onto the monitor proper

  • Cannot Export Keynote to Quicktime

    When i try and export a the keynote into quicktime, the result is not as intended. i have recored a video inside of keynote, with animations and different timings. the video is around 8 mins long. when i export it to quicktime, i get a video of 4 sec

  • Transport objects and queries

    Hi ,           I know that this topic has been discussed a lot, but can some one help me . I have made some modifications to Infocube and query in Development system and now I would like to move them to QA and Production system in BI. Can some one te

  • How to autoincrement a numerical column?

    I am familiar with using Informix's serial datatype... and am looking for something similar in Oracle. Is it possible create a column with an autoincrementing number in it that is unique to each row? I really appreciate your help.