Structure Conversion in Fileadapter in a server proxy scenario

Dear all,
i'd like to do the follwoing thing in XI:
1. Receive a structured text file
2. Make an content conversion:
File is structured in the following way:
- all records have fixed field length, there are two possible types of record, indicated by the first 2 characters e.g.
AA Recordtype 1
BB Recordtype 2
BB Recordtype 2
BB Recordtype 2
BB Recordtype 2
AA Recordtype 1
BB Recordtype 2
So each record of type 1 is followed by 0 - n records of type 2.
3. Send the converted message into an ABAP inbound proxy
I have some questions regarding that scenario:
a) Can i use the flag "Recordsets per message" in XI to control if my message should contain multiple recordsets (one recordset would be associated with one record of type 1 and N of type 2)
b) How will i access in the server proxy class the records. Will I have a field for the recordset (or a table of recordsets if i don 't use the flag "Recordsets per message" in XI ).
What about the subfield? Will I have a table structure for the record of type 2?
c) Is the file content conversion I described feasible?
Many thanks in advance for your replies
Best regards
Florian
Edited by: Florian Wittke on Jul 28, 2008 5:31 PM

Hi,,
a) Can i use the flag "Recordsets per message" in XI to control if my message should contain multiple recordsets (one recordset would be associated with one record of type 1 and N of type 2)
why? i dont see any productive for this.
b) How will i access in the server proxy class the records. Will I have a field for the recordset (or a table of recordsets if i don 't use the flag "Recordsets per message" in XI ).
to integrate with a proxy see nexts PDFs, is the same for BW,BI,R3.
follow this guide
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
or this
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9
What about the subfield? Will I have a table structure for the record of type 2?
c) Is the file content conversion I described feasible?
hi, yes it can be done.
see this link
File content conversion for Pipe delimited file
in this link some blogs
fcc
Thanks
Rodrigo

Similar Messages

  • File to Server Proxy Scenario

    Hi,
    I am working on ABAP (server)Proxy scenario. My servers are SAP PI 7.1 EHP1 and SAP ECC 6.0 running on HP-UX. I have gone through the Configuration steps for Proxy scenarios document. In that I found I need to create LCRSAPRFC and SAPSLDAPI RFC connections in ECC system and maintain the Program ID which is maintained in the J2ee Engine of ECC server.
    But my issue is - ECC system is running on only ABAP Engine.
    1. Can I configure Proxies with ECC systems which are running on only ABAP engines?
    2. I have ignored LCRSAPRFC and SAPSLDAPI steps and completed other configurations. I am able to see SWCV and Message Interfaces created in PI in ECC (SPROXY Transaction). Does this mean that I can ignore these 2 RFCs and go ahead with Proxy configurations?
    Thank you.

    >>I have ignored LCRSAPRFC and SAPSLDAPI steps and completed other configurations. I am able to see SWCV and Message Interfaces created in PI in ECC (SPROXY Transaction). Does this mean that I can ignore these 2 RFCs and go ahead with Proxy configurations?
    Why we need SM59 destinations SAPSLDAPI and LCRSAPRFC (on ECC) :
    LCRSAPRFC reads the exchange profile,
    SAPSLDAPI is used by the ABAP API.   Maintain the destinations as type T destinations to the registered server program with the program ID SAPSLDAPI. The program ID corresponds to the SLD data bridge.
    When using the destinations, the back-end system uses the parameters maintained in transaction SLDAPICUST.
    thanks
    BJagdishwar

  • File to ABAP Server Proxy Scenario

    Hi 2 all,
    I am running File to Server(ABAP) Proxy scenario...
    I have checked the ABAP Server Proxy at application server only and it is working fine....But when i am running the whole scenario my server proxy is not getting executed..( i.e my file is being picked up but proxy is not getting called ..:(( )
    Can i expect some valuable inputs regarding this issue..?
    Regards,

    to debug the problem....
    first check SXMB_MONI of R3 system... where proxy has been created.
    1 .check whether your proxy has been called ... it will be evident you get any message in moni for you interface or namespace..
    2. check you proxy message has not got stucked in queue... sometimes message get stucked in queue and hence proxy are not called.. release the messaeg using smq2.
    ELSE
    1 .go to SXMB_MONI...of XI..
    2. select 'Call Adapter'  in right hand of monitor.
    3. check the 'trace' under Call Adapter.
    4. if you go at end of trace or somewhat near to end.. there should trace like...this ...
    Trace level="1" type="T">Receiver party normalized =</Trace>
      <Trace level="1" type="T">Receiver party external =</Trace>
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">
      <Trace level="2" type="T">Addressing mode: destination</Trace>
      <Trace level="3" type="T">Destination = D67CLNT103_HTTP</Trace>
      <Trace level="3" type="T">Attributes of destination: D67CLNT103_HTTP</Trace>
      <Trace level="3" type="T">Type = H</Trace>
      <Trace level="3" type="T">Pipeline = ENTRY</Trace>
      <Trace level="3" type="T">Action = EXECUTE</Trace>
      <Trace level="3" type="T">Host = XXXXXXX</Trace>
      <Trace level="3" type="T">Port = XXXX7</Trace>
      <Trace level="3" type="T">Client = 103</Trace>
      <Trace level="3" type="T">User = XIAPPLUSER</Trace>
      <Trace level="3" type="T">Language = E</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">SSL not active</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="3" type="T">Creating HTTP-client</Trace>
      <Trace level="3" type="T">HTTP-client: creation finished</Trace>
      <Trace level="3" type="T">Serializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
      <Trace level="3" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
      <Trace level="3" type="T">HTTP-client: response received</Trace>
      <Trace level="3" type="T">HTTP-client: checking status code...</Trace>
      <Trace level="3" type="T">HTTP-client: status code = 200</Trace>
      <Trace level="3" type="T">Deserializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: closing...</Trace>
      </Trace>
    check whether connection establishment between XI and R3 is successful or not...
    if you are getting same message as above ,,that means ur RFC is working fine...
    problem is on r3 side.. for this go to r3 and check moni...

  • IDoc to ABAP Server Proxy scenario

    HI Experts,
    Recently our client has upgraded his R/3 system. From this R/3 system, IDocs are posted to SRM system thorugh XI.
    On receiver side we are implementing ABAP Server Proxies.
    We have recomended our client with all necessary changes to be done on XI Server during change over from old to new R/3.
    After change over, they have tested the scenario,  posting the IDocs to the SRM system. We found the follwing error in SXMB_MONI, Could some one tell me where exactly to look in to it.
    An error occured within an XI interface: The reference to a source object via the object number is different than the reference via the GUID Programm: SAPLBBP_BD_API; Include: LBBP_BD_APIF39; Line: 175
    Regards
    Praveen

    Hi,
    Pl implement note 1052569.
    And run report "RPODDELVRY",
    MM-SUS scenario mapping of the Goodsreceipt for inbound delivery @SUS
    Thanks
    Swarup

  • ABAP server proxy help required

    Hello,
    I want to make two simple ABAP server proxy scenarios
    1. File to ABAP server proxy (async scenario)
    2. File to ABAP server proxy (sync scenario)
    Pls send me the blogs/docs for the above scenarios.
    Regards

    Henry,
    Please go through the below links.
    <b>File to R/3 via ABAP Proxy with good example</b>
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <b>Synchronous Proxies:</b>
    <b>Outbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    <b>Inbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Also go through this, if you have problems in your proxy connection.
    <b>How to Activate Proxy.</b>
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Regards,
    Sarvesh

  • How to debug XI--- R/3 (abap server proxy) code,  SYSFAIL in SMQ2

    Hi
    i have a XI (BPM) to R/3 (ABAP server proxy) scenario,
    when the data goes from XI to R/3, it is getting stuck at R/3 inbound queue (SMQ2), with status : SYSFAIL and error text: "No roll storage space of length
    3391496 available for internal storage",
    we tried activating the queue/ reexecute the LUW, but it still shows the same error status after running for some time,
    how can i debug the ABAP server proxy,
    pls tell me how can i debug the ABAP proxy code in the R/3
    very critical issue

    Have a look at SAP Note 17965 - No storage space available
    Regards,
    Prateek

  • Configure XI adapter for abap proxy scenario- plz help

    Hi,
    Pleas help me in configureing the XI adpater in abap server proxy scenario, answer the one in bold in below
    Scenario is asynchronous
    Http -> XI ->R/3(abap server proxy)
    sender: Through http client
    receiver is abap server proxy
    Repository objects:
    Sender: sender_DT, sender_MT, sender_MI(outbound asynchronous)
    Receiver: receiver_MI
    Interface mapping: source=sender_MI, receiver_MI.
    <u>Proxy generated on R/3 client 550 for receiver_MI.</u>
    this proxy internally calls an RFC which inturn updates a table.
    Configuartion objects:
    Sender: business service, no comm channel since http sender.
    receiver: R/3 business system
    Comm channel: receiver_cc type of XI.
    transport protocol: http
    message protocol : XI 3.0, since both XI and R/3 on webas 6.4
    <b>addressing type: URL
    target host: ??? where can I find this
    service number: ?? where can I find this
    path: /sap/xi/engine?type=entry</b> i guess the path is correct for XI 3.0
    <u>My system details: XI - client 400, R/3 client  550.</u>
    Authentiction data:
    <b>user name: this user suppossed to be from R/3 or XI?,</b>
    passwrod; proper password
    <b>logon client: the client supposed to be of R/3 or XI?</b>
    Recevr determinaion, interface determination and recevr agrrement looks fine.
    Please reply , your help is appreciated.
    Thanks
    KK

    Hi,
    <i>>>>target host: ??? where can I find this</i>
    Your R/3 host number you can find System->Status
    <i>>>>service number: ?? where can I find this</i>
    You can find in SMICM in services
    <i>>>>user name: this user suppossed to be from R/3 or XI?,
    passwrod; proper password
    logon client: the client supposed to be of R/3 or XI?</i>
    R/3 logon details.
    Thanks,
    Prakash

  • How to do idoc to proxy scenario

    Hi There,
    As per requirement i am doing IDOC TO PROXY scenario. Can any one Pls help me how to do this configuration briefly.
    with regards,
    Naresh.K

    Hi,
    This is a Server Proxy Scenario.
    To trigger the IDoc maintain necessary configuraions in R/3 and XI like.
    1) RFC Destination (SM59) [XI & R/3]
    2) Create Port (IDX1) [XI]
    3) Load Meta Data for IDOC (IDX2) [XI]
    3) Create Partner Profile (WE20) [R/3]
    2) Create Port (We21) [R/3]
    Also go thru this blog....<a href="/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi Configuration for Pushing IDOC's from SAP to XI</a> by Swaroopa Vishwanath
    There is no need to create sender IDoc communication channel and Sender Aggrement...
    Go thru this blog for creating <a href="/people/siva.maranani/blog/2005/04/03/abap-server-proxies Server Proxies</a> by Siva Maranani
    Regards
    Santhosh
    Remember to set the thread to solved when you have received a solution
    [url=Use a Good Subject Line, One Question Per Posting - Award Points;  Use a Good Subject Line, One Question Per Posting - Award Points[/url]

  • In a server proxy how can I use a INCLUDE STRUCTURE?

    Hi people!!, how can I put an internal table with an INCLUDE statement in a server proxy in abap. If I put the next code the system present me this error: Within classes and interfaces, you can only use "TYPE" to refer to ABAP     , Dictionary types, not "LIKE" or "STRUCTURE".
    The problem is that I need the STRUCTURE to make a APPEND.
    Thanks for the help.
    DATA: BEGIN OF bdc_tab .
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.

    Hi Carlos,
    Yes. It mainly accepts TYPE statements.
    You can use this as:
    DATA: BDC_LINE type bdcdata.
    DATA: BDC_TAB type table of bdcdata.
    When you want to use,
    Fill the BDC_LINE.
    Then:
    Append BDC_LINE to BDC_TAB.
    Or:
    Loop at BDC_TAB into BDC_LINE.
    Cheers,
    Bhanu

  • Structuring complex ABAP server proxy

    Dear all,
    I'd like to sub divide the logic of an inbound server proxy in ABAP. In a normal report, i would use a "perform" routine for that.
    As far as i know, I can not create such routines in the execute_asychronous method of the proxy. So what is the best possibility to split that up? Creating a function module, that receices the data of the proxy and created the perform routines within that?
    What is the best solution regarding maintainability and performence?
    Thanks and best regards
    Florian

    Hi,
    Just add the methods to already existing proxy class :).
    In my opinion that's the best solution and you stay in object oriented world with better type control and exception handling. Also you can utilize other global classes.
    /wg

  • Server Proxy in back ground mode in ABAP?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • Server proxy in background mode using abap?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

  • ABAP Server Proxy: Mapping XSD to ABAP

    Dear all,
    has anyone faces the follwoing problem?
    I make a  conversion of a field (length is 2) during a file content conversion of a sender file adapter. However in most cases the field is filled with only one character and a subsequent blank. The conversion cuts the space, so in my taret XML structure I will have a field of length 1 or 2, right?
    When I generate the corresponding inbound proxy (i have file to proxy scenario), the xml field of length 1-2 has to be mapped to a char array in ABAP. How long will this array be? I suppose it will have length 2. But what happens in the case that the subsequent blank has been **** during the conversion? Will the ABAP field be filled up was a blank again? (leading or subsequent?)
    Isn't it better in that case not to make any restrictions to the length of the string in the xml structure? In that case, i think in ABAP these field will have to be interpreted as dynamic string, right?
    What would you prefer?
    Kind regards
    Florian

    Hi Mahi,
    in that case i could also just prevent xi from trimming using that parametter:
    NameA.fieldContentFormatting
    ○       Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
    ○       Specify nothing to ensure that the value remains unaltered.
    However, id like to trimm those blanks, but i want to know how i can send them to the proxy without getting "new blanks"

  • Pass a value of a file to a variable in a server proxy.

    I need to pass a value of a file to a variable in a server proxy and the system tell me that:
    Field "INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN-VERSION" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
    Thanks for the help.
    This is my code:
    DATA: bdc_line TYPE bdcdata.
    DATA: bdc_tab  TYPE TABLE OF bdcdata.
    DATA: opt TYPE ctu_params.
    CLEAR bdc_line.
      bdc_line-program = 'SAPLKPP0'.
      bdc_line-dynpro  = '1000'.
      bdc_line-dynbegin = 'X'.
      APPEND bdc_line TO bdc_tab.
      CLEAR bdc_line.
      bdc_line-fnam = 'KPP0B-VALUE(01)'.
      bdc_line-fval = input-entrada-item-zco_budgt_mi_in_zbapi_kp06_en-PER1.
      APPEND  bdc_line TO bdc_tab.
      CLEAR bdc_line.
      bdc_line-fnam = 'KPP0B-VALUE(02)'.
      bdc_line-fval = input-entrada-item- zco_budgt_mi_in_zbapi_kp06_en-PER2.
      APPEND bdc_line TO bdc_tab.
    CALL TRANSACTION 'KP06' USING bdc_tab
                              MODE 'A'
                              UPDATE 'S'.

    Hi,
    The 'input' normally is a field with nested structures.
    That may be the case here.
    You can you the following code instead:
    data: LS_LINE like line of INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN.
    or if you have a different nesting, try:
    data: LS_LINE like table of INPUT-ENTRADA-ITEM,
          LS_ITEM like line of <LS_LINE>.
    or other suitable declaration
    Then, in the code:
    loop at INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN into LS_LINE.
    ENDLOOP.
    or,
    loop at INPUT-ENTRADA-ITEM into LS_LINE.
    loop at LS_LINE into LS_ITEM.
    endloop.
    endloop.
    if you still have questions, let me know the structure of the 'input', with the table types involved.
    Cheers,
    Bhanu

Maybe you are looking for

  • Vendor Details mentioned in the agreement

    Hi All, We need to generate a report (excel) that lists all  the vendors ( vendors of outline agreements) records in SAP which shows.  SAP ID number, vendor name, address, 'blocked' status and 'marked for deletion' status and purchase orgs created in

  • Problem BlackBerry 8820 and Desktop Manager

    Hy i conect my BB but in the desktop manager in the pin area dont aperece my pin number aprece none and push this and push detec my pin an tell me the pin detected but in the main menu aperece none againg , what it the problem ?

  • Does the A B C D buttons do anything on the remote?

    #2 When I search for a show, is there a hotkey on the remote to make the numerical keys enter alphas instead of numbers?  (2 = abc) thanks.

  • Value based partitions

    I have two tables - customers whose name begins with A to N and another that contains customers whose name begins with M to Z I imported the table into the physical layer and joined them both to the orders table I bought them into the logical model a

  • Timeout error when calling package

    Hi, I have an application that calls a package, this package has a process that lasts 40 minutes, 30 minutes with the browser displays the following error: Explanation: The request timed out before the page could be retrieved. Try the following: Refr