Skip to Content
avatar image
Former Member

Assigning value to field in proxy report

Hello,

I am writing the abap report for sproxy.

The link to the field in structure is very long.

e.g. it-fault_message_mt-request-calldata-requester-gid = 'Z12345'.

In the structure one field in calldata is ADDITIONAL_ATTRIBUTE which is of table type.

I want to assign values to the fields of ADDITIONAL_ATTRIBUTE.

When I click on field ADDITIONAL_ATTRIBUTE we can see line type ZFAULT_MESSAGE_ADDITIONAL_ATTR and this line type is having NAME as on of the field.

I want to pass value to field NAME.

Regards,

Neelambari

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 27, 2009 at 09:00 AM

    Hi,

    Create a work area as line type. and loop at table type into work area.

    *wa like line type

    *loop at table_type into wa.

    *wa-name = Value.

    *append wa to target table type.

    ****target table type structure should be same as that of source table type. *****

    Sachin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2009 at 09:43 AM

    Do something like this..

    Data: wa_attr TYPE ZFAULT_MESSAGE_ADDITIONAL_ATTR.

    it-fault_message_mt-request-calldata-wa_attr-name = 'Neelambari'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 15, 2010 at 07:22 AM

    Got the answer

    Add comment
    10|10000 characters needed characters exceeded