ABAP proxy code help needed

Hi,
In the ABAP inbound (server) proxy, I have written code like this.
DATA: lt_material TYPE TABLE OF zxdt_material,
        ls_material TYPE zxdt_material,
        ls_input type zxmt_cam.
ls_input = input.
lt_material = ls_input-mt_cam-material.
Here, material is a table type which should have 10 records of material. But it has only one records always eventhough I am passing 10 records in the input xml.
What could be the reason?
Any help is really appreciated since I am trying this for a long time now.
Thanks
Ricky

Example code...
here header has simple structure type (non repeating) so we directly assigning fields
INPUT-ACCOUNTLIST-ACCOUNTDETAILINFO has proxy table structure(repeating structure) ,.... so we have used internal table for that..
FUNCTION Z_00FI_ACCOUNTS_RECON_DAT.
""Local Interface:
*"  IMPORTING
*"     REFERENCE(INPUT) TYPE  ZDT_ACCOUNT_RECON_INFO_TARGET4
TABLES:ZT00FI_ACCDATA,                       "Accounts Data
       ZT00FI_ACCHEAD.
DATA:
     LT_ACCOUNTLIST TYPE TABLE OF  ZDT_ACCOUNT_RECON_INFO_TARGET3,
     LT_ACCDATATAB TYPE TABLE OF ZT00FI_ACCDATA,
     LT_ACCHEADERTAB TYPE TABLE OF ZT00FI_ACCHEAD,
     LS_ACCOUNTLIST TYPE  ZDT_ACCOUNT_RECON_INFO_TARGET3,
     LS_ACCDATATAB TYPE ZT00FI_ACCDATA,
     LS_ACCHEADERTAB TYPE ZT00FI_ACCHEAD,
     LS_HEADER TYPE ZDT_ACCOUNT_RECON_INFO_TARGET.
    SELECT SINGLE * FROM ZT00FI_ACCHEAD
    WHERE BATCHID = INPUT-HEADER-BATCHID AND
          SUBBATCHID = INPUT-HEADER-SUBBATCHID.
*IF SY-SUBRC NE 0.
MOVE:
  INPUT-HEADER-SOURCEREF TO LS_ACCHEADERTAB-SOURCEREF,
  INPUT-HEADER-BATCHID TO LS_ACCHEADERTAB-BATCHID,
  INPUT-HEADER-SUBBATCHID TO LS_ACCHEADERTAB-SUBBATCHID,
  INPUT-EXTRACTIONINFO-DATAVERSION TO LS_ACCHEADERTAB-DATAVERSION,
  INPUT-EXTRACTIONINFO-SOURCESYSTEM TO LS_ACCHEADERTAB-SOURCESYSTEM,
  INPUT-EXTRACTIONINFO-COUNTRYCODE TO LS_ACCHEADERTAB-COUNTRYCODE,
  INPUT-EXTRACTIONINFO-NUMBEROFACCOUNTS TO LS_ACCHEADERTAB-NUMBEROFACCOUNTS,
  INPUT-EXTRACTIONINFO-STARTTIMESTAMP TO LS_ACCHEADERTAB-STARTIMESTAMP,
  INPUT-EXTRACTIONINFO-ENDTIMESTAMP TO LS_ACCHEADERTAB-ENDTIMESTAMP,
  INPUT-EXTRACTIONINFO-DELTAINDICATOR TO LS_ACCHEADERTAB-DELTAINDICATOR,
  INPUT-EXTRACTIONINFO-LASTBATCHINDICAT TO LS_ACCHEADERTAB-LASTBATCHINDICAT.
MOVE 'N' TO LS_ACCHEADERTAB-PROCESSINDICATOR.
APPEND LS_ACCHEADERTAB TO LT_ACCHEADERTAB.
INSERT ZT00FI_ACCHEAD FROM TABLE LT_ACCHEADERTAB.
MOVE INPUT-ACCOUNTLIST-ACCOUNTDETAILINFO TO LT_ACCOUNTLIST.
LOOP AT LT_ACCOUNTLIST INTO LS_ACCOUNTLIST.
  MOVE:
  INPUT-HEADER-BATCHID TO LS_ACCDATATAB-BATCH_ID,
  INPUT-HEADER-SUBBATCHID TO LS_ACCDATATAB-SUBBATCH_ID.
  MOVE-CORRESPONDING LS_ACCOUNTLIST TO LS_ACCDATATAB.
  APPEND LS_ACCDATATAB TO LT_ACCDATATAB.
  CLEAR:LS_ACCOUNTLIST,
        LS_ACCDATATAB.
ENDLOOP.
INSERT ZT00FI_ACCDATA FROM TABLE LT_ACCDATATAB.
COMMIT WORK.
*ENDIF.
ENDFUNCTION.

Similar Messages

  • ABAP proxy code using internal table

    Hi XI guru's,
    Good Afternoon,
    My Scenario is ABAP Proxy to file using ztable.
    i am getting data from Sap R/3 data base as Ztable. using this Ztable i have to write ABAP Proxy code. I generated ABAP Proxy and mentioned all below.Please send me ABAP Proxy code using this details. This is very urgent. Please help me.
    ABAP proxy class:   zco_mioa_tata
    structure              :   zmt_tata
    structure                :   zdt_tata
    structure                :   zdt_tata_employee
    Table                :   zdt_tata_employee_tab
    Ztable                :   zcnu_proxy_table
    outbound structure:
    mt_tata
        employee
    thanks and regards
    sai

    Sai,
    I guess this will help you.
    1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.
    2. One more thing proxies can be used if your WAS ≥ 6.2.
    3. Use Tcode SPROXY into R/3 system for proxy use.
    4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.
    REPORT zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE zblogemp_profile_msg.
    TRY.
    it-emp_profile_msg-emp_name = 'Sarvesh'.
    it-emp_profile_msg-empno = '01212'.
    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    CALL METHOD prxy->execute_asynchronous
    EXPORTING
    output = it.
    commit work.
    CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE :/ fault->errortext.
    ENDTRY.
    Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.
    5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.
    I hope this will clear few doubts in proxy.
    Just go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    ABAP Server Proxies By Siva Maranani
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    File to R/3 via ABAP Proxy with good example
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    Generating java proxies..
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    Synchronous Proxies:
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Regards,
    Sarvesh

  • Debugging ABAP Proxy code

    Hi,
    I have problem in ABAP Proxy. When i upload a XML and test the ABAP Proxy code it is working fine, but when i trigger the change from sender, its updating the wrong value in the database.
    I checked the incoming and the converted XML, everything is correct and there is no prob in the XI.
    Please tell me is there any way to debug the ABAP Proxy during the actual proccessing i,e. when the change is triggered from the sender.
    Thanks and Regards,
    Arunsri

    I've had the same problem before...everything seemed fine but the xml was not updating the desired values - you have 2 choices - 1. Enable the debugging, but if you have a high volume scenario, then it may cause some issues. Also, I am not sure if you plan to do this in production - as you know, debugging in production is a big No-No.
    Option 2 is to just take the stream and store it as a file in the OS. This is what we followed and we were able to figure out the issue with the xml. Make sure you write it in such a way that you can turn it off immediately. In our case, it worked fine for all suppliers but one and this one supplier was sending a double spaced character in between, which was causing the issue.
    Regards,
    Srini

  • Survey creation abap code help needed

    hello experts,
    I need to create a survey in crm, by taking values from end-user from a webpage
    A sample code help is needed.
    Thanks in advance

    Take a look at this SAP note - It does a pretty good job of detailing the steps for you.  No coding necessary, it worked out of the box for us after patching this note.
    https://service.sap.com/sap/support/notes/638320

  • ABAP proxy code

    Hi,
    i need to write a report program to trigger client proxy
    input parameters for the report company code and based on company code FM extract information which is defined in tables option.
    how do i map the proxy table to FM table.
    below mentioed are reference details.
    class: ZSVCO_FILE_BR_OUT_ASYNC
    Message Type: ZSVFILE_BR
    proxy Table: BR_DETAILS
    i am following the blog by ravikumar .
    REPORT  Z_BR_RECON                              .
    DATA prxy TYPE REF TO ZSVCO_FILE_BR_OUT_ASYNC.
    CREATE OBJECT prxy.
    DATA it TYPE  ZSVFILE_BR.
    TRY.
        it-BR_DETAILS-field1= map to functoin module table
        it-BR_DETAILS-field1= map to functoin module table
        it-BR_DETAILS-field3= map to functoin module table
        CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.

    Hi-
    Check out this blogs,hope its helpful to you...
    ABAP Proxy
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Client Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Proxy code
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

  • My simple Inbound ABAP Proxy code doesn't work in PI 7.1 EHP1 SP3 ?

    Hi,
    I just installed and configure new PI 7.1 EHP 1 SP3 and i tried some simple abap proxy but seems like doesn't work.
    Please advise what is missing base on my simple abap code below :
    =================================================================================================
    METHOD zpi711ii_si_syn_in_aaeproxy~si_syn_in_aaeproxy.
    **** INSERT IMPLEMENTATION HERE **** ***
    DATA: inputdata TYPE ZPI711MT_REQ_1,
    outputdata TYPE ZPI711MT_RES_1.
    CONCATENATE inputdata-mt_req_1-firstname ' ' inputdata-mt_req_1-lastname INTO outputdata-mt_res_1-fullname.
    ENDMETHOD.
    =================================================================================================
    i have put some break on the CONCATENATE seems like inputdata-mt_req_1-firstname is empty ? why ?
    The sample xml input is :
    =================================================================================================
    <n0:MT_REQ_1 xmlns:n0="http://www.abeam.com/sample/pi" xmlns:prx="urn:sap.com:proxy:ST6:/1SAI/TAS1190827B531A473B357B:700:2008/06/25">
    <FIRSTNAME>This is a string 4</FIRSTNAME>
    <LASTNAME>This is a string 5</LASTNAME>
    </n0:MT_REQ_1>
    =================================================================================================
    Please advise
    Thank You and Best Regards
    Fernand

    Hi Fernand ,
    Few things to check :
    1. hope you are accessing the correct node of proxy structure and the correct message type too.
    2.. If the occurrence of node is 1 to many than it will be a table type in that case your need to use a loop to access row values.
    Make sure that you have used the correct message types for creating variables..
    DATA: inputdata TYPE ZPI711MT_REQ_1,
    outputdata TYPE ZPI711MT_RES_1.
    --->inputdata-mt_req_1-firstname ' ' inputdata-mt_req_1-lastname
    >once you have created the variable of particular messagetype than you have to use in this format inputdata-firstname and inputdata-lastname. seems some thing fishy here...inputdata-mt_req_1-firstname/lastname.
    Regards ,

  • Generic Proxy pattern - help needed.

    Greetings!
    Lately i have been working on some design architecture to work on possible ways of designing message flows in OSB.
    I found one excellent solution called Generic Proxy pattern at: http://javamaster.wordpress.com/tag/osb/ .
    This pattern consists of four proxy services.
    Actually Generic Proxy pattern and proxy service are different. You can read more about pattern at : http://game-engineering.blogspot.com/2010/03/adapter-pattern-vs-proxy-pattern.html
    My problem is interesting and very straight forward.
    1. I have one proxy service which is created on client side WSDL.
    2. I have one business service created on legacy system WSDL.
    Now, if i want to implement this Generic Proxy pattern, I need to create two more proxy services in between my existing proxy service & existing business service.
    On what basis should these two proxy services should be created?
    Options in OSB to create a proxy service are : WSDL Web Service / Messaging Service / Any SOAP Service / Any XML Service / Business Service / Proxy Service
    If anybody has worked in this pattern, please help.
    Any inputs from everyone are welcome.
    Thanks and Regards,
    Swapnil Kharwadkar.

    The generic proxy service will be of type "messaging service" with input/output type as text/XML.

  • 7.1 Client ABAP proxy code sample (outbound)

    Hi guys,
    has somebody implemented new 7.0(7.1) abap proxies using ws runtime?
    Could you please post some sample code of client abap proxy?
    The 3. proxies were quite easy, but I'm a little bit confused in 7.0 and it's ws-rm.
    Thanks a lot, Olian

    Create a client proxy (for eg. the name would be like ZCO_MI_EMP_OUT_SYNC).
    Create a report program for the client proxy.
    report  yh_proxyclient.
    *  tables: ZEMP_DTLS_COPY.
       data: input type zmt_emp_tar1 .
       data: output type zmt_emp_src1 .
       data: client type ref to zco_mi_emp_out_sync .
      output-mt_emp_src-dept_id = 'SAP EP'.
      data wa_emp type zdt_emp_tar_employee.
      data wa_empinsert type zemp_dtls_copy. "ZDT_EMP_TAR_EMPLOYEE.
    try.
        create object client
    *  EXPORTING
    *    logical_port_name  =
      catch cx_ai_system_fault .
    endtry.
    try.
    call method client->execute_synchronous
      exporting
        output = output
      importing
        input  = input
    catch cx_ai_system_fault .
    catch cx_ai_application_fault .
    endtry.
    loop at input-mt_emp_tar-employee into wa_emp.
      write: / wa_emp-emp_id, wa_emp-dept_id, wa_emp-emp_name, wa_emp-emp_address.
    endloop.
      commit work.
    endmethod
    the above code is taken fron this wiki  (step by step guide using an example)
    [https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/abapClientProxytoABAPServerProxy+Scenario]

  • ABAP Code Help needed in DSO

    Hi All,
    My requirement is below :
    In my DSO I have the data as below
    doc number     item     con type     Agreement
    100     10     adc     1234
              efg     5678
              hij      ' '
    200     20     adc     1234
              efg     ' '
              hij      5678
    Now I have created a New Info object named flag. So now I am doing a self myself data mart where i need to write my routine to set data in the flag.
    The data should be like
    doc number     item     con type     Agreement   Flag
    100     10     adc     1234               X
              efg     5678               X
              hij      ' '                     X
    200     20     adc     1234               X
              efg     ' '                    X
              hij      5678              X
    Note:- even if agreement is blank for hij we need to put X since agreement is available for the remaining two condition types.
    Please can any one help with the code.and also please let meknow whether we shold write it in start routine or end routine
    Thanks In advance
    Sree

    Hi Rookie ,
    If i write the code below
    DATA: ITAB TYPE TABLE OF tys_TG_1,
               ITAB_WA TYPE tys_TG_1.
    MOVE RESULT_PACKAGE[] TO ITAB[].
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
       IF <RESULT_FIELDS>-AGREEMENT IS NOT INITIAL.
            <RESULT_FIELDS>-FLAG = 'X'.
       ELSE.
            LOOP AT ITAB INTO ITAB_WA WHERE AGREEMENT IS NOT INITIAL AND
                                    DOC_NO = <RESULT_FIELDS>-DOC_NO AND
                                    ITM_NO = <RESULT_FIELDS>-DOC_NO.
                 <RESULT_FIELDS>-FLAG = 'X'.
                  EXIT.
            ENDLOOP.
       ENDIF.
    ENDLOOP.
    My requirement doesnt match
    My requirement is below
    doc number    item     con type        Agreement
    100                 10           adc            1234
                                         efg             5678
                                          hij                ' '
    200                  20          adc             ' '
                                         efg               ' '
                                          hij                ' '
    Expected result is
    doc number    item     con type        Agreement    flag
    100                 10           adc            1234                x
                                         efg             5678                 x
                                          hij                ' '                     x
    200                  20          adc             ' '                     ' '  
                                         efg               ' '                    ' '
                                          hij                ' '                     ' '
    regards
    Sree

  • Server proxy code help!!!!

    Hi!
    I'm a rookie in XI and I create a server proxy in a abap.
    I need insert or modify the table zfintbcm017 in sap but I dont know if the code is correct because the system dont accept the insert and modify statement.
    In the EXECUTE_ASYNCHRONOUS method I put this code.
    method ZCM_II_INTERFACE_BAL_INFO~EXECUTE_ASYNCHRONOUS.
    *TABLES
         zfintbcm017.             "GL Account Balance
    DATA: in TYPE zcm_interface_balance_r3_dt .
    DATA: BEGIN OF struc,
    gldate TYPE zfintbcm017-gldate,
    glccode TYPE zfintbcm017-glccode,
    glaccount TYPE zfintbcm017-glaccount,
    glprfcenter TYPE zfintbcm017-glprfcenter,
    subbalance  TYPE zfintbcm017-subbalance,
    subindicator  TYPE zfintbcm017-subindicator,
          END   OF struc.
    DATA: wa LIKE  struc.
    SELECT SINGLE gldate glccode glaccount glprfcenter
        FROM zfintbcm017 into corresponding fields of struc
        WHERE  gldate = in-date
          AND   glccode = in-company_code
          AND   glaccount = in-gl_account
          AND   glprfcenter = in-profit_center.
    IF sy-subrc <> 0.
      struc-subbalance = in-subsidiary_balance.
    struc-subindicator = in-subsidiary_indicator.
      INSERT zfintbcm017.
    ELSE.
      struc-subbalance = in-subsidiary_balance.
      struc-subindicator = in-subsidiary_indicator.
      MODIFY zfintbcm017.
    ENDIF.
    COMMIT WORK.
    endmethod.
    Thanks!

    you should use <b>INSERT zfintbcm017 FROM struc.</b> and <b>MODIFY zfintbcm017 FROM struc.</b>
    If you want to use <b>INSERT zfintbcm017</b> you should fill the <b>zfintbcm017</b> work area.
    regards
    Shravan

  • ABAP Error. Help needed ASAP

    Hi Gurus,
    I am trying to write an ABAP statement for the below requirement.
    Function has two import parameters. 1. key and 2. date.
                                Export parameter: export_rec like TAB.
    Req:  I need to select a record from a table where key = input parameter and input date lies between the from and to date fields in the table. (since table is time dependent).
    EXPORT_REC like TAB,
    I_T_TAB like TAB OCCURS 0 WITH HEADER LINE.
    SELECT  SINGLE * FROM I_T_TAB INTO EXPORT_REC WHERE KEY = IMPORT_ PARAMETER AND IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
    But, I am getting errors. It says the I_T_TAB is not defined in the Abap dictionary as table, view or projection.
    I defined it as an internal table. But, even then I am getting this error.
    Can anyone please help me out with this issue,
    Thanks,
    Regards,
    aarthi
    [email protected]

    Hi
    From you code i understand that I_T_TAB is the internal table that fetch data from the SAP table TAB.
    So, the reason for the error statement is because of the Select statement.
    The select statement is used to fetch data from SAP table TAB.
    So your select statement should look like this...
    SELECT SINGLE * FROM TAB INTO I_T_TAB
    WHERE key = import_ PARAMETER
    AND import_param_date BETWEEN from_date AND to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
    ENDIF.
    If you are trying to fetch data from the internal table I_T_TAB &
    append the export parameter EXPORT_REC then you should use the READ statement.
    READ TABLE i_t_tab WITH KEY key = import_ parameter
    and import_param_date between from_date and to_date.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING i_t_tab TO export_rec.
      APPEND export_rec.
    ENDIF.
    Hope this helps!
    best regards,
    Thangesh

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • A smple code help needed

    I Have a little problem
    i want to push a button in creator that execute the following SQL code
    INSERT INTO NAMES2(NAME,ID)
    SELECT NAME,ID
    FROM NAMES
    WHERE ID = '1' ;
    this sql code take a row from a table to another table and so on i need that happen from a button in creator in other word how can i but this code in the java
    i think it's simple but i didn't find it in any place i know
    so can Any one Help Me:)

    because sql is more faster 1000 timeswho told u that ??? how u measuer this ?
    u can use ordinary way in adding or deleting recordes in database using DataSource Connection booling
    i think u can do this by the way of DataProvider ,, as the tutorials tell u that ,,, it is easy and straightforward
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    hope this will help u
    good luck
    Muhammed

  • Reverse Proxy Configuration help Needed

    Hi,
    What steps should i follow if i have both Sun Web Server 6.1.
    Web Server 1 - http://192.168.20.40:768 (Want to use this as reverse proxy)
    Web Server 2 - http://201.192.30.20:1010
    Can anyone please guide me what changes i should do in obj.conf and magnus.conf.
    Add this line in Magnus.conf
    Init fn="load-modules" shlib="/appl/sunjs/SUNWwbsvr/plugins/passthrough/libpassthrough.so"
    This libpassthrough.so location is in the Server 1.
    Add the below line in obj.conf
    <Object name="passthrough">
    Service fn="service-passthrough" servers="http://team.yahoo.co.nz:1010"
    </Object>
    Do i need to do any changes to the obj.conf and magnus.conf in the Server 2.
    Please let me know if i am going wrong.
    Regards,

    Hi,
    Reverse Proxy Web Server - http://Sol9-dev.uname.yahoo.co.nz:8002
    All request Want to redirect to - http://Sol10-dev.uname.yahoo.co.nz:8080
    Obj.Conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="assign-name" from="/amserver(|/*)" name="reverse-proxy"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn=pfx2dir from=/mc-icons dir="/appl/sunjs/SUNWwbsvr/ns-icons" name="es-internal"
    NameTrans fn=document-root root="$docroot"
    PathCheck fn=unix-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html,index.jsp"
    PathCheck fn=validate_session_policy
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
    Service method=TRACE fn=service-trace
    Error fn="error-j2ee"
    AddLog fn=flex-log name="access"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object ppath="*/dummypost/sunpostpreserve*">
    Service type=text/* method=(GET) fn=append_post_data
    </Object>
    <Object ppath="*/UpdateAgentCacheServlet*">
    Service type=text/* method=(POST) fn=process_notification
    </Object>
    <Object name="reverse-proxy">
    Service fn="service-passthrough" servers="http://sol10-dev.uname.yahoo.co.nz:8080"
    </Object>
    Log Messages
    [22/Apr/2008:13:36:11] fine ( 4761): for host 10.112.66.87 trying to GET /amserver/, ntrans-j2ee reports: directory listing for context "/amserver"
    [22/Apr/2008:13:36:11] fine ( 4761): GET requests for virtual server https-Sol9-dev-pa.uname.yahoo.co.nz can safely bypass ACL checks
    [22/Apr/2008:13:36:11] fine ( 4761): for host 10.112.66.87 trying to GET /amserver/index.html, service-passthrough reports: PASS1022: passing request to http://Sol10-dev.uname.yahoo.co.nz:8080
    [22/Apr/2008:13:36:11] fine ( 4761): for host 10.112.66.87 trying to GET /amserver/index.html, service-passthrough reports: PASS1037: not rewriting "Location: http://Sol9-dev.uname.yahoo.co.nz:8002/amserver/index.html" from http://Sol10-dev.uname.yahoo.co.nz:8080
    [22/Apr/2008:13:36:11] fine ( 4761): for host 10.112.66.87 trying to GET /amserver/UI/Login, service-passthrough reports: PASS1022: passing request to http://Sol10-dev.uname.yahoo.co.nz:8080
    [22/Apr/2008:13:36:11] fine ( 4761): for host 10.112.66.87 trying to GET /amserver/UI/Login, service-passthrough reports: PASS1037: not rewriting "Location: http://Sol10-dev.uname.yahoo.co.nz:8002/amserver/UI/Login" from http://Sol10-dev.uname.yahoo.co.nz:8080
    Now i do not have anything in the reverse proxy server /amserver apart from the index.html (http://Sol9-dev.uname.yahoo.co.nz:8002/amserver/index.html)
    I guess i do not need to have the same application on the reverse proxy as of the original server where i am redirecting.
    Hope to find a solution soon.
    Thanks for all your help.
    Reagrds,

  • Xslt code help needed

    Dear SAP experts,
    Would you be able to help me in configuring the right xslt code to accomodate the looping logic?
    Source Document:
    School  (occur only once)
    - Name (can occur multiple times)
          - Nickname (occur only once)
          - Desired name (occur only once)
    Target Document:
    School
    - Name
         - Nickname (the value for this should be obtained from 'Desired name field')
         - Desired name
    I have this code, but seems not working in looping logic. (to accomodate the multiple Names):
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" media-type="xml" encoding="UTF-8" indent="yes"/>
    <xsl:template match="@*|node()">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/BuyerPartNumber">
      <BuyerPartNumber>
         <PartNum>
            <PartID>
                <xsl:value-of select ="/Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/ManufacturerPartNumber/PartID"/>
            </PartID>
        </PartNum>
    </BuyerPartNumber>
    </xsl:template>
    </xsl:stylesheet>
    What happened is that the value was taken ONLY on the 1st line item. (1st Name occurence)
    The succeeding Name field just copied the value of Nicknames from the 1st Name field.
    Kindly advise how to handle the context (loop logic) in the xslt code.
    Thanks!

    Apologies, but, it seems i did not indicate the complete message structure for the document I am testing.
    Order (root)
    OrderHeader (1st parent segment)
    OrderNumber (child fields - 1st)
    Order.. (child fields - 2nd)
    Order...(child fields - 2nd)
    OrderDetail (1st parent segment)
    <fields under this segment were already mentioned from previous threads>
    OrderSummary (1st parent segment)
    NumOfLines (child fields - 1st)
    TotalAmount (child fields - 1st)
    Under Order, there are also OrderHeader and OrderSummary parent segment, other than OrderDetail, in which we focus our code.
    I've tried your code, but, the segments OrderHeader and OrderSummary and child fields under it were not appearing on my output.
    But it seems, I've already generated the correct code.
    Here it is,
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" media-type="xml" encoding="UTF-8" indent="yes"/>
         <xsl:template match="@*|node()">
              <xsl:copy>
                   <xsl:apply-templates select="@*|node()"/>
              </xsl:copy>
         <xsl:template match="/Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/BuyerPartNumber">
              <xsl:for-each select=".">
                   <BuyerPartNumber>
                        <PartNum>
                             <PartID>
                                  <xsl:value-of select="../ManufacturerPartNumber/PartID"/>
                             </PartID>
                        </PartNum>
                   </BuyerPartNumber>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    I believe, the code you've suggested last time will accomodate only OrderDetail parent segment. Is this correct?
    Thanks!

Maybe you are looking for

  • How do you add contacts to new web text service?

    This has been an obnoxious experience with Verizon's new text service from the web site to any device. I tried to get started doing exactly what they said to do.  I selected all my contacts that appeared in the list to add to the contacts in the web

  • Safari will not load after update to 5.0.1

    Ever since I updated my MacBook Pro (Intel Core 2 Duo, Leopard 10.5.8) all available software yesterday, including an update to Safari 5.0.1, nothing will load on Safari. It will get stuck in a perpetual load with the status bar not reaching further

  • Compare 2 value

    Hi All, I want to compare 2 values in same internal table. like. belnr     qty qty1 1234    12   1 1234    12   2 I want to compare belnr value and put qty = 0 if belnr is duplicate. like belnr     qty qty1 1234    12   1 1234    00     2 please help

  • ACE MAXCONNS issue

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in

  • The serial number doesn't coincide.

    The purchased day is March 27, 2013 serial number doesn't coincide.