IDOC is sending somewrong values

Hi,
we have once idoc where it was sending the wrong currency values. Like in place of 2.3  it was seding 1.8. in currency segment,  in the data record.  can you please let me know where we have to adjust this .

Send a message to SAP. Also when asking questions about IDocs, in the future you might to mention at least the IDoc name.

Similar Messages

  • Want to replicate Payext  IDocs and send them to another logical system

    Hi all
    we are generating payext Idocs to a bank partner profile using rffoedi1 program. Our requirement is to replicate the same payext IDoc and send to another logical system using a different partner profile.
    I have a rough idea of sucking data from EDID4 table....
    Can any one let me know how the code looks like If we have to create same IDocs again with different control record with same kind of data?
    can some one throw their ideas of doing this with less development work?
    Thanks
    Steve

    Try this way:-->
    1.Using fm IDOC_READ_COMPLETELY get complete data of IDoc you want to send, then change the Header record (EDIDC) with new partner profile, port and other values
    2. Pass these values to fm MASTER_IDOC_DISTRIBUTE.
    (pl remember to clear EDIDS values before calling above said fm)
    This will send your IDoc to new destination
    a®s
    Edited by: a®s on Apr 10, 2008 3:41 PM

  • IDOC for sending material data including classification data?

    Hi everyone,
    I'm just looking for an IDOC to send to an external system all data of certain materials but including classification system data, variant configuration data...
    I have checked MATMAS0x but I am not sure if those IDOCs match with my requirement.
    I would be very grateful if someone could please help me.
    Thanks in advance and best regards,
    Ben

    Hi Ben
    Kindly follows the below steps and trasaction screens, I believe you will be able to send the mat data incl. classification data to other external system through IDOC.
    Steps:
    Create material master record in SAP
    Enter T.Code BD10 to  send material master data from SAP to 3rd Party Logistics Provider
    Enter Material,Logical System and click Execute(F8)
    Press ENTER to continue
    Press ENTER to continue
    Enter T.Code WE09 to check the status and content of the Idoc created
    Enter Idoc Segment name in Search in Segment, Field name in Search in Field, Material No in "for Value" and press F8 to execute
    Double click on the Idoc number to check the content and status of the Idoc
    Expand the Status records to check the STATUS of the Idoc
    To check the fields in the Idoc, expand Data records and check the Mandatory fields in each Segment
    Transaction Screens:
    Transaction / Screen
    MM01
    BD10
    BD10 Screen
    BD10 Screen
    BD10 Screen
    WE09
    WE09 Screen
    WE09 Screen
    WE09 Screen
    WE09 Screen
    Expected Result:
    Expected Result
    Material Master Record Created
    Send Material Screen appears
    A popup window appears with a message "1 master Idoc(s) set up for message type MATMAS"
    A popup window appears with a message "1 Communication Idoc(s) generated for message type MATMAS"
    Send Material Screen appears
    Idoc Search for Business Content screen appears
    Idoc corresponding to the material no is displayed
    Idoc along with the 3 records(Control Record,Data Record,Status Record) appers
    Final STATUS should be 03(Data passed to port OK)
    All Mandatory fields must be populated with correct data
    If it is useful reward points
    Thanks
    Saravana

  • Sending Date value to SAP R/3

    Hi,
        I am trying to send Date value from Text box (javascript) to SAP R/3 thru transaction and BAPI. But it is not accepting it. In SAP it accepting time value but it is not accepting date value. It take default date (current system date).
    But when we give date value directly in transaction it accepts.
    what is the problem. how to solve it?
    Regards,
    Senthil

    Your text box is a string.  If you assign it to a Local (or Transaction) Property of type DateTime, xMII may properly interpret it and allow the DateTime value to be populated.  However when you try to map it to SAP, it will most likely fail as it is of datatype DateTime (which is actually xml datetime).  You can assign the text box value to a Local Property with datatype String and format it from there.  Or if your Local Property is correctly interpreting the string from the text box and is updated, then you can explicitly convert from xml datetime to string type.
    functions which might be of interest or applicable are:
    datefromxmlformat
    dateformat
    stringpart
    Good luck,
    Mike

  • I want to send a value from JSP file to another JSP file without..

    I want to send a value from one.JSP file to another two.JSP file without to show the content HTML of the one.JSP in two.JSP (with include), only take the values processed in a Bean :
    ===================
    Bean
    package pck;
    import java.io.*;
    public class yyyy {
         public String getXxx() {    
              return cccc;
    ========================
    one.JSP
    <jsp:useBean id="idBean" class="pck.yyyy" scope="??"/>
    <%idBean.setXxx(ccc);%>
    ========================
    two.JSP
    <%@ include file="one.jsp"%>
    <%=idBean.getXxx()%>
    but without to show the content HTML of one.JSP in two.JSP.
    Can someone help me?, please.

    Why don't just put the common code in a separate file and include it in both. i.e. the code that is in one.jsp that is needed by two.jsp could be put in a common file and included in both pages, thus the HTML is separated off. If this will not work, set a boolean value in two.jsp that can be used by one.jsp to decide if the HTML should be displayed or not.
    Steve

  • Round badi does not work in default formulas triggered when sending a value

    I have implemented the round BADI from sdn (how to). Problem is that it works perfect when :
    -  I execute it in UKT
    - I run it as a data manager package
    - I put it in default formulas and run the default formulas as a packe
    It however doesn't work when it is executed in default formulas when sending a value from an input scheduls.It gives an error "error converting records -  the root element is missing"
    Anybody a clue ?
    Cheers
    Nico

    Answering to myself!
    Code correction required:
    loop at it_cv into ls_cv.
    *{   INSERT         BPCK900005                                        2
    CHECK ls_cv-dimension NE 'MEASURES'.
    *}   INSERT

  • Send orders idoc from sender

    Experts 
    tell me which tcode is used to send the sales order data from sender to receiver.
    Example  : we use the following tcode to send the master data idocs like
    SEND MATERIAL MASTER: BD10
    SEND VENDOR MASTER:   BD12
    1)is there any tcode to send the sales order data also like this.
    2)if tcode not there then tell me which function module is used in the sender system to fill the segments of order01 idoc.
    3) I want to fill the sales order data in the segments , the following data i need to fill
    sales area , document type , customer numeber , payment terms , material , net price , quantity , order data , po number.
    tell me which segments are used for this.
    4)where to see the segments of the idoc and its fields.
    5) if any one having sample code to fill the orders idoc , please give me the link

    prabhu
    send data through Message control ? means how to send .
    My requirement is to fill the idoc segments and then to post.
    Which tcode is used to see the segment fileds  both header and item other than we60 , we61.
    For orders01 idoc how to identify which segment fields are used for sales area , customer , payment term etc  becasue po fields are also there, so confusing

  • Not Working-LexicalParamater used to send multiple values with one prameter

    Hi,
    I am calling a reportname.rdf from the web(using apache webserver and url as follows:
    http://localhost/cgi-bin/rwcgi60.exe?server=reportservername&report=acctActivity.rdf&userid=bizsystest/[email protected]&destype=cache&desformat=pdf&placeholdercolumnname='2,3,4'&docid=2
    I have to send multiple values for fundid.
    To accomplish this,
    I created a placeholder column and initialized the value '0' and type taken as character(even though datatype of this column is number).
    In sql query
    select table1.c1, table2.c2 from table1, table2, table3, table4 where table1.cl in (&placeholdercolumname)
    and table1.c2 = table2.c2(+)
    and table3.doccode = :docid
    From Web, URL contains the placeholdercolumnnmae='2,3,4'
    Still its taking the value zero and output is generating.
    Its not taking my newvalues ('2,3,4') in IN parameter.
    I donot know the reason, where exactly is wrong.
    Please help me to resolve.
    2. My Second Issue:
    Is there anyway, can we hide all key/value parameters send through the URL not visible to endusers
    like servername, database userid and password and configure some where, so system can pickup each time when I run report.
    Please help me to resolve.
    Thanks,
    Usha.

    Hi Usha,
    First of all, I assume that the place holder column you have specified is a UserParameter which you have specified on the command line. I don't think there is any direct way of doing that.
    I created a placeholder column and initialized the value '0' and type taken as character(even though datatype of this column is number). If I infer correctly from what you are saying, you can't mix and match the datatypes of the columns, you can't define the parameter as a number and pass characters. I suggest you declare your parameter as a character with sufficient width to hold your LOV and then process them convert them to numbers.
    Another suggestion is try replacing your "Placeholder" with another query construct.
    For your Second issue,
    You can use the Key-Map file Oracle Reports provides for the Web client. Please refer to
    <ORACLE_HOME>\Report60\server\cgicmd.dat.
    In the cgicmd.dat,you can alias your entire commandline with a single key and use that key in your URL.
    Regards
    Oracle Reports Team.

  • Creating Idoc and sending it to its own...

    Hello All,
    The functional design specified that an inbound function module needs to be created to process a custom IDOC, let's say ZMMDLRTL, and using the data from the segments from this basic type ZMMDLRTL, I need to create another IDOC of basic type PORDCR101 to create a PO. This PO IDOC would then have to be posted to the same system where the inbound function module that would process the ZMMDLRTL IDOC. So this is just like creating an IDOC and sending it to yourself right?
    I used the function module MASTER_IDOC_DISTRIBUTE to create the PORDCR101 Idoc and sends it to itself. But now I am getting an error status 20, which is "Receive of IDOC is its own logical system". I just need some inputs on this.
    Thanks,
    Kristine

    Hi!
    In two words - to avoid this error you have to send PORDCR101 to another logical system pointing to the same client and make corresponding settings in distribution model (as you use MASTER_IDOC_DISTRIBUTE).
    Proceed as follows:
    1. Create a "dummy" logical system name, say LOGSYSD. This dummy logical system will serve as the receiver system in the distribution model.
    2. Using SM59 create RFC-destination LOGSYSD for the dummy logical system. The RFC-destination addresses the same client.
    3. Create a distribution view in BD64 with your "real" logical system for client as the sender and LOGSYSD as the receiver for your message type.
    4. Generate partner profiles for distribution model using BD82.
    5. Using WE20 create inbound parameters for your message type for <b>"real"</b> logical system.
    Hope it helps.
    Regards,
    Maxim.

  • How to create idoc and send it frm one sap to another sap

    hi,
    can anyone tell me the complete procedure of creating the idoc and sending it to another sap r/3
    how to create rfc destination, partner profiles, port and outbound parameter and inbound parameter
    thanks

    Hi Azhar,
    Go through the following Links
    IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    Go through the following Steps for Creating IDoc Via  ALE
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode  BD64 ? Create Model View
    Tcode  BD82 ? Generate partner Profiles & Create Ports
    Tcode  BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
            save and goback.
    2) Tcode BD50--->  check the MATMAS check box save and comeback.
    3) Tcode BD51--->  goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52--->  give message type : matmas press ok button.
       select all  what ever you want and delete remaining fields.
       save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
       it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
       give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    Regards
    Sreeni

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • Wanna send integer value by reference in function

    I wanna send integer value by reference thro' function. Here's the code going.
    class test
    basic b = new basic();
    test()
    test2.Fuction(b.value);
    class basic
    int value;
    basic(){}
    //////here i want value to be affected by Function.I don't want it affected by value, but by reference.
    class test2
    public static void Function(int value)
    value++;

    If you want to update the value in your b object, then you have to pass the reference of that object to test2.Function(..). Here is one way to do it:
    class test {
      basic b = new basic();
      test() {
        test2.Function(b);
    class test2 {
      public static void Function(basic b) {
        b.value++;
    }It's a good idea to follow the java naming convention. Classes should begin with an upper case letter. Methods and variable names with a lover case letter (but final static variables with all upper case letters).

  • IDOC CLFMAS set initial values

    Hi,
    I am using IDOC CLFMAS02 to update values in material classification. I do not have problems with modify a normal value. But I want to set a date classification value to initial. If I inform with ' ' the value is showed as '00.00.0000', but I need that this value become initial.
    I am trying to use field MSGFN = 003 (delete) on segment E1AUSPM but it does not running.
    The FM that we use to input idoc is IDOC_INPUT_CLFMAS.
    Any suggestion. Thanks¡¡¡¡

    Yes I try to remove date characteristic from E1AUSPM.
    Also I try to set blank value.
    Also I try with MSGFN value = 003.
    I think that your code is only to delete values from multiple-values characteristics.
    TEST 1 ( set blank)
    Current Material characteristic value: 01.01.2011
    Objective Material characteristic value: Blank
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     004Z_CHARACTERISTIC
        E1DATEM                     004
    Result Material characteristic value: 00.00.0000
    TEST 2 (MSGFN 003)
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                        01.01.2011
        E1DATEM                     004
    OR
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                         
        E1DATEM                     004
    OR
    E1OCLFM                     003MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     003ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                         01.01.2011
        E1DATEM                     003
    OR others...
    The problem is that characteristic must be defined to DATE format and when I set blank value, inside code is converting to 00.00.0000

  • IDOC for sending material including classification data?

    Hi everyone,
    I'm just looking for an IDOC to send to an external system all data of certain materials but including classification system data, variant configuration data...
    I have checked MATMAS0x but I am not sure if those IDOCs match with my requirement.
    I would be very grateful if someone could please help me.
    Thanks in advance and best regards,
    Ben

    Hi,
    CLFMAS01     Master object classification
    CLFMAS02     Master object classification
    STTMAT01     STTMAT: Material variants
    BOMMAT01     Master BOM - material
    BOMMAT02     Master BOM - material (2)
    BOMMAT03     Material BOM (from 4.6B)
    BOMMAT04     Material BOM with UPS Link
    MATMAS01     Material Master
    MATMAS02     Material Master
    MATMAS03     Material Master
    MATMAS04     Material Master
    MATMAS0x with CLFMAS0x should solve your problem.
    Regards,
    Srilatha.

  • One LIFNR, based on a function can send multiple values to traget.

    Dear SDNers,
    I need your help to solve this problem…
    Let me explain the situation.
    I have a field value “LIFNR”, which is sending a value from the source to target.
    Here by using a User Define Function based on parameters I have to map the exact target.
    The problem is:
    Currently I am having a function which is sending  a value to the target based on parameters and some times the target values are more that a single value. At that situation the function returns a random value to the target value.
    In the below Old Function there is a method used to execute only one value, if more than one values are there then it will select a random value from them and send that value to the destination.
    IFIdentifier src = XIVMFactory.newIdentifier(strContext, senderAgency, senderScheme);
    IFIdentifier dst = XIVMFactory.newIdentifier(strContext, receiverAgency , receiverScheme);
    String strResult = XIVMService.executeMapping(src, dst, a);
    Solution as in New Function,
    I have created a array to that particular destination variable and stored all value in array and passed to that target value. I have bold that letters.
    //here I run a loop to store multiple destination value
    if(receiverService.length>1)
    for(i=0;i<receiverService.length;i++)
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    I am sending both the functions
    My question is is that LIFNR can send the multiple values to the detination for this change ?
    And also I want to know how to execute this program and transport and testing this UDF.
    Please need your inputs.
    Thanks
    Bala Prasad
    4. Old Function
    java.util.regex.Pattern;java.util.Vector;java.util.regex.Matcher;com.sap.aii.mapping.value.api.*;
    public String get_Value_Mapping_Table_V(String a,String scheme,String context,Container container){
    // PART1 : First we need to get the sender - and receiver service from the container object
    GlobalContainer globalContainer;
    String senderService = new String();
    String receiverService = new String();
    java.util.Map map;
    //Fill variables
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    // Get the sender- and receiver service constants
    senderService = (String) map.get(
    StreamTransformationConstants.SENDER_SERVICE);
    receiverService = (String) map.get(
    StreamTransformationConstants.RECEIVER_SERVICE);
    // PART2: Now we need to find the correct value mapping table
    String strContext = context;                                //some context value
    String senderScheme = scheme;                                    //VendorNumber or VendorAccountGroup
    String receiverScheme = scheme;
    String receiverAgency = new String();
    if (receiverService.equals("EL1CLNT100")||receiverService.equals("KL1CLNT100")||receiverService.equals("PL1CLNT100")) receiverAgency = "PL1CLNT100";
    if (receiverService.equals("D01CLNT100")||receiverService.equals("T01CLNT100")||receiverService.equals("P01CLNT100")) receiverAgency = "P01CLNT100";
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    String senderAgency =  "MEPCLNT100";
    IFIdentifier src = XIVMFactory.newIdentifier(strContext, senderAgency, senderScheme);
    IFIdentifier dst = XIVMFactory.newIdentifier(strContext, receiverAgency , receiverScheme);
                try {
                            String strResult = XIVMService.executeMapping(src, dst, a);
                            return strResult;
                } catch (ValueMappingException e) {
                            return a;
    5. New Function
    java.util.regex.Pattern;java.util.Vector;java.util.regex.Matcher;com.sap.aii.mapping.value.api.*;
    public String get_Value_Mapping_Table_N(String a,String scheme,String context,Container container){
    // PART1 : First we need to get the sender - and receiver service from the container object
    GlobalContainer globalContainer;
    String senderService = new String();
    String receiverService = new String();
    java.util.Map map;
    //Fill variables
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    // Get the sender- and receiver service constants
    senderService = (String) map.get(
    StreamTransformationConstants.SENDER_SERVICE);
    receiverService = (String) map.get(
    StreamTransformationConstants.RECEIVER_SERVICE);
    // PART2: Now we need to find the correct value mapping table
    String strContext = context;                                //some context value
    String senderScheme = scheme;                                    //VendorNumber or VendorAccountGroup
    String receiverScheme = scheme;
    String receiverAgency[] = new String(); //here I changed into a array to store multiple value
    if (receiverService.equals("EL1CLNT100")||receiverService.equals("KL1CLNT100")||receiverService.equals("PL1CLNT100")) receiverAgency = "PL1CLNT100";
    if (receiverService.equals("D01CLNT100")||receiverService.equals("T01CLNT100")||receiverService.equals("P01CLNT100")) receiverAgency = "P01CLNT100";
    //here I run a loop to store multiple destination value
    if(receiverService.length>1)
    for(i=0;i<receiverService.length;i++)
    if (receiverService.equals("EM1CLNT003")||receiverService.equals("KM1CLNT003")||receiverService.equals("C11CLNT003")) receiverAgency<i> = "C11CLNT003";
    }String senderAgency =  "MEPCLNT100";
    IFRequest src = XIVMFactory.newIFRequest(strContext,senderAgency,senderScheme);
    IFRequest dst = XIVMFactory.newIFRequest(strContext,receiverAgency,receiverScheme);
                try {
                            String strResult = XIVMService.executeMapping(src, dst, a);
                            return strResult;
                } catch (ValueMappingException e) {
                            return a;

    Janaki,
    "and it did not work."
    That's useless information.
    When asking for help with a technical question here, you need to describe exactly what you did, showing all code, explaining the entire context in which the code is used, and showing all error messages and actual results along with a description of the expected results.
    One thing though, if this example is based on the standard EMP table, why does "depno" have no "t" in it in all your references?
    Scott

Maybe you are looking for

  • Effect of sound card quality on ripping m

    I am trying to capture audio played over my sound card and rip right to mp3 with a program called Tunebite. I am wondering what effect, if any, my sound card has on the quality of the resulting mp3 file? Somebody told me this is all done in software

  • Using a local network in the philippines for the new 3g IPHONE

    i wuold just want to know if il be buying the new 3g iphone in the US by july, would i be able to use it in the Philippines using the local network there.

  • Menu Modules in Forms4.5 and Forms6i

    I have some doubts regarding in forms4.5 and forms6i Recently I have migrated Forms 4.5 into Forms 6i. In forms4.5 I can crete a menu module and can attach into form without canvas. But I cannot in Forms 6i, I would like to call a menu module " FULL_

  • SPC Chart and Tag Name starting with a Number

    On a 11.5.3 (latest build) install, we've found that SPC Charts don't like tag names that start with numeric characters.  The data points just don't plot.  I can right click and get the data, but there are no points on the chart.  All other applets w

  • Notification - Adobe Flash player 14.0r0 has stopped working - takes multiple clicks to close.

    When going onto Facebook or E-bay a notification screen comes up with: 'Adobe Flash player 14.0r0 has stopped working' It has 2 options: 1. Check online for a solution & close the program. 2. Close the program. It takes multiple clicks, 10 to 12, on