How to handle change in RFC module inside webdynpro

Hi All!
I am developing a rather large webdynpro application. The development is a "work in progress" meaning that from time to time we find that there are requireemtns for additional fields in some of the tables / structures of the RFC module.
Normally what we do, when adding or deleting an attribute from a table/structure is:
Reimportmodel.
Delete Cotext.
Click Apply Template, and create new model binding using the template.
modify the method.
But are there other ways to handle reimports?
Because when we use table XXYY in 7 different RFC modules and then add/remove an attribute of tabel XXYY we have to delete and re-create 7 modelbidings + method = VERY VERY time consuming, and error prone - because all the views attached to our component contoller also has to be reimported.
Does anyone know a smarter / more convienient way to do this?
Inputs are highly appreciated!
Best regards,
Ronni Hostrup

Hi Again,
i guess i was a little to quick in my reply.
The method above i am afraid does not work.
What i did was:
the RFC module was changed (an extra field was added to a table of the rfc module)
reimported the model (on my DC containing the model)
re-deployed the model on the server.
opened the dc that uses the model and removed the model from used models.
-- no errors occoured. then i removed the use of the entire DC (removed it from used dc )
rebuilded the projcect, and alot of errors accoured.
add the model dc puplic part again, and added the model as used model.
rebuilded the project again - no errors.
in the context i, under input and output of the affected modelcontext i choose edit model binding ,and then chose the model type. and marked all of the fileds (i could see my ekstra field)
updated the ui that used the models.
deployed the archive, restarted the j2ee engine - just to be sure.
deployed the archive again, and nothing worked - ie. not a single entry in the entire table
so i guess i have to delete the model contex and then click the apply template to rebind and recreate alle my RFC modules again - since  most of them use the same modified table
but thanks for the inputs.  - lets hope that SAP one day realizes that this is not very clever made
best regards,
Ronni

Similar Messages

  • How to handle exceptions of rfc in web dydnpro

    hi all,
    i want to handle exceptions of Remote function module in webdynpro.how can we do that one.are there any variables in model class for those exceptions.
    regards
    Naidu

    Hi,
    Hope the following snippet answers ur query
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
                   try{
                        wdContext.currentB_Quotation_Createfromdata_InpElement().modelObject().execute();
                        wdContext.nodeOutputQuotation().invalidate();
                   } catch(WDDynamicRFCExecuteException ce) {
                        manager.reportException(ce.getMessage(), false);

  • How can i change the default module when lr5 opens

    lr5 on my win7 pc opens in the print module.  how do i change this to open in the library module?

    Lightroom re-opens at the same place, i.e. Catalog, Module, file, etc where you were working when you last closed the program. If you wish to have the program open in the Library module then you need to return there before you close/shut down the program.

  • How to handle changing IPv6 network configurations

    Hi,
    I run a Mac Mini as a server with OS X Server 10.8.5/2.2 on it using an internet connection with DS-lite. The server runs fine on a private IPv4 and a public IPv6 assigned by the ISP thrugh my router. Now from time to time (on some really odd days 5 times a day) my ISP decides to change my IPv6 prefix and as a consequence the IPv6 of my server. This results in a warning and some services seem to work not always properly. When I handle the warning and update the network configuration (although all relevant pieces of configuration that are shown along this proces remain unchanged), everything is back to normal.
    Now I wonder whether there is better way to handle changing IPv6 prefixes while everything else is unchanged? Any thougths? Thanks. Steffen

    I'll add my 2 cents too Sudheer...
    I suppose your versioning strategy should take into account your particular circumstances, impact analysis, ESB architecture  etc...
    In our case it makes sense to version the service operations because we have some consumers that want to stay on the older version & other that want to move with the changing versions...
    We've noticed that SAP, with the standard delivered enterprise services also version step the service operations so you esentially have 2 service contracts but one that caters for additional fields/functionality. The consumer uses the service operation that they prefer.
    The other possibility, if you are in a position to make the new fields 'optional' then you could do that without impacting all the consumers, the consumers that have the additional info to pass in the request can do so & the other consumers can carry on business as usual.
    Then you could also version step the entire service, that would entail making use of a new software component version but this would entail new endpoints & depending on your architecture it could impact all your consumers. If you're using an integrated ESB architecture, your consumers would have one endpoint & the ESB would route the request to the relevant service version.
    So you could minise impact on the consumers & develop a good versioning strategy depending on what your current situation is.
    Regards, Trevor

  • How to use Change doc Function Module?

    Fn mod:ZSUBTESTCHG_WRITE_DOCUMENT
    Import parameters               Value
    OBJECTID                        ZSUBTESTCHG
    TCODE                            SE37
    UTIME                             00:00:00
    UDATE                             09.03.2009
    USERNAME                        'TESTUSER'
    PLANNED_CHANGE_NUMBER
    OBJECT_CHANGE_INDICATOR            I
    PLANNED_OR_REAL_CHANGES         R
    NO_CHANGE_POINTERS
    UPD_ICDTXT_ZSUBTESTCHG               I
    N_ZSUBTEST                         2         TEST
    O_ZSUBTEST                         2         TEST
    UPD_ZSUBTEST                    I
    Tables                          Value
    ICDTXT_ZSUBTESTCHG                 0 Entries
    I have a ztable 'ZSUBTEST' with 2 fields DEPTID and DEPNAME and ticked "change document" for data element.
    I have created the above change doc write fn module. I am trying to insert a new reocrd into table.
    How to use ZSUBTESTCHG_WRITE_DOCUMENT so that even if i try to change an existing record in ztable the old and new values for a particulat ztable will be filled in CDPOS Table.
    Would appreciate if you can suggest me how to use in1) Update and 2) Insert scenarios.
    Thanks,
    Subba

    hi check this,
    Types Declaration***
    types: BEGIN OF X_audit,
    Field of ZAUDIT TABLE OR a custom created table------
           END OF X_audit.
    Data Declaration***
    Data: w_newvalues type X_audit,
          w_oldvalues type X_audit.
    DATA: BEGIN OF t_cdtxt OCCURS 0.
            INCLUDE STRUCTURE cdtxt.
    DATA: END OF t_cdtxt.
    DATA:  l_tcode type cdhdr-tcode ,
           l_time type cdhdr-utime,
           l_usnam type cdhdr-username,
           l_date type cdhdr-udate.
    **Constants****
    CONSTANTS : l_objectid TYPE cdhdr-objectid VALUE 'ZAUDIT_CD'.
    Initialization.
    Clear: l_tcode,l_time, l_usnam, l_date.
    Clear: w_newvalues, w_oldvalues.
    **Start-Of-Selection**
    Start-of-selection.
    *Populating w_oldvalues workarea with old values from the table
    Select single * from zaudit_t
                    Into w_oldvalues
                    Where belnr eq belnr_1
                    And  gjahr eq gjahr_1
                    And  bukrs eq bukrs_1. u201C where, belnr_1, gjahr_1, bukrs_1  are the fields on selection screen.
    here we are populating w_newvalues workarea with new values
    W_newvalues-f1 = w_oldvalues-f1
    f2 = u2018XXXXXXXu2019     -
    f3 = u2018YYYYYYYu2019
    f4 = u2018ZZZZZZZu2019
    l_tcode = sy-tcode.
    l_time = sy-uzeit.
    l_usnam = sy-uname.
    l_date = sy-datum.
    modify the table with new values***
    MODIFY zaudit_t FROM w_submit.
    IF sy-subrc EQ 0.
        MESSAGE 'Document Updated' TYPE 'S'.
    call function 'ZAUDIT_CD1_WRITE_DOCUMENT'
        exporting
          objectid                   = l_objectid
          tcode                      = l_tcode
          utime                      = l_time
          udate                      = l_date
          username                   = l_usnam
        PLANNED_CHANGE_NUMBER      = ' '
          object_change_indicator    = 'U'           u201CU-update, I-insert, D-delete
        PLANNED_OR_REAL_CHANGES    = ' '
        NO_CHANGE_POINTERS         = ' '
          upd_icdtxt_zaudit_cd       = 'U'
          n_zaudit_t                 = w_newvalues  u201Cpass the work area containing new values     
          o_zaudit_t                 = w_oldvalues  u201Cpass the work area containing old values
          upd_zaudit_t               = 'U'         u201C this parameter gives the values in the columns(new value, old value and changed field name) of table CDPOS.
        tables
          icdtxt_zaudit_cd           = t_cdtxt
    ELSE.
       MESSAGE 'Document Not Updated' TYPE 'S'.
    ENDIF. u201CIF sy-subrc EQ 0.

  • How to handle change of relation with SAP

    hi,
    suppose i'm an employee of a SAP customer right now (meaning i have an S-ID), and then later on i'm employed by a different SAP customer, triggering a deactivation of my old S-ID, and the creation of a new S-ID, how would the transition of S-IDs be handled? would i find myself not able to login to my account (since naturally my email address would change too)?
    or is my S-ID stuck with me for life?
    honestly i wouldn't want this to happen (nor do i see this happening), but suppose it did, how would the powers that be handle this?
    ryan.

    hi Denis,
    it depends what kind of data you're trying to delete:)
    during the standard output (IDOC) of some documents
    you can see a deletion indicator (action), there are also
    some document which you can delete on the basis
    of specific conditions - for example when somone
    sets a rejection indicator in a document this might
    mean that the document (or one of it's lines)
    was deleted
    so basically it depends what kind of data you want
    to delete
    Regards,
    michal

  • How to handle Changes in the Structure of Outbound Message.

    Hi Experts,
    I have a File2RFC scenario where the Outbound Message fields are (for e.g,) ID,Name,Loc, and Status. The structure of the xml file which needs to be picked by sender file adapter is changing each time based on the data entered by the user. I am sure this will fail in IS with RuntimeException in Message-Mapping transformation Error. Is there anyway to handle this kind of situation.
    Message Sample- 1 (Message Processed successfully as it contains all the 4 fields...)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Send xmlns:ns0="http://File2File">
       <root>
          <ID>1234</VesselID>
          <Name>PIUSER</VesselName>
          <Loc>System A</Type>
          <Status>1</Status>
       </root>
    </ns0:MT_Send>
    Message Sample-  2 (Message Failed with Runtime Mapping Exception in IS...'Loc' is missing)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Send xmlns:ns0="http://File2File">
       <root>
          <ID>5678</VesselID>
          <Name>SAPUSER</VesselName>
          <Status>2</Status>
       </root>
    </ns0:MT_Send>

    Hi Ravi,
    Thanks for the reply. I think changing the cardinality will not solve this issue. Because the file which is being picked by Sender file Adapter is changing its structure everytime based upon the values entired by the user.
    For example - In Message 1 User has entered all the 4 values...so the structure is full.
    Message Sample- 1 (Message Processed successfully as it contains all the 4 fields...)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Send xmlns:ns0="http://File2File">
    <root>
    <ID>1234</VesselID>
    <Name>PIUSER</VesselName>
    <Loc>System A</Type>
    <Status>1</Status>
    </root>
    </ns0:MT_Send>
    In Message 2 - user has entered only 3 values...Though I have kept Loc as 0 to Unbound it fails as there is no tag <LOC></Loc> here.
    Message Sample- 2 (Message Failed with Runtime Mapping Exception in IS...'Loc' Tag is missing)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Send xmlns:ns0="http://File2File">
    <root>
    <ID>5678</VesselID>
    <Name>SAPUSER</VesselName>
    <Status>2</Status>
    </root>
    </ns0:MT_Send>

  • How to propagate changes in RFC to XI....?

    Hi Guys,
    I changed parameter in one of the RFC..the RFC is already being used in XI. I know there is someway to refresh XI with the changes done in RFC, but I am unable to recall..
    Can somebody please help in activating my sleeping neurons?
    Thanking in advance

    Hi Rajan,
    I think you have to reimport your RFC singnature again into Integration Repository...
    when you change your mappings (if you use graphical mappings) most of the mappings should remain
    you will only have to map the additional parameters
    Regards,
    michal

  • How to dynamically change the table name inside a view

    Hi All,
    create table t_auto_feeds
    id number,
    table_name vachar2(100));
    insert into t_auto_feeds values(1,'T_FEED_POSITIONS');
    insert into t_auto_feeds values(2,'T_KAP_MTM');
    assume there are 100 records on id=1 in T_FEED_POSITIONS and 100 records of id=2 in T_KAP_MTM (id 1 is present only in t_feed_positions & id 2 is present only in t_kap_mtm)
    i need to create a view such that it needs to give the count of records based on the id
    create or replace view aa_view as
    select count(*), id from t_feed_position group by id
    union
    select count(*), id from t_kap_mtm group by id;
    I am getting a proper result when i query the view like select * from aa_view where id=1 but will the other union query seems to be a overhead?. I am having 10 such tables configured for different id in t_auto_feeds.so do i need to put 10 unions or is there a better way to handle this stuff.
    I know i can use a PLSQL block and dynamically build view structure, the problem is the view itself is configured in a table , so i cant write a proc for this.. can this aa_view be modified such that it queries only the table(using the t_auto_feeds ) which matches the id rather than the entire list.
    Kindly help me in this regard and let me know in case u need any further information from my side.

    >
    so do i need to put 10 unions or is there a better way to handle this stuff.
    >
    Yes - you need 10 unions
    Yes - there is a better way so that only one of the 10 queries does anything.
    You can use SYS_CONTEXT to control the query selection.
    Here is an example of using SYS_CONTEXT. Try this code in the SCOTT schema.
    create or replace context VIEW_CTX using SET_VIEW_FLAG;
    create or replace procedure SET_VIEW_FLAG ( p_table_name in varchar2 default 'EMP')
      as
      begin
          dbms_session.set_context( 'VIEW_CTX', 'TABLE_NAME', upper(p_table_name));
      end;
    select * from emp where 'EMP' = sys_context( 'VIEW_CTX', 'TABLE_NAME' );
    select * from emp1 where 'EMP1' = sys_context( 'VIEW_CTX', 'TABLE_NAME' );
    select * from emp2 where 'EMP2' =  sys_context( 'VIEW_CTX', 'TABLE_NAME' )
    exec set_view_flag( p_table_name => 'EMP' );
    exec set_view_flag( p_table_name => 'EMP1' );
    exec set_view_flag( p_table_name => 'EMP2');
    SELECT sys_context( 'VIEW_CTX', 'TABLE_NAME' ) FROM DUAL
    CREATE VIEW THREE_TABLE_EMP_VIEW AS
    select * from emp where 'EMP' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
    union all
    select * from emp1 where 'EMP1' = sys_context( 'VIEW_CTX', 'TABLE_NAME' )
    union all
    select * from emp2 where 'EMP2' =  sys_context( 'VIEW_CTX', 'TABLE_NAME' )
    SELECT * FROM THREE_TABLE_EMP_VIEWNote that you set the context for the table you want. This doesn't have to be a table name it could just be flag value
    -- use the emp table
    exec set_view_flag( p_table_name => 'EMP' );
    -- ue the emp1 table
    exec set_view_flag( p_table_name => 'EMP1' );
    -- use the emp2 table
    exec set_view_flag( p_table_name => 'EMP2');

  • How do you change an xml field inside of a database?

    Please: can you tell me how do you update an xml file?
    I mean how do you edit an xml field?
    Paola
    @{---->>----->---------                                                                                                                                                                                                                                                                       

    It should work for Oracle 9.2 and 10.2
    Thank you Dany.
    Regards.
    Paola
    @{--->----->>----------                                                                                                                                                                                                               

  • How to handle unsaved data in portal through webdynpro ABAP ?

    Hi Experts ,
         I  need to handle unsaved data in SAP Enterprise Portal through webdynpro for ABAP . I got a sdn link which explained some code for this..
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/b76f4169e25858e10000000a1550b0/frameset.htm
    I tired to implement this in EXIT method of the view. but im not able to get this . Can any one help me in this ? .
    Regards ,
    Kalpana .

    Hi ,
    Yes i have checked the code . But the example itself not working when i linked the same with portal . If EXIT is not the right method , Can you help in placing the code in right method ? The code i pasted in EXIT method is 
    data L_COMPONENTCONTROLLER type ref to IG_COMPONENTCONTROLLER .
    data L_API_COMPONENTCONTROLLER type ref to IF_WD_COMPONENT.
    data L_PORTAL_MANAGER type ref to IF_WD_PORTAL_INTEGRATION.
    L_COMPONENTCONTROLLER =   WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
    L_API_COMPONENTCONTROLLER = L_COMPONENTCONTROLLER->WD_GET_API( ).
    L_PORTAL_MANAGER = L_API_COMPONENTCONTROLLER->GET_PORTAL_MANAGER( ).
    call method L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
      exporting
        DIRTY_FLAG = ABAP_TRUE .

  • Change Stage Frame From Inside MovieClip?

    How Do I Change Stage Frame From Inside MovieClip?
    Heres my code so far:
    hh.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
        gotoAndStop(2);
    i tried (root).gotoAndStop(2); but i got an error , #1061 ..
    Thanks in Advance...
    ASAP would be nice..

    well your a smart *** now arnt you   Haha..
    I missed 1 painful word in that line of code thanks heeps..

  • How to handle Drop Down Box on Interactive Adobe Form

    Hi,
    On my adobe form there are some drop down boxes like company code, cost centre etc, actually i need F4 help on those fields,  but what i found is it's not possible to have F4 help on adobe form so i have choosen alternative as webdynpro acitvex drop down box in library. I have written a web dynpro application to fetch the data and display it on adobe interactive form, i could able to display the data for all the fields on adobe form except these drop down boxes, can any body suggest me how to handle these drop down boxes in webdynpro application. Your help will be greatly appreciated.
    Thansk & Regards,
    Venkat

    Hi Venkat,
    As you are using the WDP ActiveX dropdown in your form, it is fine but to populate values in the DD, you need to bind the context attribute with a simpletype and then populate the values. Use the below code to obtain a ModifiableSimple Type:
    IWDAttributeInfo abcInfo = wdContext.nodeABC().getNodeInfo().getAttribute("AttributeName");
                        ISimpleTypeModifiable def = abcInfo.getModifiableSimpleType();
                        IModifiableSimpleValueSet abcValueSet = def.getSVServices().getModifiableSimpleValueSet();
    and after this put te values in the obtained modifieable simple type like below:
    abcValueSet.put(key,value);
    where key may be the ID and value may be the name to be displayed in DD.
    Reward points if found helpful.
    Regards,
    Arafat

  • How to handle JCO Exceptions at JCO (RFC) function call

    Hello Forum,
    I am implementing an JCO Server scenario.
    I use dynamic repositories like Example7.java from the JCO documentation.
    Example7 throws an JCO.AbapException if anything went wrong, e.g. the function is not implemented.
    How to react on this AbapException?
    The examples in SAP Help documentation only catch
    SYSTEM_FAILURE and COMMUNICATION_FAILURE.
    All other RFC modules I have seen which declare the function modules to be used by dynamic JCO repositories (like Example7.java) do not define any other Exception parameters.
    But these two are only thrown and caught when something with communication went completely wrong, e.g. RFC not found.
    But when RFC can be reached and the JCO Server is executing the Java method, an AbapException could be thrown on error. How to react on this?
    In my implementation based on the examples I always get a ABAP dump. The dump says:
    Exception named  without message text. Why that name?
    How to handle this type of exception in order to avoid the dump?
    Can anyone post an example please?
    Thanks,
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 4:22 PM
    Edited by: Carsten Schön on Apr 15, 2008 4:24 PM

    Hi Micky,
    thanks for your quick response.
    If so, to throw JCO.AbapException on JCO Server side is not correct?
    What I do is throwing the JCO.AbapException (like in the JCO Example 7).
    At the RFC call in APAB I handle both exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE like
    CALL FUNCTION 'MY_JCO_FUNCTION_MODULE'
        DESTINATION JCO_DEST
        <...>
        EXCEPTIONS
          SYSTEM_FAILURE        = 1  MESSAGE RFC_MESS
          COMMUNICATION_FAILURE = 2  MESSAGE RFC_MESS.
    This works as far something with RFC is wrong, e.g. Server can not find the function or Server not reachable.
    But the AbapException thrown by the JCO Server (Java) is not handled that way. Why?
    Sorry if this is the wrong forum but I tried posting in Netweaver integration and got no answer for 1 week and because it's ABAP related I thought the topic suites here.
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 5:10 PM

  • How to handle password changes if we implement singlesignon between BO& BI7

    Hi,
    As we know ,we can implement single signon between BO and SAP BI 7, by importing roles and users through CMC and by selecting the option "Use Single signon during report refresh time".
    My doubt here is, When we import roles from SAP and Auto import the users, is it only the SAP usernames that are stored in BO repository or both username and password. If  second case holds true then how to handle/manage password change for a user who is already imported in BO sometime back?
    Would the password changes be reflected automatically in BO?
    Please guide me if you think that I'm thinking in a wrong direction.

    Hi Naresh,
    password changes are reflected automatically in BO. BO just forwards the data to the SAP side and it does the real authentification.
    Regards,
    Stratos
    PS: Keep in mind that you cannot change the SAP password on the BO login screen if your SAP password has expired. You have to do this with the SAP client (SAP GUI)

Maybe you are looking for

  • How do you use adobe acrobat reader that can be used/view as a PDF in a web browser

    I get a message that say: this abode acrobat reader that is running can not be used to view PDF files in a Web Browser.

  • NO Expense GL/Purchase Order not reflecting in 0FIGL_14

    Hi All, 1) We want GL expense data from 0FIGL_14 but the system is showing RECON GL accounts which we don't want. 2) No PO data is populaing in 0FIGL_14 Can anyone help in this issue? Thanks, Mayur

  • PI 7.0 RWB & IE 8

    Hi experts, We are using usage type Process Integration of NW2004s SP18. We are planning to upgrade IE 6 to IE 8.0. But in my PI 7.0 for RWB I face the below errors: Message: 'ur_txt' is undefined Line: 3 Char: 7 Code: 0 URI: http://worlddpi:51200/ht

  • User assigned to the process instance

    How to get in an automatic activity in PBL code, the user assigned to the process instance. In other words, if a previous activity is this.participant.next = Participant.findByName ( "ereyes") in the activity that follows I want to get that user. Can

  • Oracle EM 12c - Can't update TimesTen Plug-In

    Hello, keep spinning my wheels on this and would appreciate any help: I'm trying to update the TimesTen Plug-In in EM 12c. When I klick to Self Update > Plug-in I see there's an update available for the TimesTen Plug-In. However, when I try to update