How to use global parameters in Opertional Mapping??

Hi,
I have to create 4 mappings.
1. File to PI(Graphical): To extract Payload form incoming hedaer,payload & trailer & few validation which gives an ERROR variable.
2. XSLT: payload to IDOC stucture data type.
3. To IDoc(Graphical): final mapping to IDoc.
4. Mail mapping: here i need the ERROR variable to flow through all mappings so that I can make an RFC call in this mapping using ERROR variable.
Please provide inputs.

Hi Das,
take XSD of IDoc and add one field (Error flag) and use this structure in first level mapping between File to IDoc1,then IDoc 1 to Original IDoc.
or
You can use unsed field in IDoc it self to hold error variable details(may be in control record or some where in IDoc) ,befor esedning data to ECC, suppress this value.
Regards,
Raj

Similar Messages

  • How to use global classes and display returned data?

    Hello experts,
    I have the following code in a program which accesses a global class (found in the class library). It executes one it's static methods. What I would like to do is to get hold of some elements of the returned data. How do I do that please?
    Your help is greatly appreciated.
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: o_ref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF O_ref.
    DATA: begin OF o_ref2,
    CONTACTID               TYPE CT_CONTACT,
    P_INSTANCES             TYPE string,
    P_CONTEXT               TYPE CT_BPCCONF,
    P_CONTROL               TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA                  TYPE BCONTD,         "<<<=== THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE                TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS               TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES    TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of o_ref2.
    TRY.
        CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT  "<<<=== STATIC METHODE & PUBLIC VISIBILITY
          EXPORTING
           X_CONTACTID = '000001114875'   "Whatever value here
          RECEIVING
            Y_CONTACTLOG = o_ref
    ENDTRY.
    WHAT I WOULD LIKE TO DO IS TO MOVE o_ref TO o_ref2 and then display:
    1) P_DATA-PARTNER
    2) P_DATA-ALTPARTNER
    How can I do this please?

    I now have the following code. But when I check for syntax I get different error. They are at the end of the list.
    Here is the code the way it stands now:
    ================================================
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: oref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF oref.
    DATA: begin OF oref2,
    CONTACTID TYPE CT_CONTACT,
    P_INSTANCES TYPE string,
    P_CONTEXT TYPE CT_BPCCONF,
    P_CONTROL TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA TYPE BCONTD,      "THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of oref2.
    TRY.
    CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT     " STATIC METHODE & PUBLIC VISIBILITY
    EXPORTING
    X_CONTACTID = '000001114875' "Whatever value here
    RECEIVING
    Y_CONTACTLOG = oref
    ENDTRY.
    field-symbols: <FS1>      type any table,
                   <wa_oref2> type any.
    create data dref_tab type handle oref.   " <<===ERROR LINE
    assign dref->* to <FS1>.
    Loop at <FS1> assigning  <wa_oref2>.
    *use <wa_orfe2> to transfer into oref2.
    endloop.
    write: / 'hello'.
    =========================================
    Here are the errors I get:
    The field "DREF" is unknown, but there is a field with the similar name "OREF" . . . .
    When I replace itr by OREF I get:
    "OREF" is not a data reference variable.
    I then try to change it to dref_tab. I get:
    "DREF_TAB" is not a data reference variable.
    Any idea? By the way, must there be a HANDLE event for this to work?
    Thanks for your help.

  • How to use rfcnormalizer.jar  in interface mapping

    Hi
    Iam getting one error while doing xml file to RFC scenario.
    the error is like this
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    As a solution for this i got SAP Note 730870.
    here i have to download rfcnormalizer.jar 
    i have uploaded in integration repository under imported object.
    but iam not able to see this in interface mapping
    now i have to use this in interface mapping .
    Please give me step by step how to use this in interface mapping
    how the interface mapping should be like
    Regards
    veena

    Hi,
    The RfcAdapter trys to find a Sender Agreement for this RFC call but the lookup failes. The values used for this lookup are:
    Sender Party/Sender Service: The values from Party and Service belonging to the sender channel.
    Sender Interface: The name of the RFC function module.
    Sender Namespace: The fix RFC namespace urn:sap-com:document:sap:rfc:functions
    Receiver Party/Receiver Service: These fields are empty. This will match the wildcard
    Regards,
    Suryanarayana

  • How to use street view in apple maps

    How do I use street view in apple maps?

    You don't. Street View is a Google Maps feature, so you have to use it in the free, downloadable Google Maps app.

  • How to use Default parameters

    Hello,
    How do I use default parameters from ODP.NET. I have a proc in Oracle that shows Default? = Y when I do Describe in PL/SQL Developer. Therefore, I don't want to pass this parameter at all via ODP.NET/C# call. If I omit this parameter, I get the dreaded "Invalid number or types of parameters" error.
    Thanks for your help,
    Evgueni

    Hi,
    You'll just want to set OracleCommand::BindByName=true. Here's an example, hope it helps.
    Greg
    create or replace function showparams(p1 varchar2, p2 varchar2 default 'foo',
               p3 varchar2, p4 varchar2 default 'bar') return varchar2
    is
    retval varchar2(4000);
    begin
    retval := 'p1 = '|| p1;
    retval := retval || ',p2 = ' || p2;
    retval := retval || ',p3 = ' || p3;
    retval := retval || ',p4 = ' || p4;
    return retval;
    end;
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    class testdefault
        static void Main(string[] args)
            using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger"))
                con.Open();
                using (OracleCommand cmd = new OracleCommand("showparams", con))
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.BindByName = true;
                    cmd.Parameters.Add( new OracleParameter("retval", OracleDbType.Varchar2,4000));
                    cmd.Parameters["retval"].Direction = ParameterDirection.ReturnValue;
                    cmd.Parameters.Add("p1", "firstval");
                    cmd.Parameters.Add("p3", "secondval");
                    cmd.ExecuteNonQuery();
                    Console.WriteLine(cmd.Parameters["retval"].Value.ToString());
    }OUTPUT
    =========
    p1 = firstval,p2 = foo,p3 = secondval,p4 = bar
    Press any key to continue . . .

  • How to use HTML parameters in Java applet

    Hello
    In perl I have created a form with things like a selectiuon box called currency and text fields called product for example. Then when I click submit the perl program can pick up the currency and product parameters.
    I have read about applet param eg <param name="param1" value="Apple"> is this the same thing? Or is it different?
    Can I use HTML parameters or do I need to use applet param? I am confused.
    If applet param is what I need, then how do I change the param values say by editing text in a text field?

    You will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html

  • How to set global parameters? (Best Practice?)

    Dear all,
    I've experience with Infor Performance Management tools, Qlikview and also SAP Business Objects Reporting. As for last week i'm new to Microsoft Reporting Services. In our current environemnt we're setting up a Report Structure on top of an Analysis Service
    Cube.
    Currently I'm creating various reports (which works fine) on the mentioned Analysis Service Cube.
    My current question is, if there is a best practice to create reports with global variables? We'll have a package of ~20 reports which all relate to the same data source. My approach is that i'll define the reports, but the global parameters like "Current
    year", "Last year" etc. should be defined on a global page. That's the way I would have done it in the other BI tools.
    How is this done best in MS Reporting Services? Should i add an additional flat SQL server source and put the values in some ref tables? Or script the global parameter?

    Hi Praveen G,
    this blog was one of the sources I already found.
    I was searching for the "official" way to set the default-workbook - without manipulating the tables programmaticaly (and possibly inconsistant).
    Best regards,
      Marco

  • How to use Variable in interface for Mapping in ODI 11g

    Hi,
    I want to use Variable 'Year' in interface mapping. how i can do that? I define a variable YEAR1 = '2001' and in interface i put #YEAR1 but it didn't work for me. is there any other way?
    Example.
    I m using 'Year' column in mapping and it is having different 3 constant values so i was think to define 3 variable Year1= '2001' & Year2= '2005' & Year3= '2010'.
    In interface i just want to put variable name insted giving fix value.
    regards
    Sher

    Thank u
    I m trying with all the options & when i create Variable i and set Default value to ''2001'
    '#YEAR'
    #YEAR
    '#PROJECT_NAME.YEAR'
    #PROJECT_NAM.YEAR
    #PROJECT_NAME.'YEAR'
    and setting to Stagging Area
    But still it is not working out.
    I m suing ODI11.1.1.3
    is it any issue?

  • How to use the One-to-One mapping in Java Code

    Dear all:
    I have set the direct mapping and named query,
    and have written web service of login.
    I can login successfully.
    Now,I want learning about One-to-One mapping.
    I have setting the One-to-One mapping,
    then what can I do latter?
    I do not found any paper showing how to use it in web service?
    Somebody help me?thx all.

    Following code worked for me:
    import oracle.javatools.resourcebundle.BundleFactory;
    import java.util.ResourceBundle;
    * This method retrieves localized strings from a given XLIF resource bundle.
    * @param bundleName The XLIF bundle from which the localized string is to be retrieved.
    * @param key The key of the localized string.
    * @return The localized string retrieved from the given XLIF bundle.
    public static String getXlifLocalizedString(String bundleName, String key) {
    if (StringUtils.isEmpty(key)) {
    return key;
    if (StringUtils.isEmpty(bundleName)) {
    return "[" + key + "]";
    String localizedString = null;
    ResourceBundle resourceBundle = null;
    try {
    resourceBundle = BundleFactory.getBundle(bundleName);
    localizedString = resourceBundle.getString(key);
    } catch (Exception e) {
    LOG.log(Level.SEVERE, "Problem in loading XLIF resource bundle: " + bundleName, e);
    return "[" + key + "]";
    return localizedString;
    }

  • How to use event parameters?

    Hi
    I've made simple eem applet for shutdown the port which trigered storm control event.
    It is look like that:
    event manager applet shut-storm
      event storm-control
      action 1.0 cli local python bootflash:shut-storm.py
    and the script is
    from cisco import CLI
    from cisco import cli
    import sys
    import datetime
    import time
    import re
    whitelist = [
    "Ethernet1/1",
    "Ethernet1/2"]
    shlog = CLI('sh logg last 100 | i ETHPORT-5-STORM_CONTROL_ABOVE_THRESHOLD | last 3',False).get_output()
    pat = re.compile(r'(\d{4} \w{3} \d{2} \d\d:\d\d:\d\d) \S+ \%ETHPORT-5-STORM_CONTROL_ABOVE_THRESHOLD: Traffic in port (Eth\S+|[Pp]o\S+)')
    now = datetime.datetime.now()
    delta = datetime.timedelta(seconds=180)
    for l in shlog:
      mobj = pat.match(l)
      if mobj:
        port       = mobj.group(2)
        logTimeStr = mobj.group(1)
        logTimeObj = time.strptime(logTimeStr, "%Y %b %d %H:%M:%S")
        logTime    = datetime.datetime(*logTimeObj[:6])
        if now-logTime < delta:
          if port not in whitelist:
            cli("conf t")
            cli("interface %s" % port)
            cli("shutdown")
    But the python script is a bit complecs because it shoud find triggered interfece in log.
    Is it possible to use event parameters? And how?
    I know that they are:
    sw1# sh event manager history events det
    Event ID Time of Event        Event Type                   Slot       Policies
    32       09/30/2013 15:40:51  storm_control                active(1)  shut-storm
        interface = "Ethernet1/16", cause = "storm-control"

    Thank you Joseph.
    It works.
    Now the applet looks like:
    event manager applet shut-storm2
      event storm-control
      action 1.0 cli local python bootflash:shut-storm2.py $interface
    And the script:
    from cisco import cli
    from syslog import syslog
    import sys
    whitelist = [
    "Ethernet1/1",
    "Ethernet1/2"]
    port = sys.argv[1]
    if port not in whitelist:
      cli("conf t")
      cli("interface %s" % port)
      cli("shutdown")
      syslog(2, "Interface %s was shutdown due to storm conditions" % port)

  • How to use Import parameters of a search help

    Hi,
    Could you please tell me how to use import & export parameters of a search help in the report.

    Hi,
    Import parameters are imported from the selection screen of the report into the search help and then these are used to query in the search help.
    For example
    case 1.
    parameters : p_carrid like sflight-carrid.
    parameters : p_connid like sflight-connid.
    the search help that is used in the above condition is
    SFLIGHT.
    And the selection method is SFLIGHT in this search help.
    ( to check which search help is used go to se11 display the table and put your cursor on the field and in the menu for goto--> search help.)
    so when you do an F4 on connid it looks for a field which is declared like SFLIGHT-CARRID ( and the value entered in it) since the SFLIGHT-CARRRID is an import parameter in the search help,  and queries the database where the value is equal to the p_carrid which is declared like SFLIGHT-CARRID and gets only data which is equal to carrid
    case 2.
    parameters : p_carrid like SCARR-carrid.
    parameters : p_connid like sflight-connid.
    In this case the system will fetch all the data.
    since there is no parameter for SFLIGHT-CARRID on the selection screen it would get all the data from SFLIGHT.

  • How to use or function in Message Mapping?

    Hi! I was wondering if anyone can show me how to use the or function.
    Im trying to match the current date to three possible values so i need three or functions.
    EG. if ( currentDate == 01.02  || currentDate = 02.02  || currentDate = 03.02 ) {
              do something;

    Petre:
    If you want to use standard functions then you try this:
    If-->currentdate -OR- Constant(01.02)
    currentdate -OR- Constant(02.02)   --> OR -->
    currentdate -OR- Constant(03.02)
    Then give some output
    Else give some output
    So give the output for the first two conditions to another OR and the result of the third to the same OR. So whenever the condition is true in any of the condition you will get the THEN value else you will get the ELSE value.
    ---Satish

  • How to use init parameters?

    Is it posible to use init parameters with FacesServlet?
    With any other servlet I'd do this:
    <servlet>
    - <init-param>
      <param-name>base</param-name>
      <param-value>/shop</param-value>
      </init-param>
    </servlet>but it doesn't seem correct to the same with the FacesServlet ie:
    <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    - <init-param>
      <param-name>imageURL</param-name>
      <param-value>/images/</param-value>
      </init-param>What is the right way to use init params with JSF?

    You don't have control over the FacesServlet.
    Rather use the context-param.
    <context-param>
        <param-name>paramName</param-name>
        <param-value>paramValue</param-value>
    </context-param>
    String paramName = facesContext.getExternalContext().getInitParameter("paramName");

  • How to use different SRIDs in one map?

    Hi, I created a map where one theme comes from a table with geometries in SRID 8307, and another theme comes from a table with geometries in SRID 82027. The tables have the necessary entries in USER_SDO_GEOM_METADATA.
    From what I read in the documentation, MapViewer is able to convert geometries if the SRID for the map request is different from the SRID for a theme. However, it does not work for me. Anybody got this working? I assume the SRID for the theme is derived from USER_SDO_GEOM_METADATA? (it's not a JDBC theme) How can I set the SRID for the map request? (MVMapView just has getSrid() and no setSrid())
    I use Oracle 10.2.0.3.0, MapViewer 10.1.3.3, and would like to create an Oracle Maps application.
    Regards,
    Markus

    I've changed my SRID from 82027 to 31467 and now it works as expected.

  • How to use mathematical functions in XSL mapping

    Hi,
    I am using Jdeveloper 10.1.3.3. I need to insert mathematical functions like "multiply,divide,power" etc in my mapping. But in the XSL i am getting all string functions and very few math functions for number.
    I am newbie in Jdev. Please if anyone can share how this can be done.
    Thanks

    Hi,
    The RfcAdapter trys to find a Sender Agreement for this RFC call but the lookup failes. The values used for this lookup are:
    Sender Party/Sender Service: The values from Party and Service belonging to the sender channel.
    Sender Interface: The name of the RFC function module.
    Sender Namespace: The fix RFC namespace urn:sap-com:document:sap:rfc:functions
    Receiver Party/Receiver Service: These fields are empty. This will match the wildcard
    Regards,
    Suryanarayana

Maybe you are looking for

  • Embedding youtube video in flash with as2 - problem with black bars

    I have successfully embedded the youtube video in my flash code with: //create area to put youtube video on screen this.createEmptyMovieClip("reason1_video", 10000); reason1_video._xscale = 60; reason1_video._yscale = 60; this.reason1_video.loadMovie

  • Timestamp out of range

    When i try to insert into a timestamp field, it says the index is out of range. The database is db2. The column size is 26. What could be the problem. Thanks

  • Can you mix roaming and extended airport networks as such:

    I have my main aebs connected to the cable modem.  I want to conenct several airport expresses to the aebs via powerlien adapters to form a roaming network.  One airport express I cant connect conveniently to powerline so I want to set it up to exten

  • Serial No  in Report

    Asalam Every one.. I want to add serial number in my report for example 1 2 3 4 5 6 but i dont no how to do it.. can any one tellme how to add serial number in bi publisher ??? Thanks in advance

  • Skype balance no longer showing on screen after cu...

    Help! I just did an update of Skype. The skype page no longer shows skype balance. How do I get it back? I do not want to go to My account before and after each use of skype for a phone call. This is a major issue for me! HELP PLEASE!!