Differentiating layers with same name using script

Hi,
In Illustrator, different layers can have the same name. Is there any unique identifier to differentiate between the layers having same name? Photoshop assigns an id to each layer. But in Illustrator I could not find any such property. I need to be able to extract some unique identifier for layers in Illustrator using scripting. Any help would be appreciated.
Thanks.

Hi Steve,
I am aware that users can assign any name to layers and that's exactly where I am facing the issue, Layer names can be duplicate and I am at a unable to find a unique identifier for layers. I am looking for a layer property that can serve as the unique identifier. It is really urgent and am stuck with this issue,. Hope I am able to communicate the problem

Similar Messages

  • How do I automate merging multiple layers with same name?

    It was suggested I ask this question in this forum - any advise gratefully received!
    I have to combine over a 800 files into one photoshop file. Each file has with sixty layers. The 60 layers in each file are named identically: Layer 1, Layer 2, Layer 3 up to Layer 59, Layer 60. My intention is to create a final composite file with 60 merged layers (for an animation). That is, with all the Layer 1's merged, all the Layer 2's merged, all the Layer 3's merged and so on. What I need is a script which will merge all layers with the same layer name, ie all the Layer 1s, all the Layer 2s etc (ideally without having to merge each set of layers separately).
    I am using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'.
    Any ideas?
    Best
    JR

    This might be close, it will prompt for a folder containing all the 800 files, it will use tif or psd files.
    Once you have selected the folder sit back and watch...
    #target photoshop
    app.bringToFront();
    main();
    function main(){
    selectedFolder = Folder.selectDialog( "Please select input folder");
    if(selectedFolder == null) return;
    var fileList = selectedFolder.getFiles(/\.(tif|psd)$/i);
    open(fileList[0]);
    checkBackGround();
    setLayersVisOn();
    for(var z = 1;z<fileList.length;z++){
        open(fileList[z]);
        checkBackGround();
        setLayersVisOn();
        dupLayers(app.documents[0].name);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    if(z % 9 == 0) mergeSameNamedLayers();
    mergeSameNamedLayers();
    function checkBackGround(){
    activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
    if(activeDocument.activeLayer.isBackgroundLayer){
        activeDocument.activeLayer.name=activeDocument.activeLayer.name;
    function twoOrMoreSelected(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) )  return true;
    return false;
    function mergeSameNamedLayers(){
    //Get a list of the layer names
    var layerNameList = getNamesPlusIDs();
    //create an array for unique layer names
    var uniqueName = new Array();
    for(var s in layerNameList){
        if(layerNameList[s][2] == "false") uniqueName.push( layerNameList[s][1].toString());
    //now we should have unique layer names
    uniqueName = UniqueSortedList( uniqueName ).sort();
    //select all layers with the same name, merge them and set blendmode
    var BlendMode = new String();
    for ( var w in uniqueName){
        deselectLayers();
        for(var z in layerNameList){
            if(uniqueName[w].toString() == layerNameList[z][1].toString()){
                //select these layers and get blendmode.
                BlendMode = layerNameList[z][3].toString();
                selectLayerById(Number(layerNameList[z][0]), true);
    if(twoOrMoreSelected()) activeDocument.activeLayer.merge();
            setBlendMode(BlendMode);
    function setBlendMode(blendMode) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var desc2 = new ActionDescriptor();
    desc2.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), stringIDToTypeID(blendMode) );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    function deselectLayers() {
        var desc01 = new ActionDescriptor();
            var ref01 = new ActionReference();
            ref01.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc01.putReference( charIDToTypeID('null'), ref01 );
        executeAction( stringIDToTypeID('selectNoLayers'), desc01, DialogModes.NO );
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function selectLayerById(ID, add) {
        add = (add == undefined)  ? add = false : add;
    var ref = new ActionReference();
    ref.putIdentifier(charIDToTypeID('Lyr '), ID);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref);
    if (add) {
      desc.putEnumerated(stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection'));
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
    function dupLayers(DocName) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var ref2 = new ActionReference();
    ref2.putName( charIDToTypeID('Dcmn'), DocName);
    desc.putReference( charIDToTypeID('T   '), ref2 );
    desc.putInteger( charIDToTypeID('Vrsn'), 5 );
    executeAction( charIDToTypeID('Dplc'), desc, DialogModes.NO );
    function selectAllLayers() {
        var desc29 = new ActionDescriptor();
            var ref23 = new ActionReference();
            ref23.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc29.putReference( charIDToTypeID('null'), ref23 );
        executeAction( stringIDToTypeID('selectAllLayers'), desc29, DialogModes.NO );
    function setLayersVisOn(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ))
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(stringIDToTypeID('visible'))){
                var list = new ActionList();
                list.putReference( ref );
                desc.putList( charIDToTypeID('null'), list );
                executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
             desc.hasKey( stringIDToTypeID( 'smartObject' ) )  ?  SO = true :  SO=false;
             var blendmode = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'mode' )));
    Names.push([[Id],[layerName],[SO],[blendmode]]);
    return Names;

  • Script to find files with same names with in a folder and it sub folders.

    Looking for script to find files with same names with in a folder and it sub folders.

    Are you just looking to find if any two files underneath a folder have the same name?
    If you just want to know that a file named "whatever" exists in two folders, that's not too difficult, but you probably want to know the full path names.
    Here's one attempt:
    $ perl -MFile::Find -le 'find(\&w, "."); while (($n,$p)=each %file) {if(@{$p}>1){print join(" ",@{$p})}} sub w{push @{$file{$_}},$File::Find::name;}'That will print the pathnames on the same line of any files with the same name that appear anywhere underneath your current directory.
    It's a bit long for a "one-liner", but functional.
    Darren

  • Can I cycle through and change the color overlay of certain layers by name using script?

    Can I cycle through and change the color overlay of certain layers by name using script?

    Sure. Ask in the scripting forum and refer to the scripting docs.
    Mylenium

  • While saving multiple attachments from mail, files with same name are added and not replaced

    While saving Multiple Attachments from Mail, existing file with same name are not overwritted but new files are added in the folder.

    Bjørn Larsen a écrit:
    Hi all
    Hope to get some help with Elements Organizer.
    I have 12-15 years of digital photos that I now want to import into my newly aquirede Adobe Elements Organizer / Photoshop. Since my Nikon names the files with continous numbers from 0001 to 9999 I have multiple files with the same name although they are not alike at all. My previous software had no problems with that since I keep the photos in separate file folders based on import date. I generally import photos after each event and so name the folder with the date and some event info (e.g. 2014.12.24 - Christmas at grandparents).
    That is a common situation, I have the same limitation for files not going over 9999 on my Canons...
    Now - when I import my photos into Elements Organizer I get a lot of error messages with "same name exist .....) Hmmmmmmm
    Please sate the exact wording of the error message, I have never seen a message stating 'same name exist...' or equivalent; only messages about files already in the catalog. Files already in the catalog mean that some files have the same 'date taken' and file size in Kb.
    Any suggestions. I'm using a mac and tried to rename files based on date taken. The mac can do that but it takes ages to go into each folder and run the renaming script there.
    I also use a similar folder creation scheme (such a date naming is the default for the downloader). That way I never get a message about duplicates for the same file names.
    However - I can't be the first or only person with this problem so I figure that some workaround must be known out there. Maybe the import action can recognize date taken or - well. Thank you very much in advance if you can help me out here.
    You can alsways set the downloader to rename the imported files with a unique new name, there are many options in the 'advanced' dialog of the downloader. I don't know about Macs, but I don't thing there is a difference.

  • Agent install with replacement machine with same name

    we replace old workstations with new ones with same name, SCCM does not update, it still shows the machine with an active agent, but it never gets installed on the new machine. what do I need to do to get the agent on the new machines?
    Pat

    Hi,
    If you are trying to use autimatic client push it will not install the client that scenario as the computername is already active in SCCM. You could use a startup script in a GPO to always make sure that the client is installed on all computers, Jason Sandys
    has written a great one, you can find it here..
    http://blog.configmgrftw.com/configmgr-client-startup-script/
    In the scenario above you also risk getting a duplicate in SCCM as the new computer with the old name has new hardware.
    Regards,
    Jörgen 
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • How to create device IDs with same name

    i am using SE 3310 and its creating different device ids for each node sharing it . since I will be building a RAC enviornment I need these IDs/name to be same .
    for example  on one node the lun id is /dev/rdsk/c3t0d0s6  but the same lun id on node 2 is /dev/rdsk/c2t0d0s6.
    In past with an old storage array I fixed this issue by creating links  in /dev/rdsk for  c3t0d0s6 --->  c2t0d0s6.
    my question is : is there a way in SE3310 that device ids get created with same name or do i still have to rely on creating these soft links ?
    thanks
    Note: since i need the answer to this quickly i will wait a while and then post this question in other forums and i will update the question here with the answer .

    This could be a Solaris (I presumed) O.S. question rather than SE3310 or storage question.  
    The logical device (/dev/[r]dsk/*) is the work of the O.S. when it first configures the device,  in this case the LUN from your SE3310.   I can go in depth on how the cX number happens (due to device probe order, driver differences, history of device discovery due to need of persistent device naming, etc...) but ... it's a really long story and is really quite irrelevant and most people should not be interested...
    If you have COMPLETELY identical servers, i.e. identical hardware down to specific HBA in specific slot are the same,   and if you make sure that luns are presented to all servers exactly the same way, same order, and any changes are seen by all servers in the same sequence,  in theory,  all /dev/rdsk/* devices will be consistent across servers.
    But that's still rather irrelevant.    Application that is designed to work in a redundant environment should not be dependent on logical devices like /dev/rdsk being the same.
    So ... in effect this is also not a question for the Solaris forum,  but rather a question for those familiar with RAC,  how to configure such that device access is done "safely" through actually identifying the lun rather than assuming /dev/rdsk are consistent.

  • Can I run 2 different domains with same name but on 2 different machines?

    I am trying to setup 2 domains with same name (sharedcds1) on 2 different machines (Machine1 and Machine2).
              When I start the weblogic managed server 1 (sharedcds1managedserver1) on Machine2, it throws an error saying it has some conflicts with the managed server 1 running on Machine1. How did the managed server of one machine know about the other server. Can I run 2 different domains with same name but on 2 different machines?
              Here is the error in the log -
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 4596206652609838848S:130.170.61.153:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 8842351474821025197S:130.170.61.154:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              Thanks
              Satish

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • Creation of BPEL with a WSDL having 2 operations with same name

    How to create a BPEL 2.0 from WSDL which is having the +2 operation with Same  name+ and we are planing to USE PICK activity but the BPEL is giving error while selecting the operation name
    can't create input variable.The selected operation does not have an input message.+
    WSDL:Operation
         <wsdl:portType name="ABC">
              *<wsdl:operation name="XYZ"*>
                   <wsdl:input name="Request1" message="tns:Request"/>
                   <wsdl:output name="Response1" message="tns:Response"/>
              </wsdl:operation>
              *<wsdl:operation name="XYZ">*
                   <wsdl:input name="Request2" message="tns:Request"/>
                   <wsdl:output name="Response2" message="tns:Response"/>
              </wsdl:operation>
         </wsdl:portType>
    Can you please provide the alternate solution if the procedure followed by us is wrong
    Thanks in Advance

    Hi Preetam,
    I believe it's not allowed, use different operation name.
    A wsdl:portType in a DESCRIPTION MUST have operations with distinct values for their name attributes.
    This applies only to the wsdl:operations within a given wsdl:portType. A wsdl:portType may have wsdl:operations with names that are the same as those found in other wsdl:portTypes.
    why do you need multiple operation with same message type?
    Regards,
    Faiz

  • Creating  file on network with same name

    Hello All,
    I have created the A0001BOE20060001.txt file on my machine & i want to create same file with same name on the different machine,
    i m able to copy all data in that file & recreate it on the server but i have problem with how to GET same file Name
    As i m creating a new file & writing data on the 1.txt which i m creating on the server
    How should i recognize the file name & create the same file on the server????

    Is this on Windows?
    I believe that java.io.File works with UNC paths. For example, if you have a network resource on the share myshare on machine my-pc, you could do something like:
    File f = new File( "\\\\my-pc\\myshare\\myfolder\\myfile.txt" );
    Note that you have to escape backslashes. You'll also want to be sure that you have permission to access the share - it won't prompt you for a password, so you must have already authenticated using Explorer or net use.
    Thanks,
    Brian

  • Can i have xml elements with same name but one is having attrbt..?

    Hi all,
    I am suppose to take input from one system into BPEL.That system is auto gererating xml file. But that file is strange. It has two xml element with
    same name but with completely different sequence. First one is having two comlexTypes while second is having 5 simple types.
    Now the difference is First element is having attribute while second is not.
    So is that file is correct.?
    thanks a lot.
    /mishit

    can you post the file? or load the file into JDeveloper and check the syntax or use XMLSpy for validation of the XML.

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • Mail in Mavericks not replacing existing mail with same name

    Mail in Mavericks not replacing existing mail with same name.
    Thanks

    I have the same situation as you - sending out pdfs of designed pages and wanting to overwrite them continually. It used to happen on an older version of Mail, then it disappeared and now it's back with the latest version.
    It's more than annoying, it's downright driving me nuts. In the last hour I had to quit Mail seven times.
    Please send a fix for this Apple.

  • Passing multiple URL parameters with same name

    Hi,
    I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
    Background:
    I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
    For example,
    http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
    Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
    Issue:
    When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
    (I am using getParameterValues(string) at service_server to read multiple values for same parameter)
    But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
    I checked the logs of service_server, and I see that it has received only one parameter, not two.
    Question:
    It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
    Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
    Can anybody suggest something on this?

    I managed to resolve this issue by using HTTP 'Post' method to send the data.
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'name'
        PASSWORD             = 'password'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'application/x-www-form-urlencoded' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-7 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Lovwindow

    hi guys i have a small problem with the lovs. thats is the lovs have to be put inside the cabo/jsps directory . is there any way to avoid this . i want to keep the lovs with the other uix pages, but it is currently not possible. could u tell me if th

  • Drive encrypted using Bitlocker...encrypting backup on Server 2008

    I've seen this topic discussed a few times but with very little real explanation on how to do this.  I have several servers for several customers that now must be encrypted.  I've run a few tests with our own internal servers and one user server and

  • STSUPLD.DLL not recognizing as an add-on; upload multiple documents disabled

    On my client system, Windows XP, Office 2007 and IE8 is installed. It is a 32 bit system. On the Sharepoint site, "upload multiple document" feature is disabled. After searching for the cause, I came to know about the STSUPLD add-on that needs to be

  • Can we remove Start Private Browsing from Tool list, but use Ctlr + Shift + P instead?

    Is it possible to move the word "Start Private Browsing" from the Tool List because it can create suspect or accuse to use it, I prefer to have it dissect like using the keyboard (use Ctlr + Shift + P) to start private browsing.

  • JSF and Hibernate Lazy loading

    Hello, It seems like Hibernate session is being closed after exception. This makes a conflict with JSF, since after session is closed lazy initialization cannot take place and the view of the page cannot be rendered. Is it right that Hibernate sessio