cancel
Showing results for 
Search instead for 
Did you mean: 

problem with SO creation Gateway service

Former Member
0 Kudos

Dear experts ,

i am working on Gateway service which creates Salesorder. its working fine. now i want add conditions to that SO in both header and item level. i extended the code for conditions but its not working. Guide me to resolve this problem.

when i debug the service i found an error that navigation property are not matching. see the code

LV_COMPARE_RESULT = IO_EXPAND->COMPARE_TO_TECH_NAMES( 'SOITEM/SOCOND' ).

i am getting error at above statement where i am using in deep_entity class.

Thankyou

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

thank you Ashwin for your response

i solved that problem by simply removing that

'IF lv_comp_result EQ /iwbep/if_mgw_odata_expand=>gcs_compare_result-match_equals.' from the code. its working fine now 🙂

AshwinDutt
Active Contributor
0 Kudos

Ok.

That means you are using the code LV_COMPARE_RESULT = IO_EXPAND->COMPARE_TO_TECH_NAMES( 'SOITEM/SOCOND' ) but removed 'IF lv_comp_result EQ /iwbep/if_mgw_odata_expand=>gcs_compare_result-match_equals.' correct ?

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Venkatesh,

Please use the below code and check.

LV_COMPARE_RESULT = IO_EXPAND->COMPARE_TO_TECH_NAMES( iv_expand = 'SOITEM/SOCOND' ).

IF lv_comp_result EQ /iwbep/if_mgw_odata_expand=>gcs_compare_result-match_equals.

" Call your logic accordingly inside here

Endif.

Regards,

Ashwin