cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

bapi_po_create1 : passing standard table field J_1BNBM into bapi

vieet
Explorer
0 Likes
826

Hi Gurus,
I have a field J_1BNBM in EKPO table which is getting field with control code.
There is validaion in po creation ME21N using method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM to make the field as mandatory due to which I am getting the
same error while using the BAPI_PO_CREATE1.
However, there is no field available  in line item of BAPI_PO_CREATE1 of related to J_1BNBM or control code.
The bapi will only post the PO if I could able to pass control_code(J_1BNBM)  using the same BAPI.
I thought of using as well as tried to achieve it through extension . But extension is for only customer add on fields .

J_1BNBM is standard field in EKPO and not customer field.

How to resolve this issue as I am at crossroads now ?

Accepted Solutions (0)

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor
0 Likes

In table parameters POITEM and POITEMX, the relevant field name is BRAS_NBM.

NB: Look at data element from SE11 on EKPO, 'Further Characteristics' tab, field 'Default Component Name'

qhd_lzy
Explorer
0 Likes

use method by get_data,you can get the value of field for J_1BNBM

qhd_lzy
Explorer
0 Likes
METHOD if_ex_me_process_po_cust~process_item.

DATA(l_j_1bnbm) = im_item->get_data( )-j_1bnbm.
IF l_j_1bnbm IS INITIAL.
  MESSAGE 'Lj_1bnbm is a mandatory input' TYPE 'E'.
ENDIF.

ENDMETHOD