External mapping in WD for ABAP

Hello,
I am trying to understand how the concept of external context mapping works in Webdynpro.
In system BIZ/000 I created a main WD component ZTEST_WD and another subcomponent WD component ZTEST_MWD.
Then I didthe following:
1. set the component controller context node TEST_FLIGHT_NO of ZTEST_MWD as Input Element (Ext),
2. performed an external mapping between the interface controller context and the main component controller context
3. Created a method GET_FLIGHT_DETAIL to perform some processing with the flight number in the TEST_FLIGHT_NO and display the flight details on the view. It was successful.
As a negative test, I tried to display the value of the subcomponent context with external mapping in the main view, and I expected that it would give an error, but it worked.
I assigned a value to the context in the interface controller method, and the same was displayed in the view. This means that the data flows from the interface controller context to the view context.
In subcomponent ZTEST_MWD, there is a method GET_FLIGHT_DETAIL, where I assigned value to the context.
data_node = wd_context->get_child_node( name = 'TEST_FLIGHT_NO' ).
data_node->set_attribute( exporting name = 'CARRID' value = 'AA' ).
data_node = wd_context->get_child_node( name = 'TEST_FLIGHT_NO' ).
data_node->get_attribute( exporting name = 'CARRID' importing value = lv_carrid ).
And later when the action was processed, the value "AA" displayed on the textbox in the main view.
Now I am a bit confused abt the concept which I understood earlier. I do not see any difference between external mapping and normal mapping.
It would be very very nice if you could throw light on this.
Awaiting responses,
Thanks and Regards,
Maya

Hello,
here's the link to the documentation about external context mapping: http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/frameset.htm
Regards, Heidi

Similar Messages

  • External HTML in WD for ABAP

    Dear all
    Can I display HTML content in any way directly in WD for Abap ?
    I have the html file uploaded as an MIME object in the WB application.
    best regards
    Lars

    Hi,
    please note that the UI element IFrame is deprecated, see the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm">documentation</a>.
    If you create a file as application/pdf and store it in the MIME repository, you can use the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/15a40b56080d1be10000000a114a6b/frameset.htm">integrating forms</a> functionality.
    Regards, Heidi

  • Create External Window in Webdynpro for Abap

    I am creating an external window using method CREATE_EXTERNAL_WINDOW.  The componentcontroller context and the assistance class attributes are not available in the Handledefault method of the external window.    Is there a way to pass data to the external window without using URL parameters?
    Thanks
    Cindy

    >@Thomas: with all your wonderful eLearnings on WDA is there one which covers this in any depth? As it would be nice to point people to it.
    No I can't say that I have ever created something specifically on this.  The ACFUpDownload example is closest simply because I use the cache table is a similiar way, althought I hesitate to recommend that eLearning in this situation becuase that aspect isn't central to the eLearning and it might just confuse things further.
    >don't forget about the possibility of database persistence of the data either -
    That was actually what I was talking about in server cookies as well. Server cookies are something that was originally created for BSP, but work fine in WDA as well.  They are just a cluster table where you can store any data you want and access in another session via a key. The nice thing about server cookies is that there is already a help class for read/write and batch job that can be scheduled to clear out expired entries.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm

  • Steps for ABAP Mapping

    Hello,
         Can any one explain how to do ABAP mapping?and necessary trancsaction codes for this?
    Ex: I am sending PO to reciever system.
    And if posibel screen shots....plz
    Thank you

    Hi Jyotsna,
    Which mapping we need to use..
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping%2btechniques
    ABAP MAPPING...
    You can implement the following mapping programs by using the ABAP Workbench:
    •     ABAP mappings [Seite 375] in ABAP objects
    •     XSLT mappings (ABAP Engine) [Seite 376]
    Use
    ABAP mappings are mapping programs in ABAP objects [Extern] that customers can implement using the ABAP Workbench.
    Prerequisites
    Note the prerequisites in the sections Purpose and Integration as well as the Restrictions in Mapping Development with the ABAP Workbench
    Features
    An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the following signature:
    Importing Parameter                                               Parameter Meaning
    SOURCE(Type XSTRING)                                   Source XML document
    PARAM(Type Ref To  IF_MAPPING_PARAM)            Parameter object for read access to runtime constants (see below)
    TRACE (Type Ref To IF_MAPPING_TRACE)     Trace object for writing messages in the mapping trace (see below)
    Exporting Parameter                                                  Parameter     Meaning
    RESULT (Type XSTRING)                                Target XML document
    Exception: CX_MAPPING_FAULT
    Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly (see XSLT Mappings (ABAP Engine) [Seite 376]) rather than using ABAP mappings
    Runtime Constants
    In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings [Seite 367], although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE (see above).
    regards,
    Kishore

  • When we wil go for abap mapping ??

    Hi,
    As we know there are graphical, XSLT, JAVA mappings are there apart from ABAP mapping. I have gone through below weblog.
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    and also help.
    http://help.sap.com/saphelp_nw04/helpdata/en/12/05731a10264057badc32d3d3957015/frameset.htm
    None of them says ABAP mapping is either faster or stable as compared to other mappings. Even though it is the case, still when we will go for abap mapping ??
    Is it like that it is totally depend on the available resources in hand ??
    thanks
    kumar

    > The SAP XI/PI mapping is the most efficient as it
    > only loads the part of the source message that are
    > used to create the target message(s) at runtime.
    >
    > Java and XSLT have to load the whole message into
    > memory to process the message. This can be
    > inefficient and if dealing with large messages can
    > cause issues.
    About your statement.
    If you consider the field mapping (or UDF) runtime, then you are correct. But if you consider the whole mapping runtime, you also have to "load" the full message in message mapping, obviously. What happens is that it is transparent to the developer, since loading and parsing is done by standard. But message mapping also deals with loading and parsing the whole message (and it is done with Java underneath). Then I don't think message mapping will have a significantly better/worse performance, when compared with Java mappings (performing normal xml processing methods).
    As for XSLT, the performance problems happens because you have a XSLT processor running over Java VM. Then, if you have heavy load on it, the mapping runtime will consume the resources necessary to run the xslt processor (which is, by itself, very resource consuming) and also to treat that heavy input.
    Regards,
    Henrique.

  • Create a cache for external map source - Error in parsing xml request.

    When doing the following:
    Create a cache for external map source
    I get "error in parsing xml request" when setting the following
    Map service Url:
    http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetCapabilities
    It looks like it is breaking on "&". Any suggestions?
    Rob

    Hi Chris,
    thanks for your reply!
    I've tried to add the following into persistence.xml (although I've read that eclipseLink uses L2 cache by default..):
    <shared-cache-mode>ALL</shared-cache-mode>
    Then I replaced the Cache bean with a stateless bean which has methods like
    Genre findGenreCreateIfAbsent(String genreName){
    Genre genre = genreDAO.findByName(genreName);
    if (genre!=null){
    return genre;
    genre = //Build new genre object
    genreDAO.persist(genre);
    return genre;
    As far as I undestood, the shared cache should automatically store the genre and avoid querying the DB multiple times for the same genre, but unfortunately this is not the case: if I use a FINE logging level, I see really a lot of SELECT queries, which I didn't see with my "home made" Cache...
    I am really confused.. :(
    Thanks again for helping + bye

  • When do we go for ABAP mapping and Java mapping

    Hi friends,
                At present I am working on graphical mapping in XI ,can you guys give me with an example or scenario when do we use ABAP mapping , Java mapping or XSLT mapping.
    Thanks in advance
    Sud

    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums</a>
    I have standard XSLT mapping programs available for my scenarios, so use XSLT mapping. Similarly with Java mapping,  For most scenarios, message mapping does the job too well. Abap mapping similarly is used to leverge existing ABAP base.  If message mapping becomes confusing and hard to follow with too many functions, I go for Java mapping (just my way). I havent used ABAP mapping thus far.
    Discussing ABAP mapping
    ABAP mapping is developed in ABAP work bench. ABAP mapping needs to be transported to integration server and XI does not support this transport and have to do with ABAP transports.
    Customers who can develop mapping program on SAP web AS and can transport them there can use ABAP mapping
    *ABAP mapping programs cannot access the value table
    *Since ABAP mappings are executed on ABAP stack SAP does not provide any ABAP mapping programs
    *ABAP mapping programs must exists with one single version in IS, unlike JAva and XSLT mapping that can have multiple versions of mapping program
    Regards,
    Priya
    priya k
    null

  • User mapping when installing JAVA addin for ABAP

    Hi,
    I have installd SAP ABAP on a domain.
    As the ABAP went fine and successfully gets installed.
    When I am installing JAVA addon for ABAP it is throwing an error lke the users are not mapped.
    So can any one guide me where actually I should map the SAP users in a domain.
    Prashanth

    Your question is very vague, please post the full error.
    As this is a java add-in it should user ABAP as datasource so no user mapping should be required.
    User mapping is used where java and backend system use different datasources and the naming conventions are different...
    Theres not enough information here to give you an objective answer.
    Regards
    Juan

  • Creating external mapping file for C# application

    Hi,
    I'm using Robohelp 7 and producing HTMLHelp files. So far, the programmers have been making internal links in the program to call my help, but I'd like to take this over using an external mapping file.
    Is it possible to use regular map files, using the built-in Map ID functionality, for C# .NET applications? If so, is there something special I have to do? Or do I just create a regular map file?
    Thanks!

    I mean that, in the past, they have hard-coded the link to each help page within the application. But, I'd like to take that over by maintaining a Map file where I specify the link between the topic and the Map ID.
    However, I'm not sure that the map file works for C# .Net applications, and the engineers aren't sure either. I told them I'd go investigate.
    Is there a way to create a Map file, or something that works like a map file, for a C# .Net application? Or do they have to go on hard-coding the links to each topic?

  • External web service call from WebDynpro for ABAP

    Hi...
    I'm inspecting Web Dynpro For ABAP, and trying to call external web services.
    I'm created Web Service, CAF-AS.
    I create the proxy class(se80) and Logical Port(lpconfig), and I take the web service in componentcontoroller of my web dynpro using Web Dynpro Wiserd.
    Though I expected the context to be registered by the same type as the service interface,
    they are created strange structure as follow.
    <Context>
    CONTEXT
    ---FIND_BY_PARAMS
    IMPORTING
    INPUT
    CONTROLLER
    ORDER_TEXT_BY_PARAMS_REQ
    ---EXPORTING
    OUTPUT
    CONTROLLER
    ORDER_TEXT_BY_PARAMS_RES
    The CONTOROLLER is defined by the type PRXCTRLTAB, and
    ORDER_TEXT_BY_PARAMS_* has deep structure, as follow.
    ORDER_TEXT_BY_PARAMS_REQ
    ---CONTROLLER    type:PRXCTRLTAB(structure)
    ---QUERY_TABLE  type:ZTABLE_NAME
    ---QUERY_FIELD   type:ZFIELD_NAME
    ---QUERY_OPTIONS  type:ZORDER_TEXT_QUERY_OPTION_TAB
    I want to use only service paralmeters,  that is named query_*.
    I tried to excute the webService but dump  "OBJECTS_OBJREF_NOT_ASSIGNED" occurs.
    I think I must set any value to CONTOROLLER,?but I have no idea What & How I should set value.
    please let me know, what is the CONTOROLLER, and how to call external web services.
    Regards,
    Naoya Tsugo,

    I solved problem by myself.
    There was carelessmiss in activation of LP.
    Now, I'm closing the topic.
    Thanks and Regards.
    Naoya Tsugo,

  • Detailed example for ABAP mapping in XI7.0 with code in  class builder

    hi experts,
                  will any one one send me the detailed example(including navigation steps) for ABAP mapping in XI7.0 with code in class builder.
                                                         Thankin u,

    Hi,
    Just go through the below link.It will guide you how to do abap mapping:
    The guide is on XI 3.0 but the same can be used in 7.0 also.
    The How-to-guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    This link will provide more information regarding program point of view.
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm
    Thanks,
    Kishore.
    Edited by: Kishore on Mar 14, 2008 4:35 AM

  • Service Pack needed for ABAP MApping ?

    Hi everyone.
    i'm trying to activate the ABAP MAPPING but it's no working.
    I've done everything SAP documents say. Even i've followed all your posts but it doesn't work.
    I wanto to know if ABAP MAPPING is available for Service Pack 9 (the one i have).
    Thanks.

    Hi
    According to help.sap for ABAP Mapping
    <i>"To reference the development objects of the ABAP Workbench from interface mappings, customers must assign the following value to the parameter com.sap.aii.repository.mapping.additionaltypes in the exchange profile:
    <b>com.sap.aii.repository.mapping.additionaltypes=R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)</b>"</i>
    So go in Exchange Profile and chk whether this parameter has this value.
    U can also go thru this blog to test ur mapping
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    Hope it helps.
    Regards
    Arpit Seth

  • External URL in a Window of Web Dynpro for ABAP

    I have two windows 1 and 2 in web dynpro for ABAP application.
    In the view 1 which is embedded to window 1, I choose search engine. How do I navigate to window 2 which displays the external web page such as Google, Yahoo or Bing in the second window. I don't want it open new  browser window or pop-up window. The browser must stay in the same.
    Thanks,
    Anthony

    Exit Plug: If you want to navigate in the same browser
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm

  • Error the class for ABAP mapping doesnt exist

    hi PI gurus,
    i faced a probleme when i was trying to call a second Mapping which type is ABAp after another one which type is Message Mapping, why i m doing that because i was trying to folow the step by step of michal :
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0279207250DB01347930475897169967End?blog=/pub/wlg/6398
    but the problem is i get the error that the class doesnt exist but i m sure that the class exist and i cheked in se24.
    do you have any idea ????
      <SAP:Stack>Error in mapping program Z_ABAP_MAPPING_EXCEPTION_RS (type SAP-ABAP, kernel error ID CREATE_OBJECT_CLASS_NOT_FOUND) The object could not be created: The class Z_ABAP_MAPPING_EXCEPTION_RS does not exist.</SAP:Stack>
    thanx.

    Check this thread
    [Re: SOP Confituration- Maintain Copy Profiles version A00 not maintained   |SOP Confituration- Maintain Copy Profiles version A00 not maintained;
    thanks
    G. Lakshmipathi

  • Web-site as iframe in webdynpro for abap

    Hello,
    we want to integrate an external website like google maps as iframe in webdynpro for abap-window.
    Is it  possible?
    Regards
    Oliver
    Edited by: Oliver Prodinger on Apr 18, 2010 11:41 AM

    Hi,
    Please be aware that this UI element is deprecated and is not to be used. But we can use it in unavoidable cases.
    Refer to the below link for step by step procedure on how to use the iFrame element.
    http://divulgesap.com/blog.php?p=MTI5
    Regards,
    Lak

Maybe you are looking for