‎2007 Apr 04 1:02 PM
My field name is WBKNZ - Goods movement indicator i serached in AUFM table i m not able to find that field can any one tell me where this field is found.
Thanks in advance
‎2007 Apr 04 1:11 PM
This field WBKNZ only exist in structure DIAUFM,
This structure is filled via FM PM_ORDER_GET_DETAIL in FORM GET_DIAUFM which uses FORM SET_WBKNZ_L
case p_kzbew.
when ' '.
if p_rsnum is initial.
p_wbknz = h_wa_ungepl. " Warenausgang ungeplant
* 2-Unplanned goods issue
else.
p_wbknz = h_wa_geplant. " Warenausgang geplant
* 1-Planned goods issue
endif.
when 'B'.
p_wbknz = h_we_best. " Wareneingang zur Bestellung
* 3-Goods receipt for purchase order
when 'F'.
p_wbknz = h_we_auft. " Wareneingang zum FertAuftrag
* 4-Goods receipt for production order
endcase.Regards
‎2007 Apr 04 1:07 PM
hi,
Press where-used-list to search for that field in any of the table fields .. i have checked it in my system i couldn't find it in any of the tables ..
regards,
Santosh
‎2007 Apr 04 1:10 PM
Hi,
This field is not there in any table, but this is existed in 3 Structures
<b>DIAUFM
IOMAMO
RIHAUFM</b>
Regards
Sudheer
‎2007 Apr 04 1:10 PM
‎2007 Apr 04 1:18 PM
ya i checked tht but the value range for WBKNZ and KZBEW domain is different.
Whats solution for this
‎2007 Apr 04 2:12 PM
Hi ,
As mentioned in the post by Reymond , this value is populated in the subroutine set_wbknz_l of the report SAPDBAFI.
What i understand is that this is done on the basis of the Movement indicator which is in the feild KZBEW of table AUFM . So you need to get this value and based on the logic mentiond in the subroutine get the value of wbknz.
Hope this helps.
Regards
Arun
‎2007 Apr 04 1:11 PM
This field WBKNZ only exist in structure DIAUFM,
This structure is filled via FM PM_ORDER_GET_DETAIL in FORM GET_DIAUFM which uses FORM SET_WBKNZ_L
case p_kzbew.
when ' '.
if p_rsnum is initial.
p_wbknz = h_wa_ungepl. " Warenausgang ungeplant
* 2-Unplanned goods issue
else.
p_wbknz = h_wa_geplant. " Warenausgang geplant
* 1-Planned goods issue
endif.
when 'B'.
p_wbknz = h_we_best. " Wareneingang zur Bestellung
* 3-Goods receipt for purchase order
when 'F'.
p_wbknz = h_we_auft. " Wareneingang zum FertAuftrag
* 4-Goods receipt for production order
endcase.Regards