cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning value to field in proxy report

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184619
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Got the answer

Former Member
0 Kudos

Do something like this..

Data: wa_attr TYPE ZFAULT_MESSAGE_ADDITIONAL_ATTR.

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