cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with ABAP Server Proxy (Nested deep structure)

Former Member
0 Kudos

Hi All,

I am facing an issue with ABAP Server proxies.

The message is having the nested structure as below:

PayrollResults

>PayResult

>Header

>ABKRS

PERSNO

:

:

NI_Paid

>PayDedDetails

>ABKRS

PERSNO

Wage Type

:

:

Amount

I have generated server proxy in application system but code fails to populate input data.

The input structure is coming blank with no data and return code when control enters proxy code is 4.

l_it_pay_results = input-payroll_results-pay_result.

Can you please suggest what could be the reason?

I have compared the xml structures and they are identical.

Regards

Prashant Rajani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In IR, check the occurance of PayrollResults and PayResult.

The occurance should be 0...unbound.

Also make sure, if you have made any changes in the structure of data types in IR after generating the proxy in R/3 then you need to regenerate and activate the proxy again.

Regards,

Sarvesh

Former Member
0 Kudos

HI,

Have u used the comit work at the end of the code.

Please check the below web log for debugging the Inbound proxy.

Debugging Inbound Proxy:

/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

Thnx

Chirag

Former Member
0 Kudos

Hi Chirag,

Thanks for your inputs!!

I have been through this blog and following the same for debugging. Commit is required at end of code but data is not at all being populated in input structure, that is the issue.

Code snippet below:

I applied breakpoint on line "l_it_pay_results = input-payroll_results-pay_result." and found that input structure is blank.

DATA:

l_wa_pay_results TYPE zpi_payroll_results_pay_result,

l_wa_pay_ded TYPE zpi_pay_ded_details,

l_wa_emp_header TYPE zpi_payroll_results_header,

l_wa_p9600 TYPE pa9600,

l_wa_p9601 TYPE pa9601.

l_it_pay_results = input-payroll_results-pay_result.

Regards

Prashant

Former Member
0 Kudos

HI,

This is the sample code which will help u to find what is missing in ur code.

method ZTP_II_MIIA_FILE~EXECUTE_ASYNCHRONOUS.

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

data:it_wa type ZTP_MT_FILE,

it_data type ZTP_DT_FILE_DATA_TAB,

wa_data type ZTP_DT_FILE_DATA,

wa_struc type ZTEST.

it_data[] = input-MT_FILE-DATA[].

loop at it_data into wa_data.

wa_struc-mandt = sy-mandt.

wa_struc-line1 = wa_data-line.

wa_struc-line2 = wa_data-ITEM.

INSERT INTO ZTEST VALUES wa_struc.

commit work.

endloop.

endmethod.

I think u have not taken the value in array of table, u have not used loop function in order to update the value in R3 table. I found some mistake in ur code.

Thnx

Chirag