cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Proxy Client, No Message Created on PI

Former Member
0 Kudos


Hi,

I have a scenario ABAP Proxy from ECC6 (Ehp7) to SAP PI (Single stack 7.31 SP16) to File.

In ECC side I have configure as on Michal's PI tips:

The SLDCHECK has been successfull, SPROXY displayed all ESR objects from PI.

On PI ESR I create:

- Data type for sender & receiver

- Message type for sender & receiver

- Service interface outbound asyn for MT sender

- Service interface inbound asyn for MT receiver

- Message mapping

- Operation mapping

On PI ID:

- Import ECC Business system from SLD

- Create Business component for File system

- Communication Channels for ECC system (Adapter type SOAP, HTTP, message protocol XI 3.0)

- Communication Channels for File system (FTP)

- Integrated Configuration for above

(I have tested the integrated configuration using SOAP tools and it works)

Next I create a Proxy Client class from SPROXY for the "Service interface inbound asyn".

And create a abap report to call the class method supplied the importing parameter data to be interfaced (sample program pasted below).

But when I execute the program, nothing happened on PI side.

I don't see any message created on PIMON, and also no logs on Netweaver.

Please advice is there any missed configuration?

Or how do I trace if the ECC system does trigger the correct HTTP/Proxy to PI system?

Point reward for any helpfull message.

Thank you.

Sample code I use to send data:

*&---------------------------------------------------------------------*
*& Report  ZPROXY_TO_CSV
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report  ZPROXY_TO_CSV.

data: O_PRXY type ref to ZCO_SI_OA_PROXY_TO_CSV,
      LS_EMPLOYEE type ZDT_PROXY_TO_CSV_SENDER_EMPLOY,
      LT_EMPLOYEE type ZDT_PROXY_TO_CSV_SENDER_EM_TAB,
      LS_EMPLOYEE_MT type ZMT_PROXY_TO_CSV_SENDER.

try.
  create object O_PRXY.
endtry.

LS_EMPLOYEE-FIRST_NAME = 'first'.
LS_EMPLOYEE-LAST_NAME = 'last'.
LS_EMPLOYEE-AREA = 'area'.
append LS_EMPLOYEE to LT_EMPLOYEE.

try.
    LS_EMPLOYEE_MT-MT_PROXY_TO_CSV_SENDER-EMPLOYEE = LT_EMPLOYEE.

    call method O_PRXY->SI_OA_PROXY_TO_CSV
      exporting
        OUTPUT = LS_EMPLOYEE_MT.
    commit work.

  catch CX_AI_SYSTEM_FAULT .
    data FAULT type ref to CX_AI_SYSTEM_FAULT .
    create object FAULT.
    write :/ FAULT->ERRORTEXT.
endtry.

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi,

Did you get any message in SAP system (ECC) SXMB_MONI?

regards,

Harish

Former Member
0 Kudos

Hi Harish,

Thank you for pointing me to SXMB_MONI...

I'm new to PI and I start with single stack PI, so I never use SXMB_MONI.

I have checked the SXMB_MOBI, and yes the message is there!

It has status scheduled, and never being processed.

Looks like I have to configure a job for this, please advice where I can configure this.

Thank you.

former_member182412
Active Contributor
0 Kudos

Hi Joeq,

If the message in scheduled status, may be the message stuck in the queue, first check the queues are registered in ECC or not, check in SMQR transaction, if not register them in SXMB_ADM-> Manage Queues. After that go to smqr transaction and process the message.(Select the message and unlock queue)

Regards,

Praveen.

Former Member
0 Kudos

Hi Praveen,

There is no queue registered in my ECC yet

After register the queue all the messages is processed successfully now...

I do have to read more about XI/ABAP stack..

Thank you for your help!

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Joeq,


Next I create a Proxy Client class from SPROXY for the "Service interface inbound asyn".

You should be creating a proxy from the service interface OUTBOUND async Inbound proxies do not need to be instantiated but you need to implement the interface.

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

Thank you for your correction, I was copied/pasted from the wrong line

Yes I have create the proxy from the outbound interface...

Thank you.

former_member186851
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Raghuraman,

Thank you for the references!

former_member186851
Active Contributor
0 Kudos

Most welcome .:)