Skip to Content
avatar image
Former Member

Inbound ABAP Proxie

I have the Requirement as follows

SOURCE STRUCTURE TRANSFORMATION TARGET STRUCTURE

A----


K(DIRECT MAPPING)

B----


L (DIRECT MAPPING)

C ( THIS C VALUE LOOKUP INTO ONE THE CUSTOM TABLE IN R/3 AND

RETURNS ONE OF THE TABLEFIELD VALUE, THIS RETURN VALUE SHOULD PASDSA TO TARGET) M

D( THIS D VALUE LOOKUP INTO ONE THE CUSTOM TABLE IN R/3 AND

RETURNS ONE OF THE TABLEFIELD VALUE, THIS RETURN VALUE SHOULD PASDSA TO TARGET) N

E ( THIS E VALUE LOOKUP INTO ONE THE CUSTOM TABLE IN R/3 AND

RETURNS ONE OF THE TABLEFIELD VALUE, THIS RETURN VALUE SHOULD PASDSA TO TARGET) O

PROXIE CREATED AT SENDER SIDE, I WANT WRITE PROXIE CODE.....

Please help me out how to write the proxie code?

Can i write the code for entire structure for direct mapping and lookup tables else for only lookup tables?

Regards

Praveen

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 08, 2008 at 10:01 AM

    can you explain more clearly what your requirement is?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2008 at 10:02 AM

    Hi Praveen,

    If I understood your issue, you want to write the ABAP code for a client proxy. Well, with this kind of proxy(outbound) you don't have a method were you can write the code directly, instead you should call the proxy class as a Pattern inside your code. Check the following links:

    ABAP Proxies in XI(Client Proxy)

    ABAP Proxies in XI(Client Proxy)

    ABAP Server Proxies

    ABAP Server Proxies

    File to R/3 via ABAP Proxy(Server Proxy)

    File to R/3 via ABAP Proxy

    Debug your inbound ABAP Proxy implementation

    XI: Debug your inbound ABAP Proxy implementation

    I hope it helps,

    Ricardo.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2008 at 10:04 AM

    Hi,

    >>Can i write the code for entire structure for direct mapping and lookup tables else for only lookup tables?

    You have to just write the Proxy code in ERP System to Initiate the Proxy and to send the data to XI.

    Inherit the Structure of the Proxy and read the data from Tables then pass the data to this Proxy structure.

    Regarding RFC Lookup----- you just have to do this part at Mappping itself, no need to handle this at Proxy code.

    RFC Lookups

    https://blogs.sap.com/?p=40802

    Use this crazy piece for any RFC Mapping Lookups!

    REgards

    Seshagiri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2008 at 10:04 AM

    Hi we need to send only 2 values and other values will execute in XI( lookup)

    DATA prxy TYPE REF TO ZCO_PROXY_SAP_OB.

    CREATE OBJECT prxy.

    DATA it TYPE ZPROXY_SAP_MT.

    TRY.

    it-PROXY_SAP_MT-A= 'ABCDEF'.

    it-PROXY_SAP_MT-B= 'test'.

    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.

    Regards,

    Jayasimha JAngam

    Add comment
    10|10000 characters needed characters exceeded