Function module parameters

using the function module WDY_EXECUTE_IN_PLACE
to call web dynpro what is the parameter internalmode and  how is it used?
thanks

Hi,
This function module is used to execute the Web Dynpro Application manually. Well, this parameter is used to set the execution type, if the INTERNAL MODE is 'X' then the application executes in SAP GUI itself.If not set, then the application is executed in a browser.
Hope this helps.
Regards
Raja Sekhar

Similar Messages

  • Problem in  using function module parameters in abap program

    i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND'  i got the problem using the function module parameters in my abap program.
    these are the parameters inside fm
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(I_FIELDCAT) TYPE  AIND_FCAT
    *"             VALUE(I_FIELDS) TYPE  TABLE OPTIONAL
    *"             VALUE(I_OBLIGATORY_FIELDS) TYPE  TABLE OPTIONAL
    *"       EXPORTING
    *"             VALUE(E_INFOSTRUC) TYPE  AIND_DESC
    *"             REFERENCE(E_ALL_FIELDS) TYPE  TABLE
    *"             REFERENCE(E_MATCHING_FIELDS) TYPE  TABLE
    *"       EXCEPTIONS
    *"              NO_INFOSTRUC_FOUND
    i want to declare     E_ALL_FIELDS  parameter    in my abap program,
    i have declared as 
    data: E_ALL_FIELDS TYPE TABLE.
    but   the system throws error that
    'type of field 'TABLE'  is generic .no table line has been specified'.
    i want to use it in my abap program how can i declare in my abap program .

    You have to declare the table using any specific type.
    The type table in the FM is generic so you can pass any type you need.
    For instance:
    TYPES: BEGIN OF ty_fields,
             fieldname LIKE dfies-fieldname,
           END OF ty_fields,
    TYPES: TY_T_GLU1              LIKE GLU1                     OCCURS 0,
           ty_t_fields            type ty_fields                occurs 0.
      DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
            lt_matching_fields    TYPE ty_t_fields WITH HEADER LINE.
        CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
             EXPORTING
                  i_fieldcat         = ft_fieldcat-fieldcat
                  i_fields           = ft_fields_filled[]
             IMPORTING
                  e_infostruc        = lv_info_struct_name
                  e_all_fields       = lt_info_struct_fields[]
                  e_matching_fields  = lt_matching_fields[]
             EXCEPTIONS
                  no_infostruc_found = 1.

  • Type conflict in function module parameters

    Hi All,
    i hve to pass dynamic field <dyn_field> into function module parameters but  it's giving a dump for type conflict.
    where VALUE2  data type in 'AUTHORITY_CHECK' is UST12-VON but if i define <dyn_field> type UST12-VON . then it'll give dump in *ASSIGN COMPONENT  SECURITY_TABLE-FIELDNAME  of structure <wa> to <dyn_field> *.
    SECURITY_TABLE-FIELDNAME  data type is different with UST12-VON .
    pls guide me how to pass *<dyn_field> in fm parameters.
    FIELD-SYMBOLS: <dyn_field> type any.
      LOOP AT <DYN_TABLE_IN> INTO <WA>.
            ASSIGN COMPONENT  SECURITY_TABLE-FIELDNAME  of structure
                 <wa> to <dyn_field> .
            CALL FUNCTION 'AUTHORITY_CHECK'
              EXPORTING
                USER                = QUSER
                OBJECT              = SECURITY_TABLE-AUTHOBJCT
                FIELD1              = 'ACTVT'
                VALUE1              = '03'
                FIELD2              = SECURITY_TABLE-FIELDNAME
                VALUE2              = <dyn_field>

    Hi anuj ,,
    Can you explauin the solution ..
    Regards

  • Function module parameters mapping

    Hi Expert,
    We are working on a  upgradation tool in which i have to repace the obsolete function module "HELP_VALUES_GET_WITH_CHECKTAB
    " by "F4IF_FIELD_VALUE_REQUEST
    ". I am not sure about the functionalities of these function modules as i have never used it. Can anyone please help me  by providing some information abt  these FMs. Also i need to do the mapping of parameters of old and new function module. So please provide the details of mapping also. Any pointers on this will be highly appreciated.
    Thanks & Regards,
    P Sharma
    Moderator message : Duplicate post locked.  Read forum rules before posting.
    Edited by: Vinod Kumar on Jul 8, 2011 9:55 AM

    please check the below link.
    http://wiki.sdn.sap.com/wiki/display/ERP6/FMHELP_VALUES_GET_WITH_TABLEobsoleteReplacewith+F4IF_INT_TABLE_VALUE_REQUEST
    Edited by: SAP2011 on Jul 8, 2011 4:17 AM

  • Retrieving of Function Module parameters dynamically

    There is a function module with import and export parameters, I need to pick up the complete structure of the Header Data using a select statement.
    ex: Function Module with import paremeters I1, I2 ..... table parameters t1, t2 .....
    Select from 'Z' table into var .....
    result of this select query is var = 'I1'.
    now there is a macro swc_set_element
    1st parameter = itab
    2nd parameter = var
    now i need to generate 3rd parameter 'I1' dynamically which is an import parameter.
    Edited by: Gaurang Gujar on May 2, 2011 8:04 AM

    Hi.,
    Using Class CL_FB_FUNCTION_UTILITY u can get the Function Module Details.,
    Check this Wiki.,  [Extracting FM details using Class|http://wiki.sdn.sap.com/wiki/display/ABAP/ExtractingFunctionModuleDetailsusingClass-+CL_FB_FUNCTION_UTILITY]
    Also Check these Function Modules:
    FUPARAREF
    FUPARAREF_ENHA " Parameters of Function Modules
    Hope this helps u.,
    Thanks & Regards
    Kiran

  • Function module parameters for L_TO_CREATE_TR

    Hi All,
    Can someone help me out in using the function module 'L_TO_CREATE_TR'.
    What are the necessary import and export parameters along with the table parameters?
    If i want to pass IT_TRITE (table) as export parameters, what are the requisite fields that should be populated inthat table structure?
    Kindly help me out.
    Regards,
    Mainak

    Hi Mainak,
    This is the ABAP and the FM-call:
    data LT_TRITE type L03B_TRITE_T.
    data WA_TRITE like line of LT_TRITE.
    data GV_STORED like VBAPF-QMENGE.
    clear: LT_TRITE, WA_TRITE, GV_STORED.
    refresh LT_TRITE.
    WA_TRITE-TBPOS = GT_LTBP-TBPOS.
    WA_TRITE-ANFME = GT_LTBP-MENGE.
    WA_TRITE-ALTME = GT_LTBP-MEINS.
    WA_TRITE-LETYP = GT_MARA-VHART(3). "3-character storageunittype
    concatenate '000000000000' LTAP-NLENR+10(8) into WA_TRITE-NLENR.
    "FM L_TO_CREATE_TR wants 20 characters
    if GV_DIR = 'N'.
    WA_TRITE-NLTYP = '120'.
    WA_TRITE-NLPLA = 'OVERDRACHT'.
    else.
    WA_TRITE-NLTYP = P_NLTYP.
    WA_TRITE-NLPLA = P_NLPLA.
    endif.
    append WA_TRITE to LT_TRITE.
    TO aanleggen
    clear GT_LTAP_VB.
    refresh GT_LTAP_VB.
    call function 'L_TO_CREATE_TR'
    exporting
    I_LGNUM = GC_LGNUM_011 "LGNUM is '011' in my case
    I_TBNUM = GT_LTBP-TBNUM
    IT_TRITE = LT_TRITE
    importing
    e_tanum = gv_tanum
    tables
    T_LTAP_VB = GT_LTAP_VB
    exceptions
    FOREIGN_LOCK = 1
    QM_RELEVANT = 2
    TR_COMPLETED = 3
    XFELD_WRONG = 4
    LDEST_WRONG = 5
    DRUKZ_WRONG = 6
    TR_WRONG = 7
    SQUIT_FORBIDDEN = 8
    NO_TO_CREATED = 9
    UPDATE_WITHOUT_COMMIT = 10
    NO_AUTHORITY = 11
    PREALLOCATED_STOCK = 12
    PARTIAL_TRANSFER_REQ_FORBIDDEN = 13
    INPUT_ERROR = 14
    others = 15.
    if SY-SUBRC <> 0.
    commit work."See FM L_TO_CREATE_TR docu: commit work is needed
    perform MELDT_DE_FOUT using SY-MSGID SY-MSGTY SY-MSGNO
    SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    <b>plz reward points if helpful or if it solves ur query.</b>
    Thanks
    Chinmay

  • Issue with the RFC function module - parameters

    Hi,
        When i am creating RFC enabled function module, it was throwing an error like <b>'Reference parameters are not allowed with RFC'.</b>. I am implementing the test scenario to create BAPI, for that i have created table with 2 fields. My main intension is through RFC enabled function module planning to update the ztable.
       When i was creating RFC enabled function module, it was giving error. I remembered that  i need to use new structure when i create RFC enabled function module, so even i created structure also with the same fields of table fields.
       can you please let me know the solution for this.
    Thanks
    jaya

    Hi Ferry,
        Your solution is perfect. can you please explain the below information...
    Call by value                                                                               
    You pass the parameter with values. This means that the parameter     
         contents are copied both when the parameter is passed and when it is  
         transferred back to the calling parameter. For structures that contain
         tables, performance may be reduced considerably. Therefore, you should
         not do this.                                                                               
    I created the parameters with reference to table-fields, what do you mean by 'Call by value'check box usage there.
    Is it mean ...if i change the contents of the field in FM will it pass back to the structure which i refered to this parameter, in this case its table-field.
    Thanks
    jaya

  • Accessing function module parameters dynamically ?

    Hello,
    I´m searching for a possibility to access the parameters of a function module dynamically. I.e. I do not know how many parameters a function has, if it is import/export, or the data type.
    Is there a possibility to access (maybe an ABAP-internal) table with these informations? (At runtime within the function module itself)?
    Thany you for your help,
    best regards,
    Stefan

    Use the function module RPY_FUNCTIONMODULE_READ_NEW to read all of the metadata for a funciton module, it returns internal tables for all parameters of the function module interface.
    Regards,
    RIch Heilman

  • Function module parameters declare BOR Object

    I dont know if this is even logical...
    I need to create a function module which will be used in my  program..
    Can I create an object of BOR object type say 'Sales Order'  and pass it as an export parameter in Function Module..
    i.e i will pass the obj key and obj type as import..
    I want to instantiate that Sales Order.. and pass the whole Sales oRder as export/tables  parameter..
    I know swc_object_create is supposed to create an object but as i can see it only has the handle.. and it is of type swc_object..
    But i want to export  the whole Instance .. so that i can call the methods of the object  in my original program..
    Regards,
    krishna

    Hi Ravi ,
    I simplified my requirement but my actual requirement is with workflows...
    I have a scenario in workflow where,
    1.Activity step to fill internal table with sales order numbers
    2.loop at sales order numbers internal table
    3.Activity Step to Instantiate  based on order numbers
    4. Activity Step to Edit these sales orders
    5.end the loop
    For the above logic in workflows i have separate Activity step for instantiation..What I am thinking of is to instantiate the sales orders and fill the instances in the internal table in Step 1 instead of just order numbers..In the BOR method/F.M  of Step 1 I need to export the Instance of the Sales Orders (this is my actual question/problem, how do i instantiate while coding??swc_object_create, creates only a ref to object ...If I am able to create the object what should the type be in export /tables parameter)
    This way i can remove the loop and offer parallel processing (from miscellaneous tab in activity step) and send multiple Edit workitems to user  at Once instead of one after the other..
    Please let me also know how you would handle the above situation, i am very new to workflows and BOR.

  • Virtual InfoCube with Services - function module parameters documentation ?

    Hello,
    I have been trying to use a Virtual Infocube with Services.
    I have seen most of the posts in SDN, and read the documentation in http://help.sap.com/saphelp_nw04/helpdata/en/8d/2b4e3cb7f4d83ee10000000a114084/frameset.htm
    I did not manage to find a precise description of the import 
    parameters of the Variant 2.
    In particular, what is the meaning of the
    i_tx_rangetab TYPE rsdri_tx_rangetab parameter. I read in the code of RS_BCT_FIGL_DATA_GET that it has to do with query columns. In the tests I did this table is alway empty.
    Also, i_th_sfc gives you the list of characteristics used in the query. But it does not inform you on wether these are in the 'rows' 'free characteristics' or 'filter'. Is there a way of knowing that?
    Claudio Ciardelli

    Hi Claudio,
    I never implemented Virtual InfoCube with services with a FM, but I know there is a couple of How To Documents about named:
    - How to Reporting from External Data via Virtual InfoProvider
    -How to Implement a Virtual InfoCube with Services
    both with some code samples: did you read it?
    Hope it helps
    GFV

  • Error executing custom function module

    Hi all,
    am trying to read a function module form my java code as below.
    There is no problem with the function module.
    I think there is some problem with the java code that is written. I am sure the problem lies with the  TABLES IT_PRODUCT_DATA STRUCTURE  ZOG_ITEM_SCREENSTR.
    Function module parameters and signature.
    FUNCTION ZGET_CUST_ORDERGUIDE_ITEMDATA.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_ORDER_GUID) TYPE  CRMT_OBJECT_GUID OPTIONAL
    *"     VALUE(IV_CUSTOMER) TYPE  BU_PARTNER
    *"  TABLES
    *"      IT_PRODUCT_DATA STRUCTURE  ZOG_ITEM_SCREENSTR
    Java Code that is Implemented is attached above.
    public ArrayList fetchOrderGuide(String customerNumber) {
              ArrayList itemList = new ArrayList();
                                       ItemSalesDoc itemSalesDoc = new ItemSalesDoc();
              if (log.isDebugEnabled()) {
                   log.debug("inside ZAdminLogin");
              try
              JCoConnection aJCoCon = (JCoConnection) getConnectionFactory().getConnection(com.sap.isa.core.eai.init.InitEaiISA.FACTORY_NAME_JCO,
                                                                                                 com.sap.isa.core.eai.init.InitEaiISA.CON_NAME_ISA_STATEFUL);
                   try
                        try
                             JCO.Function zFetchSalesOrderFunctionModule = aJCoCon.getJCoFunction("ZGET_CUST_ORDERGUIDE_ITEMDATA");
                             // set the import values
                             Table zItemsTable = new Table("ITEMS");
                                       //zPackagesTable.addColumn(Table.TYPE_STRING,"HUI");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGITEM");
                             zItemsTable.addColumn(Table.TYPE_INT,"JPRUOM");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JPRSEQ");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGDESC");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JLINE");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JOGNR");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JPACK");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JSIZE");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JBRAND");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JWEEKAVG");
                             zItemsTable.addColumn(Table.TYPE_STRING,"JDELFLAG");
                             JCO.ParameterList importParams = zFetchSalesOrderFunctionModule.getImportParameterList();
                             importParams.setValue("BP-104", "IV_CUSTOMER");
                             aJCoCon.execute(zFetchSalesOrderFunctionModule);
                             JCO.Table zRtItems = zFetchSalesOrderFunctionModule.getTableParameterList().getTable("IT_PRODUCT_DATA");
                                            int numberOfPackages = zRtItems.getNumRows();
                                            if (log.isDebugEnabled()) {
                                                 log.debug("number of packages " + numberOfPackages);
                                            if (numberOfPackages > 0)
                                                 for (int j=0; j<numberOfPackages; j++)
                                                      TableRow itemRow = zItemsTable.insertRow();
                                                      //itemRow.setRowKey(new TechKey(zRtItems.getString("EXIDV")));
                                                      //packageRow.getField("HUI").setValue(zGoods.getString("EXIDV"));
                                                      itemRow.getField("JOGITEM").setValue(zRtItems.getString("OGITEM"));
                                                      itemRow.getField("JPRSEQ").setValue(zRtItems.getString("PRSEQ"));
                                                      itemRow.getField("JOGDESC").setValue(zRtItems.getString("OGDESC"));
                                                      itemRow.getField("JLINE").setValue(zRtItems.getString("LINE"));
                                                      itemRow.getField("JOGNR").setValue(zRtItems.getString("OGNR"));
                                                      itemRow.getField("JPACK").setValue(zRtItems.getString("PACK"));
                                                      itemRow.getField("JSIZE").setValue(zRtItems.getString("SIZE"));
                                                      itemRow.getField("JBRAND").setValue(zRtItems.getString("BRAND"));
                                                      itemRow.getField("JWEEKAVG").setValue(zRtItems.getString("WEEKAVG"));
                                                      itemRow.getField("JDELFLAG").setValue(zRtItems.getString("DELFLAG"));
                                                      zRtItems.nextRow();
                        catch(JCO.AbapException abapException)
                             //Exception thrown, user is not valid
                             if(log.isDebugEnabled())
                                  log.debug(  abapException.getKey());
                   catch (Exception ex)
                        if (log.isDebugEnabled()) {
                             log.debug(ex);
                   finally
                        aJCoCon.close();
              catch(BackendException beeEx)
                   if(log.isDebugEnabled())
              return itemList;     
    LOGDETAILS
    ZGET_CUST_ORDERGUIDE_ITEMDATA:: - IN: INPUT * IV_CUSTOMER='BP-104' IV_ORDER_GUID='00000000000000000000000000000000'
    Oct 9, 2008 6:48:41 AM,507 SAPEngine_Application_Thread[impl:3]_7 Error com.sap.isa.core.eai.sp.jco.JCoConnectionStateful Error occcurred in EAI layer "com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet".
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet
                at com.sap.mw.jco.JCO$Record.checkRowCapacity(JCO.java:12354)
                at com.sap.mw.jco.JCO$Record.getString(JCO.java:12827)
                at com.sap.mw.jco.JCO$Field.getString(JCO.java:11055)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.paramIterator(JCoUtil.java:412)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.logCall(JCoUtil.java:382)
                at com.sap.isa.core.eai.sp.jco.JCoUtil.logCall(JCoUtil.java:236)
                at
    All helpful answers will be rewarded heavily

    hi,
    first of all you do not set the import values for your table correct. You should do something similar like this:
    Function myFunction = connection.getJCoFunction(Z_FM");
    Table myTable = myFunction.getTableParameterList().getTable("Z_TABLE");
    for(int i=0; i<2; i++) {
        myTable.appendRow();
                        myTable.setValue(value1,"VALUE1");
                        myTable.setValue(value2,"vALUE2");
                   connection.execute(myFunction);
    Did you debug your java class? You should check at which point your java class throws the error.
    Regards
    Michael

  • Function Module IMPORT structures not recognized in form subroutines

    Hello everyone,
    Did some searching on SDN and didn't find the answer, so I apologize if this has been covered before.
    Just finished my first Function Module.  It's a remote-enabled (RFC) function that will be called by XI to do some processing.  I have two components declared on the IMPORT tab, which we'll call "A" and "B".  Both "A" and "B" are defined with a user type, each of which is a simple structure of 4-5 fields each.  My Function Module also has two tables, and these are defined on the TABLES tab.
    Here's my problem:  When I do a syntax check, I get an error telling me that "A" and "B" are unknown.  However, I only get this error where I reference "A" or "B" in the FORM subroutines I have declared at the end of my function.
    I have my other data declarations defined globally in the "LZ...TOP" Include for my Function Module, so those don't pose a problem.  But these are my Function Module parameters, so I can't go "declare" those as I already have them defined on the appropriate tabs.
    Is there a way for me to get around this error and have them recognized globally, or do I have to resort to moving the values to some globally-declared "hold" field?  I'm hesitant to have to add them as parameters passed into the FORM routines because I pretty much reference each of the fields within the structures for "A" and "B".
    Thanks everyone.  Points definitely awarded for helpful answers.

    Dave,
    The parameters are visible only in the main program of the function module. So, if the subroutines are directly in the main function, they you should not have a issue. But if you subroutines in an include and you are calling them in the main function, then the paramters are not visible in the subroutines. In that case you will have to hold the values in a globally declared tables.
    Or you will have to pass them as parameters to Sub routines as well.
    Regards,
    Ravi
    note : please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Sub routine in Function module

    Hello
    i want to create a subroutin in a function module
    is it better to do like this
    FUNCTION TEST.
    perform f_routine using im_bukrs im_werks.
    ENDFUNCTION.
    form f_routine using im_bukrs im werks.
    // here i have to use using import parameter since i wont have access to the import parameter
    endform.
    or i put the
    perform in another include let's say include01 but in this way will i have access to my import parameter directly without the USING

    Hi Newbie,
       If you are askign about the parameters used in the subroutines form (im_bukrs and im_werks), you can very well use them in your form as they are getting passed to the form with "USING" statement.
    But one thing you need to chnage in the form statement to use this is:
    if im_bukrs is of type bukrs
      and im_werks if of type werks
    then you have to mention that in your form as
    form f_routine using im_bukrs type bukrs
    im_ werks type werks.
    endform.
       and If you are asking about the Function module parameters  to use in form the you have to declare separately in the program.
    Hope this will help
    Reagrds.
    Swarna Munukoti.
    Edited by: Swarna Munukoti on Jul 24, 2008 8:24 AM
    Edited by: Swarna Munukoti on Jul 24, 2008 8:25 AM

  • Function module ZBAPI_DELV_HU_DETAILS is failing with status TARGET_METHOD_

    Hi,
    Function module ZBAPI_DELV_HU_DETAILS is failing with status TARGET_METHOD_EXCEPTION external server. What could be the reason for this?
    This Function Module will be called within program ZMWXO011. This program will be configured in the output determination for HU's. It will be triggered whenever a relevant HU is created. The BAPI will extract Delivery & HU level data that is required by Exacta & Scan code and send to a predefined TRFC Queue.
    Thanks & Regards,
    Srinivas Reddy.

    Hi Efren,
    Go to transaction ST22 and check for any dump.
    The work item is in process, so there will be a dump in the system.
    The Function module parameters could be a problem.
    ST22 transaction will give you details about the dump.
    Thanks,
    Viji.

  • Function module - object - workflow(complicated to explain:))

    Hello,
    I have a problem.
    I created in se37 the function ZRR_ACTORS. I have as the import parameter PRNUMBER with type BAPIEBANC-PREQ_NO. As an export parameter i have RECIPIENT with type BAPIEBANC-REASON_BLOCKING( i have not found an appropriate type for the recipient that works in a function module for the object, so i used this..i do not think that is the problem).
    The code is:
    data:begin of gs_eban,
      menge type eban-menge,
      preis type eban-preis,
      end of gs_eban,
      gt_eban like table of gs_eban,
      gv_sum type i,
      gv_aux  type SWD_MRCPNT.
    select menge preis from eban into TABLE gt_eban where banfn = prnumber.
    loop at gt_eban into gs_eban.
      gv_sum = gv_sum + gs_eban-menge * gs_eban-preis.
      endloop.
    if gv_sum > 20.
        select single recipient from zteam_approvers into gv_aux where zuser = 'xxxx.
        else.
        select single recipient from zteam_approvers into gv_aux where zuser = 'yyyy'.
          endif.
    recipient = gv_aux.
    As you probably see, i am sending this function the purchase requisition number. In the function I am calculating the value of the purchase requisition. If the value is bigger then 20 i want the recipient to be the email adress of the user xxxx. Else the other email. zteam_approvers is a table with users and their emails.
    When i test this function everything is ok.
    I created subtype for object BUS2015(purchase requisition), called ZBUS2015. Here i created a method which uses the function ZRR_ACTORS. I released it and after that i selected in swo1 BUS2015 and delegated ZBUS2015. So now when i test object BUS2015, i can use method ZRR_ACTORS which contains the function module ZRR_ACTORS.
    If i test this object, the method ZRR_ACTORS works fine. I give the method the number of the purchase requisition and it returns me the user xxxx or yyyy.
    Now, i created a workflow. In this workflow i want to send an email to the user xxxx or yyyy. So i have to execute the function ZRR_ACTORS. I create an activity(zrr_activity) in the new workflow. In it, i create a new task(zrr_task) in the activity with object category BUS2105 and method ZRR_ACTORS. I am setting this method as a background method, because after the execution of the function i want to create a Send email step, with the recipient being the one of the emails.
    My problem is the binding. In the workflow container i set the PRNUMBER as an import parameter and the Recipient as an export parameter.
    In the binding of the step(zrr_activity) i set the following bindings:
    Workflow                           STEP
    &PRNUMBER&  ->  &PRNUMBER&
    &BUS2105&  ->  &_WI_OBJECT_ID&
    &RECIPIENT&  <-  &RECIPIENT
    If i click in the activity, in the task i created(zrr_task), in the object method i set the bindings:
    Task                                 Method
    &PRNUMBER&  ->  &PRNUMBER
    &RECIPIENT&  <-  &RECIPIENT&
    I run the workflow. Now i enter the PRNUMBER 0010000420, but it remains 10000420 (maybe this i because of the type PREQ_NO.) and execute.The task has the status In Process. I click on Workflow log, then on list with technical details, and then in the container, i see the Recipient is empty.
    So, i think the function did not work properly. What do you think?
    Thank you very much,
    Efren
    Edited by: Efren23 on May 30, 2011 7:31 PM

    Hi Efren,
    Go to transaction ST22 and check for any dump.
    The work item is in process, so there will be a dump in the system.
    The Function module parameters could be a problem.
    ST22 transaction will give you details about the dump.
    Thanks,
    Viji.

Maybe you are looking for