‎2008 May 09 11:06 AM
Hi All.
Where we can enter PO header text in BAPI_PO_CREATE. I am not getting any steucture in this BAPI.
Thanks.
‎2008 May 09 11:09 AM
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
‎2008 May 09 11:13 AM
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.
‎2008 May 09 11:25 AM
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.