Skip to Content
0
Former Member
May 08, 2007 at 03:49 PM

quotation using BAPI

42 Views

Hi,

I am working on program to create quotation using bapi function module

BAPI_QUOTATION_CREATEFROMDATA.

I am getting following error:

Requirements are not fulfilled for condition EDI1

I have filled up this three structure with following flelds

  • header data

t_order_header-doc_type =

t_order_header-sales_org =

t_order_header-distr_chan =

t_order_header-division =

t_order_header-sales_off =

t_order_header-sales_grp =

t_order_header-qt_valid_f =

t_order_header-qt_valid_t =

t_order_header-ord_reason =

t_order_header-zz_sdcat_id =

t_order_header-zz_sdflyer_id =

append t_order_header.

  • Fill up Order partner structure

t_order_partner-partn_role =

t_order_partner-partn_numb =

if not p_i_rep is initial.

t_order_partner-partn_role =

t_order_partner-partn_numb =

endif.

if not p_e_rep is initial.

t_order_partner-partn_role =

t_order_partner-partn_numb =

endif.

  • item data

t_order_item-zzmatwa = t_record-matwa.

t_order_item-req_qty = t_record-kwmeng.

t_order_item-cd_type3 = 'EDI1'.

t_order_item-cd_value3 = t_record-price.

t_order_item-cd_p_unt3 = 1.

t_order_item-cd_curr3 = 'USD'.

CALL FUNCTION 'BAPI_QUOTATION_CREATEFROMDATA'

EXPORTING

ORDER_HEADER_IN = t_order_header

WITHOUT_COMMIT = ' '

CONVERT_PARVW_AUART = 'X'

IMPORTING

SALESDOCUMENT = g_salesdocument

SOLD_TO_PARTY = g_sold_to_party

SHIP_TO_PARTY = g_ship_to_party

BILLING_PARTY = g_billing_party

RETURN = g_return

TABLES

ORDER_ITEMS_IN = t_order_item

ORDER_PARTNERS = t_order_partner

ORDER_ITEMS_OUT = t_order_items_out

ORDER_CFGS_REF = t_order_cfgs_ref

ORDER_CFGS_INST = t_order_cfginst

ORDER_CFGS_PART_OF = t_order_cfgspart

ORDER_CFGS_VALUE = t_order_cfgsvalue.

I have just defind t_order_items_out,t_order_cfgs_ref,t_order_cfginst,t_order_cfgspart

t_order_cfgsvalue .

but i don't have any data to fill up this following table t_order_items_out,t_order_cfgs_ref,t_order_cfginst,t_order_cfgspart

t_order_cfgsvalue .