Calling a ztransaction from function module not working

Hi experts,
I have made a ztransaction through SE93 called Z_TRANS.When I am calling this transaction from a program in SE38, it is giving the screen corresponding to the transaction. But when same
Call Transaction 'z_TRANS' is used in SE37 in a function module, program is abending.
Please help...

Hi ,
Also check the 3 check boxes for GUI support.
Regards.

Similar Messages

  • Function Module not working for old Role

    Dears
    Function Module not working for old Role
    Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
    Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
    We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
    Pl check the fucntion module with given roles below and identify the root cause,
    EP_TRVL_ALL_CAB     - Old Role
    EP_TRN_TRVL_DRGC_V2 - New Role
    Regards
    Krishna Mohan CH
    9704500717

    Krishna,
    I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
    What are you trying to achieve? Maybe there's a better way to do that...
    Frank.

  • Calling a report from function module

    Hi Friends,
    I have requirement for Function Module i.e. we will add the button to the standard T-code and ( Function added in config ) then
    Function to be called from Customizing
    Program A called from customizing function
    CalculationPDFFunction  is called from program A.
    So can any one help me the logic for "calling a report from function module  ".
    Thanks in Advance.
    Regards,
    OSReddy.
    Edited by: OSReddy on Sep 23, 2011 7:31 AM

    Hi Jaya,
    Yes. It is possible to call ur custom program using SUBMIT statement.
    1. If u have data to pass then build table type RSPARAMS and use below statement.
    data:
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
    SUBMIT report1 WITH SELECTION-TABLE rspar_tab
                   AND RETURN.
    1. If u want to create variant to the program and use that. use the below statement .
    SUBMIT report1 USING SELECTION-SET 'VAR1' "variant
                   AND RETURN.
    Regards,
    Venkat.O

  • Program making a RFC call to Function Module not working in background

    Hi All,
    I have an ABAP Program which is used to do a reconciliation check between the R/3 and BI system for Invoice Data. Please find below the details of the program flow:
    1.     Program counts the number of records in the DSO table and aggregates the Net_Value based on the date range (passed as parameters)
    2.     Program calls a Function Module (RFC Call) which counts the number of records in the R/3 table and aggregates the Net_Value for the same date range
    3.     Function Module Passes back the count values and aggregated Net_Value to the program
    4.     Program compares the count and aggregated Net_Value from EDWH and MSP systems and sends an email mentioning whether the counts match or not
    However we are facing an issue.
    Whenever, we execute the program in dialog mode, it works fine and fetches results within 5-6 minutes. However if we schedule the program to run in background (parameters through a variant), it gives no results even after running for over 3-4 hours. We tried figuring it out yesterday but could not come to any conclusion. Since there is a RFC call being to the function module, we were wondering if we need to specify some other parameter as well.
    Thanks & Regards
    Dharmendra

    RFC Call is a procedure for executing remote enables function modules. It is done via the 'Remote Enabled' radio button on the function module's attribute screen.

  • Function module not working when used with 'In Background Task'

    hi,
    this is my code
    call function 'Z_IBD_FILL_ZINETACT'
                  in background task
                  destination  'SAPD220125'
                  tables
                      it_net1 = it_net1
                      it_net2 = it_net2
                      it_net3 = it_net3  .
    when this code is executed i am not getting any data in my internal tables i.e it_net1, it_net2, and it_net3
    but i changed this code see the below code
          call function 'Z_IBD_FILL_ZINETACT'
                 in background task (THIS IS COMMENTED)
                  destination  'SAPD220125'
                  tables
                      it_net1 = it_net1
                      it_net2 = it_net2
                      it_net3 = it_net3  .
    now i am getting data into my internal tables
    can any one tell me what can be the problem and how to solve it in my case
    its very urgent

    Hi,
    Pls. go through the  docu..
    CALL FUNCTION
    Variant 5
    CALL FUNCTION func IN BACKGROUND TASK.
    Additions:
    1. ... AS SEPARATE UNIT
    2. ... DESTINATION dest
    3. ... EXPORTING  p1 = f1    ... pn = fn
    4. ... TABLES     p1 = itab1 ... pn = itabn
    Effect
    Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process.
    Note
    This variant applies only as of Release 3.0, so both the client system and the server system must be Release 3.0 or higher.
    Note
    qRFC with Outbound Queue
    This is an extension of tRFC. The tRFC is serialized using queues, ensuring that the sequence of LUWs required by the application is observed when the calls are sent.
    For further information about qRFC, refer to the Serialized RFC: qRFC With Outbound Queue section of the SAP Library.
    Addition 1
    ... AS SEPARATE UNIT
    Effect
    Executes the function module in a separate LUW under a new transaction ID.
    Addition 2
    ... DESTINATION dest
    Effect
    Executes the function module externally as a Remote Function Call (RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed either in another R/3 System or as a C-implemented function module. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    Note
    Note that a database commit occurs at each Remote Function Call (RFC). Consequently, you may not use Remote Function Calls between pairs of statements that open and close a database cursor (such as SELECT ... ENDSELECT).
    Addition 3
    ... EXPORTING p1 = f1 ... pn = fn
    Effect
    EXPORTING passes values of fields and field strings from the calling program to the function module. In the function module, formal parameters are defined as import parameters. Default values must be assigned to all import parameters of the function module in the interface definition.
    Addition 4
    ... TABLES p1 = itab1 ... pn = itabn
    Effect
    TABLES passes references to internal tables. All table parameters of the function module must contain values.
    Notes
    If several function module calls with the same destination are specified before COMMIT WORK, these normally form an LUW in the target system. Calls with the addition 1 are an exception to this rule - they each have their own LUW.
    You cannot specify type 2 destinations (R/3 - R/2 connections).
    (See Technical details and Administration transaction.)
    Example
    REPORT  RS41503F.
    /* This program performs a transactional RFC.
    TABLES: SCUSTOM.
    SELECT-OPTIONS: CUSTID FOR SCUSTOM-ID DEFAULT 1 TO 2.
    PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT 'NONE',
                MODE DEFAULT 'N',
                TIME LIKE SY-UZEIT DEFAULT SY-UZEIT.
    DATA: CUSTITAB TYPE TABLE OF CUST415,
          TAMESS   TYPE TABLE OF T100,
          WA_CUSTITAB TYPE CUST415.
    SELECT ID NAME TELEPHONE INTO CORRESPONDING FIELDS OF TABLE CUSTITAB
                   FROM SCUSTOM WHERE ID IN CUSTID ORDER BY ID.
    PERFORM READ_CUSTITAB.
    EDITOR-CALL FOR CUSTITAB TITLE 'Editor for table CUSTITAB'.
    PERFORM READ_CUSTITAB.
    CALL FUNCTION 'TRAIN415_RFC_CALLTRANSACTION'
         IN BACKGROUND TASK
         DESTINATION DEST
         EXPORTING
              TAMODE    = MODE
         TABLES
              CUSTTAB   = CUSTITAB.
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
         EXPORTING
              STARTDATE = SY-DATUM
              STARTTIME = TIME
         EXCEPTIONS
              OTHERS    = 1.
    IF SY-SUBRC = 1.
      EXIT.
    ENDIF.
    COMMIT WORK.
    CALL TRANSACTION 'SM58'.
          FORM READ_CUSTITAB                                   *
    FORM READ_CUSTITAB.
      WRITE: / 'System ID:', SY-SYSID.
      SKIP.
      LOOP AT CUSTITAB into WA_CUSTITAB
        WRITE: / WA_CUSTITAB-ID, WA_CUSTITAB-NAME,
                 WA_CUSTITAB-TELEPHONE.
      ENDLOOP.
      ULINE.
    ENDFORM.
    Pls. reward if useful....

  • Function Module not working as required

    Hi,
    I am currently using a function module HR_FBN_GENERATE_SEND_EMAIL which sends mail to external sources from a standard SAP screen.
    The fm seems to be working fine if its run from within a report program, but isnt executing when is run from within a PAI module.(code same in both).
    Could anyone throw some light on a solution to this issue.
    Also,this module doesnt seem to allow sending of mails on a specified date. How can i incorporate that or alternatively is there an existing fn module which will send mails out on a specified date with specified content?
    Will def shell out loads of points to solutions that help...
    Cheers,
    Preethi...

    HI,
    Here is the code to send the mail from ABAP
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
    *       Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
    *       Send email message
    form send_email_message.
    * Fill the document data.
      gd_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    * Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    * Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    * Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_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.
    * Store function module return code
      gd_error = sy-subrc.
    * Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
    *       Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    If you look at the function module, you will get the field to pass the date also
    Regards
    Sudheer

  • Function module not working

    Hi All,
    I have created a function module it is working fine by executing it self,when I am calling it into any program it is not working it means it is not fetching data from table I passed correct parameters I don't know what was the problem any one can help me in this.
    Thanks&regds,
    Sree.

    There is no leading zeros here I am giving my funtion module code.
    *function zmm_vendor.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(P_VENDOR) TYPE  LFA1-LIFNR
    *"  TABLES
    *"      P_VENDOR_DATA STRUCTURE  ZVENDOR_DATA
    tables : lfa1,lfm1.
    data flag(1) type c.
    types : begin of ty_lfm1,
            lifnr like lfm1-lifnr,
            "ekorg LIKE lfm1-ekorg,
            "erdat LIKE lfm1-erdat,
            ernam like lfm1-ernam,
            lfabc like lfm1-lfabc,
            waers like lfm1-waers,
            minbw like lfm1-minbw,
            webre like lfm1-webre,
            kalsk like lfm1-kalsk,
            ekgrp like lfm1-ekgrp,
            lipre like lfm1-lipre,
            end of ty_lfm1.
    types : begin of ty_lfa1,
            lifnr like lfa1-lifnr,
            name1 like lfa1-name1,
            ort01 like lfa1-ort01,
            ort02 like lfa1-ort02,
            adrnr like lfa1-adrnr,
            end of ty_lfa1.
    types : begin of ty_adr6,
            addrnumber like adr6-addrnumber,
            smtp_addr like adr6-smtp_addr,
            end of ty_adr6.
    types : begin of ty_lfb1,
            akont like lfb1-akont,
            zwels like lfb1-zwels,
            zterm like lfb1-zterm,
            fdgrv like lfb1-fdgrv,
            reprf like lfb1-reprf,
             end of ty_lfb1.
    types : begin of ty_display,
            sel,
            lifnr like lfm1-lifnr,
            ekorg like lfm1-ekorg,
            erdat like lfm1-erdat,
            ernam like lfm1-ernam,
            lfabc like lfm1-lfabc,
            smtp_addr like adr6-smtp_addr,
            waers like lfm1-waers,
            minbw like lfm1-minbw,
            webre like lfm1-webre,
            kalsk like lfm1-kalsk,
            ekgrp like lfm1-ekgrp,
            lipre like lfm1-lipre,
            name1 like lfa1-name1,
            ort01 like lfa1-ort01,
            ort02 like lfa1-ort02,
            akont like lfb1-akont,
            zwels like lfb1-zwels,
            zterm like lfb1-zterm,
            fdgrv like lfb1-fdgrv,
            reprf like lfb1-reprf,
            end of ty_display.
             INTERNAL TABLES DECLARATION
    data: t_lfm1 type standard table of ty_lfm1 with header line,
          t_lfa1 type standard table of ty_lfa1 with header line,
          t_display type standard table of ty_display with header line,
           t_lfb1 type standard table of ty_lfb1 with header line,
           t_adr6 type standard table of ty_adr6 with header line.
             WORK AREAS DECLARATION
    data: wa_lfm1 type ty_lfm1,
          wa_lfa1 type ty_lfa1,
          wa_adr6 type ty_adr6,
          wa_lfb1 type ty_lfb1,
          wa_display type ty_display.
    select lifnr
             ekorg
             erdat
             ernam
             lfabc
             waers
             minbw
             webre
             kalsk
             ekgrp
             lipre from lfm1
             into  corresponding fields of table t_lfm1
             where lifnr = p_vendor.
        if t_lfm1[] is not initial.
      select lifnr
             name1
             ort01
             ort02
             adrnr from lfa1
             into corresponding fields of table t_lfa1
             for all entries in t_lfm1
             where lifnr =  t_lfm1-lifnr.
         endif.
        if t_lfm1[] is not initial.
        select addrnumber smtp_addr from adr6
               into table t_adr6
               for all entries in t_lfa1
               where  addrnumber = t_lfa1-adrnr.
          endif.
          if t_lfm1[] is not initial.
        select akont
               zwels
               zterm
               fdgrv
               reprf from lfb1
               into table t_lfb1
               for all entries in t_lfm1
               where  lifnr = t_lfm1-lifnr.
          endif.
      loop at  t_lfm1 into wa_lfm1.
        move  wa_lfm1-lifnr to t_display-lifnr.
         "move   wa_lfm1-ekorg to  wa_display-ekorg.
        " move   wa_lfm1-erdat to wa_display-erdat.
         move   wa_lfm1-lfabc to  t_display-lfabc.
         move   wa_lfm1-waers to  t_display-waers.
         move   wa_lfm1-minbw to  t_display-minbw.
         move   wa_lfm1-webre to  t_display-webre.
         move   wa_lfm1-kalsk to  t_display-kalsk.
         move   wa_lfm1-ekgrp to  t_display-ekgrp.
         move   wa_lfm1-lipre to  t_display-lipre.
         "append  wa_display to t_display.
      read table t_lfa1  into wa_lfa1 index 1 .
      if sy-subrc = 0.
        move wa_lfa1-name1  to t_display-name1.
        move wa_lfa1-ort01  to t_display-ort01.
        move wa_lfa1-ort02  to t_display-ort02.
       endif.
    read table t_adr6  into wa_adr6 index 1 .
    if sy-subrc = 0.
        move wa_adr6-smtp_addr  to t_display-smtp_addr.
    endif.
    read table t_lfb1  into wa_lfb1 index 1 .
      if sy-subrc = 0.
        move wa_lfb1-akont  to t_display-akont.
        move wa_lfb1-zwels  to t_display-zwels.
        move wa_lfb1-zterm  to t_display-zterm.
        move wa_lfb1-fdgrv  to t_display-fdgrv.
        move wa_lfb1-reprf  to t_display-reprf.
    endif.
    append   t_display.
    exit.
    "clear  wa_display.
    "clear t_display.
    endloop.
    delete adjacent duplicates from  t_display comparing lifnr.
         move  t_display-lifnr to p_vendor_data-lifnr.
         "move   t_display-ekorg to  P_VENDOR_DATA-ekorg.
        " move   t_display-erdat to P_VENDOR_DATA-erdat.
         move   t_display-lfabc to  p_vendor_data-lfabc.
         move   t_display-waers to  p_vendor_data-waers.
         move   t_display-minbw to  p_vendor_data-minbw.
         move   t_display-webre to  p_vendor_data-webre.
         move   t_display-kalsk to  p_vendor_data-kalsk.
         move   t_display-ekgrp to  p_vendor_data-ekgrp.
         move   t_display-lipre to  p_vendor_data-lipre.
         move   t_display-name1  to p_vendor_data-name1.
         move   t_display-ort01  to p_vendor_data-ort01.
         move   t_display-ort02  to p_vendor_data-ort02.
         move   t_display-smtp_addr  to p_vendor_data-smtp_addr.
         move   t_display-akont  to p_vendor_data-akont.
         move   t_display-zwels  to p_vendor_data-zwels.
         move   t_display-zterm  to p_vendor_data-zterm.
         move   t_display-fdgrv  to p_vendor_data-fdgrv.
         move   t_display-reprf  to p_vendor_data-reprf.
         append p_vendor_data.
    endfunction.*
    but after calling this into my program it is not working here is my program.
    report ZTEST.
    parameters : zvendor like lfm1-lifnr.
    data : begin of ty_display occurs 0,
           lifnr like lfm1-lifnr,
           ekorg like lfm1-ekorg,
           erdat like lfm1-erdat,
           ernam like lfm1-ernam,
           lfabc like lfm1-lfabc,
           smtp_addr like adr6-smtp_addr,
    waers like lfm1-waers,
           minbw like lfm1-minbw,
           webre like lfm1-webre,
           kalsk like lfm1-kalsk,
           ekgrp like lfm1-ekgrp,
           lipre like lfm1-lipre,
           name1 like lfa1-name1,
           ort01 like lfa1-ort01,
           ort02 like lfa1-ort02,
           akont like lfb1-akont,
          zwels like lfb1-zwels,
          zterm like lfb1-zterm,
          fdgrv like lfb1-fdgrv,
          reprf like lfb1-reprf,
          end of ty_display.
    CALL FUNCTION 'ZMM_VENDOR'
    EXPORTING
      p_vendor            = zvendor
    tables
      p_vendor_data       = ty_display
    loop at ty_display.
    write : / ty_display-ort01.
    endloop.
    Thanks and Regds,
    Sree.

  • Calling the procedure from URL is not working

    Hi Experts,
    We are in the process of 11i to R12 upgrade of oracle EBS system.
    In 11i they have done some personalization in the form which will trigger a URL and a notfication will open in the browser.
    11i url
    HTTPS://abc.xyz.t.COM:8070/PLS/abc/XXM_PO_NOTIFICATION_PREVIEW.SHOW?P_PO_HEADER_ID=1711&p_type=PO
    r12 url
    HTTPS://abcr12.xyz.t.COM:8070/PLS/abcr12/XXM_PO_NOTIFICATION_PREVIEW.SHOW?P_PO_HEADER_ID=1711&p_type=PO
    The URL is calling the function XXM_PO_NOTIFICATION_PREVIEW.SHOW by passing the parameters and it is working fine in 11i.
    In r12 it is constructing the correct URL but when the page opens it is saying page not found.
    My question is when we pass call the package in browser URL..does it  executes?
    We have put some debug message in the package but it is not getting pritntig.
    Many Thanks
    Bharat

    Page not found (404) is a generic error from the web server. It simply says something went wrong when it serviced that URL from the browser - not what exactly went wrong.
    You need to look in the error log of the Apache server for the details.
    Assuming a standard OHS (Oracle HTTP Server) install. The URL contains a DAD (Database Access Descriptor) - in your case it is abcr12.  This DAD will be defined in the Apache config file called dads.conf in the mod_plsql directory.
    Part of the DAD definition will be an Oracle username, password, and Oracle connection string (typically TNSFormat).
    The error you see on the browser side is often due to this DAD connection and authentication details failing. E.g. Oracle schema is locked. Oracle password is wrong. TNS connection string requests a non-existing service from the Oracle Listener. Etc.
    But it would make sense to first confirm that this is indeed a connectivity error, via the Apache error log.

  • Calling Web Service from Function Module

    dear all
    i am new to SAP.
    i have a web Service developed with .net and C#.
    i want to call this web Service from inside a function module.
    how can i do this ?
    thanks,

    Hi Ramzy,
    Please browse through chrome or sdn , there is a lot of documents and discussions, any how find the below URL, which might be helpful.
    Create an SAP Web Service Consumer (calling External Web Service from ABAP)
    Create a Function Module and full the below Code :
    Sample code :
    DATA: http_client TYPE REF TO if_http_client,
          host_str TYPE string VALUE 'www.myservice.in',
          service_str TYPE string,
          path TYPE string VALUE  'my path',
          errortext TYPE string. "used for error handling
    DATA  : wf_string1 TYPE string,
             lw_inputs TYPE string,
             error_text type string,
             subrc TYPE SY-SUBRC,
             lw_outputs TYPE  string.
    CALL METHOD cl_http_client=>create_by_url
      EXPORTING
        url                = 'myurl'
      IMPORTING
        client             = http_client
      EXCEPTIONS
        argument_not_found = 1
        plugin_not_active  = 2
        internal_error     = 3
        OTHERS             = 4.
      IF sy-subrc <> 0.
    *  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~request_method'
        value = 'POST'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~server_protocol'
        value = 'HTTP/1.1'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~request_uri'
        value = 'mypath'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = 'Content-Type'
        value = 'application/soap+xml; charset=utf-8'."'text/xml; charset=utf-8'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = 'Content-Length'
        value = '19000'."txlen.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = 'SOAPAction'
        value = 'myURL'.
    concatenate 'data u need sned' into wf_string
    CALL METHOD http_client->request->set_cdata
      EXPORTING
        data   = wf_string1
        offset = 0
        length = '19000'.
    Regards,
    Lokeswar.

  • Function Module not working through VC

    Hi Experts
    I am facing one strange issue while working on VC model with function module as data service.
    This FM is to writes data to bcak end BI master data table which is working fine through BI. When i pass the values through VC, New values are not reflecting in BI table. I tried passing values through form / table but still its not working. Also we have system generated message which show success / failure of FM & the changed values as output after execution of FM. Which i am getting success message every time i pass values.
    Currently i am working on VC 7.01 & SP6 with Flash compiler.
    Please guide me if you have face this issue.
    Thanks
    Sandeep

    Hi Sandeep,
    Try to put a breakpoint in your FM and check whether you are sending correct values and the values saving or not.
    Thanks,
    Pradeep

  • DOWNLOAD function module not working in Portal

    Hello,
    We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
    I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
    Anyone face this issue? Please advice possible resolutions.
    Thanks!

    Correct, but the following thread got me started:
    Adobe Acrobat Reader and MIME-DOWNLOAD
    Rob

  • DOWLOAD function module not working in Portal

    Hello,
    We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
    I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
    Anyone face this issue? Please advice possible resolutions.
    Thanks!

    check the following thread where your issue is discussed before
    Re: webgui - unwanted msg screens during save of local file
    you should use GUI_DOWNLOAD  - this FM will work both in SAP gui environment and ITS environment.
    Regards
    Raja

  • Enhanced function module not working

    Hi guys,
    There's a requirement in my project to add new fields to the standard ESS > Personal Data iView and as well as add in additional validations along with the standard validations. I've thus asked an ABAP developer to
    - add in the new fields to Hcmt_Bsp_Pa_xx_R0002 and
    - make a duplicate of function module Hrxss_Per_Modify_P0002_xx to Z_Hrxss_Per_Modify_P0002_xx where my developer has coded in additional validations.
    Then, I
    - Import these into the Model classes
    - Remapped the context nodes (ModifyInfoype) of FcPerPersonalxx to map to Z_Hrxss_Per_Modify_P0002_xx
    - Did code change to method modifyRecord() in FcPerPersonalxx.
    Result: The new fields are reflected. However, the additional validations don't work. The standard validations are working. Is there any filtering at Webdyn pro Java side that filters only certain msgs? Can anyone help pls?
    Edited by: zhenmin wang on Jul 25, 2008 5:49 AM

    Hi Zhenmin,
                   If I understood your problem correctly, you are getting framework validation messages instead of custom developed validation  messages. The reason is this
    Web Dynpro validations are of two types.
    1. Framework handled 2. Custom developed.
    Framework handled validations get more priority than the custom developed validations.
    Regards,
    Siva

  • Calling Sub-Templates from a Template not working

    I have a Template that I want to call a multiple Sub-Templates, and the Sub-Templates actually define an entire report. After I load the Data and try to preview I get the following error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 39, Column 62>: XML-22049: (Error) Template 'MWAC_JOB_RTG' invoked but not defined.
    Can someone tell me what this means? Is what I'm trying to do even possible?

    Is the sub template accessible by the main template? Have you included the import statement in your main template?
    Thanks!
    BIPuser

  • Calling a remote enabled function module which does not exist in caller sys

    Hi,
    I have a a system ABC from which I am trying call a rfc enabled fm(Test) present in system XYZ.
    The fm(Test) does not exist in the system ABC so I am getting generation errors and dumps.
    Is there a way for me to call these remote enabled function modules which does not exist in the caller system without the obvious errors etc.
    Is there any special way.
    Thanks

    Hi,
    please check this sample:
    REPORT  zcallfm                                 .
    DATA: xv_return TYPE sysubrc.
    CALL FUNCTION 'DOESNOTEXIST'
    DESTINATION   'NOWHERE'
    EXPORTING     caller                = sy-sysid
    IMPORTING     return                = xv_return
    EXCEPTIONS    system_failure        = 1
                  communication_failure = 2
                  OTHERS                = 4.
    It shouldn't throw any generation errors in your system!
    Regards,
    Klaus

Maybe you are looking for

  • Implicit and Explicit Enhancement

    Hi Gurus , Can anyone please let  me know about what is  implicit enhancement and explicit enhancement.Steps involved in the same . Thanks ... ashok...

  • Reason code 34952

    hello in reports i have seen reason code 34952 but i do not see 34952 in predefined codes in ucce admin guide. this code not put in by us and does not show in registry keys. has any body seen 34952 before? we use cad 9 -aashish

  • EP6.0 SPS16, scheduler doesn't start

    Hi. we have some troubles with portal scheduler on the EP 6.0 SPS16, PATCH2 CM&Coll SPS16 (non-cluster environment). Because of some reasons the portal sheduler doesn't work. In Monitoring->Knowledge Management->Component Monitor is just the error me

  • [Solved] Change tray icons in tint2?

    Is it possible? I have volwheel and wicd-client down there full-time and they aren't the best looking icons around. Last edited by herrvideman (2010-09-06 04:15:01)

  • Head hunting

    A lot of bandwidth in this mailing list has been devoted to the question of recruitment postings. At the risk of making the problem worse, I would like to express my opinion against these. I have enough miles on my chassis to know that it is more com