Skip to Content
0
Former Member
Dec 27, 2007 at 09:20 AM

Accessing table type within proxy structure

113 Views

Hi,

I am implementing a method of the inbound proxy interface. Within this method, I am trying to retrieve the values I get in proxy and use these values to update a table by calling a function module.

The proxy objects look like:

Proxy Objects

- Interface ZII_GOODS_ISSUE_SERIALIZED_CRE

- Method EXECUTE_ASYNCHRONOUS

- Importing INPUT

- GOODS_ISSUE_SERIALIZED_CREATE (*Note: This is structure)

- GOODS_ISSUE (*Note: this is table type)

- Receipt

- Material_Slip

- Plant

- Material_Number

- Posting_Date

My question is, how do i retrieve the values i need (Receipt, Material_Slip, Plant, Material_Number, Posting_Date) which are within a table type (GOODS_ISSUE) that is within a structure (GOODS_ISSUE_SERIALIZED_CREATE)?

In my code, I tried to to this:

method ZII_GOODS_ISSUE_SERIALIZED_CRE~EXECUTE_ASYNCHRONOUS.

  • **** INSERT IMPLEMENTATION HERE **** ***

DATA: receipt TYPE string,

material_slip TYPE string,

plant TYPE string,

material_number TYPE string,

posting_date TYPE string.

  • Convert input parameters

receipt = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-reciept.

material_slip = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_slip.

plant = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-plant.

material_number = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_number.

posting_date = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-posting_date.

ENDMETHOD.

but this got syntax error messages.

Thanks.