Skip to Content
avatar image
Former Member

Problem in calling Client proxy using ABAP Report

All Your inputs and various threads were really helpful . i have followed this blog as well /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Now after all while trying to pass values to proxy i have an issue : in the above blog there is a small pinch of code for referencing the proxy through an abap report.

i.e. &----


*& Report ZBLOG_ABAP_PROXY

*&

&----


*&

*&

&----


REPORT zblog_abap_proxy.

DATA prxy TYPE REF TO zblogco_proxy_interface_ob.

*

CREATE OBJECT prxy.

DATA it TYPE zblogemp_profile_msg.

TRY.

it-emp_profile_msg-emp_name = 'Sravya'.

it-emp_profile_msg-empno = '80101'.

it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

.............

now instead of the DT being in this way : i.e. :

EMPProfile_MSG OCCURENCE

EmpNo 1

EmpName 1

DeptName 1

Instead if the DT / MT for which the proxy is generated is in this format for table data input then whats the way ?

EMPProfile_MSG OCCURENCE

.....Item 0..Unbounded

...........A 1

...........B 1

...........C 1

...........D 1

Please advice,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 19, 2006 at 08:55 AM

    Hi Krishna,

    For 0...unbounded message type u will have to create the internal table to receive all the values .

    Create internal table with line type ot type item along with work area

    Regards,

    Keith.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi krishna,

      ABAP proxy is besed on OO concepts , so if u r "EMPProfile_msg" comes under type output then u should access field as :

      it-empprofile_msg-item-A="x".

      Regards,

      Keith.

  • avatar image
    Former Member
    Feb 07, 2007 at 06:35 PM

    Hi,

    I am working on a similar scenario, in which this report triggers the client proxy and the values of these variables has to be dynamic :

    it-emp_profile_msg-emp_name = 'Sravya'.

    it-emp_profile_msg-empno = '80101'.

    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

    Can you plz tell me how can i assign the runtime value to these varibles.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      No, its still not clear to me ....

      My scenario is CRM (proxy)->XI>JDBC system.

      NOw my question is the values to be passed to the report have to be dynamic and not constant like :

      it-MT_REQUEST_NOVA-STATUS = '3'.

      it-MT_REQUEST_NOVA-INVOICE = 'ABC123'.

      How can i make my values dynamic ?

      Thanks