Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

While creating PO using BAPI_PO_CREATE1 vendor batch number is not comming.

Former Member
0 Likes
853

Hi Friends,

I am using BAPI " 'BAPI_PO_CREATE1' to create PO in my report.

The PO's are getting created but i the vendor batch number is not found in the PO.

Where as i am passing the vendor batch number.

bapimepoitem-vendrbatch = '2'.

bapimepoitemx-vendrbatch = 'X'.

CALL FUNCTION 'BAPI_PO_CREATE1'

EXPORTING

poheader = bapimepoheader

poheaderx = bapimepoheaderx

memory_uncomplete = 'X'

IMPORTING

exppurchaseorder = v_po_number

TABLES

return = bapiret2

poitem = bapimepoitem

poitemx = bapimepoitemx

poschedule = bapimeposchedule

poschedulex = bapimeposchedulx.

  • Commit the transaction

IF v_po_number NE space.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = bapiret2_c.

ENDIF.

Please reply urgently.

Thanks Regards,

Sandipan Jena

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

Hi

My answer is pure assumption.

Please check the following OSS notes

Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible

Note 1230268 - Field Vendor Batch never filled for PO BAPIs

Please take help from BASIS and SAP, before implementing the OSS note

Regards

Madhan D

1 REPLY 1
Read only

Former Member
0 Likes
558

Hi

My answer is pure assumption.

Please check the following OSS notes

Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible

Note 1230268 - Field Vendor Batch never filled for PO BAPIs

Please take help from BASIS and SAP, before implementing the OSS note

Regards

Madhan D