‎2009 May 13 1:23 PM
Please use a meaningful subject in future
Hi Experts,
I am doing coding in BI7 update rule:
Where I am checking if object type is 0NWA,then derive profit center from network master data where the field network should be equal to the first 7 digits of variable PIOVALUE so I am directly assigning it there...is this correct(the code is marked in ** - **)?
IF COMM_STRUCTURE-piobjsv = '0NWA'.
READ TABLE i_NW WITH TABLE KEY
co_area = COMM_STRUCTURE-co_area
**Network = COMM_STRUCTURE-PIOVALUE+0(7).**
IF sy-subrc = 0.
RESULT = i_NW-profit_ctr.
v_part_prctr = i_NW-profit_ctr.
ENDIF.
ENDIF.Edited by: Matt on May 14, 2009 8:54 AM - added tags
‎2009 May 13 1:24 PM
Hi,
your code is correct
and you can also use in this way
Network = COMM_STRUCTURE-PIOVALUE(7).
‎2009 May 13 1:24 PM
Hi,
your code is correct
and you can also use in this way
Network = COMM_STRUCTURE-PIOVALUE(7).
‎2009 May 13 1:32 PM
Hi,
One question length of PIOVALUE is 20 and only first 7 digits are of netwok rest are for other so thats y reading 0(7) ...then what you sugggesting will work in the same way i mean does it read first 7 digits only?
‎2009 May 13 1:33 PM
Yes, it will read the first Seven digit only in case of +0(7).
‎2009 May 13 1:43 PM
‎2009 May 13 7:18 PM
‎2009 May 13 7:33 PM
Pia - please use a more informative subject line in the future.
Rob
‎2009 May 14 7:55 AM