Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 05, 2017 at 11:26 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 05, 2017 at 11:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded