‎2008 Mar 07 5:19 PM
Hi All,
I am getting the following error while creating CM. Can some one please guide me why I am getting this error.
'Partners from account group 0004 are not permitted for partner function SP'
Thanks,
Veni.
FORM headerdata.
CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
EXPORTING
input = lv_auart
IMPORTING
OUTPUT = lv_nauart.
header data
Sales document type
header-doc_type = lv_nauart.
headerx-doc_type = 'X'.
Sales organization
header-sales_org = '300'.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = '10'.
headerx-distr_chan = 'X'.
Division
header-division = '01'.
headerx-division = 'X'.
Customer PO Number
header-purch_no_c = gs_zcoop1-cyear.
headerx-purch_no_c = 'X'.
Order Reason
header-ord_reason = '008'.
headerx-ord_reason = 'X'.
Ref Doc Number
header-ref_doc_l = gs_zcoop1-cyear.
headerx-ref_doc_l = 'X'.
headerx-updateflag = 'I'.
ENDFORM. " headerdata
*&----
*
*& Form itemdata
*&----
*
text
*----
*
--> p1 text
<-- p2 text
*----
*
FORM itemdata.
Partner data
Sold to
partner-partn_role = 'AG'.
partner-partn_numb = gs_zcoop1-kunnr.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
Line item number.
item-itm_number = lv_itemno.
itemx-itm_number = 'X'.
Material
item-material = 'CO-OP'.
itemx-material = 'X'.
Quantity
item-target_qty = '1'.
itemx-target_qty = 'X'.
APPEND item.
APPEND itemx.
*Fill schedule lines
lt_schedules_in-itm_number = lv_itemno.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = '1'.
APPEND lt_schedules_in.
*Fill schedule line flags
lt_schedules_inx-itm_number = lv_itemno.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'I'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
*Conditions
conditions1-itm_number = lv_itemno.
conditions1-cond_type = 'ZCCO'.
conditions1-cond_value = gs_zcoop1-coopamt.
conditions1-currency = 'USD'.
conditions1-cond_unit = 'EA'.
conditions1-cond_p_unt = 1.
APPEND conditions1.
ENDFORM. " itemdata
‎2008 Mar 07 6:07 PM
All the partners which are created for that account group 004 are restricted by functional people.
It's happens. They restrict certain partners for some reasons.
you can touchbase with them. Am sure they would give you the reason
Test it with different set of data which doen't belong to account group 004. You might not get this error.
thanks
Edited by: Alchemi on Mar 7, 2008 12:08 PM
‎2008 Mar 07 6:07 PM
All the partners which are created for that account group 004 are restricted by functional people.
It's happens. They restrict certain partners for some reasons.
you can touchbase with them. Am sure they would give you the reason
Test it with different set of data which doen't belong to account group 004. You might not get this error.
thanks
Edited by: Alchemi on Mar 7, 2008 12:08 PM
‎2008 Mar 07 6:56 PM