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

BAPI_PO_CREATE

Former Member
0 Likes
425

Hi All.

Where we can enter PO header text in BAPI_PO_CREATE. I am not getting any steucture in this BAPI.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
404

Hi PKB

For that u have to use Create_TEXT function module separately.,,

U can search the usage and how to use that in forums.

If u face any problem still, let me know plz

regards

karthik

http://www.saptechnical.com/Tutorials/ABAP/MaterialLongText/info.htm

assign points if useful

Read only

christine_evans
Active Contributor
0 Likes
404

It's not there, so I guess they forgot about header texts when they created this BAPI. If it's available in your system, try using the improved BAPI_PO_CREATE1 which does contain a table for header texts. Otherwise, you're stuck with using function module CREATE_TEXT - which is fine since it is very easy to use and always seems to work.

Read only

Former Member
0 Likes
404

Before executing the bapi_po_create.

you have to pass the parameters like this.

lf_poheader-doc_date = lf_item-doc_date.

lf_poheader-doc_type = lf_item-doc_type.

lf_poheader-doc_cat = lf_item-doc_cat.

lf_poheader-co_code = f_header-company_code. "CHG note658656

lf_poheader-purch_org = lf_item-ekorg_ex.

lf_poheader-pur_group = lf_item-pur_group.

lf_poheader-vendor = lf_item-vendor.

lf_poheader-created_by = lf_item-created_by.

Reagrds,

madan.