Skip to Content
0
Former Member
Apr 11, 2008 at 01:42 PM

Structure or Table Type ??

12 Views

Hi Epxerts,

Can someone give me an idea of passing multiple records in the parameter it_prxkna1 which of type structure as in code below :

I am working on this to pass it to XI.

Note : it_prxkna1 contains a 3 more nested structures and not an internal table.

Should it_prxkna1 be a table type or structure to hold multiple records?

TRY.

  • Assign row

it_prxkna1-MT_KNA1-record-row = wa_zcaap. --> one record of a customer

loop at t_zcaap into wa_zcaap.

CALL METHOD kna1_prxy->execute_asynchronous

EXPORTING

output = it_prxkna1.

COMMIT WORK.

endloop.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE :/ fault->errortext.

ENDTRY.

Please suggest.

Thanks

Dany

Edited by: Dan on Apr 11, 2008 9:42 AM