HELP?  webdynpro for abap - office integration??

Hi ALL:
     Do you know how to use the cl_wd_office_control ?
    I  use 'WORD' or 'EXCEL' to display with webdynpro application and change the data ,now,i want to save the data into SERVER (word or excel).the action 'ON_SAVE' how to write?
Thanks in advance!
      kind regards,
        Vallis.

>
gmasfk wrote:
> Hi Abhi:

>   I don't understand the Actions:onsave and onclose  which cl_wd_office_control include,
>  
>  like " IOS_TEST_HELLOWORLD_MS " ,it use other button to achieve it.but i'm not.

>  The 'WORD' has function of 'SAVE' ,i want to use itself's.
>
>  Can it be coming true??

>  Vallis.
>
> Edited by: gmasfk on Apr 27, 2009 8:38 AM
Hi,
You have the on_save event in the Office Control. This event will be triggerd when you press ctrl+s or press the save button.
see the help here
[https://cw.sdn.sap.com/cw/docs/DOC-45207|https://cw.sdn.sap.com/cw/docs/DOC-45207]
on the event handler you have the changed copy of the document available in your context attribute of type xstring.
You can use the put method mime-repository like Abhi described.

Similar Messages

  • SAP Webdynpro for ABAP - IXOS Integration for storing documents

    Hi
    We have a requirement to attach documents to a web based SAP custom application and store as attachments simialr to GOS fucntionality in SAPGUI. SAP web based application is developed using web dynpro for ABAP. Atatched documents are to be stored externally in IXOS system. I am looking for fucntion modules or BAPI's that integrate SAP webdynpro for ABAP and IXOS. Requirement is below
    1)     From SAP Webdynpro for ABAP application read a file form desktop and store on external IXOS system.
    2)     Retrieve a file from IXOS system and display in SAP Web Dynpro for ABAP  application
    3)     Delete a file on IXOS system from Web Dynpro for ABAP application
    Thank You

    You are on right track thinking about enhancement framework.
    My approach is would be in the following order.
    Personalization/customization
    Enhancement
    Modification

  • How to create an editable table in webdynpro for ABAP? Help!

    Hi Experts,
            I have a requirement where I have to create a webdynpro for ABAP table for new row/rows entry, delete row/rows and update row/rows data. This is something like table control in normal ABAP.
    how can I achieve this? Is there any such feature in ALV component?
    Any code sample will be really helpfull.
    Please help!
    Thanks
    Gopal

    Hi,
    yes, the ALV is integrated into WDA, have a look at this: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    Regards, Heidi
    PS: look at the WDA Knowledge Center under https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943, there you can find several ALV tutorials
    Message was edited by: Heidi von Geisau

  • Portal integration of Webdynpro for ABAP application

    Hi all,
    Can anyone provide me with the steps for <b>integrating a Webdynpro for ABAP application with portal?</b>
    Regards,
    Bino

    Hi Bino
    Check out the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/portal integration of web dynpro applications.pdf
    Regards
    Rajeev.
    Do award points for helpful answers in SDN.

  • Information about Integration WebDynpro for ABAP and Business-Workflow

    Hi Experts,
    I'm looking for information about
    • Integration WebDynpro for ABAP and Business-Workflow
    Link, documents and books are welcome!
    Thanks
    mishak

    If you have worked on workflows earlier the procedure is very simple. You just need to enter certain parameter values of your application in SWFVISU for the respective task and re-register your system in UWL administration. Thats it! your webdynpro and workflows are integrated. For details on the parameters check the following link,
    http://help.sap.com/saphelp_nw04/helpdata/en/19/bff5c18ba44da4a4ca68cf572dabda/frameset.htm
    There are also a couple of blogs on "launching webdynpro from UWL" (Procedure for both Java and webdynpro is almost similar). You can also check these for more details.
    Thanks,
    Prasath N

  • Webdynpro for ABAP and Portal Integration

    Hi Experts,
    we created a WebDynpro  for ABAP application for portal. The application will modify/update few fields in backend sap HR table PA0006 (infotype 6) . The end user (portal user) should be able to update his data in backend with the iview created on this application.
    I have below two questions in my mind.
    1. Do we need portal eventing for this? It's a single iview in portal which will fetch and update his data through this WebDynpro  for ABAP application.
    2. It is for 10 countries of almost 1000 users (with same userid in portal and backend). How can I make sure that the enduser updates and fetch his records only. The SSO is already set up between Portal and Sap ECC system. Do I need to again pass the enduser portal id to the sap in coding to fetch and update the data or sso will take care of itself.
    Thanks
    Ajay

    1. Do we need portal eventing for this? It's a single iview in portal which will fetch and update his data through this WebDynpro for ABAP application.
    Answer: If you use, for exemple ITS to access this Webdympro, you will not need any action on portal for sure. Actually you will just need actions on portal, if you want to make some customization on portal side. If you want just show the Webdympro how it is, your action are all on backend..
    2. It is for 10 countries of almost 1000 users (with same userid in portal and backend). How can I make sure that the enduser updates and fetch his records only. The SSO is already set up between Portal and Sap ECC system. Do I need to again pass the enduser portal id to the sap in coding to fetch and update the data or sso will take care of itself.
    If you access via ITS, te custome will acess the backend with the user you have set on the SSO or user-mapping. The portal there is nothing to do in this regards, you must just take care of this on backend.
    Please evaluating the answer you are contributing for the SDN keep growing.
    Edited by: Fabio Sarmento on Sep 19, 2011 2:41 PM

  • Not able to integrate Payment Gateway with WebDynpro for ABAP

    Hi,
       I am not able to integrate the Payment Gateway for Billdesk ( third party software) with Webdynpro for ABAP.
    Summery of the Issue : -
    (*) Data from PORTAL Application to PAYMENT GATEWAY is going Correctly but
    (*) Data from PAYMENT GATEWAY to PORTAL Application is not going correctly.
    Details about the Problem : -
       I have created 3 View in Webdynpro Application for ABAP.
    View 1 -> Sales Order
    View 2 -> Confirm Order
    View 3 -> Success Message
    When I am on the View 2 i,e Confirm Order, I have a UI Element ( LINK TO URL) on this View. When I click on the Link it successful takes me to the Bill desk site(Payment Gateway Integrator).After selecting the Card Type - > Master card, or Visa or Amex, I am routed to the Gateway Site of the Citibank, Where I have to enter the CARD details like Card Number, CVV Number, Expiry Date, and press the Submit Button.
    Which now takes me to the final confirmation site, stating
    1) Order Number
    2) Bank ID
    3) Merchant ID
    4) Amount
    5) Authorize ( APPROVED / NOT APPROVED)
    Now once i click on the Submit button, It transfers the amount of the Customer to my bank account, correctly and goes back to the my portal application.
    Till here it is working correctly, but 1 parameter is missing which is called "msg", and this parameter contains important information regarding the payment. This parameter is sent back form the Gateway Site to my Portal.
    1) Authorize STATUS
    2) Check Sum
    etc... which will be finally required to decided whether I should go on to create the Sales Order for the Customer or not.
    If the Authorize Status = '0300' then only create the Sales Order other wise if the status is any thing else lets say not equal to '0300' then gives the message that the Credit Card is not authorize to process the Sales Order.
    Regards,
    Saurabh Bhatnagar
    E : [email protected]

    Dear Sir,
    we are implementing Retail  POS (Point of sale) for one retail company. We need to integrate third party payment gateway.
    it's name is PLUTAS. We have got developer kit from Plutas (For trial ) . we have installed that kit in our system.
    In my program, I am triggering " PL_TriggerTransaction" using call method. After triggering method it executes method, control passes to third party software. But I am not able to catch return parameter (Responce).
    So  that would be great if you help me out with this issue.
    I wrote following code.
    REPORT  ZTEST678.
    INCLUDE OLE2INCL.
    data : rc_plutus type ole2_object,
    lpszTransData type string, 
    lTxnType type char4,
    lpszTransData1 TYPE string,
    ret_string  TYPE string,   
      l_count TYPE i,
      l_time TYPE sy-uzeit.
      rc_gui type ref to CL_GUI_CONTROL.
    lTxnType = '4001'.                        "----
    transaction type
    lpszTransData = '1234567'.          " -
    trasaction data
    *create object rc_gui.
    create object rc_plutus 'PLUTUSEXCHANGE.EXCHANGEOBJ'(001) no flush. "no flush ."queueonly.
    call method of  rc_plutus  'PL_TriggerTransaction'(002) = lpszTransData1
    exporting
      #1 = lTxnType
      #2 = lpszTransData.
    wait up to 20 seconds.
    write:  ret_string.                        " <----
    Value is not coming
    write:  lpszTransData1.            " <----
    Value is not coming

  • Webdynpro for ABAP versus Enterprise Services

    Hi,
    With ECC 6.0 the WebDynpro for ABAP will be available. After converting my well-known ABAP-dynpro screens to WebDynpro I will have the possibility to expose all R/3 functionality from within the portal.
    Two years from now the Enterprise Services will be there. What will be the reason(s) for using enterprise services instead of WebDynpro for abap to make R/3 functionality available in the portal? I think at the end both functionalities can co-exist but what are the criteria to use one or both methods?
    Greetings Theo

    Theo,
    This is not a discussion relegated to the bar...
    First the short methodology is correct... Id the processes, expose major entry points as Services, orchestrate, publish Service Desc, endpoints, etc., repeat...
    The real question remaining is, if I believe my entire process is incorporated with a single SAP system why would I expose Services (and add the additional layer)? 
    I agree with the comment where if a process completely executes in a single environment there is no need to change its strategy and force it to be an orchestrated set of Service interactions.  That is not inconsistent with providing Service interfaces along the process so that it can be composed into other processes either not yet in place or requiring cross-system interaction.  ESA is not saying "break open the container and make every little piece operate as Enterprise Services", instead it guides us to Service enable components so that others can consume them in a standard way, regardless of implementation / execution environment.
    As we think about leveraging ESA for the benefit of our businesses (our enterprise and the ecosystem of business partners and customers) we have to acknowledge that we do not and will not know where every step of a busines process will execute throughout time.  There may be tremendous value in executing part of a process that could be performed in that same SAP system in a completely different environment.  The main benefit of Service enabling is business agility for a reasonable cost.  I would argue that at least the main entry and exit points to major processes should have Service interfaces, followed by a more comprehensive assessment of internal process steps - looking for opportunities.
    The other side of the equation is determining what additional consumers of the process could be found if major parts of the process exposed Service interfaces.  To say, "my process executes inside this one system, so I should not expose it as a set of Services", ignores the potential benefit of other systems being able to incorporate that process in their execution (or parts of a process).  As we expose more, well defined Services that represent aspects of enterprise business processes we create an environment where there is low cost, opportunistic integration based on standards.
    Or put more briefly, make sure to execute your business process in an efficent computing manner, but do not let that constraint limit your thinking when it comes to Services.  They are two different (yet related) issues.  Services simply give us another way to leverage an asset we already have.  Make the asset available and if it has value to the organization, it will be consumed.
    Hope that helps...
    David

  • Webdynpro for ABAP call non-SAP webservice

    Hi,
    We have a WAS 7.0 ABAP only, Can we use webdynpro for ABAP to call a Notes's webservice or Weblogic's webservice.
    Where can I get the document link?
    Edited by: Jeff Lien on Jan 8, 2008 10:47 AM
    Edited by: Jeff Lien on Jan 8, 2008 10:49 AM

    Hi this will help u.
    Web Dynpro ABAP  
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706
    Hope that the following also helps you.
    Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web
    applications in the ABAP environment. It consists of a runtime environment and a graphical
    development environment with special Web Dynpro tools that are integrated in the ABAP
    Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    The use of declarative and graphical tools significantly reduces the implementation
    effort
    Web Dynpro supports a structured design process
    Strict separation between layout and business data
    Reuse and better maintainability by using components
    The layout and navigation is easily changed using the Web Dynpro tools
    Stateful applications are supported – that is, if the page is changed and the required
    data remains intact so that you can access it at any time throughout the entire
    application context.
    Note that stateless applications are not possible.
    Automatic data transport using data binding
    Automatic input check
    Automatic operation of the Web Dynpro application using the keyboard
    User interface accessibility is supported
    Full integration in the reliable ABAP development environment
    Web Dynpro Architecture
    Definition
    Web Dynpro is the SAP NetWeaver programming model for user interfaces (UIs).
    The Web Dynpro model is based on the Model View Controller paradigm, and has the
    following features that build on the classic dynpro model:
    Clear separation of business logic and display logic
    Uniform metamodel for all types of user interfaces
    Execution on a number of client platforms.
    Extensive platform independence of interfaces
    Structure
    Metamodel Concept
    Web Dynpro provides support for developing Web representation of a business application.
    You use specific tools to describe the properties of a Web Dynpro application in the form of
    Web Dynpro metadata. The necessary source code is then generated automatically and
    executed at runtime. In addition to the events offered by the framework, you can also define
    your own events for a Web Dynpro application. However, the event handling must always be
    programmed in separate source code areas which are executed automatically when the event
    is triggered at runtime.
    In Web Dynpro, each user interface is always made up of the same basic elements. These
    elements of the metamodel can be statically declared using Web Dynpro tools.
    It is also possible to implement elements of the metamodel at runtime and to change them or
    reintegrate them at runtime. Using these implementations, you can make any changes or
    enhancements to a user interface that has been created by declarative methods by
    generating new interface structures at runtime.
    This means that you can combine declarative processes and the implementation of source
    code.
    Graphical Development Tools
    To support this declarative concept, both the SAP NetWeaver Developer Studio and the
    ABAP Workbench contain a range of Web Dynpro tools. You can therefore generate a large
    proportion of a Web Dynpro application using the tools provided, without having to create your
    own source code. This applies to the following parts of the application:
    Data flow between the front end and back end
    Layout of the user interface
    Properties of user interface elements
    The Web Dynpro tools enable you to create source text areas manually within generated
    source texts. These areas are not changed if the source code is regenerated.
    Separation of Business and Application Logic
    Using Web Dynpro enables a clear separation of business logic and display logic. A Web
    Dynpro application runs on the front end and has local or remote access to the back end
    system via a service. This means that the display logic is contained in the Web Dynpro
    application, while the business logic and the persistence of the business objects run in the
    back end system. The following options are currently available for connecting Web Dynpro
    applications and the back-end system:
    An interface generated using adaptive RFC, through which BAPIs of an SAP system
    can be called
    An interface for calling Web services
    A self-generated interface
    The source code required for connecting the Web Dynpro application can be generated
    from a UML definition of the Web Dynpro interface. A UML definition can be imported
    into the Web Dynpro tools as an XML file.
    Conversion of the Model-View-Controller
    Conversion of the Model-View-Controller Programming Model
    Every Web Dynpro application is structured according to the Model View Controller
    programming model:
    The model forms the interface to the back end system and thus enables the
    Web Dynpro application access to data.
    The view is responsible for the representation of the data in the browser.
    The controller lies between the view and the model. The controller formats
    the model data to be displayed in the view, processes the user entries made by the
    user, and returns them to the model.
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    with regards,
    Hema.
    pls give points if helpful.

  • Webdynpro for ABAP materials

    anyone please send me materials for webdynpro for abap which covers webdynpro architecture like mvc controller and everything

    Hi Ganesh,
    Welcome to Web Dynpro ABAP !
    In web dynpro ABAP we follow MVC(Model View Controller) architecture.
    In this object oriented ABAP is used to provide background functionality. Here, your ABAP skills can be utilized to the fullest. Programming in web dynpro ABAP is different than conventional ABAP programming. Here we strictly follow MVC architecture in terms of controller interface. Also there are many wizards available so that we can directly pick the code from wizards.
    e.g We can call BAPI through a service call in web dynpro application. Thus automatically backgroud code for BAPI execution will be generated.
    To start with Web dynpro ABAP you can try following tutorial:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    You can start with tutorials and all. There are around six tutorials in SDN library.
    Web Dynpro for ABAP
    http://help.sap.com/saphelp_erp2005/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/frameset.htm
    best tutorials in wbdynpro for ABAP to start with :
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
    1) This is basic Info of WD ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    2 ) I can give you links that can help you a lot.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Also, SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    there are many more .
    Hope I have helped you .
    Cheers,
    Darshna.

  • Comparison between WebDynpro for ABAP vs. WebDynpro for Java ??

    Hi,
       Can someone tell me when should we go for WebDynpro for ABAP and when WebDynpro for Java. Is there any link where SAP recommends the one for the other.
    Thanks in advance
    Regards
    Mukesh

    Hi Mukesh,
    Both are having its own strengths!! )
    I think it all depends on your project requirement and the availabel resources.
    If the developer is good in OOPs ABAP then he must go for Web Dynpro ABAP. But if anyone is good in JAVA then that person should go for Web Dynpro JAVA.
    *In Short almost all Features supported in webdynpro ABAP are also Possible in webdynpro Java.
    1] Webdynpro Java
    Supports,
    webservice
    RFC Models
    Accessing Portal information in Java
    Easy sending E-mail
    Strictly follows MVC architecture which seperate Business logic and Process flow.
    Webdynpro Java is webbased programming model to develop SAP Applications.
    Easy to learn
    Easy to integrate in Enter prise portals.
    Dynanamic Programming
    *Easy access to R/3 Via RFC technology (Models)
    2] Web Dynpro ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    Hope this helps and solve your Problem
    Cheers,
    Darshna.

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • Excel File Upload In Webdynpro For ABAP

    Hi All,
    I have a doubt regarding EXCEL file upload for Webdynpro for ABAP.
    I am able to get the path of file using 'FILEUPLOAD' UI element.Now I need to upload the EXCEL file into ALV.I have tried out with GUI_UPLOAD and other excel upload function module.But these Function Module throws Dump.
    Can you please suggest how to go about it.It will be a great help if u can suggest any function module or method.

    Hi Amita,
    Insetad of using GUI_UPLOAD use 'HR_KR_XSTRING_TO_STRING'
    Here is the sample code,
    TYPES :BEGIN OF str_itab,
                  name(10) TYPE c,
                  age(10) TYPE c,
                 END OF str_itab.
    DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
           i_data TYPE STANDARD TABLE OF string,
                   lo_nd_sflight TYPE REF TO if_wd_context_node,
                    lo_el_sflight TYPE REF TO if_wd_context_element,
                    l_string TYPE string,
            fs_table TYPE str_itab,
                    l_xstring TYPE xstring,
    fields TYPE string_table,
    lv_field TYPE string.
    DATA : t_table TYPE if_main=>elements_data_tab,
    data_table TYPE if_main=>elements_data_tab.
      * get single attribute
    wd_context->get_attribute(EXPORTING name =  `DATASOURCE`  
                              IMPORTING value = l_xstring ).
    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
    EXPORTING
    in_xstring = l_xstring
    IMPORTING
    out_string = l_string.
    SPLIT l_string  AT
    cl_abap_char_utilities=>newline INTO TABLE i_data.
      * Bind With table Element.
    LOOP AT i_data INTO l_string.
    SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE
    fields.
    READ TABLE fields INTO lv_field INDEX 1.
    fs_table-name = lv_field.
    READ TABLE fields INTO lv_field INDEX 2.
    fs_table-age = lv_field.
    APPEND fs_table TO t_table1.
    ENDLOOP.
    lo_nd_sflight = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_sflight->bind_table( t_table1 ).
      ENDMETHOD.
    if correct give correct answer
    Thanks & Regards,
    Meenachi.R

  • Article: Screen Conversion in WebDynpro for ABAP

    Hi all,
           I want to share with you my first article that i posted in SDN. Looking for your valuable comments...
    Click the below link to read by article. Thanks.
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/screen%20conversion%20in%20web%20dynpro%20abap.pdf">Screen Conversion in WebDynpro for ABAP</a>
    Some of the links in the article are not accessable from the article. The links are given below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712">Getting Started with Web Dynpro for ABAP</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/content.htm">Wizard</a>
    [url=http://help.sap.com/saphelp_erp2005/helpdata/en/73/e5e6418b7eca17e10000000a155106/content.htm]Restrictions[/url]

    HI Hema,
    What i understood from u r query is u want 2 refrsh all ui elements data.
    u can read data from the respective nodes and clear those data.
    Example: I want to delete contents of an ui element on the screen( FULL_NAME ).
    create a buuton REFRESH  on the screen and assicn a action to that button.u wil get a method with that action.write this follwing code in tat method.
    method ONACTIONREFRESH_UI .
        DATA lo_nd_processedby TYPE REF TO if_wd_context_node.
        DATA lo_el_processedby TYPE REF TO if_wd_context_element.
        DATA ls_processedby TYPE wd_this->element_processedby.
        DATA lv_full_name LIKE ls_processedby-full_name.
      navigate from <CONTEXT> to <PROCESSEDBY> via lead selection
        lo_nd_processedby = wd_context->get_child_node( name = wd_this->wdctx_processedby ).
      get element via lead selection
        lo_el_processedby = lo_nd_processedby->get_element(  ).
      get single attribute
        lo_el_processedby->get_attribute(
          EXPORTING
            name =  `FULL_NAME`
          IMPORTING
            value = lv_full_name ).
    clear lv_full_name.
    CALL METHOD lo_el_processedby->set_attribute
      EXPORTING
        value  = lv_full_name
        name   = `FULL_NAME`
    endmethod.
    reward if it is use ful

  • Dynamic form in Webdynpro for ABAP - Context Cardinality question

    Hello -
    I have an adobe form in a webdynpro for ABAP application which I want to be able to be dynamic. Basically I want to be able to use a Webdynpro context node with a cardinality of 1-N and the form will take each node of the context and create a page for each one. I am able to do a static form with a context node that has a 1-1 cardinality, but once I change my cardinality to 1-N on the node the static form no longer works (there is no data). Is what I want to do possible? I've looked through all the documentation I could find and could not get a definite answer. Any help would be appreciated.
    Widget (1-N)
         -Widget_info (1-1)
              *Name
              *Sku
              *Description
         -Widget_plant (1-M)
              *Plant_Code
              *Plant_State
              *Plant_City
         -Widget_pic (1-1)
              *Picture
    ... So I want to have a form which can print a page for each widget in the context (the number of which can vary). That form would have the Name, sku, description, plant_code, plant_state, plant city and the picture on it. (This is just a generic example of what I need to do)
    Regards,
    - Jason

    Ok, I think I found a bug... It seems for adobe forms in WD4A, the root context node must be 1-1 and you must nest the 1-n node within that... Not sure why, but it worked. So in my case my context would look like this:
    FOO_NODE (1-1)
         Widget (1-N)
              -Widget_info (1-1)
                   *Name
                   *Sku
                   *Description
              -Widget_plant (1-M)
                   *Plant_Code
                   *Plant_State
                   *Plant_City
              -Widget_pic (1-1)
                   *Picture

Maybe you are looking for

  • How do i transfer all my iphone music to a new itunes library on a new pc so i can then share it with other devices

    how do i transfer all my iphone music to a new itunes library on a new pc so i can then share it with other devices

  • Medium in Printing PO

    Hi Sir/Ma'am, How to make the medium in PO a Print Output as a default? Is it possible? or a user wants External Send as a default. Please help! Thanks in Advance!

  • Mail quit unexpectedly while using passkit plug-in.

    Before Mail start I get message: Mail quit unexpectedly while using passkit plug-in. Process:         Mail [1078] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      com.apple.mail Version:         7.1 (1827) Build Info:     

  • Auto assigning destinations

    Hello all,      This is my dilemma; I have a PDF file that is fairly large (over 150 pages) and I need them to have a destination on each page where the name of those destinations are the page number itself. Now I could go through each page and set t

  • Mac Pro Burn Problems

    Hello, I have the Mac Pro 1.1 Version. This is the second MacPro I have gotten because The ATI Raedon X1900XT Keeps overheating and shutting the computer down at 120C. When I called Apple the "THIRD" time to get a replacement I asked them to send me