Proxy to File

Hi eXperts,
   I am developing an ABAP Proxy scenario where I have to get data from the Internal table and then send to a Legasy system as a FLAT FILE.
I have developed a sample code and providing in SDN to get me corrected if any errors.
Proxy to File Data Structure.
DT_S                               
   ROOT     1-un
         SI      1-1
         S2     1-1
         S3     1-1
MT_S
MI_S
Client Proxy Structure
^Class ZXX_CO_MI_S
     ^METHOD EXECUTE_ASYNCHRONOUS
          ^IMPORTING   OUTPUT                            ZXX_MT_S
                ^MT_S                                               ZXX_DT_S
                    ^ROOT
                         S1       STRING
                         S2     STRING                                              
                         S3     STRING
ZProgram. 
Tables : lfa1.     
Parameters : P_Date type lfa1-aedat.
Types for export parameters.
DATA : Pur_order type Zxx_mt_s.
*For calling class and exceptions.
Data : client_proxy type ref to ZXX_CO_MI_S,
           Sys_exception  type ref to CX_AI_SYSTEM_FAULT,
           APPL_Exception type ref to AI_APPLICATION_FAULT.
Data : Begin of it_out occurs 0,
                Lifnr like lfa1-lifnr,
                Name1 like lfa1-name1,
                Land1 like lfa1-land1,
            End of it_itab.
Select lifnr, name1, land1 from lfa1 into table it_itab where aedat = p_date.
Loop at it_itab.
        Pur_order-mt_s-root-s1 = it_itab-lifnr.
        Pur_order-mt_s-root-s2 = it_itab-name.1
        Pur_order-mt_s-root-s3 = it_itab-land1.
   Clear it_itab.
Endloop.
*Create Proxy object and call method.
CREATE OBJECT CLIENT_PROXY().
TRY
CALL METHOD CLIENT_PROXY -> EXECUTE_ASYCHRONOUS
        EXPORTING
              OUTPUT = PUR_ORDER.
If sy-subrc = 0.
Write: / ‘Method called successfully.’
Else.
Write: / ‘Method called failed.’
Endif.
*exception handling.
CATCH CX_AI_SYSTEM_FAULT   INTO   SYS_EXCEPTION.
Write : / ‘System fault encountered.’
Write : / SYS_EXCEPTION -> ERROR TEXT.
RETURN.
CATCH CX_AI_APPLICATION_FAULT   INTO   APPL_EXCEPTION.
Write : / ‘Application fault encountered.’
RETURN.
ENDTRY.
COMMIT WORK.
Please Very Urgent.
thanks in advance...

u r not passing the itab data to proxy.
pass the data to proxy before calling method..
client_proxy-MT_S ZXX_DT_S-ROOT[] = it_tab[].
*Create Proxy object and call method.
CREATE OBJECT CLIENT_PROXY().
TRY
CALL METHOD CLIENT_PROXY -> EXECUTE_ASYCHRONOUS
EXPORTING
OUTPUT = PUR_ORDER.
If sy-subrc = 0.
Write: / ‘Method called successfully.’
Else.
Write: / ‘Method called failed.’
Endif.
*exception handling.
CATCH CX_AI_SYSTEM_FAULT INTO SYS_EXCEPTION.
Write : / ‘System fault encountered.’
Write : / SYS_EXCEPTION -> ERROR TEXT.
RETURN.
CATCH CX_AI_APPLICATION_FAULT INTO APPL_EXCEPTION.
Write : / ‘Application fault encountered.’
RETURN.
ENDTRY.
COMMIT WORK.
Please Very Urgent.
thanks in advance...

Similar Messages

  • IIS Proxy SAR file needed

    Hi all:
       I would like to implement the IIS Proxy SSO solution. Is there anybody can send me the IIS Proxy SAR file ?
       I cannot find it in service.sap.com/patches
       my mail : [email protected]
       I will give you the reward points.
       thanks.

    Hi,
    To my knowledge IISProxy is not supported/delivered by SAP anymore. See the OSS note 886214 for details. You can use WebDispatcher as reverse proxy and SPNego for SSO authentication. They are supposed to be replacements for what you could do with IISProxy.
    So I doubt you will find IIS Proxy inside Service Marketplace. Doesn't mean that you cannot get it anywhere else though.
    Regards,
    Mike

  • Problem with Configuration in Production ( ABAP Proxy - XI - FILE)

    Hi All,
    I have a ABAP Proxy -> XI -> FILE scenario wich is working perfectly in DEV and QAS environment.
    When the person responsible for transporting tried to transport the objects in QAS to PRD, the following error happened:
    Direction of communication channel |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA is incorrect.
    Correct the direction or choose another communication channel
    BS_MA_FileServer_PRD - Business System (FILE)
    CC_File_PedidosServ_MA_FileServer_IA  - My FILE Communication Channel
    This was what the Basis person sent to me. I don't have access to know exactly what happened. And I really don't know what could be wrong or if maybe a component was created wrongly in Production.
    Hope you can help.
    Points will be given.
    tks.. Daniela

    You have mentioned FILE is on the receiving side and ABAP proxy is on sender side.
    But the error pasted by you clearly shows syntax of a Sender Agreement .
    For receiver agreement it should be |<Sender Service>| |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA
    Bipin

  • Getting  error when testing Proxy to File interface

    Hi Guru's,
    While I am testing a Proxy to File Interface, using SPROXY transaction i am sending a message from  R/3 to PI.
    the message showing successful in R/3 Moni,but in PI moni I am getting the following Error..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    In this inreface, I am suppose to send the mesasage to only one Target system(ftp server) . i have checked in ID part also,
    every thing is clear in ID. Can any body please tell where the mistake might exists...
    Thanks in advance..
    Regards
    Raj

    Hi,
    No receiver could be found means Check your Receiver Determination. Activate and update cache. Asysnchronous messages can be manually restarted.
    have you seen this threads,
    NO_RECEIVER_CASE_ASYNC
    No receiver could be determined
    regards,
    ganesh.

  • Proxy to File using EOIO

    Hi Experts,
    I have a scenario where I need to send data from SAP to PI so I am using proxy to file scenario. Here i need to send huge amount of data.
    In some blog i saw that proxy can handle only some maximum amount of data.(but not 100% sure how much size of data the proxy can handle)
    So i decided to call the proxy multiple times by sending only some 'n' no. of records and kept the receiver file adapter in append mode.
    The problem here is the data is not appending in the order in which i am sending from SAP. In sxmb_moni the messages were showing the QoS as 'EO'.
    Is it possible to change the QoS to EOIO?
    Thanks & Regards
    Stephen Rouvier

    From SAP documentation:
    "The sender of a message uses the attribute Quality of Service (QoS) to determine how a message is delivered"
    hence ..as the File adapter supports all Qos, the Proxy can be called with Qos EOIO and the adapter will maintain the Qos as requested.
    You should how ever try and send the data in a bulk and see how the Proxy handle it.
    What is the nature of the data exported and for what purpose?

  • Scenario PROXY - SENDER FILE - RECEIVER FILE

    Hi Experts,
    I need to create a synchronous scenario where the proxy sends the filename to send and PI must transfer the file to a location X. The source file is in a different location of the destination file 
    This scenario, should this be done through Process Integration?
    Thanks,

    Hi,
    I think you can use a sync/async bridge to do your scenario and you wont need any development outside of using standard modules. The idea is to create a scenario Proxy(sync)-File(Async) -File (Async) without BPM. Check the point 8 in this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e276?QuickLink=index&…
    I have never tested this with the SFTP channel, and i dont know if this adapter supports the RequestOneWayBean and WaitResponseBean modules. May be you should wait to someone that confirms to you the possibility of using this modules with the SFTP adapter.
    Regards.

  • Including helper classes in java proxy jar file

    I must not be using the right header search criteria because I'm sure this question
    has been asked before. In a Web Service File (.jws) I've imported a couple of
    helper classes that function as data transfer objects. I did this to maintain
    consistency with other portions of the application. The Java Proxy jar file generated
    by Workshop does not include these files. Is there a way of including these dependencies
    or do I need to distribute another jar file with my helper classes?

    Hi Naichen,
    I was able to successfully run both the autotype and clientgen Ant task, on the
    WSDL you provided. The code behind those Ant tasks are pretty much what the WebLogic
    Web Services test page run. Are you using WLS 8.1 SP2? If not, you might want
    to try with that version.
    Regards,
    Mike Wooten
    "Naichen Liu" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am having a warning message when trying to generate java proxy jar
    file on weblogic8.1
    webservice test web app, the message is as follows:
    "Warning Failed to generate client proxy from WSDL definition for this
    service.
    Prescription Please verify the <types> section of the WSDL."
    in the mean time, on weblogic starting terminal, I saw the following
    exceptions,
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength4Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,4L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\OSIFieldAnonTypeDeserializer.java:36: cannot resolve
    symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkMaxLengthFacet(__typed_obj,69L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\AlphaLength2Deserializer.java:36: cannot resolve symbol
    symbol : class FacetUtils
    location: package binding
    weblogic.xml.schema.binding.FacetUtils.checkLengthFacet(__typed_obj,2L);
    ^
    C:\DOCUME~1\u252738\LOCALS~1\Temp\wlwproxy37508.jar1533409921\com\ual\www\rcc\cb
    t\schema\modifypnr\FreeFormAnonTypeDeserializer.java:36: cannot resolve
    symbol
    symbol : class FacetUtils"
    Can anybody help me about this issue? I attached WSDL file, also United
    Airlines
    got an enterprise weblogic license deal with BEA, any help will be highly
    appreciated.
    Thanks!!!
    Naichen

  • Proxy to file interface , need to have field name aslo in the file

    Hi , i ahve done a interface from Proxy to file , in which , i have to give a label name of all the fields in the top of the file which acts as header in my fields , is there ant option in the XI to give header or label
    please help me in this
    thanking you
    sridhar

    Hi Sridhar,
    This link might be helpful:[http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm]
    Regards
    Bhanu
    Intelligroup.

  • Error in Proxy to File scenario

    Hello All,
    I m doing Client Proxy,  ABAP proxy to file scenario.
    I hv done all the configurations in IR & ID.
    I hv also created proxy in sender R3 system.
    But messages are not going successfully from R3.
    when i checkin SXMB_MONI of R3 i get following error
    <SAP:Stack>Error when receiving by HTTP (error code: 110, error text: )</SAP:Stack>
    Message is in SYSFAIL status in SMQ2.
    Any clues how it can be solved??
    Thanks in adv.
    Mahi

    Hi Maheshwari,
    Please try as mentioned below
    Option 1: Go to SXMB_ADM->Manage Queues and Deregister all the Queues.Use transaction SMQR or SMQ2 to reset the status of queues
    For this to initiate processing of messages stuck in the queue, make sure to set following IS configuration parameter
    MONITOR QRFC_RESTART_ALLOWED to value 1
    Option 2: Check the user associated with the RFC destination AI_RUNTIME_JCOSERVER in sm59 transaction. It is generally SAPJSF. Might be posisble the user password is expired or locked. Log on to j2ee admin tool on the server side and update the password and then see if it works.
    Thanks
    Amit
    Reward points if answer is helpful

  • Proxy.PAC file not working after upgrade to 10.9.2

    I have a local proxy.pac file and it was working happily before 10.9.2.
    It was loaded under "Network > Proxies > Automatic Proxy Configuration" and effective for all browsers (Chrome, Safari and Firefox).
    After upgrade to 10.9.2 seems like it's being totally ignored. I have a CNTLM proxy in my machine and can see the traffic coming in. Looking at logs, no traffic really comes in and all browsers try to access internet directly.
    If I set the proxy.pac directly in Firefox, it works but I want all my browsers and application. I want the same functionality as of 10.9.1 and before.

    I submitted a bug report to Apple. The problem is present since 10.9.2, now with 10.10 and iOS. I hope they will take this problem seriously.

  • Error on PROXY to FILE scenario

    Hi,
    I'm working on a Proxy to FIle Scenario. 1 Proxy is triggered and 7 files should be generated at the target side.
    Now when the proxy is triggered all the 7 files doesn't get generated. Instead randomly some 3-4 files are getting generated.
    Could not see the rest of the entries in MONI also.
    Can someone tell how to monitor this and where exactly to check for the error, as message doesn't reach the MONI and we don't have a sender channel beacuse its Proxy.
    Thanks,
    Vikas

    Vikas,
    Can someone tell how to monitor this and where exactly to check for the error, as message doesn't reach the MONI and we don't have a sender channel beacuse its Proxy.
    > how 7 files will generate ?
    From Proxy level @ ECC it don't seems logical/possible as whole data will be passed as a whole to proxy interface and on some condition basis only you would be creating 7...files . so definitely at SXMB_MONI of XI you can see this .
    Try to increase trace_level parameter to 3 (only in development box , as it will consume the server very fast) for better monitoring .
    Since the no. of files will be created by file adapter only so those many no. of receiver file adapter calls you can see at RWB.
    Regards,

  • Error in Proxy to File :no msg in sxmb_moni in application system

    Hi all
    i am doing a Proxy to file scenario.i have executed the scenario successfully and the file is created once. from next time i am executing the scenario it is picking the data in ECC and sending data to proxy method (checked through debugging),but it is not showing the message in sxmb_moni for the second time and is not reaching xi.It is only displaying the message processed for the first time.
    i have not done any changes in design but few modifications like changing the date format in abap pgm.
    plz provide the solution and can any one why there is no message in sxmb_moni?
    Regards
    satish

    Hi,
    Check the following
    1. RFC connection between R/3 and PI
    2. You said Business system of type third party (PI) is receiving it. Try Business system standalone Java. If PI system is already defined in Landscape as Integration server. It will not show any message output.
    3. message is shown in sxmb_moni in your ERP that measn proxy is able to receive all objects and passed it from there.
    4. Check in SMQ2 outbound queue of ERP as well as inbound queue for PI if message exist.
    5. While configuring in ID you dont need a sender agreement. Did you created one.
    and finally Check in SMQ2 transaction if the messages are waiting there. If yes, unlock and release queue.
    regards,
    Surya

  • Proxy to file scenario

    Hi SDN,
    I have  a query regarding a Proxy to File scenario. Whenever the ABAP proxy populates the structure an d sends the data accross to XI  to genarate a file structure, then how does it confirms that the structure is sent to SAP.XI or to somewhere else? How is the confirmation done? and where is it done at Sender side or at the XI side?
    Thanks,
    Aniruddha

    Hi,
    >>>How is the confirmation done?
    if you do not set ack request it does not do any confirmation - you only see the successful flag in ECC and in PI
    nothing more
    Regards,
    Michal Krawczyk

  • Proxy to File scenario - IDOC as an flat file

    Hi,
    I am working on ABAP Sender Proxy to File scenario. The target structure in the message mapping is SHPMNT05 IDOC and the output of the file needs to be in the text format and then the file will be send to an EDI subsystem.
    Currently, EDI subsystem gets the IDOC from ERP system as a flat file and expects the similar kind of file from XI system
    The requirement is to have all the fields of the IDOC in the target file. If data does not exist for a particular field, then there should be a space for that field in the text file.
    I would like to know if there is any other standard way of executing this scenario apart from using File Content conversion. In case if we have to use FCC, how difficult it would to be implementing the scenario. Please note that the output file needs  all the fields of IDOC in it.
    Regards,
    Sakthi
    Edited by: Sakthi on Sep 26, 2008 11:24 AM

    Hello Sakthi,
             By coding in proxy populate the idoc structure if it is difficult to handle thru Content conversion parameters then create an intermediate structure and populate that structure by concatenating the fields from idoc segments. If the fields are not having the values then add blank spaces as per length of the field.
    You can configure the file channel and content converison parameters for the intermediate structure.
    Hope it will helps to you.
    Cheers
    Veera

  • ABAP client proxy to File scenario

    Hi,
    I am doing ABAP client proxy to File scenario.
    I have followed Ravikumar allampallam blog i.e https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1387. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    My abap proxy has successfully created 4 objects:
    1)ABAP Class ( ZCO_ MIOA_ABAP_PROXY).
    2. Structure for the message type in ABAP Data Dictionary (ZMT_PROXY).
    3. Structure for the data type in ABAP Data Dictionary (ZDT_PROXY_SRC).
    4) Table type (ZSTRING_TAB).
    can u tell me how can i fetch data from database table into structure?

    Hi,
    see first create the data type,msg type, msg interface and go to R3 instance of Xi and use SPROXY transaction , locate your SWCV,namespace, intreface ( outbound) and create the proxy , later give the name starts with z, later in ABAP program create the internal table of type of the Structure for the message type in ABAP Data Dictionary (ZBLOGEMP_PROFILE_MSG )
    so follow the code and explained about each ob, structure of Msg ..
    Regards
    Chilla

  • Problem in Proxy to FIle senario.

    Hi ,
    I have a simple proxy to file senario, which is working fine.
    The problem is that i have to put one more file on the FTP server which has some text of 7 characters that denotes that the Proxy was successful. This second file should only be created after the the first file is successfully created.
    One of the solutions is to create to create one more proxy and put the two proxies into a specific queue so they are triggered one after the another.
    Do you have any other solution expect this ??
    Thanks.
    Harpreet Daphu

    Harpreet.... You do not need two proxies.... Create one proxy with a flag
    the purpose of the flag is to indicate whether the record sent is the message payload or the last control record(success/Failure..).. Map the structure of the proxy according to your original msg and the control record.
    Use interface determination to specify both the mapping....Make sure that you specify the original fsg first and chk the maintain order option...so the control rec is posted only if the msg record is succesful
    Alternativbely make the proxy EOIO..
    here is a link to help you with Proxy EOIO -> /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies
    You still need two mapping...but u dont need the maintain order option.
    I personallly would tryu the first option..
    regards
    Arvind R

Maybe you are looking for

  • Partition ERROR - 1023040 - msg from remote site : need to understand

    hi, I currently have a problem with the partitions between two cubes. Architecture:       80 countries database (source)       1 world database (destination) Process : - The partitions are created dynamically by maxl scripts : spool on to $1; Alter a

  • Basic icons at the bottom of the phone

    My sons have gotten hold of my iPhone. Safari has disappeared from the basic four icons on the bottom.... how do I get it back on there? Thanks!

  • Creating video aps for Iphone downloads?

    I didn't want to cross post the same post. I made the original one in the Compressor forum since my question dealt with video compression first. Here's the thread: http://discussions.apple.com/thread.jspa?threadID=2582515&stqc=true Can you create vid

  • Trying to free up space on HD

    I have a 500GB hard drive.  I deleted 14GB of movie files. Why didn't I get 14GB more space on my HD?  Available space went from 16.47 GB to 17.22GB. Yes, I did empty the trash.

  • Client - Server Installation

    I have a machine that has win2000 as operating. I have installed Oracle 8i and Developer 2000. I have developed an application using both. Recently I got another machine. Now I would like to install win98 on this and this machine get connected with t