cancel
Showing results for 
Search instead for 
Did you mean: 
SAP Community Downtime Scheduled for This Weekend

macro coding problem

Former Member
0 Kudos
50

hi all,

i have extended a business object bus2032, in that i created a method. i want to retrieve 'CUSTOMERNO'. HERE IS THE PROBLEM..the customerno is inside a attribute named 'orderingparty' which was created by referring a object 'kna1'.

how can i retrieve the value.

in coding part i have used "object-orderingparty" but it shows error.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

first u assign the parameter in the method with ref to object type.

use this macro syntax

SWC_GET_PROPERTY .

and then retrieve the key field by using SWC_GET_OBJECT_Key

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

first use parameter in the method, then try with the following steps.

Former Member
0 Kudos

First you read the attribute by using macro

SWC_GET_PROPERTY .

and then retrieve the key field by using SWC_GET_OBJECT_Key.

I feel you can just do I direct coding from table. I have done this before no need to Read attribute afterall everything is in database table.

<b>Reward points if useful</b>