cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP <-> PI <-> RFC Sync Table Structure is initial (single stack)

openrico
Participant
0 Kudos

Dear SAP Professionals,

i have a strange behavior in my sync scenario. A third party System is sending some internal orders via Soap, the SAP PI passes the data and calls a BAPI. After this SAP PI should send the answer back to the third Party System.

Now the strange thing:

I am passing a filled table (CO_AUFK_LISTE) to the Bapi. As you see in the screenshot the Table is filled but the structure is Initial. Therefore the Exit is called.

If I test the Bapi in the ABAP System via SE37 this strange thing is not occuring.

I have maintained a sync Service Interface, 2 Mappings (Request and Response) with the BAPI Structure just passing the Data, one Operation Mapping for both sites and an Integrated Configuration.

Could you please provide me some help?

Thanks a lot.

regards

Enrico

Accepted Solutions (0)

Answers (2)

Answers (2)

ArielBravo
Active Participant

That the issue about using internal tables with headers (or work areas). They should be avoided at all cost!

The issue you have, is that CO_AUFK_LISTE IS INITIAL will check the work area of the table and not the table content.

As evgeniy.kolmakov mentioned, the cleaner way you can overcome that issue asking for the table content (using the []).

Best regards,

Ariel Bravo Ayala

former_member190293
Active Contributor
0 Kudos

Hi Erekle-Enrico!

Try to use:

IF CO_AUFK_LISTE[] IS INITIAL.

instead.

I missed it's BAPI code. Or is it user RFC code calling BAPI inside?

Regards, Evgeniy.