Skip to Content
0

Changing Item Category in sales order items based on Special Stock Indicator on Dialog((SOBKZ_D)

Jan 28, 2017 at 05:44 PM

121

avatar image

Hi,

After creating items in service order, multiple items are selected and advance shipment is done.

In the Service Order,based on field Special Stock Indicator (SOBKZ_D) Item Category should be filled in Sales Order.

(SOBKZ_D)'2'---Reserved for WBS Element

(SOBKZ_D)space--Reserved for Order

We found an exit IWO10024 where we can move Service Order data to SaleOrder (while Advance Shipment is done)

For single component i was able to do as i bringing data in the below manner

ASSIGN '(SAPLCOIH)RESBD to <fs>

But for multiple components the above program was not having data in an internal table.

I tried with ASSIGN '(SAPLCOBC)RESB_BT[]' to <fs>

but this was not having the field 'SOBKZ_D' to check for Item Category.

Guys please help me how can we get data from RESBD type internal table to check the field Special Stock Indicator for dialog(SOBKZ_D)

Regards

Sukavasi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Jan 30, 2017 at 09:32 AM
0

First, you could replace the

ASSIGN '(SAPLCOBC)RESB_BT[]' " 

with a call of FM CO_BC_RESB_BT_FETCH, then use a FM like COS6_DISPLAY_FIELDS_FILL to generate 'displayed fields'. (or just copy/use the rule to map SOBKZ to SOKBZ_D)

Regards,
Raymond

Share
10 |10000 characters needed characters left characters exceeded