Regarding export parameter in rule

Hi everbody,
i have created rule  and i am using this rule in User decision step... for determining agents, when i excuted the worklfow it's working perfectly..
i am using deadline montoring(Modeled) so here i want to pass the agent in sdend mal step to receive the deadline montoring message..  so i have created one container but export parameter checkbox has been disabled...
please let me know whether i can't able to create container wirh export parameter in rule if yes then how to pass the value from rule to send mail step....
Thanks in advance
ram

Hi prasanth,
i have used this FM already, i am getting the value in AGENTS, but in the worklfow this method fails..
and going to error.
please let me know after geting the value in agents then what i should do...
CALL FUNCTION 'RH_GET_ACTORS'
  EXPORTING
    act_object                      = 'AC90300002'
" ACT_TASK                        = 'TS00008267'
  ACT_WI_ID                       =
  ACT_PLVAR                       =
   SEARCH_DATE                     = SY-DATUM
  ACTOR_CONTAINER_OO              =
  tables
"  ACTOR_CONTAINER                 = adressstrings
  EXCLUDED_AGENTS                 =
    actor_tab                       =  AGENTS
  ERROR_TAB                       =
EXCEPTIONS
   NO_ACTIVE_PLVAR                 = 1
   NO_ACTOR_FOUND                  = 2
   EXCEPTION_OF_ROLE_RAISED        = 3
   NO_VALID_AGENT_DETERMINED       = 4
  NO_CONTAINER                    = 5
   OTHERS                          = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • How to use internal table in Exporting Parameter of method.

    Hi Friends,
    I am new to abap oops and using the following code to read a select-option and pass the data in an internal table but on defining
    internal table of a standard  type it is giving me following error :
    ITAB is not an internal table - the OCCURS n specification is missing.
    code
    ====
      class lcl_get_details DEFINITION.
        PUBLIC SECTION.
          types : r_carrid type RANGE OF sflight-carrid.
          data  : itab type STANDARD TABLE OF sflight.
          METHODS : get_data IMPORTING s_carrid type R_carrid
                             EXPORTING itab type sflight.
      ENDCLASS.   
    class lcl_get_details IMPLEMENTATION.
      METHOD get_data.
        select *
        from sflight
        into table itab
        where carrid in s_carrid.
        if sy-subrc eq 0.
          sort itab by carrid.
        endif.
      endmethod.   
    ERROR : ITAB is not an internal table - the OCCURS n specification is missing.
    Kindly help.

    Hi,
    I think your problem is, because you use 2 variables named ITAB in method get_data.
    Instance-variable ITAB is defined as STANDARD TABLE OF sflight.
    Exporting-parameter ITAB is defined as sflight.
    It seems like in implementation of get_data exporting-parameter ITAB is used.
    Try this implementation:
    METHOD get_data.
      select * from sflight into table me->itab
       where carrid in s_carrid.
      if sy-subrc eq 0.
      sort me->itab by carrid.
      endif.
    ENDMETHOD.
    This should solve your compiler error.
    Nether the less, get_data will yield an empty structure as result.
    Regards, Hubert
    Edited by: Hubert Heitzer on Feb 24, 2010 10:22 AM

  • Error during export & import of rules in RAR 5.2

    Hi all,
    We followed the steps mentioned in exporting & importing the rules as per the Config guide. But we
    are receiving the below error during the import of rules. Can anybody please throw a limelight on why this error message is appearing?
    "Error in Table Data ==> VIRSA_CC_CRPROF
    SQL==>Insert into VIRSA_CC_CRPROF(VSYSKEY,PROFILE,RULESETID,RISKLEVEL,STATUS)Values(??????)
    Record==>D VIRSA_CC_CRPROF null"
    We also ensured that the downloaded file is not truncated and saved it in a separate folder. Does the file needs to saved in ANSI or Unicode text? We saved in ANSI
    Also the background ground job is not getting scheduled automatically during the import of ruels. Is that due to the above error?
    Thanks and Best Regards,
    Srihari.K

    Hello Sri,
    background job for generating the rules won`t be scheduled before you upload the file successfully.
    The most obvious reason for this error message is that you have line in your file - in table VIRSA_CC_CRPROF that is corrupted. Make sure all lines from table VIRSA_CC_CRPROF have all predefined fields - (VSYSKEY,PROFILE,RULESETID,RISKLEVEL,STATUS).
    If you keep hiting this problem just delete this table, after the upload you`ll add the critical profiles manually - I bet you don`t have many of them.
    Also from my experience I always choose to save the downloaded file in UNICODE UTF-8 format.
    Once the file is saved in other format, there`s no use of it, download it again and save directly in Unicode.
    Make sure you don`t have empty fields, even in the fields where you don`t have values, you must leave space, otherwise you`ll keep hitting the same issue.
    Regards,
    Iliya

  • How to give a value range in export parameter (global class)

    hi all,
    I have created a class-method called get_po_date. In this i had export parameter as qmfe-qmnum. If i give qmfe-qmnum in import parameter in class, i am able to give only one value at one time, but i need a range of values at a time. Instead of qmfe-qmnum in associated type, i have given 'LXHME_RANGE_C12' ( a range table for char 12 ). the thing is i wanted to select this range in select-options. but still iam getting <b>not type compatible syntax error</b>. can any body solve my problem,
    feel free to ask if any confusion with my question.
    Best Regards,
    abhilash.

    Hello Abhilash
    Instead of using a specific range (where field LOW and HIGH are of type QMNUM) you can use a <b>generic </b>select option (of type <b>RSDSSELOPT</b>). Have a look at the following sample report <b>ZUS_SDN_SELOPTIONS</b>.
    *& Report  ZUS_SDN_SELOPTIONS
    REPORT  zus_sdn_seloptions.
    TABLES: qmfe.
    DATA:
      gt_data          TYPE STANDARD TABLE OF qmfe,
      gt_data_x        TYPE STANDARD TABLE OF qmfe,
      gt_selopt        TYPE rseloption,  " generic table type for selopts
      gs_selopt        TYPE rsdsselopt.
    START-OF-SELECTION.
      SELECT        * FROM  qmfe INTO TABLE gt_data
             WHERE ( qmnum BETWEEN '000000000001' AND '000000000500' ).
      gs_selopt-sign   = 'I'.
      gs_selopt-option = 'BT'.
      gs_selopt-low    = '000000000001'.
      gs_selopt-high   = '000000000500'.
      APPEND gs_selopt TO gt_selopt.
      SELECT * FROM qmfe INTO TABLE gt_data_x
        WHERE ( qmnum IN gt_selopt ).
      IF ( gt_data = gt_data_x ).
        WRITE: 'Selected data are equal.'.
      ELSE.
        WRITE: 'Selected data are NOT equal.'.
      ENDIF.
    END-OF-SELECTION.
    Since RSDSSELOPT and RSELOPTION are global DDIC objects they can be used in <i>public </i>methods.
    Regards
      Uwe

  • Use of exporting parameter VIA_T777D in function module RH_READ_INFTY

    Hi,
    Can any one explain me the use of exporting parameter VIA_T777D in the function module RH_READ_INFTY.
    Regards,
    Aravind

    Closing.

  • ABAP OO BOR export parameter

    Hi, All!
    I am beginner at ABAP OO in workflow and get a problem with using BOR in OO methods. Exporting parameter of the method typed as OBJ_RECORD. In workflow builder (method container) this   parameter displays as reference to BOR, but has not exact type of the BOR. Task container parameter has not type of BOR too.
    If i trying to change task or method container parameter - system returns it back and not saves binding.
    I need instructions, how to mount BOR type for method parameters. 
    Thanks,
    Constantine

    Martin,
    there is many methods in my  OO class (like prepare something and create something).
    In create method last raws like
    swc_create_object ex_changemaster c_bortype_changemaster l_objkey.
    ** error handling
    endmethod.
    In example, ex_changemaster has not BOR type in method and task container. And i can only control  task to model binding using manual assignment. No BOR type controlled by the system.
    Regards,
    Konstantin

  • ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM

    Hello ABAP Profs,
    sorry I am BW.
    <b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
    I want to import a table into a Function Module, change it and export it again.
    How do I have to define the Import- and Export- Parameters in the FM ?
    The table looks looks this:
    DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
    /bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
    Thanks a lot
    Martin Sautter

    Hi Clemens,
    <u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
    <u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
    bases on Rowtype ZVPSHUB_ROW.
    <u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
    FUNCTION ZVP_SHUB_TAB_LOAD.
    ""Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(SHUB_TAB) TYPE  ZVPSHUB_TAB
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine i called the FM
    CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
        CHANGING
          shub_tab = shub_tab.
    and it works ..
    Thank You
    Martin Sautter

  • How to pass a string longer than 30 to an Export Parameter in a PI sheet ?

    Hi All,
    I'm trying to set  up a process instruction in a PI sheet that calls a URL web page.
    I found the function module CALL_BROWSER and tested it in SE37 and it works fine.
    I created a process instruction to call this function module and pass parameters to it.
    Everything works if the URL is short.  For example:
    0010   PPPI_BUTTON_TEXT          Show URL
    0020   PPPI_FUNCTION_NAME          CALL_BROWSER
    0030   PPPI_FUNCTION_DURING_DISPLAY     allowed
    0040   PPPI_EXPORT_PARAMETER          URL
    0075   PPPI_STRING_CONSTANT          http://www.google.com
    This is where I ran into a roadblock. 
    The characteristic PPPI_STRING_CONSTANT is only 30 characters long.
    I can't figure out how to pass an export parameter longer than 30 characters.
    I have also tried loading up multiple PPPI_VARIABLE(s) with the idea of some how combining them into a single long string that I can pass, but no luck figuring out how.
    Any help would be greatly appreciated
    Kind Regards
    Michael

    Thanks Dario, this is good information, but it does not directly solve my problem.
    I think I have figured out an approach, but was hopeing someone else had a standard solution.
    If I don't here something soon, I will try the following:
    Create a new function moduel as a shell or wrapper that calls the standard FM RUN_Browser.
    My shell will have 5 input parameters URLP1 thru URLP5.
    I can then pass a long URL to my shell in 5 parts.
    Inside my shell, the 5 parts will be joined up into 1 long string and passed on to the URL parameter in RUN_Browser.
    If anyone has a better idea, please let me know.
    Kind Regards
    Mike Rupp

  • Export and Import rules in Rule Architect

    Hi
    CAn some body tell me what is export and import under utility in rule architectect....
    In fact I have prod and traning system linked to compliance calibrator 5.2.. I am creating a new rule set for my training system... I want to copy the rules from the production system to the new training rule set... How can i do so

    HI
    Export is to take a copy of rule set from CC and export it to a flat file. Same way you can import the to any other environemnt of CC
    My second question regarding creating a new rule set for Training environemnt, that you have to create Functions with different names probably you can put "z" or "T"in front of the functions do denote it is for training system and than create it
    Parveen

  • Dump while executing class method whose exporting parameter  of type table

    hi,
    i am getting dump after executing a method in which i want to export an internal table which will hold all the states name along with its code on the basis of the country name which is my importing parameter.
    for the above i am using importing parameter named as country of type too5u-land1 and the exporting parameter named as itab of type table and below is my code for the requirement.
    method PROCESS.
      select BLAND BEZEI from T005U
             INTO TABLE ITAB WHERE
             LAND1 = COUNTRY.
    endmethod.

    Hi,
      Please check the below code
    parameters country type land1.
    *Refer the class which we are using like below
    data: a type ref to ZCL_TX_SERVICE_01.
    data itab type ycountry.
    *ycountry is a table type defined in dictionary with fields BLAND and BEZEI
    data wa like line of itab.
    *If we are using instance method we need  to create the instance like below
    create object a.
    *In the method process define exporting parameter itab as type ycountry which is a table type already defined
    CALL METHOD a->PROCESS
      EXPORTING
        COUNTRY = country
      IMPORTING
        ITAB    = itab.
    loop at itab into wa.
    write:/ wa-bland.
    endloop.
    Regards
    Dande

  • Exporting Parameter of type 'INDEX TABLE'

    Hi Experts,
    there is a standard method CL_CRM_MKTPL_OL_TRADE->GET_TRADESPENDS in CRM which has an exporting parameter ET_TRADESPENDS of type INDEX TABLE. Could somebody give me a hint on how to call this method and work with the data that is returned? I am assuming that I will need field symbols for this, correct? Coding examples would be greatly appreciated.
    Thanks,
    Jens

    Hi Jens,
    INDEX TABLE is a generic type. The data object expected depends on configuration and/or context. As we don't have any CRM system I can check CL_CRM_MKTPL_OL_TRADE->GET_TRADESPENDS I can't give you the details.
    I have some experience with comparable methods in SAP Transportation Managament which uses the BOPF framework. In program context, we know what type of table structure will be expected, so we defined a local table accordingly and passed it to the ET parameter.
    If you don't have any idea on how to find out, just declare any internal table, i.e-lt_test  type table of string. Then call the method with parameter ET_TRADESPENDS = lt_test. This will dump for sure. Enter debugger and check what kind of data are returned. From the field names you may get a clue what structure it could be. Dump analysis may also provide some info.
    Regards,
    Clemens

  • Function Modul export parameter

    hi
    i need help...
    i have programing a function modul.
    the type from the export parameter is during runtime to known.
    how i do assign my export parameter the right type during runtime and output in same format?
    function z_wwi_get_st_kg.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(PF_MATNR) TYPE  MATNR
    *"  EXPORTING
    *"     REFERENCE(P_ST_GE)
    *"     REFERENCE(P_EINHEIT)
      data lf_yykeid type ymm_keid.
      data lf_meinh type lrmei.
      data lf_brgew type brgew.
      data lf_gewei type gewei.
      data lf_umrez type umrez.
      "Konsumenteneinheit lesen
      select single yykeid
             from mara
             into lf_yykeid
             where matnr eq pf_matnr.
      "Wenn nicht KG dann ST
      if lf_yykeid ne 'KG'.
        lf_meinh = 'ST'.
      else.
        lf_meinh = lf_yykeid.
      endif.
      "Stückartikel oder Gewichtsartikel
      case lf_meinh.
        when 'ST' .
          select single umrez
                 from marm
                 into lf_umrez
                 where matnr eq pf_matnr
                 and meinh eq 'HE'.
          clear lf_meinh.
          lf_meinh = 'CU'.
    *      get reference of lf_umrez into p_st_ge.
    *      get reference of lf_meinh into p_einheit.
        when 'KG'.
          select single brgew gewei
                 from marm
                 into (lf_brgew, lf_gewei)
                 where matnr eq pf_matnr
                 and meinh eq 'HE'.
    *      get reference of lf_brgew into p_st_ge.
    *      get reference of lf_gewei into p_einheit.
      endcase.
    endfunction.
    thx anu
    Edited by: marty anujit on May 18, 2009 3:02 PM

    Hi,
    function module is fixed and reuse component..
    you will not decide the export parameter is during runtime ..
    instead you can assign the structure having field name and field value..
    so the export paramater is now having field name and field value you can use this in the programm by
    field name..
    Regards,
    Prabhudas

  • FM CRM_BUPA_SALES_AREA_GET_ALL returns 0 entries for export parameter

    Hi Expert:
    When I used BAPI BAPI_BUPA_FRG0010_ADD to create sales area data ,it will call function module  CRM_BUPA_SALES_AREA_GET_ALL to get all active sales areas,but it returns 0 entries for export parameter ET_SALES_AREAS. So the sales area data check is failed,then the sales area data is not created. So did anyone have faced this problem before? And how to solve this problem?

    I finally find out the reason. It because the buffer. After I executed the program HRBCI_ATTRIBUTES_BUFFER_UPDATE, the function will return a sales area list.
    Regards
    Nika

  • Export parameter REALLY work in message mapping???????

    I wrote a java version transformation and it worked good with export parameter.
    However I can not work it out in graphical message mapping. I refered http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm.
    In PI7.1, I add an export parameter "EXPORT_PARA" in the "Signature" tab. Are there any special step to assign this parameter to an UDF? I did not find a way to do it.
    And then I define an UDF,
        public String SetExportPara(String sss, Container container) throws StreamTransformationException{
         String str = "GOOD";
         GlobalContainer gc = container.getGlobalContainer();
         OutputParameters paras= gc.getOutputParameters();
    if(paras.exists("EXPORT_PARA ") == true) {
         paras.setString("EXPORT_PARA ", str);
    }else {
      str = "NOT FOUND EXPORT_PARA";
    return str;
    And I assign this UDF to one element of my output XML, I tried to run it in IE, it always output "NOT FOUND EXPORT_PARA.
    why?????
    I searched the forum, no answer found.

    I hope you are referring to Parameterized mapping concept of SAP PI7.1
    To have this in Message Mapping you dont need any UDF/ JAVA code!
    Just follow this blog and you should be done: /people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
    Regards,
    Abhishek

  • Export parameter in Message mapping UDF

    Hi, I use PI7.1.
    I defined an Export parameter in Message mapping "Signature" tab.
    And as http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c3e1fa6c31599ee10000000a1553f6/frameset.htm,
    I wrote in my UDF as follows:
    public String myudf(int var1) {
    String str="test";
    if(exists("MY_PARA") == true) {
    getOutputParameters.setString("MY_PARA", str);
      return str;
    However when I ran the test, it said there is "syntax error".
    I guess the reason is not found the method exitst() or getOutputParameters. Anybody can help? thanks

    Here is a valid sample for a Java Mapping program working with Parameterized Mappings - taken from help.sap.com::
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import com.sap.aii.mapping.lookup.Channel;
    public class Parametrization_Java
       extends AbstractTransformation {
          public void transform(
             TransformationInput in,
             TransformationOutput out)
          throws StreamTransformationException {
             try {
    // Read Import Parameters
                String paramS =
                   in.getInputParameters().getString(u201CPARAM_Su201D);
                int paramI =
                   in.getInputParameters().getInt(u201CPARAM_Iu201D);
                Channel paramC =
                   in.getInputParameters().getChannel(u201CPARAM_Cu201D);
    // Use Parameters during Mapping
    // Set Export Parameters
                   out.getOutputParameters()
                      .setString(u201CPARAM_ESu201D, [String-Wert]);
                   out.getOutputParameters()
                      .setInt(u201CPARAM_EIu201D, [Integer-Wert]);
                   out.getOutputParameters()
                      .setValue(u201CPARAM_ECu201D, [java.lang.Object]);
             } catch (Exception e) {
                // Exception Handling
    Regards,
    Volker

Maybe you are looking for

  • Is it possible to operate without BIS - in particular GMail and app world?

    Hi there! I have had a BB Curve 3G 9300 for one week; I'm in the UK, and I acquired it together with a T-Mobile contract, at a Phones4U shop in London.  Before agreeing to buy the BB, and the contract, I went through a whole load of things that I wan

  • Transparent areas showing gray

    I am trying to make a collage of oval-shaped photos in Photoshop Elements. I cropped my photos to oval shapes using the cookie cutter tool. The areas around the ovals (from where the original picture was rectangular) are transparent. Once I had my fo

  • E90! Can we finally get text in calendar's weekly ...

    This feature is missing even from the latest communicators but was available even in my Palm Vx back in 1997! Now with the E90 do we still have to browse day by day to see what is our week like? Or can we finally get a decent weekly view where there

  • Yahoo has taken over my browsers. how do I remove?

    As the titles say's. It started acouple of days ago, don't know where from. It's not just one browser but all. I'd appreciate any feed back. Cheers

  • Packing more than 100% of a container

    Hello all, I'm using OM API to create deliveries and than ship confirm. But I'm not able to pack more than 100% of a container. It's rare requirement, but sometimes it's required from our users. I use procedure wsh_container_pub.container_actions wit