Skip to Content
author's profile photo Former Member
Former Member

ABAP WebService Issue

Hello Champs,

I am consuming web service using ABAP, configuration done from SOAMANAGER and its working fine when I am testing it from SE80. but same is not working when I have created program from SE38 not Error no Output nothing.

Requesting your inputs on this, below is my program code. do I have to add any thing else in code or any configuration is still missing.

DATA : proxy TYPE REF TO /sen/co_real_time_services_mmd.

DATA : input TYPE /sen/mmdi_get_article_details1,

lt_article TYPE /sen/type_article_tab1,

ls_article TYPE /sen/type_article1,

output TYPE /sen/mmdi_get_article_details,

lr_proxy TYPE REF TO cl_proxy_client,

lr_prot_payload TYPE REF TO cl_wsprotocol_payload.

PARAMETERS : p_matnr TYPE c LENGTH 25,

p_laung TYPE c LENGTH 3,

p_pack TYPE i LENGTH 10,

p_refid TYPE c LENGTH 10,

p_id TYPE c LENGTH 10.

TRY.

CREATE OBJECT proxy

EXPORTING

logical_port_name = 'I_MATERIAL'.

CATCH cx_ai_system_fault .

ENDTRY.

ls_article-article_id = p_matnr.

ls_article-language = p_laung.

ls_article-packetnumber = p_pack.

ls_article-calling_tool_ref_id = p_refid.

ls_article-calling_tool_id = p_id.

ls_article-packetnumber = p_pack.

APPEND ls_article TO lt_article.

input-article[] = lt_article.

TRY.

CALL METHOD proxy->mmdi_get_article_details

EXPORTING

input = input

IMPORTING

output = output.

CATCH cx_ai_system_fault .

CATCH cx_ai_application_fault .

ENDTRY.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 26, 2014 at 08:50 AM

    Hi,

    Yes, processing all those exceptions (say, by catching them into lx_ex type cx_root) and outputting the error messages using message lx_ex type 'E' would not hurt and may actually help to understand what's wrong, isn't it? 😊

    cheers

    Jānis

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.