Send Email with Webdynpro for Abap

Hi,
i want to send an email without a attachment after the customer has filled a form.
The Webdynpro for Abap action must send a notification Email to the
service department about these new request.
Has anyone an example how to send an email with Webdynpro for Abap.
Thanks
Thomas

Hi Micky,
thanks for your help. I trying to used the SO_NEW_DOCUMENT_SEND_API1 in
a action of my webdynpro for Abap. But I getting the error message that a structure parameter responce an error.
Here the Code of the Action:
DATA HEADER TYPE TABLE OF STRING.
DATA RECEIVERS TYPE STRING.
RECEIVERS = 'my-mailadress'.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
    DOCUMENT_DATA          = 'nothing'.
  DOCUMENT_TYPE          = 'RAW'
  PUT_IN_OUTBOX             = ' '
  COMMIT_WORK              = ' '
IMPORTING
  SENT_TO_ALL                 =
  NEW_OBJECT_ID            =
  TABLES
    OBJECT_HEADER           = HEADER.
  OBJECT_CONTENT         =
  CONTENTS_HEX             =
  OBJECT_PARA               =
  OBJECT_PARB               =
    RECEIVERS                    = RECEIVERS.
EXCEPTIONS
  TOO_MANY_RECEIVERS                     = 1
  DOCUMENT_NOT_SENT                       = 2
  DOCUMENT_TYPE_NOT_EXIST            = 3
  OPERATION_NO_AUTHORIZATION       = 4
  PARAMETER_ERROR                          = 5
  X_ERROR                                            = 6
  ENQUEUE_ERROR                              = 7
  OTHERS                                              = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
What's wrong ?
Thanks for your help.
Thomas

Similar Messages

  • Offline Interactive PDF Forms Using EMail with WebDynpro for ABAP

    These is a tutorial on implementing Offline Interactive PDF Forms using Email to both send out and receive the form back using WebDynpro for Java.
    Is it possible to implement the same using WebDynpro for ABAP, specifically receiving the forms via email server.
    Regards,
    Mark

    Hi Mark,
    Check this out :
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    Go to section :
    Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
    and for the ABAP WebDynpro :
    SAP Interactive Forms by Adobe in Web Dynpro for ABAP (Session 3A) .
    I managed to make it work in my internal sytem.
    Goodluck.
    Cheers,
    Danny

  • 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

  • OCI with WebDynpro for ABAP in SRM 5.0

    Hi there,
    Can somebody tell me how the OCI interface has to be controlled in SRM 5.0 when free order forms are made with WebDynpro for Abap ?
    Thanks.

    You have posted your message to the wrong forum. This forum is for SRM eSourcing.

  • Storing data in data bag with webdynpro for abap

    Hi,
    It´s possible to store data in data bag with webdynpro for abap?
    The EPCF client data bag API provide methods to store data in a transient data buffer on the client:
                               EPCM.storeClientData(nameSpace, name, value)
    Does webdynpro for abap has an equivalent method?
    Thanks,
    Márcio

    Web Dynpro ABAP can produce a portal event and pass parameters along with the event. These parameters can be read by any event receiver.  However you don't have directly access to the data bag as you describe. Here is a link to the help on the Portal Event API:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/da/f96f4132f15c58e10000000a1550b0/frameset.htm

  • How to read some images from file system with webdynpro for abap?

    Hi,experts,
    I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
    How to read some images from file system with webdynpro for abap?
    Thanks a lot!

    Hello Tao,
    The parameter
       icm/HTTP/file_access_<xx>
    may help you to access the pictures without any db-access.
    The following two links may help you to understand the other possibilities as well.
    The threads are covering BSP, but it should be useful for WebDynpro as well.
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
    Best regards
    Christian

  • Tools to upload data into SRM 7.0 with webdynpro for ABAP

    Hi,
    Webdynpro for abap is used in SRM70.
    I need to load data in SRM70 (product category...).
    ECATT is not working with web dynpro for abap.
    What other tools can i use to load data in SRM70 ? LSMW ?
    I would like to avoid to create a Z program to load data into SRM70...
    Thanks,
    Kind regards,
    Yann

    Hello Yann.
    welcome . we read your wonderful threads and they are useful to coomunity forever.
    I am not aware much.
    Product category is a permanent data right . i think we may not frequently change the data right.
    Does your business want very  frequent update on product category?
    I believe if we make frequent changes/modify  of data we may use LSMW .
    i think your zprogram is a best method to upload the product category.
    As you aware we can not change the product category as per standard.For eg. If i create a local product category /hierarchy .Even i can not rename them.
    category/hierarchy creation are one time activity in SRM.
    please correct me.
    regards
    Muthu

  • SAP standard example to get start with Webdynpro for ABAP

    Hi,
    I just started learning Webdynpro for ABAP.
    I'm looking for SAP standard buit in applilcation example which explains all the the view controls, properties and Layout desining.
    please let me know the standard applications of SAP for learning.
    Many Thanks,
    Gupta

    hi..
    just go to package SWDP_DEMO, it has all sample webdynpro applications using all UI elements.
    By the way...question is posted in wrong forum
    Regards
    Manas Dua

  • Firefox 3..7 problems with webdynpro for abap

    Hello,
    webdynpro for abap is not running in firefox 3.7 alpha.
    Is the problem known?
    Regards
    Oliver

    That isn't even a final release level of the browser - so it of course woudn't be supported.  Check the PAM (Product Availability Matrix) http://service.sap.com/pam for the latest supported browser versions.  Often you need the latest support package in order to have correct rendering on newer versions of the browsers.

  • Send Email  in webdynpro for java

    Hi friends,
    I am having  a scenario in my application to send a mail . i am following the below code .I am not facing any errors but mail is not  sent. even my SMTP host name also  correct.
    try{
            InitialContext ctx = new InitialContext();
            Properties props = new Properties();
            props.put("mail.smtp.host","172.16.22.14");
            Session sess = Session.getInstance(props);
            Message message = new MimeMessage(sess);
            message.setFrom(new InternetAddress(wdContext.currentContextElement().getCreatedBy()+"@accenture.com"));
            String recepient = "[email protected]";
            message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
            String subject = wdContext.currentTasksBeanElement().getType();
            message.setSubject(subject);
            String content = wdContext.currentTasksBeanElement().getDescription();
            message.setContent(content,"text/plain");
         //       Send the message
            Transport.send(message);
            msgMgr.reportSuccess(" Mail has been sent successfully");
         }catch(Exception e)
              msgMgr.reportSuccess(" Error occured in Email Sending"+e.getMessage());
    could any body please  look in to this and  reply  ASAP
    Thanks and regards
    Ratnakar reddy

    Hai ,
    Try this one
    try
           Properties props = System.getProperties();
           props.put("mail.smtp.host","172.16.22.14");
           Session session = Session.getDefaultInstance(props, null);
           Message msg = new MimeMessage(session);
           msg.setFrom(new InternetAddress(wdContext.currentContextElement().getCreatedBy()+"@accenture.com"));
           msg.setRecipients(Message.RecipientType.TO,
           InternetAddress.parse("[email protected]", false));
           msg.setSubject(wdContext.currentTasksBeanElement().getType());
           msg.setText(wdContext.currentTasksBeanElement().getDescription());
           msg.setHeader("X-Mailer", "Email");
           msg.setSentDate(new Date());
             Transport.send(msg);
          msgMgr.reportSuccess("Message sent OK.");
         catch (Exception ex)
           ex.printStackTrace();
    Regards,
    Naga

  • Office (Open or MS) integration with Webdynpro for ABAP

    Hi Guys,
    I want to ask:
    - how may I read an Excel file (contains a few worksheets) into internal table type string, so I can manipulate what user has input in the file ?
    I know it can be done by converting the Excel file into XML file and read the file.
    The thing is, I don't want to have go by using XML file.
    Is it possible to be done ?
    Thanks a lot,
    Tony

    Hi Tony,
    Am not so sure if this requirement is 100% feasible. But you can check out the
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm">Office Controls</a> in WDA.
    Regards
    <b>Raja Sekhar</b><i></i>

  • IS Webdynpro for ABAP/JAVA is same?

    Hi Friends,
    I'm a SAP technical consultant. I would like to learn webdynpro for ABAP. Can anyone of you tell me webdynpro for ABAP and webdynpro for JAVA are same? with webdynpro for ABAP Can we acheive what we can do with webdynpro for JAVA?
    Thanks in advance,
    venkat.

    hi,
    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
    Web Dynpro is available both in the Java and the ABAP development environment.
    Web Dynpro for Java
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    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

  • How to send a mail in webdynpro for abap

    Hi experts,
    Am working on webdynpro for abap. My requirement is to send a mail to end-user, he 'l fill that form and send it to me back. once I received that mail I 've to convert that pdf into xml and 've to parse that xml file and pass those values to bapi (everything in webdynpro). how can i proceed, its urgent to me. I dont want exact answer jst some inputs to proceed will help to me thank you.

    I think it's easier to accomplish with workflow.
    You can send workitems and receive them. Search sap help for functionality on offline approval, you can use a lot of the functionality of that one.
    Regard, Rob Dielemans

  • E-mails with Interactive Forms by WebDynpro for ABAP

    Hello,
    I plan to use WebDynpro for ABAP and Adobe Interactive Forms.
    I want to send e-mails with PDF files which are created by Interactive Forms.
    Please let me know
    - How to send e-mails by WebDynpro for ABAP
    - How to attach PDF files.
    Best regards,
    Koji

    Thanks,
    I checked WDR_TEST_MAILT, but I want to know is
    how to send e-mails using ABAP method because
    in my case addresses and some data are stored add-on tables, and extract them on e-mails.
    Regards,
    Koji

  • 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

Maybe you are looking for

  • Error while translating SQLJ files containing SDO objects in JDeveloper

    I have a problem with the JDeveloper environment. When I try to make a sqlj file containing an oracle.sdoapi.geom.Geometry object I get the following error message: JniPortal for D:\Program Files\Oracle\JDeveloper 3.2.3\java1.2 \jre\bin\OJVM\jvm.dll

  • Displaying number in text

    Hi, I want to display the number (ex:99) as ninety nine on screen, Thanks in advance. Prakash

  • Gray out or disable text box

    Hi,      I have a drop down menu called CN_Entry_Initials that has options of a "C" or an "N". I also have a text box called Part_Number to enter a part number into. I want the Part Number text box to be grayed out or disabled until either a "C" or a

  • Windows 8 Pro, No Disk Drive

    I have installed windows 8 pro onto my mac successfully, however the optical disk drive is not recognized? Works fine on the Mac side of things, but when I boot up Windows there's no signs of any disk drive being there. Anybody know of any way to get

  • Uccx 8.5.1.11003-32 scripting problems

    Hello, I have a UCCX script that was created when I was running version 5 of CCX but now I've upgraded to version 8.5 and the script no longer works correctly.  I was able to get all of my other scripts to work but not this one.  Its main function is