cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing table type within proxy structure

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use this,

receipt = input-GOODS_ISSUE-reciept.

material_slip = input-GOODS_ISSUE-material_slip.

plant = input-GOODS_ISSUE-plant.

material_number = input-GOODS_ISSUE-material_number.

posting_date = input-GOODS_ISSUE-posting_date.

By doing as above, you will get only single record. So if you have multiple records coming from XI then use loop.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

Thank you for your suggestion. Unfortunately, this didn't work. I got a syntax error which says that input-GOODS_ISSUE-receipt is unknown'.

I need to retrieve the values of RECEIPT, MATERIAL_SLIP, PLANT, MATERIAL_NUMBER, POSTING_DATE in the table GOODS_ISSUE. This table is within the structure GOODS_ISSUE_SERIALIZED_CREATE.

Any idea on how to retrieve these values?

Thank you.

Former Member
0 Kudos

Ok, Can I know the source structure and it's occourance (from Integration Repositroy).

The occourance of your parant node should be 0..unbound under which you have created RECEIPT, MATERIAL_SLIP, PLANT, MATERIAL_NUMBER, POSTING_DATE.

1. If it is not 0...unbound then make the changes and activate it.

2. Regenerate the proxy and activate it.

And then finally try your scenario.

Regards,

Sarvesh